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: avoid using assassination node for an earlier sortie mission (#2838)

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

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

代码差异

1 个文件 +9 -1
Modified src/services/worldStateService.ts +9 -1
@@ -280,6 +280,14 @@ export const getSortie = (day: number): ISortie => {
280 280 }
281 281 }
282 282
283 const willHaveAssassination = boss != "SORTIE_BOSS_CORRUPTED_VOR" && rng.randomInt(0, 2) == 2;
284 if (willHaveAssassination) {
285 const index = nodes.indexOf(sortieBossNode[boss]);
286 if (index != -1) {
287 nodes.splice(index, 1);
288 }
289 }
290
283 291 const selectedNodes: ISortieMission[] = [];
284 292 const missionTypes = new Set();
285 293
@@ -309,7 +317,7 @@ export const getSortie = (day: number): ISortie => {
309 317 "SORTIE_MODIFIER_BOW_ONLY"
310 318 ];
311 319
312 if (i == 2 && boss != "SORTIE_BOSS_CORRUPTED_VOR" && rng.randomInt(0, 2) == 2) {
320 if (i == 2 && willHaveAssassination) {
313 321 const tileset = sortieTilesets[sortieBossNode[boss] as keyof typeof sortieTilesets] as TSortieTileset;
314 322 pushTilesetModifiers(modifiers, tileset);
315 323