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: exclude invasions for versions prior to U17 (#3504)

Closes #3497 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3504 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

934fc4ba
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +16 -12
Modified src/services/worldStateService.ts +16 -12
@@ -3746,18 +3746,22 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
3746 3746 });
3747 3747 }
3748 3748
3749 // Rough outline of dynamic invasions.
3750 // TODO: Invasions chains, e.g. an infestation mission would soon lead to other nodes on that planet also having an infestation invasion.
3751 // TODO: Grineer/Corpus to fund their death stars with each invasion win.
3752 {
3753 worldState.Invasions.push(createInvasion(day, 0));
3754 worldState.Invasions.push(createInvasion(day, 1));
3755 worldState.Invasions.push(createInvasion(day, 2));
3756
3757 // Completed invasions stay for up to 24 hours as the winner 'occupies' that node
3758 worldState.Invasions.push(createInvasion(day - 1, 0));
3759 worldState.Invasions.push(createInvasion(day - 1, 1));
3760 worldState.Invasions.push(createInvasion(day - 1, 2));
3749 if (!buildLabel || version_compare(buildLabel, gameToBuildVersion["17.7.1"]) >= 0) {
3750 // (lowest known version that recognises all reward types ^^^^^^)
3751
3752 // Rough outline of dynamic invasions.
3753 // TODO: Invasions chains, e.g. an infestation mission would soon lead to other nodes on that planet also having an infestation invasion.
3754 // TODO: Grineer/Corpus to fund their death stars with each invasion win.
3755 {
3756 worldState.Invasions.push(createInvasion(day, 0));
3757 worldState.Invasions.push(createInvasion(day, 1));
3758 worldState.Invasions.push(createInvasion(day, 2));
3759
3760 // Completed invasions stay for up to 24 hours as the winner 'occupies' that node
3761 worldState.Invasions.push(createInvasion(day - 1, 0));
3762 worldState.Invasions.push(createInvasion(day - 1, 1));
3763 worldState.Invasions.push(createInvasion(day - 1, 2));
3764 }
3761 3765 }
3762 3766
3763 3767 // Baro