mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
* update(content): add spring fling images, items, and placeholder text * update(dates) : set canonical dates * update(dates/quests): set canonical dates for both, add egg quest availability * update(date): update quest availability start date * update(content): add magic hatching potions * fix(dates): canonical dates * fix(event): add correct event name to potions * fix(dates): canonical dates * fix(dates): fix UTC offset, remove package.json and package-lock.json * fix(dates): canonical * fix: re-added package.json and package-lock.json * update(content): add gear strings * update(content): add Rogue off-hand string, canonical dates
89 lines
1.9 KiB
JavaScript
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.spring2024.start, EVENTS.spring2024.end)) {
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Celestial',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Shimmer',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Rainbow',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'food',
|
|
path: 'food.Fish',
|
|
},
|
|
{
|
|
type: 'hatchingPotions',
|
|
path: 'hatchingPotions.Skeleton',
|
|
},
|
|
{
|
|
type: 'eggs',
|
|
path: 'eggs.Fox',
|
|
},
|
|
];
|
|
},
|
|
quests () {
|
|
if (moment().isBetween(EVENTS.bundle202403.start, EVENTS.bundle202403.end)) {
|
|
return [
|
|
{
|
|
type: 'bundles',
|
|
path: 'bundles.cuddleBuddies',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.hedgehog',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.sheep',
|
|
},
|
|
];
|
|
}
|
|
|
|
return [
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.rat',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.kraken',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.slime',
|
|
},
|
|
];
|
|
},
|
|
seasonal: 'spring2019CloudRogueSet',
|
|
timeTravelers: [
|
|
// TODO
|
|
],
|
|
};
|
|
|
|
export default featuredItems;
|