Compose selected E3 independent cards with Nexus rules

Selected Ecaz/Moritani decks with independent cards and Nexus now retain native Occupy, Advanced assassination, arrival ordering and shared Duke consumers, including original optional modules. Keep the trained E3/Harkonnen capture boundary and remaining individual Nexus effect limits explicit.

Validation: frozen 17-file 168/168, types/lint/build, seven finite original-action and table-SSR programmes, plus four minimal legal Cunning/expiry policies. Fixture corrections preserve the printed alliance draw gate and real paid placement affordability. No stored-game or production change; comprehensive and deployed acceptance remain open.
This commit is contained in:
Quintine committed 2026-10-18 10:59:57 +11:00
1 parent 8422cf1f2d
commit 8793e23d6b
21 files changed
+1374 -24

No files matched your search

+5 -4
View File
@@ -89,11 +89,12 @@ function sameMembers(one: readonly string[], two: readonly string[]): boolean {
}
function selectedExpansions(selection: IxianBetrayalSelection): readonly string[] {
const expansions = selection.expansions ?? ['ix'];
requireBetrayal(Array.isArray(expansions) && expansions.length >= 1 && expansions.length <= 2 &&
requireBetrayal(Array.isArray(expansions) && expansions.length >= 1 && expansions.length <= 3 &&
expansions.includes('ix') && expansions.every((expansion, index) =>
(expansion === 'ix' || expansion === 'choam') && expansions.indexOf(expansion) === index) &&
(expansion === 'ix' || expansion === 'choam' ||
(expansion === 'ecaz' && selection.ecazTreachery === true)) && expansions.indexOf(expansion) === index) &&
(selection.ecazTreachery === undefined || typeof selection.ecazTreachery === 'boolean'),
'Ixian Betrayal requires an original selected Ixian deck, optionally CHOAM and independent cards.');
'Ixian Betrayal requires an original selected Ixian deck, optionally CHOAM or independent Ecaz cards and factions.');
return expansions;
}
function canonicalCard(value: unknown, canonical: ReadonlyMap<string, Card>): value is Card {
@@ -124,7 +125,7 @@ function validateRoster(players: readonly NexusPlayer[], selection: IxianBetraya
(faction.expansion === 'base' || expansions.includes(faction.expansion)))) &&
players.filter(player => player.faction === 'ixians').length === 1 &&
(selection.richese === undefined || selection.richese === players.some(player => player.faction === 'richese')),
'Ixian Betrayal needs its native Ixian and registered classic or selected E1/E2 seats.');
'Ixian Betrayal needs its native Ixian and registered classic or selected family seats.');
}
/** A neutral acknowledgment depends on public held-card presence, never its face. */