put content.coffee and habitrpg-shared.js back the way they're meant to be

This commit is contained in:
Alice Harris 2014-07-13 16:28:42 +10:00
parent cd874c2d68
commit adacd25ba6
2 changed files with 9 additions and 5 deletions

View file

@ -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: {
@ -14216,4 +14220,4 @@ api.wrap = function(user, main) {
}).call(this,require("/Users/lefnire/Dropbox/Sites/habitrpg/modules/habitrpg-shared/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))
},{"./content.coffee":5,"./i18n.coffee":6,"/Users/lefnire/Dropbox/Sites/habitrpg/modules/habitrpg-shared/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":2,"lodash":3,"moment":4}]},{},[1])
},{"./content.coffee":5,"./i18n.coffee":6,"/Users/lefnire/Dropbox/Sites/habitrpg/modules/habitrpg-shared/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":2,"lodash":3,"moment":4}]},{},[1])

View file

@ -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