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:
Forrest 2026-10-05 16:47:05 -04:00
commit 4e3692b99d
12 changed files with 312 additions and 23 deletions

View file

@ -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):