fix most of the script errors and warnings, fixed a couple tiny bugs in the process :)

This commit is contained in:
Haze Weathers 2024-03-08 15:11:48 -05:00
parent 9435089f21
commit 72733db609
23 changed files with 55 additions and 63 deletions

View file

@ -111,6 +111,7 @@ func hurt(amount: float, can_duck: bool = false) -> void:
emit_signal("health_changed", hp)
if state != State.DEAD and hp <= 0.0:
state = State.DEAD
emit_signal("died")
anims.play("die")