mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 10:52:23 +01:00
Added Cube Lake (5.41) backend sided in-game event
This commit is contained in:
@@ -70,3 +70,10 @@ cubeSpawnDate=2020-01-01T00:00:00.000Z
|
|||||||
|
|
||||||
## Blockbuster Contest winner video at Risky Reels event. (v5.30 Only)*
|
## Blockbuster Contest winner video at Risky Reels event. (v5.30 Only)*
|
||||||
bEnableBlockbusterRiskyEvent=false
|
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
|
||||||
|
|||||||
@@ -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({
|
res.json({
|
||||||
"channels": {
|
"channels": {
|
||||||
"client-matchmaking": {
|
"client-matchmaking": {
|
||||||
|
|||||||
Reference in New Issue
Block a user