Extend conditional battle questions across previews
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 02:21:12 +11:00
1 parent 0e52c25355
commit 50703664cf
13 files changed
+336 -24

No files matched your search

+2 -2
View File
@@ -610,7 +610,7 @@ function parseQuestion(g: Game, asker: string, value: unknown): TruthQuestion {
v.turn === g.turn && typeof v.leader === 'string' &&
leaders(target.faction).some(leader => leader.id === v.leader) &&
futureBattleLeaderWindow(g),
'Choose a native leader in a quiet Basic Storm, Spice Blow, Charity, Bidding, Revival or Shipment and Movement window.');
'Choose a native leader in a supported quiet Storm, Spice Blow, Charity, Bidding, Revival or Shipment and Movement window.');
return { kind: 'futureBattleLeader', target: v.target, turn: g.turn, leader: v.leader };
}
if (v.kind === 'battlePlan') {
@@ -816,7 +816,7 @@ export function truthQuestionText(
if (q.kind === 'battlePlan')
return `In this battle in ${locationName(q.territory)}, will it be true that ${planClaimText(q.claim, leaderName)}?`;
if (q.kind === 'futureBattleLeader')
return `If you fight a battle later this turn, will you use ${leaderName(q.leader)} in your first such battle?`;
return `If you submit a battle plan later this turn, will you use ${leaderName(q.leader)} in your first such battle?`;
const clause = (f: TruthFact): string => {
if (isKnowledgeFact(f)) return knowledgeFactText(f);
if (f.kind === 'noFieldValue') return noFieldValueFactText(f);