From 4fed9ed6399ca04ae8a58b93bc54686af5314dd4 Mon Sep 17 00:00:00 2001 From: PRO100KatYT Date: Sun, 28 Nov 2021 11:49:05 +0100 Subject: [PATCH] Winterfest Lobby, StW Frontend Decorations and two more StW Questlines. --- index.js | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4d17f6b..4e52e81 100644 --- a/index.js +++ b/index.js @@ -960,6 +960,30 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "activeUntil": "9999-01-01T00:00:00.000Z", "activeSince": "2020-01-01T00:00:00.000Z" }]; + + if (seasondata.season == 3) { + activeEvents.push( + { + "eventType": "EventFlag.Spring2018Phase1", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Spring2018Phase2", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Spring2018Phase3", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Spring2018Phase4", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } if (seasondata.season == 4) { activeEvents.push( @@ -1094,7 +1118,12 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "activeSince": "2020-01-01T00:00:00.000Z" }, { - "eventType": "EventFlag.Phoenix.Winterfest", + "eventType": "EventFlag.LTE_WinterFest2019", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.HolidayDeco", "activeUntil": "9999-01-01T00:00:00.000Z", "activeSince": "2020-01-01T00:00:00.000Z" }, @@ -1102,6 +1131,16 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "eventType": "EventFlag.Season11.Frostnite", "activeUntil": "9999-01-01T00:00:00.000Z", "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Season11.WinterFest.Quests.Phase1", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Season11.WinterFest.Quests.Phase2", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" }) } @@ -5941,6 +5980,10 @@ function getContentPages(req) { contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].stage = "seasonx"; contentpages.dynamicbackgrounds.backgrounds.backgrounds[1].stage = "seasonx"; } + if (req.headers["user-agent"].includes("Release-11.31")) { + contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].stage = "Winter19"; + contentpages.dynamicbackgrounds.backgrounds.backgrounds[1].stage = "Winter19"; + } } catch (err) {} return contentpages;