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
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:
parent
bbadca908c
commit
d0f6650c41
@ -22,6 +22,7 @@ import {
|
||||
addFusionTreasures,
|
||||
addGearExpByCategory,
|
||||
addItem,
|
||||
addLevelKeys,
|
||||
addMiscItems,
|
||||
addMissionComplete,
|
||||
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 (
|
||||
inventoryUpdates.MissionFailed &&
|
||||
inventoryUpdates.MissionStatus == "GS_FAILURE" &&
|
||||
|
@ -49,6 +49,9 @@ export type IMissionInventoryUpdateRequest = {
|
||||
rewardsMultiplier?: number;
|
||||
GoalTag: string;
|
||||
LevelKeyName: string;
|
||||
KeyOwner?: string;
|
||||
KeyRemovalHash?: string;
|
||||
KeyToRemove?: string;
|
||||
ActiveBoosters?: IBooster[];
|
||||
RawUpgrades?: IRawUpgrade[];
|
||||
FusionTreasures?: IFusionTreasure[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user