mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 13:47:33 +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().isBetween(EVENTS.potions202208.start, EVENTS.potions202208.end)) {
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Moonglow',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Porcelain',
|
|
},
|
|
{
|
|
type: 'food',
|
|
path: 'food.Milk',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'food',
|
|
path: 'food.RottenMeat',
|
|
},
|
|
{
|
|
type: 'hatchingPotions',
|
|
path: 'hatchingPotions.Zombie',
|
|
},
|
|
{
|
|
type: 'eggs',
|
|
path: 'eggs.Dragon',
|
|
},
|
|
];
|
|
},
|
|
quests () {
|
|
if (moment().isBetween(EVENTS.bundle202208.start, EVENTS.bundle202208.end)) {
|
|
return [
|
|
{
|
|
type: 'bundles',
|
|
path: 'bundles.forestFriends',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.owl',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.snail',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.badger',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.onyx',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.rooster',
|
|
},
|
|
];
|
|
},
|
|
seasonal: 'spring2021Healer',
|
|
timeTravelers: [
|
|
// TODO
|
|
],
|
|
};
|
|
|
|
export default featuredItems;
|