fix: change cavia bounties every 2.5 hours (#748)

This commit is contained in:
Sainan 2025-01-09 05:54:29 +01:00 committed by GitHub
parent eeaa339090
commit cd5aaaa6cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View File

@ -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) } },

View File

@ -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" } },