Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9ee96a7
docs: P4b (Balance & Planning Rework) design spec
emp3thy May 13, 2026
209d542
docs: P4b (Balance & Planning Rework) implementation plan
emp3thy May 13, 2026
5b31dde
engine: extend schema and bump balance values for P4b
emp3thy May 13, 2026
9e43d81
engine: orders.ts handles deploy-defence + flat woo + one-per-target …
emp3thy May 13, 2026
acbcb15
engine: builds.ts two-stage defence (build then deploy)
emp3thy May 13, 2026
7c18994
engine: launches.ts intercept reads deployed pool; intercept decremen…
emp3thy May 13, 2026
4fa5bd8
engine: clear deployed pool at round end; emit DefenceConsumed events
emp3thy May 13, 2026
605db7e
engine: chump AI — flat woo + deploy-or-build defence rule
emp3thy May 13, 2026
175895c
engine: starmless AI — flat woo + deploy-or-build defence rule
emp3thy May 13, 2026
4fea0d8
engine: mileigh-hem AI — flat woo
emp3thy May 13, 2026
28efd90
tests: ai-duel comment notes P4b rule change invalidates baseline
emp3thy May 13, 2026
b66f6ba
engine/ui: fix diplomacy.ts + UI stubs for DefenceDeployed/Consumed +…
emp3thy May 13, 2026
a2d49cf
tests: orders/diplomacy/analyseOrderSequence/scripted-orders — flat w…
emp3thy May 13, 2026
a67f6b3
tests: resolution/reducer/OrderForm — update hardcoded AP/cost values…
emp3thy May 13, 2026
f6adfc1
ui: tighten DefenceConsumed event — not rendered on Action (round-end…
emp3thy May 13, 2026
7641318
ui: projectInventory helper — queue-aware inventory projection
emp3thy May 13, 2026
39364a7
ui: BuildGrid component — Factory/Missile/Bomber/Warhead stepper grid
emp3thy May 13, 2026
7c79ac0
ui: DefenceGrid component — build/deploy shields and AA
emp3thy May 13, 2026
459e9e1
ui: LaunchCell component — single (delivery × yield) launch cell
emp3thy May 13, 2026
e595d63
ui: TargetRow component — per-target diplomacy + launch grids
emp3thy May 13, 2026
8ac74ba
ui: restore emoji prefixes on TargetRow diplomacy buttons + row labels
emp3thy May 13, 2026
8b2b630
ui: Planning full rewrite — action-card grid; delete OrderForm + Lead…
emp3thy May 14, 2026
757572d
docs: Phase 4b status note in README
emp3thy May 14, 2026
b66b093
polish: fold final-review nits
emp3thy May 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,21 @@ What's NOT in this phase (deferred to P4b / P5):
- Audio (`play(name)` wrapper, sfx + ambient music) — P5
- SVG art (leader portraits, world map, Freedonia flag, mushroom-cloud illustration, ruined-iconography) — P5
- PWA manifest + service worker — P5

## Phase 4b status

Phase 4b (Balance & Planning Rework) doubles the AP economy, makes defences consumable (build + deploy = 8 AP all-in), rewrites the Planning screen as an action-card grid, and simplifies woo/propaganda to flat 1-AP toggles. Verification: `npm run test:run` (246 tests).

What's in this phase:

- **AP economy doubled** — startAp ×2 for every leader; FACTORY_AP_RATE 0.5 → 1.0; AP_BANK_CAP 2 → 4. ACTION_COSTS unchanged (math-equivalent to halving costs, no fractions).
- **Consumable defences** — new `deploy-defence` order kind. Build 4 AP adds to stockpile; deploy 4 AP moves stockpile → round-scoped deployed pool. `interceptProbability` reads the deployed pool. Deployed pool clears at round end regardless of intercept (deploy = commit).
- **Planning UI rewrite** — replaces the order-kind dropdown + queue list with `<BuildGrid>` + `<DefenceGrid>` + `<TargetRow>` (one per opponent). Each cell has a +/- stepper bound to a count of that order kind. Per-target rows show 6 launch combos (3 yields × 2 deliveries), each with projected warhead inventory. Mood quote renders under each target's name.
- **Woo + Propaganda flat toggles** — both 1 AP, one per target per round. Dropped the points dimension on woo.

What's NOT in this phase (deferred to P4c / P5):

- AI scoring-weight balance pass against the new rules baseline — P4c (was P4b)
- Approach B / C lookahead upgrades — P4c
- Threat-aware defence deployment per personality — P4c
- Persistence, animations, audio, SVG art, PWA — P5
Loading
Loading