fix: disallow infestation hijack missions in sorties
All checks were successful
Build / build (pull_request) Successful in 4m52s

This commit is contained in:
Sainan 2025-10-17 18:44:40 +02:00
parent 96a15e25df
commit 4e266b3f84

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];