mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 05:38:46 +00:00
make stealth higher level & mp requirement
This commit is contained in:
parent
e5d902314d
commit
dd190cbc52
2 changed files with 28 additions and 28 deletions
36
dist/habitrpg-shared.js
vendored
36
dist/habitrpg-shared.js
vendored
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue