Refactor health management and collectable cleanup logic for improved functionality

This commit is contained in:
2025-05-29 01:19:18 +02:00
parent a098155b0f
commit 9b6a4f38bd
4 changed files with 33 additions and 54 deletions

View File

@@ -39,7 +39,7 @@ func on_health_change(delta: float, total_health: float) -> void:
await get_tree().create_timer(hit_duration).timeout
deactivate()
if total_health > 0:
if total_health > 0 and delta < 0:
handle_hit_fx()