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

View File

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