From df096dc3fa7c6536ea5d187bae3a0966d7eec9cb Mon Sep 17 00:00:00 2001 From: Forrest Date: Mon, 5 Oct 2026 14:40:29 -0400 Subject: [PATCH] Plan/tasks: #12 uses a new calm loose state, penned set persisted in FarmState Co-Authored-By: Claude Opus 5.5 --- alien-overhaul-plan.md | 5 ++++- docs/tasks.md | 16 +++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/alien-overhaul-plan.md b/alien-overhaul-plan.md index 6ffc588..1429df0 100644 --- a/alien-overhaul-plan.md +++ b/alien-overhaul-plan.md @@ -113,7 +113,10 @@ or during their task: non-lost animal to HOME each morning and FarmState only persists `lost_animals` — so "loose, not reset into the pen each morning" needs a persisted per-animal penned/loose record in FarmState. Needs a design decision (calm "loose" grazing behavior vs. literal DROPPED) before #12 is - dispatched. + dispatched. **Resolved 2026-10-05: calm grazing outside** — a new calm loose state: animals start + scattered outside the pen and graze in place until led in; Aliens can still steal them; an animal + an Alien drops still runs for the edge (existing DROPPED behavior unchanged); FarmState persists + which animals are penned so loose ones stay loose across mornings, save, and retry. - **Supply Shed as a real purchase UI**: the review flagged that `shed_stock.gd` is currently just a stockpile zone, not a store — all purchasing happens through the Workbench's `UpgradePanel`. Proceeding on the assumption that Supply Shed becomes its own purchase surface for weapons/items diff --git a/docs/tasks.md b/docs/tasks.md index 4ddd8c3..3210e6b 100644 --- a/docs/tasks.md +++ b/docs/tasks.md @@ -140,10 +140,16 @@ this overhaul; judge tasks by *new* FAIL lines versus the baseline, not by a zer active enemy positions, hidden before purchase. - [ ] **#12 Animals start loose; herd into the player-built pen.** Blocked by #11. - Set animals' initial status to the existing DROPPED/loose state (not HOME — that already means - in-pen grazing in animal_system.gd) in setup()/sync_from_state(), so they start loose across the - open farm rather than resetting into a fixed pen each morning. Reuse the existing follow-trail - mechanic (start_following/_follow) so the player can herd them into the pen once its boundary is - built (#11). Handle the "no pen built yet" state for escape/theft logic. + *(Reworked 2026-10-05: reusing DROPPED as-is doesn't work — DROPPED animals inside the pen rect + flip straight back to HOME, and outside it they walk to the map edge and are lost in any phase. + User chose "calm grazing outside".)* Add a new calm loose status (e.g. `LootSystem.Status.LOOSE`): + animals start scattered in open farmyard outside the pen rect and graze in place (HOME-style + wandering around their spot, not down `escape_field`) until the player leads them in with the + existing follow-trail mechanic (start_following/_follow) — entering the pen makes them HOME. + Aliens can still claim/steal loose animals; an animal an Alien drops stays DROPPED (unchanged: + runs for the edge). Persist which animals are penned in FarmState (to_dict/from_dict, morning + snapshot) so `sync_from_state()` restores penned animals HOME and the rest LOOSE each morning, + instead of resetting everyone into the pen. Handle the "no pen built yet" state for escape/theft + logic. *Acceptance:* new test confirming animals spawn loose at campaign start, can be led into a freshly-enclosed pen, and behave per existing containment/escape/theft rules once penned.