Gotta fix the hurt for player but otherwise done.
This commit is contained in:
@@ -63,14 +63,6 @@ func approach(target, offset) -> void:
|
||||
tween.tween_callback(anim_player.play.bind("idle"))
|
||||
tween.tween_callback(arrived.emit)
|
||||
|
||||
func attack(target : QuestSprite) -> void:
|
||||
print("Attack by %s to %s" % [name, target.name])
|
||||
hitting.connect(spear_hit.bind(target), CONNECT_ONE_SHOT)
|
||||
anim_player.play("spear attack")
|
||||
|
||||
func spear_hit(target : QuestSprite) -> void:
|
||||
target.take_damage(self, 5)
|
||||
|
||||
func take_damage(source : QuestSprite, amount : int) -> void:
|
||||
busy.emit()
|
||||
var damage_banner = damage_banner_template.instantiate()
|
||||
|
||||
Reference in New Issue
Block a user