mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
fix(quests): fix erroneous Egg Hunt and Waffle quest appearances
This commit is contained in:
parent
9eea0687ba
commit
bcfea31ffb
1 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue