mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
86 lines
1.7 KiB
JavaScript
86 lines
1.7 KiB
JavaScript
import moment from 'moment';
|
|
import { EVENTS } from './constants';
|
|
// Magic Hatching Potions are configured like this:
|
|
// type: 'premiumHatchingPotion', // note no "s" at the end
|
|
// path: 'premiumHatchingPotions.Rainbow',
|
|
const featuredItems = {
|
|
market () {
|
|
if (moment().isBefore(EVENTS.spring2022.end)) {
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Shimmer',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Celestial',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.PolkaDot',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'food',
|
|
path: 'food.Honey',
|
|
},
|
|
{
|
|
type: 'hatchingPotions',
|
|
path: 'hatchingPotions.CottonCandyPink',
|
|
},
|
|
{
|
|
type: 'eggs',
|
|
path: 'eggs.Cactus',
|
|
},
|
|
];
|
|
},
|
|
quests () {
|
|
if (moment().isBefore('2022-03-31T20:00-04:00')) {
|
|
return [
|
|
{
|
|
type: 'bundles',
|
|
path: 'bundles.cuddleBuddies',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.egg',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.ghost_stag',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.ferret',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.silver',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.basilist',
|
|
},
|
|
];
|
|
},
|
|
seasonal: 'spring2021Healer',
|
|
timeTravelers: [
|
|
// TODO
|
|
],
|
|
};
|
|
|
|
export default featuredItems;
|