added skelarcher
This commit is contained in:
parent
9827e2d9b4
commit
14c1f4e7e7
3 changed files with 12 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue