fix(content): feature items

This commit is contained in:
Sabe Jones
2020-04-06 13:08:29 -05:00
parent 0c640f07d1
commit 371a1542e7
2 changed files with 19 additions and 10 deletions

View File

@@ -284,12 +284,17 @@ const wacky = {
Veggie: {
text: t('hatchingPotionVeggie'),
limited: true,
_season: '_PENDING_',
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndMarch'),
previousDate: t('marchYYYY', { year: 2019 }),
}),
canBuy () {
return moment().isBefore('2020-05-02');
},
},
Dessert: {
text: t('hatchingPotionDessert'),
limited: true,
_season: '_PENDING_',
canBuy: hasQuestAchievementFunction('waffle'),
},
};

View File

@@ -23,6 +23,10 @@ const featuredItems = {
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Celestial',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.Veggie',
},
];
}
return [
@@ -45,34 +49,34 @@ const featuredItems = {
];
},
quests () {
if (moment().isBefore('2020-04-02')) {
if (moment().isBefore('2020-05-02')) {
return [
{
type: 'bundles',
path: 'bundles.hugabug',
type: 'quests',
path: 'quests.waffle',
},
{
type: 'quests',
path: 'quests.velociraptor',
path: 'quests.trex_undead',
},
{
type: 'quests',
path: 'quests.taskwoodsTerror1',
path: 'quests.bunny',
},
];
}
return [
{
type: 'quests',
path: 'quests.badger',
path: 'quests.sheep',
},
{
type: 'quests',
path: 'quests.ferret',
path: 'quests.seaserpent',
},
{
type: 'quests',
path: 'quests.sloth',
path: 'quests.silver',
},
];
},