harvest/game
Forrest 13efe6603f Task #12: animals start loose; herd into the player-built pen
Adds LootSystem.Status.LOOSE: animals now start scattered at GameConfig.
animal_loose_spots outside the pen rect and graze in place (AnimalSystem,
anchored to their own spot instead of the pen) instead of starting HOME or
escaping down the field. A thief can still claim and carry a loose animal
off (same DROPPED/escape rules as before); the scarecrow's existing
follow-trail recovery now also picks up a loose animal directly, and
entering the pen makes it HOME as before.

FarmState gains penned_animals (which ids are currently penned), set
whenever an animal becomes HOME (led in, or auto-returned at the dawn
grace) and cleared when it's lost. LootSystem.sync_from_state() uses it
each morning/retry/load to restore penned animals HOME and leave the rest
LOOSE, instead of resetting the whole herd into the pen. Bumped FarmState.
VERSION to 5 with a migration step that pens every surviving animal for
older saves (which always kept them in the pen).

test_targets.gd's existing pen-mechanics suite (containment, straying,
leading in) now pens every animal up front to keep covering that
behavior; a new _loose_start check covers the loose start itself: animals
spawn loose and scattered, graze in place, a thief can still claim and
steal a loose one, leading one in with the follow-trail mechanic pens it,
and a morning resync keeps the penned one home and the rest loose.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-05 15:13:20 -04:00
..
resources Task #15 follow-up: shrink night 5's UFO group to a modest 7 2026-10-05 14:46:55 -04:00
scenes Task #11: Animal Pen boundary becomes player-built 2026-10-05 14:34:02 -04:00
scripts Task #12: animals start loose; herd into the player-built pen 2026-10-05 15:13:20 -04:00
tests Task #12: animals start loose; herd into the player-built pen 2026-10-05 15:13:20 -04:00
tools Co-op voice/session work, config retune, net budget tool, overhaul plan 2026-10-05 13:35:53 -04:00
COOP.md Co-op voice/session work, config retune, net budget tool, overhaul plan 2026-10-05 13:35:53 -04:00
LAYOUT.md updates 2026-10-04 12:07:36 -04:00
PLAYTEST.md updates 2026-10-04 12:07:36 -04:00
RULES.md updates 2026-10-04 17:30:48 -04:00