fix: don't use armor/shield sortie modifiers when faction is infestation
All checks were successful
Build / build (pull_request) Successful in 1m24s
All checks were successful
Build / build (pull_request) Successful in 1m24s
This commit is contained in:
parent
6c2b7a61e2
commit
9593971759
@ -266,14 +266,15 @@ export const getSortie = (day: number): ISortie => {
|
|||||||
const rng = new SRng(seed);
|
const rng = new SRng(seed);
|
||||||
|
|
||||||
const boss = rng.randomElement(sortieBosses)!;
|
const boss = rng.randomElement(sortieBosses)!;
|
||||||
|
const enemyFaction = sortieBossToFaction[boss];
|
||||||
|
|
||||||
const nodes: string[] = [];
|
const nodes: string[] = [];
|
||||||
for (const [key, value] of Object.entries(ExportRegions)) {
|
for (const [key, value] of Object.entries(ExportRegions)) {
|
||||||
if (
|
if (
|
||||||
sortieFactionToSystemIndexes[sortieBossToFaction[boss]].includes(value.systemIndex) &&
|
sortieFactionToSystemIndexes[enemyFaction].includes(value.systemIndex) &&
|
||||||
sortieFactionToFactions[sortieBossToFaction[boss]].includes(value.faction!) &&
|
sortieFactionToFactions[enemyFaction].includes(value.faction!) &&
|
||||||
key in sortieTilesets &&
|
key in sortieTilesets &&
|
||||||
(key != "SolNode228" || sortieBossToFaction[boss] == "FC_GRINEER") // PoE does not work for non-infested enemies
|
(key != "SolNode228" || enemyFaction == "FC_GRINEER") // PoE does not work for non-infested enemies
|
||||||
) {
|
) {
|
||||||
nodes.push(key);
|
nodes.push(key);
|
||||||
}
|
}
|
||||||
@ -339,11 +340,9 @@ export const getSortie = (day: number): ISortie => {
|
|||||||
modifiers.push("SORTIE_MODIFIER_HAZARD_RADIATION");
|
modifiers.push("SORTIE_MODIFIER_HAZARD_RADIATION");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ExportRegions[node].faction == "FC_GRINEER") {
|
if (enemyFaction == "FC_GRINEER") {
|
||||||
// Grineer
|
|
||||||
modifiers.push("SORTIE_MODIFIER_ARMOR");
|
modifiers.push("SORTIE_MODIFIER_ARMOR");
|
||||||
} else if (ExportRegions[node].faction == "FC_CORPUS") {
|
} else if (enemyFaction == "FC_CORPUS") {
|
||||||
// Corpus
|
|
||||||
modifiers.push("SORTIE_MODIFIER_SHIELDS");
|
modifiers.push("SORTIE_MODIFIER_SHIELDS");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user