From 0c2a9a4b2428daafbccc72ad9ed93573c8a47611 Mon Sep 17 00:00:00 2001 From: Alice Harris Date: Thu, 3 Jul 2014 16:19:43 +1000 Subject: [PATCH] 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. --- script/content.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/content.coffee b/script/content.coffee index c40663f606..766e11c1bc 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -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