Support sector-specific Truthtrance shipments
This commit is contained in:
1 parent
8006e53580
commit
536d334543
27 files changed
+1121
-71
No files matched your search
+2
-1
@@ -4528,9 +4528,10 @@ export function botActions(g: GameView): Action[] {
|
||||
(action.type === 'guildShip' && action.from === 'reserves');
|
||||
const shipment = junctionNative
|
||||
? {territory: splitLocation(String(action.destination)).territory,
|
||||
sector: splitLocation(String(action.destination)).sector,
|
||||
amount: Object.values(action.sources as Record<string, {normal: number; elite: number}>).reduce((n, source) => n + source.normal + source.elite, 0)}
|
||||
: fromReserves
|
||||
? { territory: String(action.territory), amount: Number(action.amount) }
|
||||
? { territory: String(action.territory), sector: Number(action.sector), amount: Number(action.amount) }
|
||||
: null;
|
||||
return promises.every(
|
||||
(promise) => matchesShipment(promise, shipment) === promise.answer,
|
||||
|
||||
Reference in new issue
Block a user