返回提交历史
Modified
src/controllers/api/nameWeaponController.ts
+5
-1
XFEstudio/SpaceNinjaServer
fix: don't charge platinum for renaming kaithe (#1440)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1440 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
0c2f72f9
代码差异
1 个文件
+5
-1
@@ -18,7 +18,11 @@ export const nameWeaponController: RequestHandler = async (req, res) => {
18
18
} else {
19
19
item.ItemName = undefined;
20
20
}
21
const currencyChanges = updateCurrency(inventory, "webui" in req.query ? 0 : 15, true);
21
const currencyChanges = updateCurrency(
22
inventory,
23
req.query.Category == "Horses" || "webui" in req.query ? 0 : 15,
24
true
25
);
22
26
await inventory.save();
23
27
res.json({
24
28
InventoryChanges: currencyChanges