Compose classic independent Treachery and Nexus cards

This commit is contained in:
Quintine committed 2026-10-18 04:25:31 +11:00
1 parent e70cd48172
commit c466107452
21 files changed
+733 -21

No files matched your search

+3
View File
@@ -18,6 +18,7 @@ import type { RicheseAuction } from './richese-auction';
import { quoteRicheseSettlement, type RicheseSettlementQuote } from './richese-settlement';
import { quoteRicheseBetrayalInvoice } from './nexus-richese-betrayal';
import { RICHESE_CARD_DEFINITIONS, richeseCardDefinition } from './richese-cards';
import { classicIndependentNexusProfile } from './faction-module-profile';
export type EmperorNexusBankPurchase = {
kind: 'purchase';
@@ -380,6 +381,8 @@ function nativeBankNexusProfile(g: Game): boolean {
* with the Emperor absent, the concealed face and any buyer wallet or hand left
* to the caller. */
export function emperorNexusBankPurchaseModeSupported(g: Game): boolean {
if (classicIndependentNexusProfile(g))
return !g.players.some(p => p.faction === 'emperor') && !g.sandtrout;
if (!g.nexusCards || g.players.some(p => p.faction === 'emperor') ||
g.ecazTreachery || g.sandtrout) return false;
return emperorNexusLegacyRevivalModeSupported(g) || nativeBankNexusProfile(g);