Add whole-territory Truthtrance force questions
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 03:37:52 +11:00
1 parent 7552bb5394
commit f1007a4ea8
9 files changed
+149 -21

No files matched your search

+7 -1
View File
@@ -33,12 +33,18 @@ export function ForceCountFields({ value, game, player, onChange }: {
const kind = event.target.value;
onChange({ ...value, zone: kind === 'location'
? { kind, territory: territories[0].id, sector: territories[0].sectors[0] }
: { kind: kind as 'reserves' | 'tanks' } });
: kind === 'territory' ? { kind, territory: territories[0].id }
: { kind: kind as 'reserves' | 'tanks' } });
}}>
<option value="reserves">Reserves</option>
<option value="tanks">Tleilaxu Tanks</option>
<option value="territory">Entire board territory</option>
<option value="location">One board location</option>
</select></label>
{value.zone.kind === 'territory' &&
<label>Force territory<select value={value.zone.territory} onChange={event =>
onChange({ ...value, zone: { kind: 'territory', territory: event.target.value } })
}>{territories.map(t => <option key={t.id} value={t.id}>{t.name}</option>)}</select></label>}
{value.zone.kind === 'location' && <>
<label>Force territory<select value={value.zone.territory} onChange={event => {
const target = territories.find(t => t.id === event.target.value)!;