fix: defer resolving of StrippedItems in bounties to extraction
All checks were successful
Build / build (pull_request) Successful in 59s
All checks were successful
Build / build (pull_request) Successful in 59s
This commit is contained in:
parent
d794bd94ce
commit
451279e588
@ -1133,7 +1133,8 @@ export const addMissionRewards = async (
|
|||||||
VoidTearParticipantsCurrWave: voidTearWave,
|
VoidTearParticipantsCurrWave: voidTearWave,
|
||||||
StrippedItems: strippedItems,
|
StrippedItems: strippedItems,
|
||||||
AffiliationChanges: AffiliationMods,
|
AffiliationChanges: AffiliationMods,
|
||||||
InvasionProgress: invasionProgress
|
InvasionProgress: invasionProgress,
|
||||||
|
EndOfMatchUpload: endOfMatchUpload
|
||||||
}: IMissionInventoryUpdateRequest,
|
}: IMissionInventoryUpdateRequest,
|
||||||
firstCompletion: boolean
|
firstCompletion: boolean
|
||||||
): Promise<AddMissionRewardsReturnType> => {
|
): Promise<AddMissionRewardsReturnType> => {
|
||||||
@ -1392,6 +1393,7 @@ export const addMissionRewards = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strippedItems) {
|
if (strippedItems) {
|
||||||
|
if (endOfMatchUpload) {
|
||||||
for (const si of strippedItems) {
|
for (const si of strippedItems) {
|
||||||
if (si.DropTable in droptableAliases) {
|
if (si.DropTable in droptableAliases) {
|
||||||
logger.debug(`rewriting ${si.DropTable} to ${droptableAliases[si.DropTable]}`);
|
logger.debug(`rewriting ${si.DropTable} to ${droptableAliases[si.DropTable]}`);
|
||||||
@ -1460,6 +1462,9 @@ export const addMissionRewards = async (
|
|||||||
inventory.EntratiVaultCountLastPeriod! += 1;
|
inventory.EntratiVaultCountLastPeriod! += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
logger.debug(`ignoring StrippedItems in intermediate inventory update, deferring until extraction`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inventory.Nemesis) {
|
if (inventory.Nemesis) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user