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

@@ -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'),