Adds a 4th enemy type (TYPE_UFO=3) that reuses the generic flying-nav
infrastructure (ignores fences, gates, and traps) and gets a new
FIGHT-capable behavior in ThiefBehavior: it skips SEEK/loot entirely and
goes straight to FIGHT, strafing the scarecrow in dive-and-pull-up passes
(diving to land_altitude while its attack is off cooldown, climbing to
cruise_altitude right after landing a hit) until it's hit for every pass.
All stats (speed 7.0, hp 2, damage 1, hit_interval 1.5s, aggro_range 10.0,
etc.) live in GameConfig.enemy_types["ufo"]. It renders through the same
shared flyer MultiMesh crows use (no new art) and is wired into
NightPlan/WaveDirector composition, the HUD/assessment roster lines, kill
log keys, and the arrival sound/toast, with a generic audio fallback since
it has no cue of its own.
Per a scope addition mid-task, night 5 now also sends in a wave of 4 UFOs
late in the night (game/resources/nights/night_5.tres), which shifts
test_nights' known-flaky "arrived" baseline line by one new {3: N} entry
(the UFO counts agree between plan and arrival) and required updating its
hardcoded "all three types" check to four. A debug-only "UFOs only"
scenario is added (game/resources/scenarios/ufos.tres) but deliberately
left out of CampaignDebug.SCENARIOS, since wiring it in would change
test_roster's hardcoded scenario count and that file's existing checks
were required to stay untouched.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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>
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>
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>
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>
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>