famira can die

This commit is contained in:
Haze Weathers 2024-02-05 16:49:45 -05:00
parent 5b520f0a46
commit 1274e989b4
3 changed files with 200 additions and 9 deletions

View file

@ -83,7 +83,9 @@ func hurt(amount: float, can_duck: bool = false) -> void:
anims.play("die")
func knock_back(amount: float) -> void:
func knock_back(amount: float, can_duck: bool = false) -> void:
if can_duck and state == State.DUCK:
return
knockback += amount