返回提交历史
Modified
src/controllers/api/sellController.ts
+7
-0
XFEstudio/SpaceNinjaServer
fix: error when attempting to sell items for ducats (#678)
48aa145a
代码差异
1 个文件
+7
-0
@@ -13,6 +13,13 @@ export const sellController: RequestHandler = async (req, res) => {
13
13
inventory.RegularCredits += payload.SellPrice;
14
14
} else if (payload.SellCurrency == "SC_FusionPoints") {
15
15
inventory.FusionPoints += payload.SellPrice;
16
} else if (payload.SellCurrency == "SC_PrimeBucks") {
17
addMiscItems(inventory, [
18
{
19
ItemType: "/Lotus/Types/Items/MiscItems/PrimeBucks",
20
ItemCount: payload.SellPrice
21
}
22
]);
16
23
} else if (payload.SellCurrency == "SC_DistillPoints") {
17
24
addMiscItems(inventory, [
18
25
{