allow quest progress from attack skills BEFORE quest starts

Currently, if you do Brutal Smash or Burst of Flames BEFORE you start a quest, they do NOT damage the quest boss if you start the quest later in the day (this is the opposite of how tasks work). This also means that if you are not on a boss or collection quest, then those skills can't damage the World Boss. I think this is counterintuitive.

This change causes damage from the skills to be treated just like damage from tasks - it's applied to quests started later that day and to Drag'on.

THIS HAS NOT BEEN TESTED. Sorry. :( I have broken my VM temporarily.
This commit is contained in:
Alice Harris 2014-07-03 16:19:43 +10:00
parent 424cf1a5bf
commit 0c2a9a4b24

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) if user.party.quest.key
user.party.quest.progress.up += diminishingReturns(bonus*.1,50,30)
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) if user.party.quest.key
user.party.quest.progress.up += Math.ceil(user._statsComputed.str * .2)
defensiveStance:
text: t('spellWarriorDefensiveStanceText')
mana: 25