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 -2
View File
@@ -10,7 +10,7 @@ import {
} from './discoveries';
import { splitLocation, validGameLocation, type MobileBoard } from './board';
import { territoryEntryBlock, type OccupancySeat } from './occupancy';
import type { RicheseNoField } from './richese-no-field';
import { isBoardNoFieldLocation, type RicheseNoField } from './richese-no-field';
export class DiscoveryEntryError extends Error {}
@@ -375,7 +375,7 @@ function sourceOffer(
* do not supply physical counters or alter this optional relocation. */
function noFieldOffer(g: DiscoveryEntryContext, player: DiscoveryEntrySeat, parent: string): DiscoveryEntryNoField | undefined {
const marker = player.noField?.deployed;
if (player.faction !== 'richese' || !marker || marker.controller !== player.id ||
if (player.faction !== 'richese' || !marker || !isBoardNoFieldLocation(marker.location) || marker.controller !== player.id ||
!identifier(marker.tokenId) || !identifier(player.noFieldEvent) ||
marker.location.territory !== parent || marker.location.sector === g.storm ||
!validGameLocation(g, marker.location.territory, marker.location.sector)) return undefined;