was adding accidental extra % point

This commit is contained in:
Tyler Renelle 2013-05-04 11:04:30 +01:00
parent 3444449048
commit fb9ca0af71

View file

@ -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)