Files
habitica/website/common/script/content/shop-featuredItems.js
Natalie L f030135c82 chore(content): add 2022 Fall Festival (#14244)
* chore(submodule): add August 2022 Mystery Items

* update(content): add 2022 Fall Festival content

* update(content): add 2022 Fall Festival content

* update(content): update event dates for release

* fix(lint): remove extra spaces
also correct typo in gear string keys

* feat(content): remaining descriptions

* fix(event): correct spell availability

* fix(test): work around first-match logic

Co-authored-by: Sabe Jones <sabrecat@gmail.com>
Co-authored-by: SabreCat <sabe@habitica.com>
2022-09-19 16:55:53 -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.fall2022.start, EVENTS.fall2022.end)) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Vampire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Ghost',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Shadow',
},
];
}
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;