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

This commit is contained in:
nrbdev 2024-12-31 15:17:46 -05:00 committed by GitHub
parent 3e54977d4b
commit 48aa145a20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,13 @@ export const sellController: RequestHandler = async (req, res) => {
inventory.RegularCredits += payload.SellPrice;
} else if (payload.SellCurrency == "SC_FusionPoints") {
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") {
addMiscItems(inventory, [
{