mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
Fix drop ratios
This commit is contained in:
parent
bf8c0dd9dc
commit
ccd39036b6
2 changed files with 8 additions and 8 deletions
4
dist/habitrpg-shared.js
vendored
4
dist/habitrpg-shared.js
vendored
|
|
@ -8336,7 +8336,7 @@ if(typeof module != 'undefined' && module.exports){
|
|||
drop.type = 'Egg';
|
||||
drop.dialog = "You've found a " + drop.text + " Egg! " + drop.notes;
|
||||
} else {
|
||||
acceptableDrops = rarity < .05 ? ['Golden'] : rarity < .1 ? ['Zombie', 'CottonCandyPink', 'CottonCandyBlue'] : rarity < .15 ? ['Red', 'Shade', 'Skeleton'] : ['Base', 'White', 'Desert'];
|
||||
acceptableDrops = rarity < .05 ? ['Golden'] : rarity < .15 ? ['Zombie', 'CottonCandyPink', 'CottonCandyBlue'] : rarity < .30 ? ['Red', 'Shade', 'Skeleton'] : ['Base', 'White', 'Desert'];
|
||||
drop = helpers.randomVal(_.pick(hatchingPotions, (function(v, k) {
|
||||
return __indexOf.call(acceptableDrops, k) >= 0;
|
||||
})));
|
||||
|
|
@ -9961,4 +9961,4 @@ try {
|
|||
|
||||
|
||||
},{"lodash":2}]},{},[7])
|
||||
;
|
||||
;
|
||||
|
|
|
|||
|
|
@ -151,13 +151,13 @@ randomDrop = (user, delta, priority, streak = 0, options={}) ->
|
|||
# Hatching Potion, 30% chance - break down by rarity.
|
||||
else
|
||||
acceptableDrops =
|
||||
# Very Rare: 10% (of 30%)
|
||||
# Very Rare: 10% (of 50%)
|
||||
if rarity < .05 then ['Golden']
|
||||
# Rare: 20% (of 30%)
|
||||
else if rarity < .1 then ['Zombie', 'CottonCandyPink', 'CottonCandyBlue']
|
||||
# Uncommon: 30% (of 30%)
|
||||
else if rarity < .15 then ['Red', 'Shade', 'Skeleton']
|
||||
# Common: 40% (of 30%)
|
||||
# Rare: 20% (of 50%)
|
||||
else if rarity < .15 then ['Zombie', 'CottonCandyPink', 'CottonCandyBlue']
|
||||
# Uncommon: 30% (of 50%)
|
||||
else if rarity < .30 then ['Red', 'Shade', 'Skeleton']
|
||||
# Common: 40% (of 50%)
|
||||
else ['Base', 'White', 'Desert']
|
||||
|
||||
# No Rarity (@see https://github.com/HabitRPG/habitrpg/issues/1048, we may want to remove rareness when we add mounts)
|
||||
|
|
|
|||
Loading…
Reference in a new issue