From 4fed9ed6399ca04ae8a58b93bc54686af5314dd4 Mon Sep 17 00:00:00 2001 From: PRO100KatYT Date: Sun, 28 Nov 2021 11:49:05 +0100 Subject: [PATCH 1/5] 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; From c4514221c9c1182801f01a6ae9ec9e314fd2718d Mon Sep 17 00:00:00 2001 From: PRO100KatYT Date: Sun, 28 Nov 2021 15:10:22 +0100 Subject: [PATCH 2/5] S6 Halloween Lobby + Some Battle Bus Event Flags --- index.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/index.js b/index.js index 4e52e81..1e0376f 100644 --- a/index.js +++ b/index.js @@ -1026,6 +1026,14 @@ 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 (req.headers["user-agent"].includes("Release-5.10")) { + activeEvents.push( + { + "eventType": "EventFlag.BirthdayBattleBus", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } } if (seasondata.season == 6) { @@ -1045,6 +1053,19 @@ 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 (req.headers["user-agent"].includes("Release-6.20") || req.headers["user-agent"].includes("Release-6.21")) { + activeEvents.push( + { + "eventType": "EventFlag.LobbySeason6Halloween", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.HalloweenBattleBus", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } } if (seasondata.season == 7) { From 2cd068dbf1c7c7f74f0a40bc794767c793f5ce99 Mon Sep 17 00:00:00 2001 From: PRO100KatYT Date: Sun, 28 Nov 2021 16:11:23 +0100 Subject: [PATCH 3/5] Update index.js --- index.js | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/index.js b/index.js index 1e0376f..65b9dc2 100644 --- a/index.js +++ b/index.js @@ -1026,14 +1026,14 @@ 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 (req.headers["user-agent"].includes("Release-5.10")) { - activeEvents.push( - { - "eventType": "EventFlag.BirthdayBattleBus", - "activeUntil": "9999-01-01T00:00:00.000Z", - "activeSince": "2020-01-01T00:00:00.000Z" - }) - } + if (req.headers["user-agent"].includes("Release-5.10")) { + activeEvents.push( + { + "eventType": "EventFlag.BirthdayBattleBus", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } } if (seasondata.season == 6) { @@ -1053,19 +1053,19 @@ 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 (req.headers["user-agent"].includes("Release-6.20") || req.headers["user-agent"].includes("Release-6.21")) { - activeEvents.push( - { - "eventType": "EventFlag.LobbySeason6Halloween", - "activeUntil": "9999-01-01T00:00:00.000Z", - "activeSince": "2020-01-01T00:00:00.000Z" - }, - { - "eventType": "EventFlag.HalloweenBattleBus", - "activeUntil": "9999-01-01T00:00:00.000Z", - "activeSince": "2020-01-01T00:00:00.000Z" - }) - } + if (req.headers["user-agent"].includes("Release-6.20") || req.headers["user-agent"].includes("Release-6.21")) { + activeEvents.push( + { + "eventType": "EventFlag.LobbySeason6Halloween", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.HalloweenBattleBus", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } } if (seasondata.season == 7) { From 7eaec4947eca2f4a9faa8d0c0fa88e09c91faeef Mon Sep 17 00:00:00 2001 From: Lawin0129 <56766256+Lawin0129@users.noreply.github.com> Date: Sun, 28 Nov 2021 15:36:33 +0000 Subject: [PATCH 4/5] Update index.js --- index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 65b9dc2..808c045 100644 --- a/index.js +++ b/index.js @@ -960,7 +960,7 @@ 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( { @@ -1026,6 +1026,8 @@ 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 (req.headers["user-agent"].includes("Release-5.10")) { activeEvents.push( { @@ -1033,7 +1035,6 @@ 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 == 6) { @@ -1053,6 +1054,8 @@ 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 (req.headers["user-agent"].includes("Release-6.20") || req.headers["user-agent"].includes("Release-6.21")) { activeEvents.push( { @@ -1065,7 +1068,6 @@ 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 == 7) { @@ -6001,7 +6003,8 @@ 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")) { + + if (req.headers["user-agent"].includes("Release-11.31") || req.headers["user-agent"].includes("Release-11.40")) { contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].stage = "Winter19"; contentpages.dynamicbackgrounds.backgrounds.backgrounds[1].stage = "Winter19"; } From 9d1b78cf5c60dc67240b9633316f3ce509d43122 Mon Sep 17 00:00:00 2001 From: Lawin0129 <56766256+Lawin0129@users.noreply.github.com> Date: Sun, 28 Nov 2021 15:37:39 +0000 Subject: [PATCH 5/5] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 808c045..151dca6 100644 --- a/index.js +++ b/index.js @@ -1128,7 +1128,7 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { } // Credits to Silas for three of these event flags and credits to uni for testing on 11.31 - if (req.headers["user-agent"].includes("Release-11.31")) { + if (req.headers["user-agent"].includes("Release-11.31") || req.headers["user-agent"].includes("Release-11.40")) { activeEvents.push( { "eventType": "EventFlag.Winterfest.Tree",