Commit graph

29 commits

Author SHA1 Message Date
Forrest
d68d37b40f Merge task #5: hidden/reveal shop items gated on Alien Goop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:40:37 -04:00
Forrest
df096dc3fa Plan/tasks: #12 uses a new calm loose state, penned set persisted in FarmState
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:40:29 -04:00
Forrest
45f3e83e54 Task #5: generic hidden/reveal shop item system
An item definition in GameConfig.upgrades can set "hidden": true
(optionally its own "reveal_goop", else the new config-tunable
hidden_reveal_goop) so the workbench shows only a bare "?" (no name,
text, or cost), disabled, until the player has collected that much
Alien Goop in total. Upgrades.goop_collected()/revealed() derive this
from FarmState.totals() (completed nights) plus night_events (the
current cycle), so it persists through save and retry without any new
stored state. blocker() and buy() both gate on it (covering the co-op
buy-request path too), and UpgradePanel.refresh() shows the "?" row.

No real upgrade ships hidden yet; #7/#8 (Alien Ray, Radar) will use
this mechanism. Test flags a duplicated long_range/sticky_tar hidden
to exercise it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-05 14:38:42 -04:00
Forrest
8c9097d75e Plan: #12 can't start animals DROPPED as-is (they run off the map); needs a design decision
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:38:42 -04:00
Forrest
c0a740860c tasks: check off #11; note pen playtest findings in follow-ups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:37:05 -04:00
Forrest
43300a15de Merge task #11: Animal Pen boundary is player-built
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:35:10 -04:00
Forrest
eb89268b66 Task #11: Animal Pen boundary becomes player-built
Delete the 23 fence_024 scene props (and their unused ext_resource) from
Zones/AnimalPen in farm.tscn -- their StaticBody3D colliders permanently
walled the pen in FarmNavigation.build(), so today they're the only thing
enclosing it. FarmZone.Kind.ANIMAL_PEN and AnimalSystem.update_pen_open()
already drive the open/closed check; players now build ordinary fence/gate
structures around the existing pen rect to close it.

Remove the free starting gate from GameConfig.start_structures (now an
empty array): the pen is fully player-built, nothing stands at the start.

Add game/tests/pen_ring.gd, a shared helper with the pen rect's 24-piece
fence/gate layout (the same positions the deleted props and the old
starting gate used to occupy), built through StructureSystem's normal
validate/place path at normal cost.

Rework the pen tests that assumed a pre-built pen:
- test_structures.gd gets a new _pen_boundary check (open with nothing
  built, open with a gap, shut once the ring is complete -- the task's
  acceptance test) and builds the ring there for the rest of the suite;
  _breakout no longer assumes the gate specifically breaks (a retreating
  thief now follows a global escape-to-map-edge field across equally
  breakable ring pieces, not a single gap in a solid wall), checking
  whichever piece breaks and that patching it shuts the pen again.
- test_targets.gd builds the full ring in setup (gate first, so it keeps
  structure id 1) and spawns the animal thief near the gate so its
  "breaks the gate" narrative still holds.
- test_roster.gd's fence-breaker test places only the gate (not the full
  ring): FarmSim._breaker_goals() treats every structure near a zone as
  "guarding" it, so a full ring would turn its two-barriers-then-the-
  scarecrow narrative into twenty-five.
- test_farm_state.gd and test_cycle.gd's stale "the pen's gate" wording
  and assumptions are updated for the empty start_structures.

No new FAIL lines versus the pre-existing baseline (one known-flaky
test_roster check aside, confirmed to pass on isolated reruns).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-05 14:34:02 -04:00
Forrest
943dab626e Plan/tasks: UFOs appear in night 5 only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:30:53 -04:00
Forrest
30e64ebeec tasks: check off #4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:26:14 -04:00
Forrest
2fa3aa305f Merge task #4: Alien Goop resource and drop-on-kill
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 14:24:26 -04:00
Forrest
1ab666e5e4 Task #4: Alien Goop resource and drop-on-kill from Aliens
Add alien_goop as a 4th ResourceStore material alongside wood/scrap/straw,
dropped only by killed Aliens (TYPE_THIEF) at a config-tunable rate/quantity
(GameConfig.alien_goop_drop_chance default 0.33, alien_goop_drop_qty default
1), credited straight into the pouch like a gathered material via a new
enemy_removed hook in FarmSim (seeded RNG for reproducible trials). It's
stealable from the shed through the existing most-stocked-material sack
mechanic once it outranks the others (ShedStock gets a placeholder front/
label spot for it, reusing the wood pile's proven-walkable spot; no new art).

ResourceStore.from_dict() now treats a shed/pouch entry missing a material
as 0 instead of rejecting it (old saves predate Alien Goop), and to_dict()
always fills in every material so round-trips are consistent regardless of
how the live dict was built; every method summing across MATERIALS reads
with get(m, 0) so a hand-built 3-key dict elsewhere doesn't error out.

New checks in test_economy.gd: _goop_persistence (retry discards goop
gained since the morning; the morning snapshot round-trips through JSON)
and _goop_drops (1000-kill statistical drop-rate check against config,
type restriction to Aliens only, pouch-capacity-respecting credit, and
shed-theft eligibility). Updated _state()'s and test_cycle.gd's hardcoded
3-key shed dicts for the new 4th material.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-05 14:23:22 -04:00
Forrest
aa50e97311 tasks: check off #14; #11 removes the starting gate and reworks pen tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:54:24 -04:00
Forrest
02117d8b9c Plan: pen fence is collidable, not decoration; flag #11 starting-gate and test rework
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:52:42 -04:00
Forrest
814449afff Merge task #14: enemy roster display names (Alien / Alien robot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:51:27 -04:00
Forrest
a48762aa66 Fix wave_director entry_label: restore crop-target thief label, drop dead const
entry_label() dropped the CROP arm when the thief-wave labels were
reworded, so a thief wave targeting crops fell through to the generic
"Aliens" instead of naming its target. Add "Aliens after the crops" and
update the doc comment. Also delete TARGET_NAMES, left unused after that
rework (git grep confirms no other references).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-05 13:51:08 -04:00
Forrest
8146567aac Enemy roster reskin: thief -> Alien, breaker -> Alien Robot display names
Renames player-visible text only (toasts, HUD hints, wave labels, night
and scenario titles, tutorial tips, review/end panel text): thief/thieves
display as alien/aliens, fence breaker/fence breakers display as alien
robot/alien robots. Crows keep their name; night 1's dusk hint and night
3's hint get brief alien-mind-control framing. All TYPE_* ids, "thief"/
"breaker"/"crow" data keys, class/function/variable names, and code
comments are unchanged. Adds EnemySystem.ARTICLES so "a"/"an" still
agrees with the new names. Updates the two tests that assert the old
display strings (test_flow.gd, test_save.gd); test_roster.gd and
test_theft.gd are untouched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-05 13:48:00 -04:00
Forrest
8e3ff277f3 tasks: check off #2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:47:17 -04:00
Forrest
47b860b1af Merge task #2: sprint rebalance to 1.8x / 4 s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:45:38 -04:00
Forrest
477e6c8918 tasks: check off #1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:45:38 -04:00
Forrest
7fce79663f Merge task #1: Turret/Tar patch display labels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:43:53 -04:00
Forrest
d66a8af330 Sprint rebalance: 1.6x/3s -> 1.8x/4s (spec values)
Updates sprint_speed_mult and sprint_time in game_config.gd to match
the spec (Decision 9 in alien-overhaul-plan.md); cooldown already
matched at 10s. Updates the Sprint upgrade description text in both
game_config.gd and game_config.tres to reflect the new numbers.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-05 13:43:35 -04:00
Forrest
1b723eb925 Rename Turret/Tar Patch display labels
Change UI-visible names for automated_defense ("Turret") and
slowing_trap ("Tar patch") in StructureSystem.NAMES, plus the
matching upgrade descriptions in game_config.gd/.tres. Internal
dictionary keys/ids are unchanged for save compatibility.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-05 13:43:31 -04:00
Forrest
52b4d57b6a Add docs/followups.md: out-of-scope gaps from the overhaul review
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:41:58 -04:00
Forrest
fb90f3ecc6 Add docs/tasks.md: alien overhaul task list recovered from planning session
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:37:55 -04:00
Forrest
6ff139a036 Plan: resolve Workbench wiring as option (a)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:36:02 -04:00
Forrest
39f9d15cfe Co-op voice/session work, config retune, net budget tool, overhaul plan
Snapshot of in-progress work before the alien overhaul so worker
worktrees branch from current code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:35:53 -04:00
Forrest
2e6638b744 updates 2026-10-04 17:30:48 -04:00
Forrest
4298caf5cb updates 2026-10-04 12:07:36 -04:00
Forrest
276d43613d init 2026-10-03 12:14:28 -04:00