From fbc5a258f6c6ce6d2a0212eda1b83529b94c2e49 Mon Sep 17 00:00:00 2001 From: Alice Harris Date: Sat, 20 Dec 2014 13:35:10 +1000 Subject: [PATCH] stop backStab and fireball (Burst of Flames) changing the task value --- script/content.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/content.coffee b/script/content.coffee index f7f7a245f3..d11f86eff7 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -459,7 +459,8 @@ api.spells = cast: (user, target) -> # I seriously have no idea what I'm doing here. I'm just mashing buttons until numbers seem right-ish. Anyone know math? bonus = user._statsComputed.int * user.fns.crit('per') - target.value += diminishingReturns(bonus*.02, 4) + ## old code: + ## target.value += diminishingReturns(bonus*.02, 4) bonus *= Math.ceil ((if target.value < 0 then 1 else target.value+1) *.075) #console.log {bonus, expBonus:bonus,upBonus:bonus*.1} user.stats.exp += diminishingReturns(bonus,75) @@ -555,7 +556,8 @@ api.spells = notes: t('spellRogueBackStabNotes') cast: (user, target) -> _crit = user.fns.crit('str', .3) - target.value += _crit * .03 + ## old code: + ## target.value += _crit * .03 bonus = (if target.value < 0 then 1 else target.value+1) * _crit user.stats.exp += bonus user.stats.gp += bonus