From 6a3bbcfcee65ad2288b834841577748bd601fdc3 Mon Sep 17 00:00:00 2001 From: Verabird Date: Tue, 30 Dec 2014 22:19:31 -0500 Subject: [PATCH] Add diminishing returns to earth and mpheal. earth maxes out at 30 with halfway at 200 and mpheal at 25 with halfway at 125 --- script/content.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/content.coffee b/script/content.coffee index 175326e626..ca33565286 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -497,9 +497,8 @@ api.spells = notes: t('spellWizardMPHealNotes'), cast: (user, target)-> _.each target, (member) -> - bonus = Math.ceil(user._statsComputed.int * .1) - bonus = 25 if bonus > 25 #prevent ability to replenish own mp infinitely - member.stats.mp += bonus + bonus = user._statsComputed.int + member.stats.mp += Math.ceil(diminishingReturns(bonus, 25, 125)) # maxes out at 25 earth: text: t('spellWizardEarthText') @@ -509,8 +508,9 @@ api.spells = notes: t('spellWizardEarthNotes'), cast: (user, target) -> _.each target, (member) -> + bonus = user._statsComputed.int member.stats.buffs.int ?= 0 - member.stats.buffs.int += Math.ceil(user._statsComputed.int * .05) + member.stats.buffs.int += Math.ceil(diminishingReturns(bonus, 30,200)) frost: text: t('spellWizardFrostText'),