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

69 lines
1.4 KiB
JavaScript
Raw Normal View History

import moment from 'moment';
// 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 () {
2021-09-21 21:16:52 +00:00
if (moment().isBefore('2021-10-31T20:00-04:00')) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
2021-09-21 21:16:52 +00:00
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Glow',
},
{
type: 'premiumHatchingPotion',
2021-09-21 21:16:52 +00:00
path: 'premiumHatchingPotions.Spooky',
},
{
type: 'premiumHatchingPotion',
2021-09-21 21:16:52 +00:00
path: 'premiumHatchingPotions.Vampire',
},
];
}
2019-11-14 21:08:45 +00:00
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'food',
2021-09-21 21:16:52 +00:00
path: 'food.Chocolate',
2019-11-14 21:08:45 +00:00
},
{
type: 'hatchingPotions',
2021-09-21 21:16:52 +00:00
path: 'hatchingPotions.Shade',
2019-11-14 21:08:45 +00:00
},
{
type: 'eggs',
2021-09-21 21:16:52 +00:00
path: 'eggs.BearCub',
2019-11-14 21:08:45 +00:00
},
];
},
2019-12-19 22:54:27 +00:00
quests () {
return [
{
type: 'quests',
2021-09-21 21:16:52 +00:00
path: 'quests.slime',
2019-12-19 22:54:27 +00:00
},
{
type: 'quests',
2021-09-21 21:16:52 +00:00
path: 'quests.horse',
2019-12-19 22:54:27 +00:00
},
{
type: 'bundles',
path: 'bundles.birdBuddies',
2019-12-19 22:54:27 +00:00
},
];
},
2021-06-22 23:49:32 +00:00
seasonal: 'summer2020Healer',
timeTravelers: [
// TODO
],
};
export default featuredItems;