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
@@ -1,6 +1,7 @@
import type { Action, GameView } from './engine';
import { arrivalAsAdvisor } from './advisors';
import { splitLocation, territory, validLocation } from './board';
import { isBoardNoFieldLocation } from './richese-no-field';
import {
MovementArrivalError,
quoteCompletedMovementArrival,
@@ -159,7 +160,7 @@ export function botArrivalBlock(g: GameView, action: Action): string | null {
const origins = new Set<string>();
if (action.noField !== undefined) {
const marker = me.noField?.deployed;
if (me.faction !== 'richese' || !marker) return null;
if (me.faction !== 'richese' || !marker || !isBoardNoFieldLocation(marker.location)) return null;
origins.add(marker.location.territory);
}
for (const [key, count] of entries) {