Enforce Atomics shipment ban across transport
Verify and publish checkpoint container / container (push) Successful in 10m7s
Verify and publish checkpoint container / container (push) Successful in 10m7s
This commit is contained in:
1 parent
4feb418488
commit
0f8e0b4153
17 files changed
+477
-19
No files matched your search
@@ -7,6 +7,7 @@ import { groupGuildShipmentRate, shipmentPaymentBounds } from './shipment-price'
|
||||
import { quoteAdvisorTransportMatching, AdvisorTransportMatchingError } from './advisor-transport-matching';
|
||||
import { guildNoFieldSelection } from './guild-no-field-selection';
|
||||
import { isBoardNoFieldLocation } from './richese-no-field';
|
||||
import { atomicsShipmentBlocked } from './moritani-atomics';
|
||||
|
||||
/** Preview the submitted Guild transport using only this seat's entitled view.
|
||||
* The authoritative action still revalidates the selection when it arrives.
|
||||
@@ -142,6 +143,8 @@ export function guildTransportQuote(g: GameView, action: Action) {
|
||||
);
|
||||
const to =
|
||||
typeof action.territory === 'string' ? action.territory : 'reserves';
|
||||
if (to !== 'reserves' && atomicsShipmentBlocked(g.moritaniAtomics, to))
|
||||
unavailableReasons.push('Atomics Aftermath permanently blocks shipments into this territory.');
|
||||
const sector = action.sector ?? 0;
|
||||
const noFieldWorld = !!noField && !!g.homeworlds?.worlds?.some(world => world.id === to);
|
||||
const validDestination =
|
||||
|
||||
Reference in new issue
Block a user