Merge task #9: Workbench arrives after Night 1, targetable, repair-only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
4e3692b99d
12 changed files with 312 additions and 23 deletions
|
|
@ -693,7 +693,12 @@ func _breaker_goals() -> PackedInt32Array:
|
|||
for e in campaign.state.structures:
|
||||
if not structures.blocks(e["type"]):
|
||||
continue
|
||||
if e["type"] == "workbench" and int(e["hp"]) <= 0:
|
||||
continue # broken: nothing left to gain by sending a breaker at it
|
||||
barriers.append(e)
|
||||
if e["type"] == "workbench":
|
||||
guarding.append(e) # #9 Decision 3: it guards its own work area, unconditionally
|
||||
continue
|
||||
var at := Vector2(e["x"], e["z"])
|
||||
for a in areas:
|
||||
if a.grow(config.guard_range).has_point(at):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue