boss behavior stuff
This commit is contained in:
parent
38e60fad93
commit
e04c1f3bf5
5 changed files with 60 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue