only consume search pulse on successful completion
All checks were successful
Build / build (pull_request) Successful in 1m6s

This commit is contained in:
Sainan 2025-08-21 21:29:42 +02:00
parent 9eefe5db84
commit 2fe9843429

View File

@ -170,12 +170,6 @@ export const addMissionInventoryUpdates = async (
}
]);
}
// Consume netracells search pulse
if (inventoryUpdates.Missions.Tag == "SolNode720") {
updateEntratiVault(inventory);
inventory.EntratiVaultCountLastPeriod! += 1;
}
}
if (inventoryUpdates.KeyToRemove) {
if (!inventoryUpdates.KeyOwner || inventory.accountOwnerId.equals(inventoryUpdates.KeyOwner)) {
@ -1221,6 +1215,12 @@ export const addMissionRewards = async (
}
]);
}
// Consume netracells search pulse. Moved here to only cover successful completions. Discussed in https://onlyg.it/OpenWF/SpaceNinjaServer/issues/2673
if (missions.Tag == "SolNode720") {
updateEntratiVault(inventory);
inventory.EntratiVaultCountLastPeriod! += 1;
}
}
if (rewardInfo.useVaultManifest) {