Connect bounded arrival overlap and Fremen Nexus movement Betrayal

This commit is contained in:
Quintine committed 2026-09-29 18:01:14 +10:00
1 parent 8ddd138e87
commit b2603f6715
26 files changed
+1644 -118

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import type { Action, GameView } from './engine';
/** Only the holder's private offer authorizes spending the physical Nexus card. */
export function fremenBetrayalAction(game: GameView): Action | null {
const offer = game.nexusFremenBetrayal;
const owner = game.players.find(player => player.id === game.me);
if (!offer || offer.blocked || !owner || owner.ally ||
owner.faction === 'fremen' || game.nexusCards?.card !== 'fremen' ||
game.automaticContinuationPending) return null;
return { type: 'nexusFremenBetrayal', event: offer.event };
}
export function fremenBetrayalBotActions(game: GameView): Action[] {
const action = fremenBetrayalAction(game);
return action ? [action] : [];
}