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

+4 -1
View File
@@ -6,6 +6,7 @@ import { botEntryAllowed, guildTransportCost } from './bot-mobility';
import { shipmentPaymentBounds } from './shipment-price';
import { quoteAdvisorTransportMatching, AdvisorTransportMatchingError } from './advisor-transport-matching';
import { guildNoFieldSelection } from './guild-no-field-selection';
import { isBoardNoFieldLocation } from './richese-no-field';
/** Preview the submitted Guild transport using only this seat's entitled view.
* The authoritative action still revalidates the selection when it arrives.
@@ -24,7 +25,9 @@ export function guildTransportQuote(g: GameView, action: Action) {
unavailableReasons.push('Karama prevents native Guild cross/return transport for this shipment opportunity.');
const fromReserves = action.from === 'reserves';
const namesNoField = action.noField !== undefined;
const noField = namesNoField ? guildNoFieldSelection(g, action) : null;
const selectedMarker = namesNoField ? guildNoFieldSelection(g, action) : null;
const noField = selectedMarker && isBoardNoFieldLocation(selectedMarker.location)
? { ...selectedMarker, location: selectedMarker.location } : null;
let total = 0;
let origin = noField?.location.territory;
const matchingGroup:Record<string,number>={};