boss behavior stuff

This commit is contained in:
Haze Weathers 2023-02-16 18:44:17 -05:00
parent 38e60fad93
commit e04c1f3bf5
5 changed files with 60 additions and 16 deletions

View file

@ -45,10 +45,7 @@ func _on_Hitbox_area_entered(area):
_make_sparks()
else:
# kill targeted node
if !area.is_in_group("boss_weakspot"):
target.die()
else:
target.hp -=1
target.die()
#decrease arrows if enemy killed
if target_group == "enemy_hitbox":
Game.arrows = max(0, Game.arrows - 1) # clamp arrows above 0