fix ignoring itemCount
This commit is contained in:
parent
38d8fc448e
commit
8e74609320
@ -53,7 +53,7 @@ export const getRandomWeightedReward2 = (
|
|||||||
for (const entry of pool) {
|
for (const entry of pool) {
|
||||||
resultPool.push({
|
resultPool.push({
|
||||||
type: entry.type,
|
type: entry.type,
|
||||||
itemCount: 1,
|
itemCount: entry.itemCount,
|
||||||
probability: weights[entry.rarity] / rarityCounts[entry.rarity]
|
probability: weights[entry.rarity] / rarityCounts[entry.rarity]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user