mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
87 lines
1.8 KiB
JavaScript
87 lines
1.8 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().isBetween(EVENTS.winter2024.start, EVENTS.winter2024.end)) {
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.StainedGlass',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Peppermint',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.IcySnow',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'food',
|
|
path: 'food.Honey',
|
|
},
|
|
{
|
|
type: 'hatchingPotions',
|
|
path: 'hatchingPotions.Golden',
|
|
},
|
|
{
|
|
type: 'eggs',
|
|
path: 'eggs.BearCub',
|
|
},
|
|
];
|
|
},
|
|
quests () {
|
|
if (moment().isBetween(EVENTS.winter2024.start, EVENTS.winter2024.end)) {
|
|
return [
|
|
{
|
|
type: 'bundles',
|
|
path: 'bundles.winterQuests',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.ghost_stag',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.penguin',
|
|
},
|
|
];
|
|
}
|
|
|
|
return [
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.rat',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.kraken',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.axolotl',
|
|
},
|
|
];
|
|
},
|
|
seasonal: 'winter2021WinterMoonMageSet',
|
|
timeTravelers: [
|
|
// TODO
|
|
],
|
|
};
|
|
|
|
export default featuredItems;
|