forked from OpenWF/SpaceNinjaServer
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:
parent
be3dd7ab66
commit
86998b6760
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user