chore: clean up old debug prints

This commit is contained in:
2025-08-21 10:43:50 +02:00
parent 66822cbf9e
commit 9240413da7
2 changed files with 0 additions and 4 deletions

View File

@@ -26,7 +26,6 @@ func _process(delta: float) -> void:
func _on_player_hp_change(hp: float, max_hp: float): func _on_player_hp_change(hp: float, max_hp: float):
print_debug("got sig")
var percent_hp = hp / max_hp * 100 var percent_hp = hp / max_hp * 100
if percent_hp < 40: if percent_hp < 40:
low_hp_indicator.visible = true low_hp_indicator.visible = true

View File

@@ -90,15 +90,12 @@ func death_animation(delta: float):
func get_taunted(): func get_taunted():
var taunting_enemies: Array[EnemyBase] = [] var taunting_enemies: Array[EnemyBase] = []
for body in get_tree().get_nodes_in_group(GlobalConst.GROUP_ENEMY): for body in get_tree().get_nodes_in_group(GlobalConst.GROUP_ENEMY):
print_debug("starting taunt: %s" % global_position.distance_to(body.global_position))
if global_position.distance_to(body.global_position) < 1000.0: if global_position.distance_to(body.global_position) < 1000.0:
taunting_enemies.append(body) taunting_enemies.append(body)
print_debug("getting taunted by %s enemies" % len(taunting_enemies))
for i in range(taunting_enemies.size()): for i in range(taunting_enemies.size()):
var angle = (TAU / taunting_enemies.size()) * i var angle = (TAU / taunting_enemies.size()) * i
var target_pos = Vector2(cos(angle), sin(angle)) * 50 var target_pos = Vector2(cos(angle), sin(angle)) * 50
var new_target = Marker2D.new() var new_target = Marker2D.new()
print_debug("getting taunted by %s" % taunting_enemies[i])
new_target.position = target_pos new_target.position = target_pos
add_child(new_target) add_child(new_target)
taunting_enemies[i].target = new_target taunting_enemies[i].target = new_target