fix: defer resolving of StrippedItems in bounties to extraction
All checks were successful
Build / build (pull_request) Successful in 59s

This commit is contained in:
Sainan 2025-11-02 11:45:55 +01:00
parent d794bd94ce
commit 451279e588

View File

@ -1133,7 +1133,8 @@ export const addMissionRewards = async (
VoidTearParticipantsCurrWave: voidTearWave,
StrippedItems: strippedItems,
AffiliationChanges: AffiliationMods,
InvasionProgress: invasionProgress
InvasionProgress: invasionProgress,
EndOfMatchUpload: endOfMatchUpload
}: IMissionInventoryUpdateRequest,
firstCompletion: boolean
): Promise<AddMissionRewardsReturnType> => {
@ -1392,6 +1393,7 @@ export const addMissionRewards = async (
}
if (strippedItems) {
if (endOfMatchUpload) {
for (const si of strippedItems) {
if (si.DropTable in droptableAliases) {
logger.debug(`rewriting ${si.DropTable} to ${droptableAliases[si.DropTable]}`);
@ -1460,6 +1462,9 @@ export const addMissionRewards = async (
inventory.EntratiVaultCountLastPeriod! += 1;
}
}
} else {
logger.debug(`ignoring StrippedItems in intermediate inventory update, deferring until extraction`);
}
}
if (inventory.Nemesis) {