mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 20:19:42 +00:00
put content.coffee and habitrpg-shared.js back the way they're meant to be
This commit is contained in:
parent
cd874c2d68
commit
adacd25ba6
2 changed files with 9 additions and 5 deletions
8
dist/habitrpg-shared.js
vendored
8
dist/habitrpg-shared.js
vendored
|
|
@ -11017,7 +11017,9 @@ api.spells = {
|
|||
target.value += diminishingReturns(bonus * .02, 4);
|
||||
bonus *= Math.ceil((target.value < 0 ? 1 : target.value + 1) * .075);
|
||||
user.stats.exp += diminishingReturns(bonus, 75);
|
||||
return user.party.quest.progress.up += diminishingReturns(bonus * .1, 50, 30);
|
||||
if (user.party.quest.key) {
|
||||
return user.party.quest.progress.up += diminishingReturns(bonus * .1, 50, 30);
|
||||
}
|
||||
}
|
||||
},
|
||||
mpheal: {
|
||||
|
|
@ -11073,7 +11075,9 @@ api.spells = {
|
|||
notes: t('spellWarriorSmashNotes'),
|
||||
cast: function(user, target) {
|
||||
target.value += 2.5 * (user._statsComputed.str / (user._statsComputed.str + 50)) * user.fns.crit('con');
|
||||
return user.party.quest.progress.up += Math.ceil(user._statsComputed.str * .2);
|
||||
if (user.party.quest.key) {
|
||||
return user.party.quest.progress.up += Math.ceil(user._statsComputed.str * .2);
|
||||
}
|
||||
}
|
||||
},
|
||||
defensiveStance: {
|
||||
|
|
|
|||
|
|
@ -395,7 +395,7 @@ api.spells =
|
|||
bonus *= Math.ceil ((if target.value < 0 then 1 else target.value+1) *.075)
|
||||
#console.log {bonus, expBonus:bonus,upBonus:bonus*.1}
|
||||
user.stats.exp += diminishingReturns(bonus,75)
|
||||
user.party.quest.progress.up += diminishingReturns(bonus*.1,50,30)
|
||||
user.party.quest.progress.up += diminishingReturns(bonus*.1,50,30) if user.party.quest.key
|
||||
|
||||
mpheal:
|
||||
text: t('spellWizardMPHealText')
|
||||
|
|
@ -438,7 +438,7 @@ api.spells =
|
|||
notes: t('spellWarriorSmashNotes')
|
||||
cast: (user, target) ->
|
||||
target.value += 2.5 * (user._statsComputed.str / (user._statsComputed.str + 50)) * user.fns.crit('con')
|
||||
user.party.quest.progress.up += Math.ceil(user._statsComputed.str * .2)
|
||||
user.party.quest.progress.up += Math.ceil(user._statsComputed.str * .2) if user.party.quest.key
|
||||
defensiveStance:
|
||||
text: t('spellWarriorDefensiveStanceText')
|
||||
mana: 25
|
||||
|
|
|
|||
Loading…
Reference in a new issue