feat(content): prebuild Fall Festival (#14869)

* 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>
This commit is contained in:
Natalie
2023-09-20 20:46:34 -04:00
committed by GitHub
parent 9e25360102
commit f72eef6bff
18 changed files with 558 additions and 269 deletions

View File

@@ -5,7 +5,7 @@ import { EVENTS } from './constants';
// path: 'premiumHatchingPotions.Rainbow',
const featuredItems = {
market () {
if (moment().isBetween(EVENTS.potions202308.start, EVENTS.potions202308.end)) {
if (moment().isBetween(EVENTS.fall2023.start, EVENTS.fall2023.end)) {
return [
{
type: 'armoire',
@@ -13,15 +13,15 @@ const featuredItems = {
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Thunderstorm',
path: 'premiumHatchingPotions.Glow',
},
{
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Porcelain',
path: 'premiumHatchingPotions.Spooky',
},
{
type: 'hatchingPotions',
path: 'hatchingPotions.Zombie',
type: 'premiumHatchingPotion',
path: 'premiumHatchingPotions.Vampire',
},
];
}
@@ -32,7 +32,7 @@ const featuredItems = {
},
{
type: 'food',
path: 'food.Meat',
path: 'food.RottenMeat',
},
{
type: 'hatchingPotions',
@@ -40,40 +40,24 @@ const featuredItems = {
},
{
type: 'eggs',
path: 'eggs.Fox',
path: 'eggs.Cactus',
},
];
},
quests () {
if (moment().isBetween(EVENTS.bundle202309.start, EVENTS.bundle202309.end)) {
if (moment().isBetween(EVENTS.bundle202310.start, EVENTS.bundle202310.end)) {
return [
{
type: 'bundles',
path: 'bundles.featheredFriends',
path: 'bundles.sandySidekicks',
},
{
type: 'quests',
path: 'quests.pterodactyl',
path: 'quests.beetle',
},
{
type: 'quests',
path: 'quests.trex',
},
];
}
if (moment().isBetween('2023-03-28T08:00-05:00', EVENTS.spring2023.end)) {
return [
{
type: 'quests',
path: 'quests.egg',
},
{
type: 'quests',
path: 'quests.yarn',
},
{
type: 'quests',
path: 'quests.ghost_stag',
path: 'quests.frog',
},
];
}
@@ -93,7 +77,7 @@ const featuredItems = {
},
];
},
seasonal: 'summer2022MantaRayMageSet',
seasonal: 'fall2017TrickOrTreatSet',
timeTravelers: [
// TODO
],