mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
* 2024-05 css update * add May subscriber items, enchanted armoire (text placeholders), potions, and quest bundles * typo correction * add May achievement * content fixes after local testing * canonical date fix * fix potion descriptions, add periods to background descriptions * fix canonical date * updated armoire items * fix stat display on item * Fixing merge conflicts * resolve merge conflicts * add leading zero to mp drain for mushroom quest * fix timezones * proofreading pass * fix linting errors * date fixes & linter fixes * correct armoire expression at end of file * fix(autolint): roll back Prettier change --------- Co-authored-by: Sabe Jones <sabe@habitica.com>
90 lines
1.9 KiB
JavaScript
90 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.potions202405.start, EVENTS.potions202405.end)) {
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Floral',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Sunshine',
|
|
},
|
|
{
|
|
type: 'hatchingPotions',
|
|
path: 'hatchingPotions.Golden',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'food',
|
|
path: 'food.Strawberry',
|
|
},
|
|
{
|
|
type: 'hatchingPotions',
|
|
path: 'hatchingPotions.Red',
|
|
},
|
|
{
|
|
type: 'eggs',
|
|
path: 'eggs.Cactus',
|
|
|
|
},
|
|
];
|
|
},
|
|
quests () {
|
|
if (moment().isBetween(EVENTS.bundle202405.start, EVENTS.bundle202405.end)) {
|
|
return [
|
|
{
|
|
type: 'bundles',
|
|
path: 'bundles.delightfulDinos',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.rooster',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.owl',
|
|
},
|
|
];
|
|
}
|
|
|
|
return [
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.cheetah',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.nudibranch',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.monkey',
|
|
},
|
|
];
|
|
},
|
|
seasonal: 'spring2019CloudRogueSet',
|
|
timeTravelers: [
|
|
// TODO
|
|
],
|
|
};
|
|
|
|
export default featuredItems;
|