Files
habitica/website/common/script/content/shop-featuredItems.js
Natalie L 0f4711c358 chore(content): add 2022-09 Pet Quest bundle (#14218)
* chore(content): farmFriends quest bundle

* chore(content): 2022-09 Pet Quest Bundle

* fix(date): fix start date
2022-09-13 09:12:24 -05:00

86 lines
1.8 KiB
JavaScript

import moment from 'moment';
import { EVENTS } from './constants';
// Magic Hatching Potions are configured like this:
// type: 'premiumHatchingPotion', // note no "s" at the end
// path: 'premiumHatchingPotions.Rainbow',
const featuredItems = {
market () {
if (moment().isBetween(EVENTS.potions202208.start, EVENTS.potions202208.end)) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Moonglow',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Porcelain',
},
{
type: 'food',
path: 'food.Milk',
},
];
}
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'food',
path: 'food.Potatoe',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.Desert',
},
{
type: 'eggs',
path: 'eggs.Dragon',
},
];
},
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',
},
];
}
return [
{
type: 'quests',
path: 'quests.guineapig',
},
{
type: 'quests',
path: 'quests.onyx',
},
{
type: 'quests',
path: 'quests.rooster',
},
];
},
seasonal: 'spring2021Healer',
timeTravelers: [
// TODO
],
};
export default featuredItems;