Files
habitica/website/common/script/content/shop-featuredItems.js
Natalie L c7ed693e18 feat(gala): Add 2023 Summer Splash Gala Items (#14712)
* feat(content): add June subscriber items

* feat(gala): add images

* feat(gala): add code

* feat(gala): text strings

* feat(gala): testing and final updates

* feat(gala): fixed a couple of typos

* fix(event): proofread strings and dates
Also replace empty descriptions for Rogue and Healer

* fix(event): NO EGG

---------

Co-authored-by: SabreCat <sabe@habitica.com>
2023-06-19 16:36:05 -05:00

103 lines
2.1 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.summer2023.start, EVENTS.summer2023.end)) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Sunset',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Glass',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.SandSculpture',
},
];
}
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'food',
path: 'food.Honey',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.Golden',
},
{
type: 'eggs',
path: 'eggs.Dragon',
},
];
},
quests () {
if (moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end)) {
return [
{
type: 'bundles',
path: 'bundles.splashyPals',
},
{
type: 'quests',
path: 'quests.harpy',
},
{
type: 'quests',
path: 'quests.owl',
},
];
}
if (moment().isBetween('2023-03-28T08:00-05:00', EVENTS.spring2023.end)) {
return [
{
type: 'quests',
path: 'quests.egg',
},
{
type: 'quests',
path: 'quests.yarn',
},
{
type: 'quests',
path: 'quests.ghost_stag',
},
];
}
return [
{
type: 'quests',
path: 'quests.rat',
},
{
type: 'quests',
path: 'quests.kraken',
},
{
type: 'quests',
path: 'quests.nudibranch',
},
];
},
seasonal: 'summer2022MantaRayMageSet',
timeTravelers: [
// TODO
],
};
export default featuredItems;