mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix(quests): fix erroneous Egg Hunt and Waffle quest appearances
This commit is contained in:
@@ -514,6 +514,9 @@ const quests = {
|
|||||||
completion: t('questEggHuntCompletion'),
|
completion: t('questEggHuntCompletion'),
|
||||||
value: 1,
|
value: 1,
|
||||||
category: 'pet',
|
category: 'pet',
|
||||||
|
canBuy () {
|
||||||
|
return CURRENT_EVENT && CURRENT_EVENT.season === 'spring';
|
||||||
|
},
|
||||||
event: CURRENT_EVENT && CURRENT_EVENT.season === 'spring' ? CURRENT_EVENT : null,
|
event: CURRENT_EVENT && CURRENT_EVENT.season === 'spring' ? CURRENT_EVENT : null,
|
||||||
collect: {
|
collect: {
|
||||||
plainEgg: {
|
plainEgg: {
|
||||||
@@ -3579,6 +3582,9 @@ const quests = {
|
|||||||
completion: t('questWaffleCompletion'),
|
completion: t('questWaffleCompletion'),
|
||||||
value: 4,
|
value: 4,
|
||||||
category: 'hatchingPotion',
|
category: 'hatchingPotion',
|
||||||
|
canBuy () {
|
||||||
|
return CURRENT_EVENT && CURRENT_EVENT.season === 'spring';
|
||||||
|
},
|
||||||
event: CURRENT_EVENT && CURRENT_EVENT.season === 'spring' ? CURRENT_EVENT : null,
|
event: CURRENT_EVENT && CURRENT_EVENT.season === 'spring' ? CURRENT_EVENT : null,
|
||||||
boss: {
|
boss: {
|
||||||
name: t('questWaffleBoss'),
|
name: t('questWaffleBoss'),
|
||||||
@@ -3876,9 +3882,6 @@ each(quests, (v, key) => {
|
|||||||
defaults(v, {
|
defaults(v, {
|
||||||
key,
|
key,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
if (v.event) {
|
|
||||||
return moment().isBetween(v.event.start, v.event.end);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user