返回提交历史
Modified
src/controllers/api/inventoryController.ts
+8
-0
XFEstudio/XFESpaceNinjaServer
chore: exclude ranked up arcanes in older versions (#3622)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3622 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
b4bd3904
代码差异
1 个文件
+8
-0
@@ -16,6 +16,7 @@ import {
16
16
import type { IPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts";
17
17
import { ArtifactPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts";
18
18
import type { ICountedItem } from "warframe-public-export-plus";
19
import { ExportArcanes } from "warframe-public-export-plus";
19
20
import { applyCheatsToInfestedFoundry, handleSubsumeCompletion } from "../../services/infestedFoundryService.ts";
20
21
import {
21
22
addEmailItem,
@@ -569,6 +570,13 @@ export const getInventoryResponse = async (
569
570
}
570
571
}
571
572
573
if (version_compare(buildLabel, gameToBuildVersion["22.13.4"]) <= 0) {
574
// Before U22.14.0 Arcanes was installed directly at cosmetic items so client doesn't know about ranked up arcanes and UI displays them unproperly
575
inventoryResponse.Upgrades = inventoryResponse.Upgrades.filter(
576
upgrade => !(upgrade.ItemType in ExportArcanes)
577
);
578
}
579
572
580
if (version_compare(buildLabel, gameToBuildVersion["22.13.4"]) < 0) {
573
581
const personalRoomsDb = await getPersonalRooms(inventory.accountOwnerId.toString());
574
582
const personalRooms = personalRoomsDb.toJSON<IPersonalRoomsClient>();