返回提交历史
Modified
src/constants/gameToBuildVersion.ts
+2
-0
Modified
src/services/worldStateService.ts
+34
-2
Modified
static/fixed_responses/worldState/worldState.json
+0
-20
XFEstudio/SpaceNinjaServer
fix: exclude nodeOverrides that not suitible for specific versions (#3946)
Closes #3945 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3946 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
82f32dbd
代码差异
3 个文件
+36
-22
@@ -38,10 +38,12 @@ const gameToBuildVersion = {
38
38
"24.0.0": "2018.11.08.14.45",
39
39
"23.10.0": "2018.10.11.23.29",
40
40
"23.2.0": "2018.08.01.08.09",
41
"22.18.0": "2018.04.20.02.04",
41
42
"22.13.4": "2018.02.22.14.34",
42
43
"22.8.2": "2018.01.04.13.12",
43
44
"22.7.0": "2017.12.12.12.15",
44
45
"22.0.0": "2017.10.12.17.04",
46
"21.0.0": "2017.06.29.02.13",
45
47
"20.4.0": "2017.05.05.15.41",
46
48
"20.0.0": "2017.03.24.17.25",
47
49
"19.5.0": "2016.12.21.19.13",
@@ -1897,6 +1897,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
1897
1897
KnownCalendarSeasons: [],
1898
1898
PVPChallengeInstances: [],
1899
1899
FeaturedGuilds: [],
1900
NodeOverrides: [],
1900
1901
...staticWorldState,
1901
1902
SyndicateMissions: [...staticWorldState.SyndicateMissions],
1902
1903
InGameMarket: {
@@ -3891,8 +3892,39 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
3891
3892
}
3892
3893
}
3893
3894
3894
// Elite Sanctuary Onslaught cycling every week
3895
worldState.NodeOverrides.find(x => x.Node == "SolNode802")!.Seed = new SRng(week).randomInt(0, 0xff_ffff);
3895
{
3896
worldState.NodeOverrides.push(
3897
{ _id: { $oid: "549b18e9b029cef5991d6aec" }, Node: "EuropaHUB", Hide: true },
3898
{ _id: { $oid: "54a1737aeb658f6cbccf70ff" }, Node: "ErisHUB", Hide: true },
3899
{ _id: { $oid: "54a736ddec12f80bd6e9e326" }, Node: "VenusHUB", Hide: true }
3900
);
3901
if (!buildLabel || version_compare(buildLabel, gameToBuildVersion["22.18.0"]) >= 0) {
3902
worldState.NodeOverrides.push({
3903
_id: { $oid: "5ad9f9bb6df82a56eabf3d44" },
3904
Node: "SolNode802",
3905
// Elite Sanctuary Onslaught cycling every week
3906
Seed: new SRng(week).randomInt(0, 0xff_ffff)
3907
});
3908
}
3909
if (!buildLabel || version_compare(buildLabel, gameToBuildVersion["25.7.0"]) >= 0) {
3910
worldState.NodeOverrides.push({
3911
_id: { $oid: "5d24d1f674491d51f8d44473" },
3912
Node: "MercuryHUB",
3913
Hide: true,
3914
LevelOverride: "/Lotus/Levels/Proc/Hub/RelayStationHubHydroid",
3915
Activation: { $date: { $numberLong: "1563030000000" } }
3916
});
3917
}
3918
if (!buildLabel || version_compare(buildLabel, gameToBuildVersion["21.0.0"]) >= 0) {
3919
worldState.NodeOverrides.push({
3920
_id: { $oid: "5b8817c2bd4f253264d6aa91" },
3921
Node: "EarthHUB",
3922
Hide: false,
3923
LevelOverride: "/Lotus/Levels/Proc/Hub/RelayStationHubTwoB",
3924
Activation: { $date: { $numberLong: "1535646600000" } }
3925
});
3926
}
3927
}
3896
3928
3897
3929
// Holdfast, Cavia, & Hex bounties cycling every 2.5 hours; unfaithful implementation
3898
3930
let bountyCycle = Math.trunc((timeSecs - bountyEpoch) / eidolonCycleDuration);
@@ -287,26 +287,6 @@
287
287
"Nodes": []
288
288
}
289
289
],
290
"NodeOverrides": [
291
{ "_id": { "$oid": "549b18e9b029cef5991d6aec" }, "Node": "EuropaHUB", "Hide": true },
292
{ "_id": { "$oid": "54a1737aeb658f6cbccf70ff" }, "Node": "ErisHUB", "Hide": true },
293
{ "_id": { "$oid": "54a736ddec12f80bd6e9e326" }, "Node": "VenusHUB", "Hide": true },
294
{ "_id": { "$oid": "5ad9f9bb6df82a56eabf3d44" }, "Node": "SolNode802", "Seed": 9969639 },
295
{
296
"_id": { "$oid": "5b8817c2bd4f253264d6aa91" },
297
"Node": "EarthHUB",
298
"Hide": false,
299
"LevelOverride": "/Lotus/Levels/Proc/Hub/RelayStationHubTwoB",
300
"Activation": { "$date": { "$numberLong": "1535646600000" } }
301
},
302
{
303
"_id": { "$oid": "5d24d1f674491d51f8d44473" },
304
"Node": "MercuryHUB",
305
"Hide": true,
306
"LevelOverride": "/Lotus/Levels/Proc/Hub/RelayStationHubHydroid",
307
"Activation": { "$date": { "$numberLong": "1563030000000" } }
308
}
309
],
310
290
"PrimeAccessAvailability": { "State": "PRIME1" },
311
291
"PrimeVaultAvailabilities": [false, false, false, false, false],
312
292
"PrimeTokenAvailability": true,