habitica/website/common/script/content/shop-featuredItems.js

86 lines
1.8 KiB
JavaScript
Raw Normal View History

import moment from 'moment';
2022-06-13 20:37:02 +00:00
import { EVENTS } from './constants';
// Magic Hatching Potions are configured like this:
// type: 'premiumHatchingPotion', // note no "s" at the end
// path: 'premiumHatchingPotions.Rainbow',
const featuredItems = {
2019-11-14 21:08:45 +00:00
market () {
if (moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end)) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.StarryNight',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Holly',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Aurora',
},
];
}
2019-11-14 21:08:45 +00:00
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'food',
path: 'food.RottenMeat',
2019-11-14 21:08:45 +00:00
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.CottonCandyBlue',
2019-11-14 21:08:45 +00:00
},
{
type: 'eggs',
path: 'eggs.FlyingPig',
2019-11-14 21:08:45 +00:00
},
];
},
2019-12-19 22:54:27 +00:00
quests () {
if (moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end)) {
return [
{
type: 'bundles',
path: 'bundles.winterQuests',
},
{
type: 'quests',
path: 'quests.whale',
},
{
type: 'quests',
path: 'quests.turtle',
},
];
}
2019-12-19 22:54:27 +00:00
return [
{
type: 'quests',
path: 'quests.slime',
2019-12-19 22:54:27 +00:00
},
{
type: 'quests',
path: 'quests.seaserpent',
2019-12-19 22:54:27 +00:00
},
{
type: 'quests',
path: 'quests.unicorn',
2019-12-19 22:54:27 +00:00
},
];
},
seasonal: 'winter2022Healer',
timeTravelers: [
// TODO
],
};
export default featuredItems;