mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
added diminishing returns function to toolsOfTrade, max of 400, halfway point 100 PER
This commit is contained in:
parent
6a3bbcfcee
commit
bfd2709008
1 changed files with 4 additions and 2 deletions
|
|
@ -600,9 +600,11 @@ api.spells =
|
|||
cast: (user, target) ->
|
||||
## lasts 24 hours ##
|
||||
_.each target, (member) ->
|
||||
bonus = user._statsComputed.per
|
||||
member.stats.buffs.per ?= 0
|
||||
member.stats.buffs.per += Math.ceil(user._statsComputed.per * 2)
|
||||
# add diminishing returns to this
|
||||
member.stats.buffs.per += Math.ceil(diminishingReturns(bonus, 400, 100))
|
||||
# member.stats.buffs.per += Math.ceil(user._statsComputed.per * 2)
|
||||
|
||||
stealth:
|
||||
text: t('spellRogueStealthText')
|
||||
mana: 45
|
||||
|
|
|
|||
Loading…
Reference in a new issue