mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user