From 86998b67608c04b6ba9a22ac92a4da35302f778a Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Fri, 17 Oct 2025 22:38:08 -0700 Subject: [PATCH] fix: disallow infestation hijack missions in sorties (#2908) Closes #2907 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2908 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/services/worldStateService.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/services/worldStateService.ts b/src/services/worldStateService.ts index ba7278cb..deedbc54 100644 --- a/src/services/worldStateService.ts +++ b/src/services/worldStateService.ts @@ -63,7 +63,7 @@ const sortieBosses = [ type TSortieBoss = (typeof sortieBosses)[number]; -const sortieBossToFaction: Record = { +const sortieBossToFaction: Record = { SORTIE_BOSS_HYENA: "FC_CORPUS", SORTIE_BOSS_KELA: "FC_GRINEER", SORTIE_BOSS_VOR: "FC_GRINEER", @@ -376,6 +376,11 @@ export const getSortie = (day: number): ISortie => { const selectedNodes: ISortieMission[] = []; const missionTypes = new Set(); + if (enemyFaction == "FC_INFESTATION") { + // MT_RETRIEVAL may not be chosen for infested enemies (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/2907) + missionTypes.add("MT_RETRIEVAL"); + } + for (let i = 0; i < 3; i++) { const randomIndex = rng.randomInt(0, nodes.length - 1); const node = nodes[randomIndex];