Integrate Ecaz Duke revival and bounded Mirror Weapon battles

This commit is contained in:
Quintine committed 2026-09-28 18:02:04 +10:00
1 parent 68d782ca82
commit 3b118dd845
39 files changed
+1377 -533

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import type { FactionId } from './catalog';
const supported = new Set<FactionId>([
'atreides', 'harkonnen', 'emperor', 'guild', 'beneGesserit', 'fremen',
'choam', 'richese',
]);
/** Public configuration only: never inspect an opponent's hand or sealed plan. */
export function mirrorWeaponModeBlock(g: {
expansions: readonly string[];
players: readonly { faction: FactionId }[];
homeworlds?: unknown;
nexusCards?: unknown;
leaderSkills?: unknown;
discoveries?: unknown;
sandtrout?: boolean;
}): string | null {
if (g.expansions.length !== 1 || g.expansions[0] !== 'choam' ||
g.players.some((p) => !supported.has(p.faction)))
return 'Mirror Weapon currently needs the CHOAM/Richese expansion with classic or CHOAM/Richese factions.';
if (g.homeworlds || g.nexusCards || g.leaderSkills || g.discoveries || g.sandtrout)
return 'Mirror Weapon with combined optional modules is still being integrated.';
return null;
}