Merge task #10: per-instance Turret/Tar Patch leveling (L1-L3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
4b78004333
8 changed files with 472 additions and 35 deletions
|
|
@ -207,6 +207,28 @@ extends Resource
|
|||
## Cells finalized per tick while flow fields rebuild after a structure change.
|
||||
@export_range(100, 100000) var flow_slice_cells: int = 2000
|
||||
|
||||
## Per-instance leveling (StructureSystem.LEVELABLE: automated_defense, slowing_trap; L1-L3), not
|
||||
## account-wide like the workbench upgrades above. Holding interact at a specific placed structure
|
||||
## (by day; it must be undamaged first) pays structure_level_costs[type][level - 1] to take it from
|
||||
## level to level + 1 (index 0: L1->L2, index 1: L2->L3).
|
||||
@export var structure_level_costs: Dictionary = {
|
||||
"automated_defense": [{"scrap": 10, "wood": 4, "straw": 2}, {"scrap": 16, "wood": 6, "straw": 4}],
|
||||
"slowing_trap": [{"scrap": 5, "wood": 2}, {"scrap": 8, "wood": 4}],
|
||||
}
|
||||
## Turret L2 fires this many times as often (mirrors the Rapid Fire upgrade's live multiplier,
|
||||
## 3.0 in game_config.tres); L3 keeps the same rate.
|
||||
@export var turret_level_fire_mult: float = 3.0
|
||||
## Turret L3 fires this many shots at once in a fan around the aim direction, turret_l3_spread_deg
|
||||
## apart (a triangle spread: the outer two off by the full spread from the center shot).
|
||||
@export_range(1, 8) var turret_l3_projectiles: int = 3
|
||||
@export var turret_l3_spread_deg: float = 10.0
|
||||
## A tar patch's footprint (trigger area) and visual grow by this multiple of its L1 size, per
|
||||
## level (index 0 = L1, so always 1.0).
|
||||
@export var trap_level_size_mult: Array[float] = [1.0, 2.0, 3.0]
|
||||
## Holding interact for structure_upgrade_time levels up a structure, paying structure_level_costs
|
||||
## at the end (by day only; see Interactions).
|
||||
@export var structure_upgrade_time: float = 2.0
|
||||
|
||||
@export_group("Combat")
|
||||
## Height of the gun muzzle, the bullets, and enemy hit proxies (shots fly horizontally). It
|
||||
## clears the sunflowers (1.67 m) and the pen fence (1.69 m), so thieves in the field stay
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue