返回提交历史
Modified
src/controllers/dynamic/worldStateController.ts
+3
-3
XFEstudio/XFESpaceNinjaServer
fix: syndicate mission oids being longer than 24 chars
6f3f1fe5
代码差异
1 个文件
+3
-3
@@ -53,7 +53,7 @@ export const worldStateController: RequestHandler = (req, res) => {
53
53
const bountyCycleStart = bountyCycle * 9000000;
54
54
const bountyCycleEnd = bountyCycleStart + 9000000;
55
55
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "ZarimanSyndicate")] = {
56
_id: { $oid: bountyCycleStart.toString(16) + "0000000000000029" },
56
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000029" },
57
57
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
58
58
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
59
59
Tag: "ZarimanSyndicate",
@@ -61,7 +61,7 @@ export const worldStateController: RequestHandler = (req, res) => {
61
61
Nodes: []
62
62
};
63
63
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "EntratiLabSyndicate")] = {
64
_id: { $oid: bountyCycleStart.toString(16) + "0000000000000004" },
64
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000004" },
65
65
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
66
66
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
67
67
Tag: "EntratiLabSyndicate",
@@ -69,7 +69,7 @@ export const worldStateController: RequestHandler = (req, res) => {
69
69
Nodes: []
70
70
};
71
71
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "HexSyndicate")] = {
72
_id: { $oid: bountyCycleStart.toString(16) + "0000000000000006" },
72
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000006" },
73
73
Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } },
74
74
Expiry: { $date: { $numberLong: bountyCycleEnd.toString(10) } },
75
75
Tag: "HexSyndicate",