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: {
|
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'),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user