forked from team-sg/hero-mark-2
fix most of the script errors and warnings, fixed a couple tiny bugs in the process :)
This commit is contained in:
parent
9435089f21
commit
72733db609
23 changed files with 55 additions and 63 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue