December 2024 and Winter Wonderland 2025 build (#15358)

* feat(content): Winter 2025 build by @CuriousMagpie

* fix(content): add more WW

* fix(content): add more WW

* chore(subproj): update habitica-images

* fix(gala): December 2024 is Winter 2025

* fix(content): lint, background typo, 0 index month

* fix(content): add missing mystery set name

* fix(content): roll back erroneous month indexing

* fix(tests): no 13th month, consider releases in schedule test

* update gear strings

* fix(seasonal): show quest modal

* fix(seasonal): use category-item component

* chore(subproj): update habitica-images

---------

Co-authored-by: CuriousMagpie <eilatan@gmail.com>
This commit is contained in:
Kalista Payne
2024-11-19 11:44:22 -06:00
committed by GitHub
parent 5c734cfa00
commit 1ed61a3d3d
17 changed files with 161 additions and 16 deletions

View File

@@ -638,6 +638,9 @@ const backgrounds = {
backgrounds112024: {
castle_hall_with_hearth: { },
},
backgrounds122024: {
first_snow_forest: { },
},
eventBackgrounds: {
birthday_bash: {
price: 0,

View File

@@ -13,6 +13,7 @@ export const ARMOIRE_RELEASE_DATES = {
funnyFoolSet: { year: 2024, month: 9 },
frightNightSet: { year: 2024, month: 10 },
stormKnightSet: { year: 2024, month: 11 },
festiveHelperSet: { year: 2024, month: 12 },
};
export const EGGS_RELEASE_DATES = {
@@ -25,4 +26,5 @@ export const EGGS_RELEASE_DATES = {
export const HATCHING_POTIONS_RELEASE_DATES = {
Koi: { year: 2024, month: 6, day: 1 },
Gingerbread: { year: 2024, month: 12, day: 21 },
};

View File

@@ -648,6 +648,7 @@ export const MONTHLY_SCHEDULE = {
items: [
'Peppermint',
'Holly',
'Gingerbread',
],
},
],

View File

@@ -57,6 +57,11 @@ const SEASONAL_SETS = {
'winter2024PeppermintBarkWarriorSet',
'winter2024NarwhalWizardMageSet',
'winter2024FrozenHealerSet',
'winter2025MooseWarriorSet',
'winter2025AuroraMageSet',
'winter2025StringLightsHealerSet',
'winter2025SnowRogueSet',
],
spring: [
// spring 2014

View File

@@ -502,6 +502,10 @@ const armor = {
per: 11,
set: 'stormKnightSet',
},
festiveHelperOveralls: {
con: 12,
set: 'festiveHelperSet',
},
};
const body = {
@@ -1027,6 +1031,10 @@ const head = {
con: 11,
set: 'stormKnightSet',
},
festiveHelperHat: {
int: 12,
set: 'festiveHelperSet',
},
};
const shield = {

View File

@@ -67,6 +67,7 @@ const armor = {
202401: { },
202406: { },
202407: { },
202412: { },
301404: { },
301703: { },
301704: { },
@@ -232,6 +233,7 @@ const head = {
202407: { },
202409: { },
202411: { },
202412: { },
301404: { },
301405: { },
301703: { },

View File

@@ -779,6 +779,18 @@ const armor = {
fall2024Rogue: {
set: 'fall2024BlackCatRogueSet',
},
winter2025Warrior: {
set: 'winter2025MooseWarriorSet',
},
winter2025Mage: {
set: 'winter2025AuroraMageSet',
},
winter2025Healer: {
set: 'winter2025StringLightsHealerSet',
},
winter2025Rogue: {
set: 'winter2025SnowRogueSet',
},
};
const armorStats = {
@@ -1868,6 +1880,18 @@ const head = {
fall2024Rogue: {
set: 'fall2024BlackCatRogueSet',
},
winter2025Warrior: {
set: 'winter2025MooseWarriorSet',
},
winter2025Mage: {
set: 'winter2025AuroraMageSet',
},
winter2025Healer: {
set: 'winter2025StringLightsHealerSet',
},
winter2025Rogue: {
set: 'winter2025SnowRogueSet',
},
};
const headStats = {
@@ -2558,6 +2582,15 @@ const shield = {
fall2024Rogue: {
set: 'fall2024BlackCatRogueSet',
},
winter2025Warrior: {
set: 'winter2025MooseWarriorSet',
},
winter2025Healer: {
set: 'winter2025StringLightsHealerSet',
},
winter2025Rogue: {
set: 'winter2025SnowRogueSet',
},
};
const shieldStats = {
@@ -3237,6 +3270,18 @@ const weapon = {
fall2024Rogue: {
set: 'fall2024BlackCatRogueSet',
},
winter2025Warrior: {
set: 'winter2025MooseWarriorSet',
},
winter2025Mage: {
set: 'winter2025AuroraMageSet',
},
winter2025Healer: {
set: 'winter2025StringLightsHealerSet',
},
winter2025Rogue: {
set: 'winter2025SnowRogueSet',
},
};
const weaponStats = {

View File

@@ -127,6 +127,7 @@ const premium = {
},
RoseGold: {},
Koi: {},
Gingerbread: {},
};
const wacky = {

View File

@@ -23,7 +23,8 @@ function safeGetSet (currentEvent, year, className) {
}
function getCurrentSeasonalSets (currentEvent) {
const year = new Date().getFullYear();
const now = new Date();
const year = now.getMonth() === 11 ? now.getFullYear() + 1 : now.getFullYear();
return {
rogue: safeGetSet(currentEvent, year, 'Rogue'),
warrior: safeGetSet(currentEvent, year, 'Warrior'),