fix: disallow infestation hijack missions in sorties (#2908)

Closes #2907

Reviewed-on: OpenWF/SpaceNinjaServer#2908
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-10-17 22:38:08 -07:00 committed by Sainan
parent be3dd7ab66
commit 86998b6760

View File

@ -63,7 +63,7 @@ const sortieBosses = [
type TSortieBoss = (typeof sortieBosses)[number]; type TSortieBoss = (typeof sortieBosses)[number];
const sortieBossToFaction: Record<TSortieBoss, string> = { const sortieBossToFaction: Record<TSortieBoss, TFaction> = {
SORTIE_BOSS_HYENA: "FC_CORPUS", SORTIE_BOSS_HYENA: "FC_CORPUS",
SORTIE_BOSS_KELA: "FC_GRINEER", SORTIE_BOSS_KELA: "FC_GRINEER",
SORTIE_BOSS_VOR: "FC_GRINEER", SORTIE_BOSS_VOR: "FC_GRINEER",
@ -376,6 +376,11 @@ export const getSortie = (day: number): ISortie => {
const selectedNodes: ISortieMission[] = []; const selectedNodes: ISortieMission[] = [];
const missionTypes = new Set(); 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++) { for (let i = 0; i < 3; i++) {
const randomIndex = rng.randomInt(0, nodes.length - 1); const randomIndex = rng.randomInt(0, nodes.length - 1);
const node = nodes[randomIndex]; const node = nodes[randomIndex];