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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

fix: worldState being ignored by U18.18 - U20.4 (#3007)

Closes #3006. A Bootstrapper code update will also be needed. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3007 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

5c397a18
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +10 -0
Modified src/services/worldStateService.ts +9 -0
@@ -3639,6 +3639,15 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
3639 3639 }
3640 3640 worldState.Tmp = JSON.stringify(tmp);
3641 3641
3642 // This must be the last field in these versions.
3643 if (
3644 buildLabel &&
3645 version_compare(buildLabel, "2016.08.19.17.12") >= 0 &&
3646 version_compare(buildLabel, "2017.05.05.15.41") <= 0
3647 ) {
3648 worldState.WorldSeed = "4763605";
3649 }
3650
3642 3651 return worldState;
3643 3652 };
3644 3653
Modified src/types/worldStateTypes.ts +1 -0
@@ -2,6 +2,7 @@ import type { IMissionReward, TFaction, TMissionType } from "warframe-public-exp
2 2 import type { IMongoDate, IOid } from "./commonTypes.ts";
3 3
4 4 export interface IWorldState {
5 WorldSeed?: string;
5 6 Version: number; // for goals
6 7 BuildLabel: string;
7 8 Time: number;