From bcfea31ffbf4ee9a11dc1620597a884839a7f6bc Mon Sep 17 00:00:00 2001 From: SabreCat Date: Wed, 29 Dec 2021 13:36:12 -0600 Subject: [PATCH] fix(quests): fix erroneous Egg Hunt and Waffle quest appearances --- website/common/script/content/quests.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/website/common/script/content/quests.js b/website/common/script/content/quests.js index d9300eed11..f8a14f36e0 100644 --- a/website/common/script/content/quests.js +++ b/website/common/script/content/quests.js @@ -514,6 +514,9 @@ const quests = { completion: t('questEggHuntCompletion'), value: 1, category: 'pet', + canBuy () { + return CURRENT_EVENT && CURRENT_EVENT.season === 'spring'; + }, event: CURRENT_EVENT && CURRENT_EVENT.season === 'spring' ? CURRENT_EVENT : null, collect: { plainEgg: { @@ -3579,6 +3582,9 @@ const quests = { completion: t('questWaffleCompletion'), value: 4, category: 'hatchingPotion', + canBuy () { + return CURRENT_EVENT && CURRENT_EVENT.season === 'spring'; + }, event: CURRENT_EVENT && CURRENT_EVENT.season === 'spring' ? CURRENT_EVENT : null, boss: { name: t('questWaffleBoss'), @@ -3876,9 +3882,6 @@ each(quests, (v, key) => { defaults(v, { key, canBuy () { - if (v.event) { - return moment().isBetween(v.event.start, v.event.end); - } return true; }, });