Merge pull request #73 from Alys/patch-2

fix(?) for issue 2222 - untick removes too little XP,GP
This commit is contained in:
Tyler Renelle
2014-01-05 14:49:49 -08:00
+1 -1
View File
@@ -743,7 +743,7 @@ api.wrap = (user) ->
if direction is 'down' and task.type is 'daily' and options.cron
nextDelta *= (1 - _.reduce(task.checklist,((m,i)->m+(if i.completed then 1 else 0)),0) / task.checklist.length)
# If To-Do, point-match the TD per checklist item
if direction is 'up' and task.type is 'todo'
if task.type is 'todo'
nextDelta *= task.checklist.length
unless task.type is 'reward'