fix: NodeOverrides growing with every worldState request
This commit is contained in:
parent
9f57eb90a4
commit
954367d3df
@ -17,11 +17,7 @@ export const worldStateController: RequestHandler = (req, res) => {
|
|||||||
const week = Math.trunc(new Date().getTime() / 604800000);
|
const week = Math.trunc(new Date().getTime() / 604800000);
|
||||||
|
|
||||||
// Elite Sanctuary Onslaught cycling every week
|
// Elite Sanctuary Onslaught cycling every week
|
||||||
worldState.NodeOverrides.push({
|
worldState.NodeOverrides.find(x => x.Node == "SolNode802")!.Seed = week; // unfaithful
|
||||||
_id: { $oid: "5ad9f9bb6df82a56eabf3d44" },
|
|
||||||
Node: "SolNode802",
|
|
||||||
Seed: week // unfaithful
|
|
||||||
});
|
|
||||||
|
|
||||||
// Holdfast, Cavia, & 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 bountyCycle = Math.trunc(new Date().getTime() / 9000000);
|
||||||
|
@ -690,6 +690,7 @@
|
|||||||
{ "_id": { "$oid": "549b18e9b029cef5991d6aec" }, "Node": "EuropaHUB", "Hide": true },
|
{ "_id": { "$oid": "549b18e9b029cef5991d6aec" }, "Node": "EuropaHUB", "Hide": true },
|
||||||
{ "_id": { "$oid": "54a1737aeb658f6cbccf70ff" }, "Node": "ErisHUB", "Hide": true },
|
{ "_id": { "$oid": "54a1737aeb658f6cbccf70ff" }, "Node": "ErisHUB", "Hide": true },
|
||||||
{ "_id": { "$oid": "54a736ddec12f80bd6e9e326" }, "Node": "VenusHUB", "Hide": true },
|
{ "_id": { "$oid": "54a736ddec12f80bd6e9e326" }, "Node": "VenusHUB", "Hide": true },
|
||||||
|
{ "_id": { "$oid": "5ad9f9bb6df82a56eabf3d44" }, "Node": "SolNode802", "Seed": 9969639 },
|
||||||
{
|
{
|
||||||
"_id": { "$oid": "5b8817c2bd4f253264d6aa91" },
|
"_id": { "$oid": "5b8817c2bd4f253264d6aa91" },
|
||||||
"Node": "EarthHUB",
|
"Node": "EarthHUB",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user