feat: archon hunt rotation #1220

Merged
Sainan merged 2 commits from archon-rotation into main 2025-03-18 01:45:09 -07:00
Showing only changes of commit 7b6c7fdaae - Show all commits

View File

@ -137,6 +137,9 @@ export const worldStateController: RequestHandler = (req, res) => {
}
const rng = new CRng(week);
const firstNodeIndex = rng.randomInt(0, nodes.length - 1);
const firstNode = nodes[firstNodeIndex];
nodes.splice(firstNodeIndex, 1);
worldState.LiteSorties.push({
_id: {
$oid: Math.trunc(weekStart / 1000).toString(16) + "5e23a244740a190c"
@ -155,7 +158,7 @@ export const worldStateController: RequestHandler = (req, res) => {
"MT_SABOTAGE",
"MT_RESCUE"
]),
node: rng.randomElement(nodes)
node: firstNode
},
{
missionType: rng.randomElement([