math_samples fixes for spells, consequent spell balancing

This commit is contained in:
Tyler Renelle
2013-12-19 20:26:30 -07:00
parent 1fccbecd4e
commit d8a39e1ffd
2 changed files with 25 additions and 31 deletions
+3 -3
View File
@@ -221,7 +221,7 @@ api.spells =
target: 'task'
notes: 'With a crack, flames burst from your staff, scorching a task. You deal much higher damage to the task and gain additional experience.'
cast: (user, target) ->
target.value += user._statsComputed.int * .02 * crit(user, 'per')
target.value += user._statsComputed.int * .0075 * crit(user, 'per')
user.stats.exp += Math.abs(target.value)
mpheal:
@@ -264,7 +264,7 @@ api.spells =
target: 'task'
notes: "You savagely hit a single task with all of your might, beating it into submission. The task's redness decreases."
cast: (user, target) ->
target.value += user._statsComputed.str * .03
target.value += user._statsComputed.str * .01 * crit(user, 'per')
defensiveStance:
text: 'Defensive Stance'
mana: 25
@@ -356,7 +356,7 @@ api.spells =
cast: (user, target) ->
_.each user.tasks, (target) ->
return if target.type is 'reward'
target.value += user._statsComputed.int * .02
target.value += user._statsComputed.int * .075
protectAura:
text: 'Protective Aura'
mana: 30