返回提交历史
Modified
src/controllers/api/upgradesController.ts
+7
-1
XFEstudio/XFESpaceNinjaServer
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
代码差异
1 个文件
+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,