Connect original Duke capture and Ecaz Nexus liberation

This commit is contained in:
Quintine committed 2026-10-15 13:24:47 +11:00
1 parent 172363d9d3
commit a24600ae1d
24 files changed
+2082 -235

No files matched your search

+5 -2
View File
@@ -1,8 +1,10 @@
import type { Game } from './engine';
import type { FactionId } from './catalog';
import { acquireDuke, DUKE_VIDAL_ID, type DukeState } from './duke-vidal';
import type { FactionModuleProfile } from './faction-module-profile';
import { standaloneE3NexusProfile } from './nexus-module-profile';
export type EcazDukeContext = {
export type EcazDukeContext = Partial<FactionModuleProfile> & {
status: Game['status'];
turn: number;
advanced: boolean;
@@ -54,7 +56,8 @@ export function quoteEcazDukeAcquisition(
'context',
);
requireDuke(
!(g.advanced && g.players.some((p) => p.faction === 'harkonnen')),
!(g.advanced && g.players.some((p) => p.faction === 'harkonnen')) ||
(!!g.expansions && standaloneE3NexusProfile(g as FactionModuleProfile)),
tableBlock,
'table',
);