fix: error when attempting to sell items for ducats #678

Merged
nrbdev merged 2 commits from main into main 2024-12-31 12:17:46 -08:00
Showing only changes of commit 66c74e2854 - Show all commits

View File

@ -14,7 +14,12 @@ export const sellController: RequestHandler = async (req, res) => {
} else if (payload.SellCurrency == "SC_FusionPoints") {
inventory.FusionPoints += payload.SellPrice;
} else if (payload.SellCurrency == "SC_PrimeBucks") {
inventory.PrimeTokens += payload.SellPrice;
addMiscItems(inventory, [
{
ItemType: "/Lotus/Types/Items/MiscItems/PrimeBucks",
ItemCount: payload.SellPrice
}
]);
} else if (payload.SellCurrency == "SC_DistillPoints") {
addMiscItems(inventory, [
{