fix: ignore purchaseQuantity when giving mission rewards #1446

Merged
Sainan merged 1 commits from ignore-purchaseQuantity into main 2025-04-03 10:37:52 -07:00

View File

@ -530,7 +530,13 @@ export const addMissionRewards = async (
}
for (const reward of MissionRewards) {
const inventoryChange = await handleStoreItemAcquisition(reward.StoreItem, inventory, reward.ItemCount);
const inventoryChange = await handleStoreItemAcquisition(
reward.StoreItem,
inventory,
reward.ItemCount,
undefined,
true
);
//TODO: combineInventoryChanges improve type safety, merging 2 of the same item?
//TODO: check for the case when two of the same item are added, combineInventoryChanges should merge them, but the client also merges them
//TODO: some conditional types to rule out binchanges?