feat: opening relics in endless missions #713

Merged
Sainan merged 3 commits from open-relic into main 2025-01-05 20:35:36 -08:00
Showing only changes of commit 8e74609320 - Show all commits

View File

@ -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]
}); });
} }