fix: disallow infestation hijack missions in sorties #2908

Merged
Sainan merged 1 commits from no-inf-hijack into main 2025-10-17 22:38:10 -07:00

View File

@ -63,7 +63,7 @@ const sortieBosses = [
type TSortieBoss = (typeof sortieBosses)[number];
const sortieBossToFaction: Record<TSortieBoss, string> = {
const sortieBossToFaction: Record<TSortieBoss, TFaction> = {
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];