fix ignoring itemCount

This commit is contained in:
Sainan 2025-01-05 04:07:18 +01:00
parent 38d8fc448e
commit 8e74609320

View File

@ -53,7 +53,7 @@ export const getRandomWeightedReward2 = (
for (const entry of pool) {
resultPool.push({
type: entry.type,
itemCount: 1,
itemCount: entry.itemCount,
probability: weights[entry.rarity] / rarityCounts[entry.rarity]
});
}