Files
habitica/website/common/script/content/shop-featuredItems.js
Natalie 0b5ce61555 feat(content): add February items (#15090)
* update(content): add February 2024 items

* feat(content): add October content

* feat(content):update February Content

* feat(content): finish up February content

* fix(backgrounds): tweak consistency

* fix(strings): remove extra whitespace

* fix(event): add missing Valentine features

---------

Co-authored-by: Sabe Jones <sabrecat@gmail.com>
Co-authored-by: Sabe Jones <sabe@habitica.com>
2024-01-26 16:35:02 -06:00

89 lines
1.9 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',
// hatching potions and food names should be capitalized lest you break the market
const featuredItems = {
market () {
if (moment().isBetween(EVENTS.potions202402.start, EVENTS.potions202402.end)) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.RoseGold',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Cupid',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.Red',
},
];
}
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'food',
path: 'food.Chocolate',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.Desert',
},
{
type: 'eggs',
path: 'eggs.Cactus',
},
];
},
quests () {
if (moment().isBetween(EVENTS.bundle202402.start, EVENTS.bundle202402.end)) {
return [
{
type: 'bundles',
path: 'bundles.mythicalMarvels',
},
{
type: 'quests',
path: 'quests.nudibranch',
},
{
type: 'quests',
path: 'quests.axolotl',
},
];
}
return [
{
type: 'quests',
path: 'quests.rat',
},
{
type: 'quests',
path: 'quests.kraken',
},
{
type: 'quests',
path: 'quests.slime',
},
];
},
seasonal: 'winter2021WinterMoonMageSet',
timeTravelers: [
// TODO
],
};
export default featuredItems;