Skip to content

Nexus Defense — Basic Tower

The default defensive piece for Nexus Defense. Single-target arrow turret, modest range, modest damage. Two of these spawn on every player’s grid at match start (placement defined by the active zone in q::nexus_defense_server::zone).

Nexus Defense — Basic Tower

Starter defensive tower for Nexus Defense matches. Single-target arrow turret with modest range and damage; placed on the player's hex grid at match start.

  • Type: building
  • Kind: nd tower basic

🏛️ Structure Stats
  • Footprint: 1 × 1
  • Max Health: 200 HP
  • Construction Time: 0s
  • Walkable: ✗ No
  • Blocks Placement: ✓ Yes
Build Costs:
  • gold : 60

ID: 01KQ2WOYBMSI3R6MWOUO39Q8P5
Ref: nd-tower-basic
Rendering: Layer: Foreground, PPU: 16
  • Starter unit — pre-placed by the server during the Prepare phase. No build cost paid on spawn; the build_costs block above documents the cost when the player places one mid-match from the build bar.
  • Auto-targeting — fires at the closest hostile inside range whenever cooldown_secs elapses since the last shot.
  • Single-shot ballistic — emits one projectile per volley travelling at projectile_speed units/s, expires after projectile_lifetime seconds.

The server pulls all combat numbers from this file at boot via MapDb::from_bytes + get_object_def_by_ref("nd-tower-basic"). Adjusting the YAML and re-running nx run astro-kbve:sync:mapdb retunes the live build without recompiling the Rust binary.

  • max_healthBuildingTag HP / max_HP
  • ranged_attack.range → target acquisition radius
  • ranged_attack.cooldown_secs → ticks between shots (rounded against SIM_TICK_HZ)
  • ranged_attack.damage_per_shot → projectile damage
  • ranged_attack.projectile_speed → projectile velocity
  • ranged_attack.projectile_lifetime × projectile_speed → max range before self-despawn