feat(Core/Events): Add dynamic holiday date calculator (#24038)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-01-02 14:35:23 -06:00
committed by GitHub
parent 4d4747808c
commit c1d753f4ef
7 changed files with 2082 additions and 31 deletions

View File

@@ -0,0 +1,30 @@
-- correctly link brewfest building event in ironforge to brewfest
UPDATE `game_event` SET `holiday` = 372, `holidayStage` = 1 WHERE `eventEntry` = 70;
-- remove start and end times from automatically handled events
UPDATE `game_event` SET `start_time` = NULL, `end_time` = NULL WHERE `eventEntry` IN
(
1, -- Midsummer Fire Festival
2, -- Winter Veil
3, -- Darkmoon Faire (Terokkar Forest)
4, -- Darkmoon Faire (Elwynn Forest)
5, -- Darkmoon Faire (Mulgore)
7, -- Lunar Festival
8, -- Love is in the Air
9, -- Noblegarden
10, -- Children's Week
11, -- Harvest Festival
12, -- Hallow's End
23, -- Darkmoon Faire Building (Elwynn Forest)
24, -- Brewfest
26, -- Pilgrim's Bounty
50, -- Pirates' Day
51, -- Day of the Dead
70, -- Brewfest Building (Iron Forge)
71, -- Darkmoon Faire Building (Mulgore)
72, -- Fireworks Spectacular,
77 -- Darkmoon Faire Building (Terokkar Forest)
);
-- drop unused table
DROP TABLE IF EXISTS `holiday_dates`;