make skills that buff their own stat be calculated from the unbuffed stat - affects earth, defensiveStance, valorousPresence, intimidate, toolsOfTrade, protectAura
This commit is contained in:
+7
-7
@@ -2684,7 +2684,7 @@ api.spells = {
|
||||
cast: function(user, target) {
|
||||
return _.each(target, function(member) {
|
||||
var bonus, _base;
|
||||
bonus = user._statsComputed.int;
|
||||
bonus = user._statsComputed.int - user.stats.buffs.int;
|
||||
if ((_base = member.stats.buffs).int == null) {
|
||||
_base.int = 0;
|
||||
}
|
||||
@@ -2728,7 +2728,7 @@ api.spells = {
|
||||
notes: t('spellWarriorDefensiveStanceNotes'),
|
||||
cast: function(user, target) {
|
||||
var bonus, _base;
|
||||
bonus = user._statsComputed.con;
|
||||
bonus = user._statsComputed.con - user.stats.buffs.con;
|
||||
if ((_base = user.stats.buffs).con == null) {
|
||||
_base.con = 0;
|
||||
}
|
||||
@@ -2744,7 +2744,7 @@ api.spells = {
|
||||
cast: function(user, target) {
|
||||
return _.each(target, function(member) {
|
||||
var bonus, _base;
|
||||
bonus = user._statsComputed.str;
|
||||
bonus = user._statsComputed.str - user.stats.buffs.str;
|
||||
if ((_base = member.stats.buffs).str == null) {
|
||||
_base.str = 0;
|
||||
}
|
||||
@@ -2761,7 +2761,7 @@ api.spells = {
|
||||
cast: function(user, target) {
|
||||
return _.each(target, function(member) {
|
||||
var bonus, _base;
|
||||
bonus = user._statsComputed.con;
|
||||
bonus = user._statsComputed.con - user.stats.buffs.con;
|
||||
if ((_base = member.stats.buffs).con == null) {
|
||||
_base.con = 0;
|
||||
}
|
||||
@@ -2806,7 +2806,7 @@ api.spells = {
|
||||
cast: function(user, target) {
|
||||
return _.each(target, function(member) {
|
||||
var bonus, _base;
|
||||
bonus = user._statsComputed.per;
|
||||
bonus = user._statsComputed.per - user.stats.buffs.per;
|
||||
if ((_base = member.stats.buffs).per == null) {
|
||||
_base.per = 0;
|
||||
}
|
||||
@@ -2867,7 +2867,7 @@ api.spells = {
|
||||
cast: function(user, target) {
|
||||
return _.each(target, function(member) {
|
||||
var bonus, _base;
|
||||
bonus = user._statsComputed.con;
|
||||
bonus = user._statsComputed.con - user.stats.buffs.con;
|
||||
if ((_base = member.stats.buffs).con == null) {
|
||||
_base.con = 0;
|
||||
}
|
||||
@@ -7116,7 +7116,7 @@ api.wrap = function(user, main) {
|
||||
{user}
|
||||
*/
|
||||
cron: function(options) {
|
||||
var clearBuffs, dailyChecked, dailyDueUnchecked, daysMissed, expTally, lvl, lvlDiv2, now, perfect, plan, progress, todoTally, _base, _base1, _base2, _base3, _progress, _ref, _ref1, _ref2;
|
||||
var clearBuffs, dailyChecked, dailyDueUnchecked, daysMissed, expTally, lvl, lvlDiv2, now, perfect, plan, progress, todoTally, _base, _base1, _base2, _base3, _base4, _progress, _ref, _ref1, _ref2, _ref3;
|
||||
if (options == null) {
|
||||
options = {};
|
||||
}
|
||||
|
||||
@@ -544,7 +544,7 @@ api.spells =
|
||||
notes: t('spellWizardEarthNotes'),
|
||||
cast: (user, target) ->
|
||||
_.each target, (member) ->
|
||||
bonus = user._statsComputed.int
|
||||
bonus = user._statsComputed.int - user.stats.buffs.int
|
||||
member.stats.buffs.int ?= 0
|
||||
member.stats.buffs.int += Math.ceil(diminishingReturns(bonus, 30,200))
|
||||
|
||||
@@ -577,7 +577,7 @@ api.spells =
|
||||
target: 'self'
|
||||
notes: t('spellWarriorDefensiveStanceNotes')
|
||||
cast: (user, target) ->
|
||||
bonus = user._statsComputed.con
|
||||
bonus = user._statsComputed.con - user.stats.buffs.con
|
||||
user.stats.buffs.con ?= 0
|
||||
user.stats.buffs.con += Math.ceil(diminishingReturns(bonus, 40, 200))
|
||||
|
||||
@@ -589,7 +589,7 @@ api.spells =
|
||||
notes: t('spellWarriorValorousPresenceNotes')
|
||||
cast: (user, target) ->
|
||||
_.each target, (member) ->
|
||||
bonus = user._statsComputed.str
|
||||
bonus = user._statsComputed.str - user.stats.buffs.str
|
||||
member.stats.buffs.str ?= 0
|
||||
member.stats.buffs.str += Math.ceil(diminishingReturns(bonus, 20, 200))
|
||||
|
||||
@@ -601,7 +601,7 @@ api.spells =
|
||||
notes: t('spellWarriorIntimidateNotes')
|
||||
cast: (user, target) ->
|
||||
_.each target, (member) ->
|
||||
bonus = user._statsComputed.con
|
||||
bonus = user._statsComputed.con - user.stats.buffs.con
|
||||
member.stats.buffs.con ?= 0
|
||||
member.stats.buffs.con += Math.ceil(diminishingReturns(bonus,24,200))
|
||||
|
||||
@@ -636,7 +636,7 @@ api.spells =
|
||||
notes: t('spellRogueToolsOfTradeNotes')
|
||||
cast: (user, target) ->
|
||||
_.each target, (member) ->
|
||||
bonus = user._statsComputed.per
|
||||
bonus = user._statsComputed.per - user.stats.buffs.per
|
||||
member.stats.buffs.per ?= 0
|
||||
member.stats.buffs.per += Math.ceil(diminishingReturns(bonus, 400, 100))
|
||||
|
||||
@@ -661,6 +661,7 @@ api.spells =
|
||||
cast: (user, target) ->
|
||||
user.stats.hp += (user._statsComputed.con + user._statsComputed.int + 5) * .075
|
||||
user.stats.hp = 50 if user.stats.hp > 50
|
||||
|
||||
brightness:
|
||||
text: t('spellHealerBrightnessText')
|
||||
mana: 15
|
||||
@@ -671,6 +672,7 @@ api.spells =
|
||||
_.each user.tasks, (target) ->
|
||||
return if target.type is 'reward'
|
||||
target.value += 4 * (user._statsComputed.int / (user._statsComputed.int + 40))
|
||||
|
||||
protectAura:
|
||||
text: t('spellHealerProtectAuraText')
|
||||
mana: 30
|
||||
@@ -679,9 +681,10 @@ api.spells =
|
||||
notes: t('spellHealerProtectAuraNotes')
|
||||
cast: (user, target) ->
|
||||
_.each target, (member) ->
|
||||
bonus = user._statsComputed.con
|
||||
bonus = user._statsComputed.con - user.stats.buffs.con
|
||||
member.stats.buffs.con ?= 0
|
||||
member.stats.buffs.con += Math.ceil(diminishingReturns(bonus, 200, 200))
|
||||
|
||||
heallAll:
|
||||
text: t('spellHealerHealAllText')
|
||||
mana: 25
|
||||
|
||||
Reference in New Issue
Block a user