XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

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

cd5aaaa6
Sainan <sainan@calamity.inc>
提交于

代码差异

2 个文件 +9 -9
Modified src/controllers/dynamic/worldStateController.ts +9 -1
@@ -22,7 +22,7 @@ export const worldStateController: RequestHandler = (req, res) => {
22 22 Seed: week // unfaithful
23 23 });
24 24
25 // Holdfast & Hex bounties cycling every 2.5 hours; unfaithful implementation
25 // Holdfast, Cavia, & Hex bounties cycling every 2.5 hours; unfaithful implementation
26 26 const bountyCycle = Math.trunc(new Date().getTime() / 9000000);
27 27 const bountyCycleStart = bountyCycle * 9000000;
28 28 const bountyCycleEnd = bountyCycleStart + 9000000;
@@ -34,6 +34,14 @@ export const worldStateController: RequestHandler = (req, res) => {
34 34 Seed: bountyCycle,
35 35 Nodes: []
36 36 });
37 worldState.SyndicateMissions.push({
38 _id: { $oid: bountyCycleStart.toString(16) + "0000000000000004" },
39 Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
40 Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
41 Tag: "EntratiLabSyndicate",
42 Seed: bountyCycle,
43 Nodes: []
44 });
37 45 worldState.SyndicateMissions.push({
38 46 _id: { $oid: bountyCycleStart.toString(16) + "0000000000000006" },
39 47 Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } },
Modified static/fixed_responses/worldState.json +0 -8
@@ -340,14 +340,6 @@
340 340 }
341 341 ]
342 342 },
343 {
344 "_id": { "$oid": "663a71c80000000000000004" },
345 "Activation": { "$date": { "$numberLong": "1715106248403" } },
346 "Expiry": { "$date": { "$numberLong": "2000000000000" } },
347 "Tag": "EntratiLabSyndicate",
348 "Seed": 99562,
349 "Nodes": []
350 },
351 343 {
352 344 "_id": { "$oid": "663a71c80000000000000008" },
353 345 "Activation": { "$date": { "$numberLong": "1715106248403" } },