Prototype Richese No-Fields on foreign Homeworlds
This commit is contained in:
1 parent
dd3c199e2e
commit
850227c26d
71 files changed
+1806
-187
No files matched your search
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user