From eb07a9c77a314c459387a01aff8b33db40f3463b Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Sun, 22 Jun 2014 14:44:39 -0500 Subject: [PATCH] feat(crits): Make crit hits boost MP Another nudge to make STR more attractive: critical hit on a To-Do multiplies MP gain. --- script/index.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/script/index.coffee b/script/index.coffee index 2f2093d655..657150c133 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -893,6 +893,7 @@ api.wrap = (user, main=true) -> # MP++ per checklist item in ToDo, bonus per CLI multiplier = _.max([(_.reduce(task.checklist,((m,i)->m+(if i.completed then 1 else 0)),1)),1]) mpDelta = _.max([(multiplier), (.01 * user._statsComputed.maxMP * multiplier)]) + mpDelta *= user._tmp.crit or 1 mpDelta *= -1 if direction is 'down' # unticking a todo user.stats.mp += mpDelta user.stats.mp = user._statsComputed.maxMP if user.stats.mp >= user._statsComputed.maxMP