Files
Dune/game/richese-reveal-foreign-movement.ts
T
Quintine 1f3bc349ba
Verify and publish checkpoint container / container (push) Successful in 11m32s
Connect Advanced Black Market gifts and BG arrivals
2026-11-16 18:33:50 +11:00

21 lines
1.1 KiB
TypeScript

import type { Game } from './engine';
import { basicPendingMovement, type MovementPending } from './basic-pending-movement';
/**
* Revealing Richese's existing marker during a different player's ordinary
* movement cannot add an occupying faction to the declared destination. The
* caller retains its common profile and Truthtrance/commitment guards.
*/
export function richeseRevealForeignMovementPending(g: Game): MovementPending | null {
if (!Array.isArray(g.players)) return null;
const richese = g.players.find(player => player.faction === 'richese');
const deployed = richese?.noField?.deployed;
if (!richese || !deployed || deployed.controller !== richese.id ||
!deployed.location || !('territory' in deployed.location)) return null;
const movement = basicPendingMovement(g, {allowAdvanced:true});
// A CHOAM decision requires CHOAM's own presence at the destination.
// Thus a zero marker disappearing cannot leave a BG arrival alone or
// change its already declared advisor/fighter stance.
return movement && movement.player !== richese.id ? movement.key : null;
}