harvest/game/tests
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
..
pen_ring.gd Task #11: Animal Pen boundary becomes player-built 2026-10-05 14:34:02 -04:00
pen_ring.gd.uid Task #11: Animal Pen boundary becomes player-built 2026-10-05 14:34:02 -04:00
run_tests.gd updates 2026-10-04 12:07:36 -04:00
run_tests.gd.uid init 2026-10-03 12:14:28 -04:00
test_campaign.gd updates 2026-10-04 12:07:36 -04:00
test_campaign.gd.uid init 2026-10-03 12:14:28 -04:00
test_coop.gd Co-op voice/session work, config retune, net budget tool, overhaul plan 2026-10-05 13:35:53 -04:00
test_coop.gd.uid updates 2026-10-04 12:07:36 -04:00
test_cycle.gd Task #11: Animal Pen boundary becomes player-built 2026-10-05 14:34:02 -04:00
test_cycle.gd.uid updates 2026-10-04 12:07:36 -04:00
test_economy.gd updates 2026-10-04 12:07:36 -04:00
test_economy.gd.uid updates 2026-10-04 12:07:36 -04:00
test_farm_layout.gd updates 2026-10-04 12:07:36 -04:00
test_farm_layout.gd.uid init 2026-10-03 12:14:28 -04:00
test_farm_state.gd Task #11: Animal Pen boundary becomes player-built 2026-10-05 14:34:02 -04:00
test_farm_state.gd.uid init 2026-10-03 12:14:28 -04:00
test_flow.gd Enemy roster reskin: thief -> Alien, breaker -> Alien Robot display names 2026-10-05 13:48:00 -04:00
test_flow.gd.uid updates 2026-10-04 12:07:36 -04:00
test_nights.gd updates 2026-10-04 12:07:36 -04:00
test_nights.gd.uid updates 2026-10-04 12:07:36 -04:00
test_outcome.gd updates 2026-10-04 12:07:36 -04:00
test_outcome.gd.uid init 2026-10-03 12:14:28 -04:00
test_roster.gd Task #11: Animal Pen boundary becomes player-built 2026-10-05 14:34:02 -04:00
test_roster.gd.uid updates 2026-10-04 12:07:36 -04:00
test_save.gd Enemy roster reskin: thief -> Alien, breaker -> Alien Robot display names 2026-10-05 13:48:00 -04:00
test_save.gd.uid updates 2026-10-04 12:07:36 -04:00
test_scarecrow.gd updates 2026-10-04 12:07:36 -04:00
test_scarecrow.gd.uid updates 2026-10-04 12:07:36 -04:00
test_structures.gd Task #11: Animal Pen boundary becomes player-built 2026-10-05 14:34:02 -04:00
test_structures.gd.uid updates 2026-10-04 12:07:36 -04:00
test_targets.gd Task #11: Animal Pen boundary becomes player-built 2026-10-05 14:34:02 -04:00
test_targets.gd.uid updates 2026-10-04 12:07:36 -04:00
test_theft.gd updates 2026-10-04 12:07:36 -04:00
test_theft.gd.uid updates 2026-10-04 12:07:36 -04:00
test_weapons.gd updates 2026-10-04 17:30:48 -04:00
test_weapons.gd.uid updates 2026-10-04 12:07:36 -04:00