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: don't try to subtract MiscItems for polarity swap (#1633)

Closes #1620 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1633 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

380f0662
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +7 -1
Modified src/controllers/api/upgradesController.ts +7 -1
@@ -25,7 +25,13 @@ export const upgradesController: RequestHandler = async (req, res) => {
25 25 operation.UpgradeRequirement == "/Lotus/Types/Items/MiscItems/CustomizationSlotUnlocker"
26 26 ) {
27 27 updateCurrency(inventory, 10, true);
28 } else if (operation.OperationType != "UOT_ABILITY_OVERRIDE") {
28 } else if (
29 operation.OperationType != "UOT_SWAP_POLARITY" &&
30 operation.OperationType != "UOT_ABILITY_OVERRIDE"
31 ) {
32 if (!operation.UpgradeRequirement) {
33 throw new Error(`${operation.OperationType} operation should be free?`);
34 }
29 35 addMiscItems(inventory, [
30 36 {
31 37 ItemType: operation.UpgradeRequirement,