XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

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

48aa145a
nrbdev <itzneonrb@gmail.com>
提交于

代码差异

1 个文件 +7 -0
Modified src/controllers/api/sellController.ts +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 {