fix: ignore purchaseQuantity for login reward items
All checks were successful
Build / build (pull_request) Successful in 53s

cryotic amount should not be multiplied by 3000...
This commit is contained in:
Sainan 2025-06-27 02:53:55 +02:00
parent 4f1f9592b0
commit d2fc887678

View File

@ -144,7 +144,8 @@ export const claimLoginReward = async (
case "RT_STORE_ITEM":
case "RT_RECIPE":
case "RT_RANDOM_RECIPE":
return (await handleStoreItemAcquisition(reward.StoreItemType, inventory, reward.Amount)).InventoryChanges;
return (await handleStoreItemAcquisition(reward.StoreItemType, inventory, reward.Amount, undefined, true))
.InventoryChanges;
case "RT_CREDITS":
return updateCurrency(inventory, -reward.Amount, false);