Support Truthtrance No-Field shipment promises
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 10:07:00 +11:00
1 parent 9ab9b9a613
commit 7fccd62814
16 files changed
+658 -32

No files matched your search

+5 -1
View File
@@ -32,6 +32,7 @@ import {
shipmentPromiseModeSupported,
shipmentPromiseTurnAvailable,
parseShipmentClaim,
shipmentClaimHasNoField,
shipmentClaimText,
ShipmentClaimError,
} from './shipment-promises';
@@ -606,7 +607,10 @@ function parseQuestion(g: Game, asker: string, value: unknown): TruthQuestion {
return {kind:'mixedShipment',target:v.target,mixed:parseMixedShipmentExpression(v.mixed,
fact => parseFact(g,fact,respondent))};
}
return { kind: 'shipment', target: v.target, ...parseShipmentClaim(v) };
const claim = parseShipmentClaim(v);
check(!shipmentClaimHasNoField(claim) || g.players.find(p => p.id === v.target)?.faction === 'richese',
'A No-Field shipment question needs the Richese player.');
return { kind: 'shipment', target: v.target, ...claim };
} catch (error) {
if (error instanceof ShipmentClaimError)
throw new TruthError(error.message);