Extend conditional battle questions across previews
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
0e52c25355
commit
50703664cf
13 files changed
+336
-24
No files matched your search
@@ -37,9 +37,9 @@ export function TruthFutureBattleLeader({ game, target, leader, available, busy,
|
||||
</select>
|
||||
</label>}
|
||||
<blockquote data-testid="truth-future-battle-leader-preview">
|
||||
If you fight a battle later this turn, will you use {selected?.name ?? '[leader]'} in your first such battle?
|
||||
If you submit a battle plan later this turn, will you use {selected?.name ?? '[leader]'} in your first such battle?
|
||||
</blockquote>
|
||||
<p className="notice">If you do not fight a later battle this turn, there is no opportunity to use that leader.</p>
|
||||
<p className="notice">If you submit no later battle plan this turn, there is no opportunity to use that leader.</p>
|
||||
<Button className="game-action" data-testid="truth-future-battle-leader-ask" disabled={blocked}
|
||||
onClick={() => { if (!blocked) onAsk(target, leader); }}>Ask publicly</Button>
|
||||
</>;
|
||||
@@ -53,8 +53,8 @@ export function FutureBattleLeaderPromises({ game }: {game: GameView}) {
|
||||
return <section className="notice" aria-label="Your conditional battle answer">
|
||||
{promises.map((row, index) => <p key={`${row.turn}-${row.player}-${index}`}>
|
||||
Your Truthtrance answer commits you to {row.answer ? 'use' : 'not use'}{' '}
|
||||
{game.allLeaders.find(leader => leader.id === row.leader)?.name ?? row.leader} in your first later battle this turn.
|
||||
{row.status === 'waiting' ? ' If you fight no battle, there is no opportunity.' : ' This battle is the opportunity.'}
|
||||
{game.allLeaders.find(leader => leader.id === row.leader)?.name ?? row.leader} in the first battle for which you submit a plan this turn.
|
||||
{row.status === 'waiting' ? ' If you submit no battle plan, there is no opportunity.' : ' This battle is the opportunity.'}
|
||||
</p>)}
|
||||
</section>;
|
||||
}
|
||||
Reference in new issue
Block a user