Adds missing data

This commit is contained in:
Michel 2025-02-03 19:17:20 +01:00
parent e6391d9fdd
commit 53cdcc3433
620 changed files with 47293 additions and 151 deletions

View file

@ -23,12 +23,11 @@ signal damaged(amount: float, knockback: Vector2)
var _current: float
func _ready() -> void:
_current = max_health
func take_damage(amount: float, knockback: Vector2) -> void:
func take_damage(amount: float, knockback: Vector2, from: Node3D = null) -> void:
if _current <= 0.0:
return
@ -37,6 +36,7 @@ func take_damage(amount: float, knockback: Vector2) -> void:
if _current <= 0.0:
death.emit()
death.emit(from)
else:
damaged.emit(amount, knockback)