Support Truthtrance No-Field shipment promises
Verify and publish checkpoint container / container (push) Canceled after 0s
Verify and publish checkpoint container / container (push) Canceled after 0s
This commit is contained in:
1 parent
9ab9b9a613
commit
7fccd62814
16 files changed
+658
-32
No files matched your search
+3
-1
@@ -4642,7 +4642,9 @@ export function botActions(g: GameView): Action[] {
|
||||
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), sector: Number(action.sector), amount: Number(action.amount) }
|
||||
? { territory: String(action.territory), sector: Number(action.sector),
|
||||
amount: action.noField ? Number(action.noFieldReserves ?? 0) + Number(action.smuggler === true) : Number(action.amount),
|
||||
...(action.noField ? {noField: true as const} : {}) }
|
||||
: null;
|
||||
return promises.every(
|
||||
(promise) => matchesShipment(promise, shipment) === promise.answer,
|
||||
|
||||
Reference in new issue
Block a user