only drop on 'up' scores

This commit is contained in:
Tyler Renelle
2013-03-21 13:57:22 -06:00
parent cebe7fce7b
commit 3fbb1b9135
+1 -1
View File
@@ -116,7 +116,7 @@ score = (model, taskId, direction, times, batch, cron) ->
batch.commit()
# 1% chance of getting a pet or meat
if obj.flags.dropsEnabled and Math.random() < .5
if direction is 'up' and obj.flags.dropsEnabled and Math.random() < .5
if Math.random() < .5
drop = randomVal(food)
user.push 'items.food', drop.text