fix: error when attempting to sell items for ducats (#678)
This commit is contained in:
parent
3e54977d4b
commit
48aa145a20
@ -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, [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user