diff --git a/components/health_component.gd b/components/health_component.gd index f2e2a4b..d6bcade 100644 --- a/components/health_component.gd +++ b/components/health_component.gd @@ -15,6 +15,9 @@ func damage(amount : int): if health <= 0: health_zeroed.emit() +func reset(): + health = max_health + func _on_area_entered(area): if area is AreaDamageComponent: damage(area.damage)