Files
habitica/website/common/script/content/shop-featuredItems.js
Natalie L f0c25dab05 2022 Summer Gala Content (#14067)
* merge upstream/release into origin/release

* Revert "merge upstream/release into origin/release"

This reverts commit 902ed08cc3.

* Summer Splash 2022 Content

* added magic hatching potions

* updated events for testing

* fix whitespace

* various corrections

* fix(gear): mage set, healer set, event start date

* update: habitica-images

* fix(events): include normal/empty season data outside of gala

* fix(string): missing attribute and event verbiage for warrior item

Co-authored-by: SabreCat <sabe@habitica.com>
2022-06-21 09:29:53 -05:00

86 lines
1.7 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().isBefore(EVENTS.summer2022.end)) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Sunset',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Watery',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Aquatic',
},
];
}
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'food',
path: 'food.Honey',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.CottonCandyPink',
},
{
type: 'eggs',
path: 'eggs.Cactus',
},
];
},
quests () {
if (moment().isBefore(EVENTS.bundle202206.end)) {
return [
{
type: 'bundles',
path: 'bundles.aquaticAmigos',
},
{
type: 'quests',
path: 'quests.seaserpent',
},
{
type: 'quests',
path: 'quests.dolphin',
},
];
}
return [
{
type: 'quests',
path: 'quests.badger',
},
{
type: 'quests',
path: 'quests.onyx',
},
{
type: 'quests',
path: 'quests.rooster',
},
];
},
seasonal: 'spring2021Healer',
timeTravelers: [
// TODO
],
};
export default featuredItems;