Merge task #21: animals roam the whole farm, never lost on their own
Loose animals roam the playable map day and night; dropped, leash-broken and open-pen animals become LOOSE instead of running for the edge. Only an Alien carrying one off the map loses it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
9d26f29299
8 changed files with 379 additions and 226 deletions
|
|
@ -76,22 +76,24 @@ extends Resource
|
|||
## A supply thief takes this many units of the material the shed holds most of (never more than
|
||||
## there is).
|
||||
@export_range(1, 100) var supply_bundle: int = 5
|
||||
## Loose animals (dropped, or wandered out of an open pen) walk toward the farm's nearest edge at
|
||||
## this speed, stopping to graze now and then; one that gets off the farm is lost.
|
||||
## An animal getting out of an open pen walks out at this speed; once it's out it's loose and
|
||||
## roams the farm like any other (AnimalSystem). Animals never leave the farm on their own.
|
||||
@export var stray_speed: float = 1.1
|
||||
## At night, while the pen is open (its gate broken or removed), one animal wanders out every
|
||||
## this many seconds. An animal brought back stays calm (won't wander out) for animal_calm_time.
|
||||
## At night, while the pen is open (nothing built yet, or its gate broken or removed), one calm
|
||||
## penned animal gets out every this many seconds and is loose. An animal brought back stays calm
|
||||
## (won't get out again) for animal_calm_time.
|
||||
@export var animal_wander_interval: float = 10.0
|
||||
@export var animal_calm_time: float = 30.0
|
||||
## Animals following the scarecrow walk its trail at up to this speed.
|
||||
@export var follow_speed: float = 6.0
|
||||
## Where loose animals start (#12): scattered open-farmyard spots outside FarmZone.Kind.ANIMAL_PEN
|
||||
## (x -10..4, z -11..-1), walkable, and clear of the future crop fields (x -11..-1 z 2..12 and
|
||||
## x 2..12 z 2..12 -- see LAYOUT.md). Each is grazed around (AnimalSystem.LOOSE_WANDER_RADIUS)
|
||||
## until the player leads that animal into a built pen. Cycles if there are more animals than spots.
|
||||
## Where loose animals start (#12), and where a loose one is back every morning (#21: in between
|
||||
## it roams the whole farm): a row of open-farmyard spots south and south-east of
|
||||
## FarmZone.Kind.ANIMAL_PEN (x -10..4, z -11..-1), walkable, clear of the crop fields (x -11..-1
|
||||
## z 2..12, x 2..12 z 2..12, and the sunflowers from x 14 -- see LAYOUT.md), and well in from the
|
||||
## farm's edge. Cycles if there are more animals than spots.
|
||||
@export var animal_loose_spots: Array[Vector2] = [
|
||||
Vector2(-9.0, 0.5), Vector2(-6.0, 0.5), Vector2(-3.0, 0.5), Vector2(0.0, 0.5), Vector2(3.0, 0.5),
|
||||
Vector2(-12.0, -3.0), Vector2(-12.0, -6.0), Vector2(-12.0, -9.0),
|
||||
Vector2(6.0, 0.5), Vector2(9.0, 0.5), Vector2(12.0, 0.5),
|
||||
]
|
||||
## What a thief with no set target goes for ("any" in a night plan), and where a thief whose target
|
||||
## is gone goes next: relative weights per category.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue