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

@ -58,7 +58,7 @@ func _on_Hitbox_area_entered(area):
target.die()
#decrease arrows if enemy killed
if target_group == "enemy_hitbox":
Game.arrows = max(0, Game.arrows - 1) # clamp arrows above 0
Game.arrows = max(0, Game.arrows - 1) as int # clamp arrows above 0
_persist_trail()
queue_free()
elif area.is_in_group("arrow"):