From 4a7dcfc2bb5bf6b11ab5a896e052ae6ef615d3a9 Mon Sep 17 00:00:00 2001 From: Alice Harris Date: Sat, 20 Dec 2014 21:13:43 +1000 Subject: [PATCH] merge changes for smash (Brutal Smash) from brandonjreid's PR https://github.com/HabitRPG/habitrpg-shared/pull/331 --- script/content.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/script/content.coffee b/script/content.coffee index de9060c78f..4c43364725 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -506,8 +506,10 @@ api.spells = target: 'task' notes: t('spellWarriorSmashNotes') cast: (user, target) -> - target.value += 2.5 * (user._statsComputed.str / (user._statsComputed.str + 50)) * user.fns.crit('con') - user.party.quest.progress.up += Math.ceil(user._statsComputed.str * .2) if user.party.quest.key + bonus = user._statsComputed.str * user.fns.crit('con') + target.value += diminishingReturns(bonus, 2.5, 35) + user.party.quest.progress.up += diminishingReturns(bonus, 55, 70) if user.party.quest.key + defensiveStance: text: t('spellWarriorDefensiveStanceText') mana: 25 @@ -517,6 +519,7 @@ api.spells = cast: (user, target) -> user.stats.buffs.con ?= 0 user.stats.buffs.con += Math.ceil(user._statsComputed.con * .05) + valorousPresence: text: t('spellWarriorValorousPresenceText') mana: 20 @@ -527,6 +530,7 @@ api.spells = _.each target, (member) -> member.stats.buffs.str ?= 0 member.stats.buffs.str += Math.ceil(user._statsComputed.str * .05) + intimidate: text: t('spellWarriorIntimidateText') mana: 15