Add diminishingReturns for protectAura, intimidate, and defensiveStance. ProtectAura maxes out at 100, intimidate at 12 and defensiveStance at 20
This commit is contained in:
@@ -540,8 +540,9 @@ api.spells =
|
||||
target: 'self'
|
||||
notes: t('spellWarriorDefensiveStanceNotes')
|
||||
cast: (user, target) ->
|
||||
bonus = user._statsComputed.con
|
||||
user.stats.buffs.con ?= 0
|
||||
user.stats.buffs.con += Math.ceil(user._statsComputed.con * .05)
|
||||
user.stats.buffs.con += Math.ceil(diminishingReturns(bonus, 20, 200))
|
||||
|
||||
valorousPresence:
|
||||
text: t('spellWarriorValorousPresenceText')
|
||||
@@ -553,7 +554,7 @@ api.spells =
|
||||
_.each target, (member) ->
|
||||
bonus = user._statsComputed.str
|
||||
member.stats.buffs.str ?= 0
|
||||
member.stats.buffs.str += diminishingReturns(bonus, 20, 200)
|
||||
member.stats.buffs.str += Math.ceil(diminishingReturns(bonus, 20, 200))
|
||||
|
||||
intimidate:
|
||||
text: t('spellWarriorIntimidateText')
|
||||
@@ -563,8 +564,9 @@ api.spells =
|
||||
notes: t('spellWarriorIntimidateNotes')
|
||||
cast: (user, target) ->
|
||||
_.each target, (member) ->
|
||||
bonus = user._statsComputed.con
|
||||
member.stats.buffs.con ?= 0
|
||||
member.stats.buffs.con += Math.ceil(user._statsComputed.con * .03)
|
||||
member.stats.buffs.con += Math.ceil(diminishingReturns(bonus,12,200))
|
||||
|
||||
rogue:
|
||||
pickPocket:
|
||||
@@ -641,8 +643,9 @@ api.spells =
|
||||
cast: (user, target) ->
|
||||
## lasts 24 hours ##
|
||||
_.each target, (member) ->
|
||||
bonus = user._statsComputed.con
|
||||
member.stats.buffs.con ?= 0
|
||||
member.stats.buffs.con += Math.ceil(user._statsComputed.con * .15)
|
||||
member.stats.buffs.con += Math.ceil(diminishingReturns(bonus, 100, 200))
|
||||
heallAll:
|
||||
text: t('spellHealerHealAllText')
|
||||
mana: 25
|
||||
|
||||
Reference in New Issue
Block a user