fix: ignore purchaseQuantity when giving mission rewards (#1446)
Reviewed-on: #1446 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
92cf85084f
commit
05c0c9909c
@ -537,7 +537,13 @@ export const addMissionRewards = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const reward of MissionRewards) {
|
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: 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: 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?
|
//TODO: some conditional types to rule out binchanges?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user