fixed a path visualiser bug and did a little balancing

This commit is contained in:
2023-11-18 00:01:04 +11:00
parent 9cf6944ac8
commit 422c163dcd
8 changed files with 15 additions and 12 deletions

View File

@ -9,7 +9,8 @@ func _physics_process(_delta: float) -> void:
for enemy in get_tree().get_nodes_in_group("Enemies"):
if !is_instance_valid(enemy) or !enemy.alive or global_position.distance_to(enemy.global_position) > target_range:
continue
enemies_in_range.append(enemy)
if enemy.stats.target_type & stats.target_type:
enemies_in_range.append(enemy)
if time_since_firing >= time_between_shots:
time_since_firing -= time_between_shots
for enemy in enemies_in_range: