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

90 lines
1.8 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-03-18 16:15:10 +00:00
if (moment().isBefore('2020-05-02')) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.BirchBark',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Shimmer',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Celestial',
},
2020-04-06 18:08:29 +00:00
{
type: 'hatchingPotions',
path: 'hatchingPotions.Veggie',
},
2020-03-18 16:15:10 +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 () {
2020-04-06 18:08:29 +00:00
if (moment().isBefore('2020-05-02')) {
2020-03-09 14:29:08 +00:00
return [
{
2020-04-06 18:08:29 +00:00
type: 'quests',
path: 'quests.waffle',
2020-03-09 14:29:08 +00:00
},
{
type: 'quests',
2020-04-06 18:08:29 +00:00
path: 'quests.trex_undead',
2020-03-09 14:29:08 +00:00
},
{
type: 'quests',
2020-04-06 18:08:29 +00:00
path: 'quests.bunny',
2020-03-09 14:29:08 +00:00
},
];
}
2019-12-19 22:54:27 +00:00
return [
{
type: 'quests',
2020-04-06 18:08:29 +00:00
path: 'quests.sheep',
2019-12-19 22:54:27 +00:00
},
{
type: 'quests',
2020-04-06 18:08:29 +00:00
path: 'quests.seaserpent',
2019-12-19 22:54:27 +00:00
},
{
type: 'quests',
2020-04-06 18:08:29 +00:00
path: 'quests.silver',
2019-12-19 22:54:27 +00:00
},
];
},
2020-03-17 19:48:23 +00:00
seasonal: 'spring2019Rogue',
timeTravelers: [
// TODO
],
};
export default featuredItems;