diff --git a/website/common/script/content/spells.js b/website/common/script/content/spells.js index dfe8fc8edc..e881b34db0 100644 --- a/website/common/script/content/spells.js +++ b/website/common/script/content/spells.js @@ -264,7 +264,8 @@ spells.healer = { cast (user, target) { each(target, member => { member.stats.hp += Math.ceil( - (statsComputed(user).con + statsComputed(user).int + 5) * 0.04); + (statsComputed(user).con + statsComputed(user).int + 5) * 0.04 + ); if (member.stats.hp > 50) member.stats.hp = 50; }); }, diff --git a/website/common/script/ops/scoreTask.js b/website/common/script/ops/scoreTask.js index 245d2d2d07..07d737e905 100644 --- a/website/common/script/ops/scoreTask.js +++ b/website/common/script/ops/scoreTask.js @@ -177,15 +177,15 @@ function _changeTaskValue (user, task, direction, times, cron) { const prevProgress = user.party.quest.progress.up; if (task.type === 'todo' || task.type === 'daily') { - user.party.quest.progress.up += nextDelta * _crit * (1 + statsComputed(user).str / 200); + user.party.quest.progress.up += Math.ceil(nextDelta * _crit * (1 + statsComputed(user).str / 200)); } else if (task.type === 'habit') { - user.party.quest.progress.up += nextDelta * _crit * (0.5 + statsComputed(user).str / 400); + user.party.quest.progress.up += Math.ceil(nextDelta * _crit * (0.5 + statsComputed(user).str / 400)); } if (!user._tmp.quest) user._tmp.quest = {}; user._tmp.quest.progressDelta = Math.ceil(user.party.quest.progress.up - prevProgress); } - task.value = Math.ceil(task.value + nextDelta); + task.value = task.value + nextDelta; } addToDelta += nextDelta;