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
|
|
@ -190,6 +190,10 @@ extends Resource
|
|||
@export_range(1, 500) var gate_hp: int = 30
|
||||
@export_range(1, 500) var trap_triggers: int = 10
|
||||
@export_range(1, 500) var turret_hp: int = 25
|
||||
## The Workbench (#9): not built by the player (it's granted once Night 1 is survived --
|
||||
## StructureSystem.grant_workbench()), but it has HP, can be damaged, and is repaired like any
|
||||
## other structure (repair-only: it stays, broken, at 0 HP instead of being destroyed).
|
||||
@export_range(1, 500) var workbench_hp: int = 50
|
||||
## A ground enemy crossing a slowing trap moves at this share of its speed for this long.
|
||||
@export_range(0.05, 1.0) var trap_slow_factor: float = 0.5
|
||||
@export var trap_slow_time: float = 2.0
|
||||
|
|
@ -391,6 +395,8 @@ func structure_hp(type: String) -> int:
|
|||
return gate_hp
|
||||
"slowing_trap":
|
||||
return trap_triggers
|
||||
"workbench":
|
||||
return workbench_hp
|
||||
return turret_hp
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue