From b3eeaeefc5e0317de2b1d99cc705984a0b24de60 Mon Sep 17 00:00:00 2001 From: PRO100KatYT <67335438+PRO100KatYT@users.noreply.github.com> Date: Sun, 26 Nov 2023 08:01:41 +0100 Subject: [PATCH] Added Cube Lake (5.41) backend sided in-game event --- Config/config.ini | 7 +++++++ structure/timeline.js | 47 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/Config/config.ini b/Config/config.ini index eaf1335..b5e4d1a 100644 --- a/Config/config.ini +++ b/Config/config.ini @@ -70,3 +70,10 @@ cubeSpawnDate=2020-01-01T00:00:00.000Z ## Blockbuster Contest winner video at Risky Reels event. (v5.30 Only)* bEnableBlockbusterRiskyEvent=false + +## Cube melting in Loot Lake event. (v5.41 Only)* + +# When set to true, the cube will fall into Loot Lake and start melting on the date specified below. +# After the event, Loot Lake will remain purple in new matches. +bEnableCubeLake=false +cubeLakeDate=2020-01-01T00:00:00.000Z diff --git a/structure/timeline.js b/structure/timeline.js index a67417c..0d0dd9b 100644 --- a/structure/timeline.js +++ b/structure/timeline.js @@ -1359,6 +1359,53 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { } } + if (memory.build == 5.41) { + if (config.Events.bEnableCubeLake == true) { + states[0].activeEvents.push( + { + "eventType": "EventFlag.BR_S5_Cube_StartMove", + "activeUntil": config.Events.cubeLakeDate + }, + { + "eventType": "EventFlag.BR_S5_Cube_TurnOn", + "activeUntil": config.Events.cubeLakeDate + }) + + states.push({ + validFrom: config.Events.cubeLakeDate, + activeEvents: activeEvents.slice(), + state: stateTemplate + }) + + states[1].activeEvents.push( + { + "eventType": "EventFlag.BR_S5_Cube_StartMove", + "activeUntil": config.Events.cubeLakeDate + }, + { + "eventType": "EventFlag.BR_S5_Cube_TurnOn", + "activeUntil": config.Events.cubeLakeDate + }, + { + "eventType": "EventFlag.BR_S5_Cube_MoveTo8", + "activeUntil": config.Events.cubeLakeDate + }) + + var EventEndDate = new Date(new Date(config.Events.cubeLakeDate).getTime() + 1.5 * 60000).toISOString(); + + states.push({ + validFrom: EventEndDate, + activeEvents: activeEvents.slice(), + state: stateTemplate + }) + + states[2].activeEvents.push({ + "eventType": "EventFlag.BR_S5_Cube_Destination", + "activeUntil": "9999-01-01T00:00:00.000Z" + }) + } + } + res.json({ "channels": { "client-matchmaking": {