From 3fbb1b91352b38d5489657b2cbf3db15f4169e0f Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Thu, 21 Mar 2013 13:57:22 -0600 Subject: [PATCH] only drop on 'up' scores --- src/app/scoring.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/scoring.coffee b/src/app/scoring.coffee index 39f6136695..f264b75253 100644 --- a/src/app/scoring.coffee +++ b/src/app/scoring.coffee @@ -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