fix: ignore purchaseQuantity when giving mission rewards
All checks were successful
Build / build (20) (push) Successful in 1m16s
Build / build (22) (push) Successful in 43s
Build / build (18) (push) Successful in 1m14s
Build / build (22) (pull_request) Successful in 1m14s
Build / build (18) (pull_request) Successful in 42s
Build / build (20) (pull_request) Successful in 1m16s
All checks were successful
Build / build (20) (push) Successful in 1m16s
Build / build (22) (push) Successful in 43s
Build / build (18) (push) Successful in 1m14s
Build / build (22) (pull_request) Successful in 1m14s
Build / build (18) (pull_request) Successful in 42s
Build / build (20) (pull_request) Successful in 1m16s
This commit is contained in:
parent
d4d887a5a4
commit
a30445b3db
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user