fix ignoring itemCount
This commit is contained in:
parent
38d8fc448e
commit
8e74609320
@ -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]
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user