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: { Veggie: {
text: t('hatchingPotionVeggie'), text: t('hatchingPotionVeggie'),
limited: true, limited: true,
_season: '_PENDING_', _addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndMarch'),
previousDate: t('marchYYYY', { year: 2019 }),
}),
canBuy () {
return moment().isBefore('2020-05-02');
},
}, },
Dessert: { Dessert: {
text: t('hatchingPotionDessert'), text: t('hatchingPotionDessert'),
limited: true, limited: true,
_season: '_PENDING_',
canBuy: hasQuestAchievementFunction('waffle'), canBuy: hasQuestAchievementFunction('waffle'),
}, },
}; };

View File

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