From f1007a4ea81c7edc47bf824b9bdcbd8cc527ce49 Mon Sep 17 00:00:00 2001
From: Quintine <15965533+Quintine@users.noreply.github.com>
Date: Thu, 29 Oct 2026 03:37:52 +1100
Subject: [PATCH] Add whole-territory Truthtrance force questions
---
components/truthtrance-force-count.tsx | 8 ++++-
docs/CURRENT_STATUS.md | 10 ++++++
docs/TRUTHTRANCE_FORCE_FACTS.md | 28 ++++++++++++----
game/faction-reference.ts | 2 +-
game/reference.ts | 8 ++---
game/truthtrance-force-count.ts | 38 +++++++++++++++++-----
tests/truthtrance-force-controls.test.tsx | 13 +++++++-
tests/truthtrance-force-count.test.ts | 24 ++++++++++++++
tests/truthtrance-force-engine.test.ts | 39 +++++++++++++++++++++++
9 files changed, 149 insertions(+), 21 deletions(-)
diff --git a/components/truthtrance-force-count.tsx b/components/truthtrance-force-count.tsx
index fd8a8c39..aee080cc 100644
--- a/components/truthtrance-force-count.tsx
+++ b/components/truthtrance-force-count.tsx
@@ -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' } });
}}>
+
+ {value.zone.kind === 'territory' &&
+ }
{value.zone.kind === 'location' && <>