返回提交历史
Modified
src/controllers/custom/addMissingMaxRankModsController.ts
+10
-1
XFEstudio/XFESpaceNinjaServer
fix(webui): also add avionics with "add missing max rank mods" (#3705)
Closes #3704 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3705 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
5d0ae162
代码差异
1 个文件
+10
-1
@@ -1,7 +1,7 @@
1
1
import { getInventory } from "../../services/inventoryService.ts";
2
2
import { getAccountIdForRequest } from "../../services/loginService.ts";
3
3
import type { RequestHandler } from "express";
4
import { ExportArcanes, ExportUpgrades } from "warframe-public-export-plus";
4
import { ExportArcanes, ExportAvionics, ExportUpgrades } from "warframe-public-export-plus";
5
5
import { broadcastInventoryUpdate } from "../../services/wsService.ts";
6
6
7
7
export const addMissingMaxRankModsController: RequestHandler = async (req, res) => {
@@ -28,6 +28,15 @@ export const addMissingMaxRankModsController: RequestHandler = async (req, res)
28
28
}
29
29
}
30
30
31
for (const [uniqueName, data] of Object.entries(ExportAvionics)) {
32
if (data.fusionLimit != 0 && maxOwnedRanks[uniqueName] != data.fusionLimit) {
33
inventory.Upgrades.push({
34
ItemType: uniqueName,
35
UpgradeFingerprint: JSON.stringify({ lvl: data.fusionLimit })
36
});
37
}
38
}
39
31
40
for (const [uniqueName, data] of Object.entries(ExportArcanes)) {
32
41
if (
33
42
data.name != "/Lotus/Language/Items/GenericCosmeticEnhancerName" &&