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 () {
2022-08-15 20:28:47 +00:00
if (moment().isBetween(EVENTS.potions202208.start, EVENTS.potions202208.end)) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
2022-08-15 20:28:47 +00:00
path: 'premiumHatchingPotions.Moonglow',
},
{
type: 'premiumHatchingPotion',
2022-08-15 20:28:47 +00:00
path: 'premiumHatchingPotions.Porcelain',
},
{
2022-08-15 20:28:47 +00:00
type: 'food',
path: 'food.Milk',
},
];
}
2019-11-14 21:08:45 +00:00
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'food',
path: 'food.Potatoe',
2019-11-14 21:08:45 +00:00
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.Desert',
2019-11-14 21:08:45 +00:00
},
{
type: 'eggs',
2022-08-15 20:28:47 +00:00
path: 'eggs.Dragon',
2019-11-14 21:08:45 +00:00
},
];
},
2019-12-19 22:54:27 +00:00
quests () {
if (moment().isBetween(EVENTS.bundle202208.start, EVENTS.bundle202209.end)) {
return [
{
type: 'bundles',
path: 'bundles.forestFriends',
},
{
type: 'bundles',
path: 'bundles.farmFriends',
},
{
type: 'quests',
path: 'quests.ferret',
},
];
}
2019-12-19 22:54:27 +00:00
return [
{
type: 'quests',
path: 'quests.guineapig',
2019-12-19 22:54:27 +00:00
},
{
type: 'quests',
2022-06-13 20:37:02 +00:00
path: 'quests.onyx',
2019-12-19 22:54:27 +00:00
},
{
type: 'quests',
2022-06-13 20:37:02 +00:00
path: 'quests.rooster',
2019-12-19 22:54:27 +00:00
},
];
},
2022-03-18 21:24:05 +00:00
seasonal: 'spring2021Healer',
timeTravelers: [
// TODO
],
};
export default featuredItems;