harvest/docs/followups.md
Forrest 1ccf825bbf tasks: check off #3; log the flaky test_roster check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:52:54 -04:00

60 lines
3.9 KiB
Markdown

# Alien overhaul — follow-ups (outside docs/tasks.md scope)
Ideas and gaps noticed during the overhaul that no task in `docs/tasks.md` covers. Not scheduled;
promote to a task only with the user's say-so.
## Docs sweep after renames/rebalances
Batch 1 workers changed in-game text only, so the player-facing docs still describe the old names
and numbers (kept out of Batch 1 so no two workers edited `game/RULES.md` at once):
- `game/RULES.md` — sprint 1.6x / 3 s (lines ~263, ~331); "Slowing trap" / "Automated defense"
(~288, ~333-334, ~361-362); thief / fence breaker enemy descriptions, alert examples, night
titles.
- `game/README.md`, `game/PLAYTEST.md`, `game/first-game.md` — structure names
(`game/first-game-plan.md` is a historical design doc; probably leave it).
- `game/scripts/campaign_debug.gd` — the developer-only F1/F2 debug readout still says
"Thieves", "thief/crow/breaker" (#14 left dev-facing text alone).
- Code comments with example output ("50 crows, 20 thieves and 6 fence breakers" in
`assessment.gd`, `phase_hud.gd`, `farm_sim.gd`) now describe stale wording.
- `game/LAYOUT.md` — the Animal Pen row still describes the brown paddock fence and the starting
gate (both removed by #11).
## Playtest after #11 (player-built pen)
- A thief escaping a fully fenced pen breaks whichever ring piece is nearest its route to the map
edge (the escape field is global), not necessarily the gate — the old scene fence funnelled
every escape through the gate.
- `FarmSim._breaker_goals()` treats every structure within `guard_range` of a zone as "guarding"
it, so a full 24-piece player-built pen gives fence breakers up to 24 guarding targets before
they turn on the scarecrow (it used to be the one gate). test_roster builds only the gate to keep
its old narrative; real nights with a full ring are untested. Possible tuning: count only gates,
or cap guarding goals per zone.
## UFOs (#15)
- `game/resources/scenarios/ufos.tres` exists but isn't in `CampaignDebug.SCENARIOS` (F2 cycling):
adding it means updating test_roster's hardcoded 6-scenario check.
- UFOs render with the crow's placeholder bird mesh and reuse the crow's arrival sound.
- Night plans scale counts per night, not per group: the smallest UFO group at the default
`wave_count_scale` 7 is 7 UFOs.
## Spec items from the review with no task
- **Straw Bandages**: the spec's upgrade exists as "Straw stuffing" (+2 max HP, 3 → 5, numbers
already match). Display rename not in any task; heal-on-purchase unspecified.
- **Fear upgrade**: the spec has one; the game has two (`wide_fear` +30% radius, `quick_fear` 20%
faster recharge). Keep the split or consolidate — undecided.
- **Rapid Fire scope**: live value is 3.0x (`game_config.tres`), matching the spec, but it only
applies to the Corn Shooter (`requires: corn_shooter`). Undecided whether it should cover the new
weapons from #7. Also `game_config.gd`'s default (1.333, "fires a third faster") is stale versus
the `.tres` (3.0, "fires 3x faster!!!!!") — harmless at runtime, confusing to read.
## Housekeeping
- Flaky check: test_roster "'All three' sends in crows, thieves, and a fence breaker" fails in
roughly a third to a half of runs on unchanged code (seen at 7fce796, 814449a, 5b72e83; isolated
reruns pass). The debug scenario's enemy-type roll is time-seeded (`randomize()`); seeding it in
the test would make it deterministic.
- Plan says 23 `fence_024` instances under `Zones/AnimalPen`; `farm.tscn` contains 24 `fence_024`
references in total — #11's explorer should confirm which belong to the pen.
- Baseline before the overhaul (2026-10-05, `fb90f3e`): 891 checks pass, 25 fail, plus one
`SCRIPT ERROR: Invalid access to property or key 'outside' on a base object of type 'Nil'`
during `test_economy`. Up from 22-23 on 2026-10-04 — the extra failures arrived with the
committed co-op/retune work, cause not investigated.