From 96157068cfa2458760c44216a88c7ee9dae7cd10 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 11 Dec 2014 19:58:14 -0600 Subject: [PATCH] chore(grunt): grunt --- dist/habitrpg-shared.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 2678292a25..7af488ef36 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -15550,11 +15550,14 @@ api.wrap = function(user, main) { if (user.preferences.automaticAllocation === true && user.preferences.allocationMode === 'taskbased' && !(task.type === 'todo' && direction === 'down')) { user.stats.training[task.attribute] += nextDelta; } - if (direction === 'up' && !(task.type === 'habit' && !task.down)) { + if (direction === 'up') { user.party.quest.progress.up = user.party.quest.progress.up || 0; if ((_ref1 = task.type) === 'daily' || _ref1 === 'todo') { user.party.quest.progress.up += nextDelta * (1 + (user._statsComputed.str / 200)); } + if (task.type === 'habit') { + user.party.quest.progress.up += nextDelta * (0.5 + (user._statsComputed.str / 400)); + } } task.value += nextDelta; }