mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
was adding accidental extra % point
This commit is contained in:
parent
3444449048
commit
fb9ca0af71
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ randomDrop = (model, delta, priority, streak=0) ->
|
|||
# % chance of getting a pet or meat
|
||||
chanceMultiplier = Math.abs(delta)
|
||||
chanceMultiplier *= algos.priorityValue(priority) # multiply chance by reddness
|
||||
chanceMultiplier += (streak+ 1) # streak bonus
|
||||
chanceMultiplier += streak # streak bonus
|
||||
console.log chanceMultiplier
|
||||
|
||||
if user.get('flags.dropsEnabled') and Math.random() < (.05 * chanceMultiplier)
|
||||
|
|
|
|||
Loading…
Reference in a new issue