diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 3f79c05f12..facf307826 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -13159,7 +13159,7 @@ api.wrap = function(user, main) { return m + (i.completed ? 1 : 0); }), 0) / task.checklist.length; } - if (task.type === 'todo' && direction === 'up') { + if (task.type === 'todo') { nextDelta *= 1 + _.reduce(task.checklist, (function(m, i) { return m + (i.completed ? 1 : 0); }), 0); @@ -13834,4 +13834,4 @@ api.wrap = function(user, main) { }).call(this,require("/Users/lefnire/Dropbox/Sites/habitrpg/modules/habitrpg-shared/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js")) -},{"./content.coffee":5,"./i18n.coffee":6,"/Users/lefnire/Dropbox/Sites/habitrpg/modules/habitrpg-shared/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":2,"lodash":3,"moment":4}]},{},[1]) \ No newline at end of file +},{"./content.coffee":5,"./i18n.coffee":6,"/Users/lefnire/Dropbox/Sites/habitrpg/modules/habitrpg-shared/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":2,"lodash":3,"moment":4}]},{},[1]) diff --git a/script/index.coffee b/script/index.coffee index c915168e71..11057fcfae 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -792,7 +792,7 @@ api.wrap = (user, main=true) -> 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 completed - if task.type is 'todo' and direction is 'up' + if task.type is 'todo' nextDelta *= (1 + _.reduce(task.checklist,((m,i)->m+(if i.completed then 1 else 0)),0)) unless task.type is 'reward'