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

70 lines
1.3 KiB
JavaScript
Raw Normal View History

2019-11-14 21:08:45 +00:00
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 () {
2020-02-07 20:16:25 +00:00
if (moment().isBefore('2020-03-02')) {
2019-11-14 21:08:45 +00:00
return [
{
2019-12-31 01:44:22 +00:00
type: 'card',
2020-02-07 20:16:25 +00:00
path: 'cardTypes.valentine',
2019-11-14 21:08:45 +00:00
},
{
type: 'premiumHatchingPotion',
2020-02-07 20:16:25 +00:00
path: 'premiumHatchingPotions.Cupid',
2019-11-14 21:08:45 +00:00
},
{
type: 'premiumHatchingPotion',
2020-02-07 20:16:25 +00:00
path: 'premiumHatchingPotions.RoseQuartz',
2019-11-14 21:08:45 +00:00
},
{
2020-02-07 20:16:25 +00:00
type: 'eggs',
path: 'eggs.Fox',
2020-01-01 20:45:18 +00:00
},
];
}
2019-11-14 21:08:45 +00:00
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'hatchingPotions',
2020-02-07 20:16:25 +00:00
path: 'hatchingPotions.Golden',
2019-11-14 21:08:45 +00:00
},
{
type: 'eggs',
2020-02-07 20:16:25 +00:00
path: 'eggs.Wolf',
2019-11-14 21:08:45 +00:00
},
{
type: 'food',
path: 'food.Saddle',
},
];
},
2019-12-19 22:54:27 +00:00
quests () {
return [
{
type: 'quests',
path: 'quests.treeling',
},
{
type: 'quests',
path: 'quests.stoikalmCalamity1',
},
{
type: 'quests',
2020-02-11 22:09:51 +00:00
path: 'quests.ruby',
2019-12-19 22:54:27 +00:00
},
];
},
seasonal: 'winter2019Warrior',
timeTravelers: [
// TODO
],
};
export default featuredItems;