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

121 lines
2.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 () {
if (moment().isBefore('2020-12-01T08:00-04:00')) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.White',
},
{
type: 'eggs',
path: 'eggs.Cactus',
},
{
type: 'food',
path: 'food.Honey',
},
];
}
if (moment().isBefore('2021-01-31T20:00-04:00')) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.StainedGlass',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Aurora',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.IcySnow',
},
];
}
2019-11-14 21:08:45 +00:00
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'food',
path: 'food.Saddle',
2019-11-14 21:08:45 +00:00
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.Golden',
2019-11-14 21:08:45 +00:00
},
{
type: 'eggs',
path: 'eggs.Fox',
2019-11-14 21:08:45 +00:00
},
];
},
2019-12-19 22:54:27 +00:00
quests () {
if (moment().isBefore('2020-12-01T08:00-04:00')) {
return [
{
type: 'quests',
path: 'quests.gryphon',
},
{
type: 'quests',
path: 'quests.hedgehog',
},
{
type: 'quests',
path: 'quests.rat',
},
];
}
if (moment().isBefore('2021-01-31T20:00-04:00')) {
2020-10-13 19:36:38 +00:00
return [
{
type: 'bundles',
path: 'bundles.winterQuests',
2020-10-13 19:36:38 +00:00
},
{
type: 'quests',
path: 'quests.spider',
2020-10-13 19:36:38 +00:00
},
{
type: 'quests',
path: 'quests.silver',
2020-10-13 19:36:38 +00:00
},
];
}
2019-12-19 22:54:27 +00:00
return [
{
type: 'quests',
path: 'quests.ghost_stag',
2019-12-19 22:54:27 +00:00
},
{
type: 'quests',
path: 'quests.unicorn',
2019-12-19 22:54:27 +00:00
},
{
type: 'quests',
path: 'quests.falcon',
2019-12-19 22:54:27 +00:00
},
];
},
2020-09-21 19:34:38 +00:00
seasonal: 'fall2019Mage',
timeTravelers: [
// TODO
],
};
export default featuredItems;