mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
* chore(content): add October Pet Quest Bundle * update: change event start date to the correct one
86 lines
1.8 KiB
JavaScript
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.fall2022.start, EVENTS.fall2022.end)) {
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Vampire',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Ghost',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Shadow',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'food',
|
|
path: 'food.Potatoe',
|
|
},
|
|
{
|
|
type: 'hatchingPotions',
|
|
path: 'hatchingPotions.Desert',
|
|
},
|
|
{
|
|
type: 'eggs',
|
|
path: 'eggs.Dragon',
|
|
},
|
|
];
|
|
},
|
|
quests () {
|
|
if (moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end)) {
|
|
return [
|
|
{
|
|
type: 'bundles',
|
|
path: 'bundles.witchyFamiliars',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.snake',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.owl',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.guineapig',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.onyx',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.rooster',
|
|
},
|
|
];
|
|
},
|
|
seasonal: 'spring2021Healer',
|
|
timeTravelers: [
|
|
// TODO
|
|
],
|
|
};
|
|
|
|
export default featuredItems;
|