mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
* feat(content): prebuild Fall Festival * fix(typos): because 2023 is not the same as 2024 * feat(css): having stylesheets is important * feat(content): ready for review & testing * fix(tests): account for Sept 09 bundle * fix(gala): use multi event list more fix a couple of strings too * feat(content): Warrior and Rogue text also fix timing of quest bundle feature * fix(strings): correct stat boosts * fix(content): missing mage also adds missing margin to purchase gems button in buy modal --------- Co-authored-by: SabreCat <sabe@habitica.com>
87 lines
1.8 KiB
JavaScript
87 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.fall2023.start, EVENTS.fall2023.end)) {
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Glow',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Spooky',
|
|
},
|
|
{
|
|
type: 'premiumHatchingPotion',
|
|
path: 'premiumHatchingPotions.Vampire',
|
|
},
|
|
];
|
|
}
|
|
return [
|
|
{
|
|
type: 'armoire',
|
|
path: 'armoire',
|
|
},
|
|
{
|
|
type: 'food',
|
|
path: 'food.RottenMeat',
|
|
},
|
|
{
|
|
type: 'hatchingPotions',
|
|
path: 'hatchingPotions.Zombie',
|
|
},
|
|
{
|
|
type: 'eggs',
|
|
path: 'eggs.Cactus',
|
|
},
|
|
];
|
|
},
|
|
quests () {
|
|
if (moment().isBetween(EVENTS.bundle202310.start, EVENTS.bundle202310.end)) {
|
|
return [
|
|
{
|
|
type: 'bundles',
|
|
path: 'bundles.sandySidekicks',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.beetle',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.frog',
|
|
},
|
|
];
|
|
}
|
|
|
|
return [
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.rat',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.kraken',
|
|
},
|
|
{
|
|
type: 'quests',
|
|
path: 'quests.axolotl',
|
|
},
|
|
];
|
|
},
|
|
seasonal: 'fall2017TrickOrTreatSet',
|
|
timeTravelers: [
|
|
// TODO
|
|
],
|
|
};
|
|
|
|
export default featuredItems;
|