diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 8219922b26..368cd07e26 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -2314,7 +2314,6 @@ api.spells = { cast: function(user, target) { var bonus; bonus = user._statsComputed.int * user.fns.crit('per'); - target.value += diminishingReturns(bonus * .02, 4); bonus *= Math.ceil((target.value < 0 ? 1 : target.value + 1) * .075); user.stats.exp += diminishingReturns(bonus, 75); if (user.party.quest.key) { @@ -2449,10 +2448,9 @@ api.spells = { cast: function(user, target) { var bonus, _crit; _crit = user.fns.crit('str', .3); - target.value += _crit * .03; - bonus = (target.value < 0 ? 1 : target.value + 1) * _crit; - user.stats.exp += bonus; - return user.stats.gp += bonus; + bonus = calculateBonus(target.value, user._statsComputed.str, _crit); + user.stats.exp += diminishingReturns(bonus, 75, 50); + return user.stats.gp += diminishingReturns(bonus, 18, 75); } }, toolsOfTrade: { diff --git a/script/content.coffee b/script/content.coffee index d11f86eff7..de9060c78f 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -548,6 +548,7 @@ api.spells = cast: (user, target) -> bonus = calculateBonus(target.value, user._statsComputed.per) user.stats.gp += diminishingReturns(bonus, 25, 75) + backStab: text: t('spellRogueBackStabText') mana: 15 @@ -556,12 +557,10 @@ api.spells = notes: t('spellRogueBackStabNotes') cast: (user, target) -> _crit = user.fns.crit('str', .3) - ## 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 - # user.party.quest.progress.up += bonus if user.party.quest.key # remove hurting bosses for rogues, seems OP for now + bonus = calculateBonus(target.value, user._statsComputed.str, _crit) + user.stats.exp += diminishingReturns(bonus, 75, 50) + user.stats.gp += diminishingReturns(bonus, 18, 75) + toolsOfTrade: text: t('spellRogueToolsOfTradeText') mana: 25