way too many changes to list, oops. big rewrite.

This commit is contained in:
2025-05-27 03:38:03 +10:00
parent 16951a9beb
commit 4a21701a35
663 changed files with 7389 additions and 3283 deletions

View File

@ -33,7 +33,7 @@ func explode() -> void:
func hit(target: CharacterBody3D) -> void:
target.damage(damage)
target.apply_effect(effect)
if owner_id == 0:
if Data.preferences.display_tower_damage_indicators:
spawn_damage_indicator(target.sprite.global_position)

View File

@ -0,0 +1 @@
uid://cubn2iabwg3

View File

@ -0,0 +1 @@
uid://dwr38fukjqu7r

View File

@ -9,6 +9,7 @@ var force: float = 2.0
var damage: float = 0.0
var lifetime: float = 10.0
var time_alive: float = 0.0
var effect: Effect
func _ready() -> void:
@ -20,10 +21,10 @@ func _process(delta: float) -> void:
func spawn_damage_indicator(pos: Vector3) -> void:
if damage > 0:
if effect.damage > 0:
var marker: Node3D = damage_particle_scene.instantiate()
get_tree().root.add_child(marker)
marker.set_number(damage)
marker.set_number(effect.damage)
marker.position = pos

View File

@ -0,0 +1 @@
uid://bifvnevs5y4nj

View File

@ -0,0 +1 @@
uid://ba2aqn82wo747