Prototype Richese No-Fields on foreign Homeworlds

This commit is contained in:
Quintine committed 2026-10-28 20:04:03 +11:00
1 parent dd3c199e2e
commit 850227c26d
71 files changed
+1806 -187

No files matched your search

+2 -1
View File
@@ -9,6 +9,7 @@ import { planetologistLeader, planetologistMovementModeSupported, planetologistG
import { quoteAdvisorGatherMatching, AdvisorGatherMatchingError } from './advisor-gather-matching';
import { nexusGuildMovementAvailable } from './nexus-guild-cunning-options';
import { validateCohortSelection } from './ornithopter';
import { isBoardNoFieldLocation } from './richese-no-field';
const whole = (value: unknown): value is number =>
Number.isSafeInteger(value) && (value as number) >= 0;
@@ -67,7 +68,7 @@ export function discoveryFlightMove(game: GameView, move: Action | null): Quote
}
const deployed = game.richeseNoField?.owner === me.id
? game.richeseNoField.private?.deployed : undefined;
const marker = move.noField === undefined ? undefined : deployed &&
const marker = move.noField === undefined ? undefined : deployed && isBoardNoFieldLocation(deployed.location) &&
deployed.tokenId === move.noField && game.richeseNoField?.event === move.event
? { tokenId: deployed.tokenId, event: String(move.event),
from: location(deployed.location.territory, deployed.location.sector) } : null;