返回提交历史
Modified
src/services/worldStateService.ts
+6
-1
XFEstudio/XFESpaceNinjaServer
fix: disallow infestation hijack missions in sorties (#2908)
Closes #2907 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2908 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
86998b67
代码差异
1 个文件
+6
-1
@@ -63,7 +63,7 @@ const sortieBosses = [
63
63
64
64
type TSortieBoss = (typeof sortieBosses)[number];
65
65
66
const sortieBossToFaction: Record<TSortieBoss, string> = {
66
const sortieBossToFaction: Record<TSortieBoss, TFaction> = {
67
67
SORTIE_BOSS_HYENA: "FC_CORPUS",
68
68
SORTIE_BOSS_KELA: "FC_GRINEER",
69
69
SORTIE_BOSS_VOR: "FC_GRINEER",
@@ -376,6 +376,11 @@ export const getSortie = (day: number): ISortie => {
376
376
const selectedNodes: ISortieMission[] = [];
377
377
const missionTypes = new Set();
378
378
379
if (enemyFaction == "FC_INFESTATION") {
380
// MT_RETRIEVAL may not be chosen for infested enemies (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/2907)
381
missionTypes.add("MT_RETRIEVAL");
382
}
383
379
384
for (let i = 0; i < 3; i++) {
380
385
const randomIndex = rng.randomInt(0, nodes.length - 1);
381
386
const node = nodes[randomIndex];