9.5 KiB
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.mdis 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 withinguard_rangeof 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.
Weapons (#7)
- Only
weapon_1/weapon_2input actions exist, so the Potato Cannon, Shurikens, Propane Torch, and Alien Ray are reachable only by Tab / d-pad cycling. Direct keys need new input actions (weapon_3..6) in project.godot. - Co-op:
FarmProjectiles.advance_replica()moves the partner's view of every shot at the globalprojectile_speed, not the new per-shot speed — cosmetic only (damage resolves on the host). The Propane Torch replays the shared "kick" attack animation on every damage tick while held (a wobble, not a flame effect) — placeholder until it gets real visuals.Resolved by #17.shuriken_count> 1 fires every shuriken along the same line (no spread), though its comment says "tunable up for a spread". Default is 1, so no gameplay impact today.
Workbench (#9)
FarmNavigation._rasterize_into()now tags a structure id even over cells already blocked by scene collision (needed because the granted Workbench sits on its table prop's own collider). Side effect: a player structure built flush against a wall also tags the wall cells in its inflate band — movement is unchanged (still blocked), only barrier detection sees it. Cleaner long-term: exclude the Workbench table's collider from the nav bake so the structure owns its cells.- The Workbench is unconditionally a fence-breaker goal while unbroken (it never falls within
guard_rangeof the pen/shed/crop fields). Playtest whether breakers trekking to the house is fun. game/LAYOUT.md's Work Area row (8…14, −24…−15) is stale: the zone sits at ~(28.6, −25.3).
Structure levels (#10)
- Upgrading a turret/tar patch is daytime-only (a judgment call — repair stays any-phase). Flip by
dropping the
campaign.is_daytime()checks ininteractions.gd's upgrade path.
Crop fields (#13)
Resolved by #20 (ThiefBehavior.field_rectis now the bounding box of all three crop fields.field_rects, one per field).- test_farm_layout's MAX_TRAVEL sanity bound went 12 → 13 s (Lettuce Field ↔ Scrap Heap is 12.6 s).
Resolved by #20.game/LAYOUT.md's zone table and "Crop units" section don't list the two new fields.
Loose animals (#12)
- A pre-overhaul save (FarmState v4) migrates with every surviving animal penned — but since #11 the pen has no scene fence, so unless that save's structures already enclose the pen, those animals stand in an open pen and stray at night. Only affects saves made before the overhaul.
UFOs (#15)
game/resources/scenarios/ufos.tresexists but isn't inCampaignDebug.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.Resolved by #19 (saucer mesh, own renderer/shader,ufo_arrivecue).- Night plans scale counts per night, not per group: the smallest UFO group at the default
wave_count_scale7 is 7 UFOs.
Post-overhaul fix batch (#16–#22, 2026-10-06)
Co-op / pouch (#16):
- test_coop's loopback drops every n-th message by a running count that includes reliable ones,
so new traffic shifts which messages drop (#16 had to reset it in
_crowd). Seeded random drops, or counting only unreliable messages, would be less brittle. - On the partner's machine
_count_removalstill records kill events into local state until the next sync (same pattern as the goop roll #16 guarded). - Pumpkin bomb and turret kills credit goop to the nearest scarecrow (plan default); the thrower could be carried on the bomb instead.
- The partner panel could show the friend's pouch total.
- A host reopening a co-op save banks P2's pouch into the shed at load, even if P2 rejoins that morning (nothing is lost).
game/RULES.mdsays the pouch holds 15; the config is 8 (16 upgraded). Stale before #16.
Torch (#17):
- Add a permanent partner-view torch check to test_coop
_weapons_shown(left out to avoid colliding with #16/#22 in that file). - On the partner's machine the event-lit flame's hold (0.3 s) is only 0.1 s longer than the event cadence; network jitter could make it flicker. Lengthen the hold for event-lit effects if seen.
- The band starts at the scarecrow (so a thief in melee range burns), making the burned area right in front about 2.4 m wide. Tune if it feels generous.
- The night look's global desaturation mutes the flame at night.
UFO (#19):
README.md(~line 74) still says "one MultiMesh for the flyers" and "three types".- Both flyer batches draw every active slot (most scaled to nothing); pack each type into its own dense block if big hordes show vertex cost.
- Polish: a belly glow or tractor-beam cone during the dive; a synthesized UFO warble instead of the Kenney sweep.
South crop fields (#20):
- The Radar minimap (
radar_hud.gd_to_map, 190×190 square) now squashes the 60×80 map. README.md(~lines 62, 499) and thegame_config.gdradar comment (~line 313) still say 60×60.- Enemies and dropped crop tokens sit at y ≈ 0–0.4, so they sink into the 0.2–0.65 m soil (the sunflower field already had this).
- The ~2.1 m corn may hide thieves or the scarecrow from the camera; the fields are 35–40 m from the start — playtest the balance.
- East-side spawns between z 18 and 38 are funnelled round the old outer fence at x ≈ 48.2; consider trimming that stretch of the spawn ring.
Roaming animals (#21):
- Integration fix
55ebae4sends a thief straight at loose loot in clear view at any distance. An out-of-sight loose target still makes it walk the pen's flow field and give up after 10 s, and_claim_homepicks a random animal (possibly the farthest). Preferring visible or nearer loose animals would make animal thieves more purposeful. - No screen-edge alert or tutorial tip for loose animals (the "loose" arrow fires only for dropped items now).
- Stale text:
farm_state.gd(~line 70) says loose animals graze outside the pen;soak_night.gd's scripted guard only chases dropped loot; RULES says "at most 3 follow" butmax_following_animalsis 5. - The loose spot at (12, 0.5) is 2 m from the sunflower field.
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_fear20% 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. Alsogame_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_024instances underZones/AnimalPen;farm.tscncontains 24fence_024references 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 oneSCRIPT ERROR: Invalid access to property or key 'outside' on a base object of type 'Nil'duringtest_economy. Up from 22-23 on 2026-10-04 — the extra failures arrived with the committed co-op/retune work, cause not investigated.