From dd190cbc5269fcbd66844e88fd24d0d6bc52772a Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Thu, 19 Dec 2013 18:17:37 -0700 Subject: [PATCH] make stealth higher level & mp requirement --- dist/habitrpg-shared.js | 36 ++++++++++++++++++------------------ script/content.coffee | 20 ++++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index fb00a962cb..d7a53cee17 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -10055,7 +10055,7 @@ var global=self;/** if ((_base = member.stats.buffs).int == null) { _base.int = 0; } - return member.stats.buffs.int = user._statsComputed.int * .2; + return member.stats.buffs.int += user._statsComputed.int * .2; }); } }, @@ -10123,7 +10123,7 @@ var global=self;/** if ((_base = member.stats.buffs).con == null) { _base.con = 0; } - return member.stats.buffs.con = user._statsComputed.con * .2; + return member.stats.buffs.con += user._statsComputed.con * .2; }); } } @@ -10154,24 +10154,10 @@ var global=self;/** return user.stats.gp += bonus; } }, - stealth: { - text: 'Stealth', - mana: 20, - lvl: 8, - target: 'self', - notes: "You duck into the shadows, pulling up your hood. Many dailies won't find you this night; fewer yet the higher your Perception.", - cast: function(user, target) { - var _base; - if ((_base = user.stats.buffs).stealth == null) { - _base.stealth = 0; - } - return user.stats.buffs.stealth = Math.ceil(user._statsComputed.per * .075); - } - }, toolsOfTrade: { text: 'Tools of the Trade', mana: 25, - lvl: 9, + lvl: 8, target: 'party', notes: "You share your thievery tools with the party to aid them in 'acquiring' more gold. The party's gold bonus for tasks is buffed for a day.", cast: function(user, target) { @@ -10183,6 +10169,20 @@ var global=self;/** return member.stats.buffs.per += user._statsComputed.per * .2; }); } + }, + stealth: { + text: 'Stealth', + mana: 30, + lvl: 9, + target: 'self', + notes: "You duck into the shadows, pulling up your hood. Many dailies won't find you this night; fewer yet the higher your Perception.", + cast: function(user, target) { + var _base; + if ((_base = user.stats.buffs).stealth == null) { + _base.stealth = 0; + } + return user.stats.buffs.stealth = Math.ceil(user._statsComputed.per * .075); + } } }, healer: { @@ -10226,7 +10226,7 @@ var global=self;/** if ((_base = member.stats.buffs).con == null) { _base.con = 0; } - return member.stats.buffs.con = user._statsComputed.con * .4; + return member.stats.buffs.con += user._statsComputed.con * .4; }); } }, diff --git a/script/content.coffee b/script/content.coffee index 101318e10e..645e5a6405 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -316,19 +316,10 @@ api.spells = bonus = ((if target.value < 0 then 0 else target.value) + 1) * _crit user.stats.exp += bonus user.stats.gp += bonus - stealth: - text: 'Stealth' - mana: 20 - lvl: 8 - target: 'self' - notes: "You duck into the shadows, pulling up your hood. Many dailies won't find you this night; fewer yet the higher your Perception." - cast: (user, target) -> - user.stats.buffs.stealth ?= 0 - user.stats.buffs.stealth = Math.ceil(user._statsComputed.per * .075) toolsOfTrade: text: 'Tools of the Trade' mana: 25 - lvl: 9 + lvl: 8 target: 'party' notes: "You share your thievery tools with the party to aid them in 'acquiring' more gold. The party's gold bonus for tasks is buffed for a day." cast: (user, target) -> @@ -336,6 +327,15 @@ api.spells = _.each target, (member) -> member.stats.buffs.per ?= 0 member.stats.buffs.per += user._statsComputed.per * .2 + stealth: + text: 'Stealth' + mana: 30 + lvl: 9 + target: 'self' + notes: "You duck into the shadows, pulling up your hood. Many dailies won't find you this night; fewer yet the higher your Perception." + cast: (user, target) -> + user.stats.buffs.stealth ?= 0 + user.stats.buffs.stealth = Math.ceil(user._statsComputed.per * .075) healer: heal: