feat: Finishing polish + Audio gestion

This commit is contained in:
gauvainboiche
2026-10-25 22:12:27 +01:00
parent c55e5a2484
commit 7a525d084a
6 changed files with 189 additions and 8 deletions
+3 -3
View File
@@ -145,8 +145,8 @@ Most of the pool is shared. A scenario can add cards visible only in that scenar
|---|---|
| `go test ./server` | scenario index (id equals the file name, localized name, listed and present), card schema including `scenarios`, i18n. **The economy, sectors, indicators and taxes of a scenario other than `default` are not covered by Go tests**: use the tools below. |
| `node tools/engine-check.mjs` | engine rules (uses `default.json`) |
| `node tools/scenario-check.mjs <id>` (new) | prints the start fiscal picture (revenue, sector spending, interest, deficit, debt) and a one-year hands-off drift; warns when the start is far from balanced. The draft warns for a deficit above 2, debt above 110, sector ratios outside 0.5 to 1.5, indicators outside 5 to 95, and exits with 1 on any warning. |
| `node tools/balance-check.mjs 24 --check --scenario <id>` (new) | plays the scenario with the standard player types and compares them to the bands in `balance-check.mjs` (about 30 s) |
| `node tools/scenario-check.mjs <id>` | prints the start fiscal picture (revenue, sector spending, interest, deficit, debt) and a one-year hands-off drift; warns when the start is far from balanced. The draft warns for a deficit above 2, debt above 110, sector ratios outside 0.5 to 1.5, indicators outside 5 to 95, and exits with 1 on any warning. |
| `node tools/balance-check.mjs 24 --check --scenario <id>` | plays the scenario with the standard player types and compares them to the bands in `balance-check.mjs` (about 30 s) |
Compare the hands-off drift with the default (about -5 on opinion, stability and economy, +8 unrest in a year). A scenario that
collapses or ignores a year of inaction was built on the wrong numbers.
@@ -190,7 +190,7 @@ near +0.5); run `scenario-check` on the real values.
## Assumptions
- The `scenarios` card field, `scenario-check.mjs` and `--scenario` behave as specified; the draft code in `tools/` was read for thresholds and may change.
- The `scenarios` card field, `scenario-check.mjs` and `--scenario` exist and were exercised on the default scenario only; a second scenario has not been played yet.
- The targets file is read as `{ "notes": "...", "targets": { player: {...} } }` (what `balance-check.mjs` reads today), and a player entry replaces the default entry whole (shallow merge), so restate every band you keep.
- Go tests currently load only `default.json` for economy, sector and card-condition checks.
- Shared card text names Valdoria; the guide treats this as a known limit, not something a scenario can fix.