mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix(content): feature items
This commit is contained in:
@@ -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'),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user