handle KeyToRemove in EOM upload
All checks were successful
Build / build (20) (push) Successful in 44s
Build / build (22) (push) Successful in 1m19s
Build / build (18) (push) Successful in 1m9s
Build / build (18) (pull_request) Successful in 46s
Build / build (20) (pull_request) Successful in 1m18s
Build / build (22) (pull_request) Successful in 1m22s

This commit is contained in:
Sainan 2025-04-06 16:05:44 +02:00
parent bbadca908c
commit d0f6650c41
2 changed files with 14 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import {
addFusionTreasures, addFusionTreasures,
addGearExpByCategory, addGearExpByCategory,
addItem, addItem,
addLevelKeys,
addMiscItems, addMiscItems,
addMissionComplete, addMissionComplete,
addMods, addMods,
@ -89,6 +90,16 @@ export const addMissionInventoryUpdates = async (
]); ]);
} }
} }
if (inventoryUpdates.KeyToRemove) {
if (!inventoryUpdates.KeyOwner || inventory.accountOwnerId.equals(inventoryUpdates.KeyOwner)) {
addLevelKeys(inventory, [
{
ItemType: inventoryUpdates.KeyToRemove,
ItemCount: -1
}
]);
}
}
if ( if (
inventoryUpdates.MissionFailed && inventoryUpdates.MissionFailed &&
inventoryUpdates.MissionStatus == "GS_FAILURE" && inventoryUpdates.MissionStatus == "GS_FAILURE" &&

View File

@ -49,6 +49,9 @@ export type IMissionInventoryUpdateRequest = {
rewardsMultiplier?: number; rewardsMultiplier?: number;
GoalTag: string; GoalTag: string;
LevelKeyName: string; LevelKeyName: string;
KeyOwner?: string;
KeyRemovalHash?: string;
KeyToRemove?: string;
ActiveBoosters?: IBooster[]; ActiveBoosters?: IBooster[];
RawUpgrades?: IRawUpgrade[]; RawUpgrades?: IRawUpgrade[];
FusionTreasures?: IFusionTreasure[]; FusionTreasures?: IFusionTreasure[];