added skelarcher

This commit is contained in:
pennyrigate 2023-01-20 18:05:39 -05:00
parent 9827e2d9b4
commit 14c1f4e7e7
3 changed files with 12 additions and 3 deletions

View file

@ -49,5 +49,7 @@ func _on_Hitbox_area_entered(area):
else:
# kill targeted node
target.die()
Game.arrows = max(0, Game.arrows - 1) # clamp arrows above 0
#decrease arrows if enemy killed
if target_group == "enemy_hitbox":
Game.arrows = max(0, Game.arrows - 1) # clamp arrows above 0
queue_free()