Files
habitica/website/common/script/content/shop-featuredItems.js
Natalie L fd9d738cc6 chore(content): add winter wonderland items (#14407)
* chore(content): add winter wonderland items

* chore(typos): dates are hard

* fix(tz): how far back we have fallen

* fix(event): four extra hours for stragglers

* fix(typo): singular snowball spell

* fix(gear): remove stray incorrect event prop

* merge release

* Revert "merge release"

This reverts commit 83e29d0288.

* feat(content): add EN text

* fix(dates): 2022-2023 Winter

* chore(content): add featured quest bundle

* fix(event): delay Snowballs, add quests to Seasonal Shop

Co-authored-by: Sabe Jones <sabrecat@gmail.com>
Co-authored-by: SabreCat <sabe@habitica.com>
2022-12-19 15:53:52 -06: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.winter2023.start, EVENTS.winter2023.end)) {
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.StarryNight',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Holly',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Aurora',
},
];
}
return [
{
type: 'armoire',
path: 'armoire',
},
{
type: 'food',
path: 'food.RottenMeat',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.CottonCandyBlue',
},
{
type: 'eggs',
path: 'eggs.FlyingPig',
},
];
},
quests () {
if (moment().isBetween(EVENTS.winter2023.start, EVENTS.winter2023.end)) {
return [
{
type: 'bundles',
path: 'bundles.winterQuests',
},
{
type: 'quests',
path: 'quests.whale',
},
{
type: 'quests',
path: 'quests.turtle',
},
];
}
return [
{
type: 'quests',
path: 'quests.slime',
},
{
type: 'quests',
path: 'quests.seaserpent',
},
{
type: 'quests',
path: 'quests.unicorn',
},
];
},
seasonal: 'winter2022Healer',
timeTravelers: [
// TODO
],
};
export default featuredItems;