From cd5aaaa6cfff08bf1c54eca444142a730677a215 Mon Sep 17 00:00:00 2001 From: Sainan Date: Thu, 9 Jan 2025 05:54:29 +0100 Subject: [PATCH] fix: change cavia bounties every 2.5 hours (#748) --- src/controllers/dynamic/worldStateController.ts | 10 +++++++++- static/fixed_responses/worldState.json | 8 -------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/controllers/dynamic/worldStateController.ts b/src/controllers/dynamic/worldStateController.ts index 9bc7f137..b95e621b 100644 --- a/src/controllers/dynamic/worldStateController.ts +++ b/src/controllers/dynamic/worldStateController.ts @@ -22,7 +22,7 @@ export const worldStateController: RequestHandler = (req, res) => { Seed: week // unfaithful }); - // Holdfast & Hex bounties cycling every 2.5 hours; unfaithful implementation + // Holdfast, Cavia, & Hex bounties cycling every 2.5 hours; unfaithful implementation const bountyCycle = Math.trunc(new Date().getTime() / 9000000); const bountyCycleStart = bountyCycle * 9000000; const bountyCycleEnd = bountyCycleStart + 9000000; @@ -34,6 +34,14 @@ export const worldStateController: RequestHandler = (req, res) => { Seed: bountyCycle, Nodes: [] }); + worldState.SyndicateMissions.push({ + _id: { $oid: bountyCycleStart.toString(16) + "0000000000000004" }, + Activation: { $date: { $numberLong: bountyCycleStart.toString() } }, + Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } }, + Tag: "EntratiLabSyndicate", + Seed: bountyCycle, + Nodes: [] + }); worldState.SyndicateMissions.push({ _id: { $oid: bountyCycleStart.toString(16) + "0000000000000006" }, Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } }, diff --git a/static/fixed_responses/worldState.json b/static/fixed_responses/worldState.json index 4f272b4e..54b6903a 100644 --- a/static/fixed_responses/worldState.json +++ b/static/fixed_responses/worldState.json @@ -340,14 +340,6 @@ } ] }, - { - "_id": { "$oid": "663a71c80000000000000004" }, - "Activation": { "$date": { "$numberLong": "1715106248403" } }, - "Expiry": { "$date": { "$numberLong": "2000000000000" } }, - "Tag": "EntratiLabSyndicate", - "Seed": 99562, - "Nodes": [] - }, { "_id": { "$oid": "663a71c80000000000000008" }, "Activation": { "$date": { "$numberLong": "1715106248403" } },