10 lines
230 B
GDScript
10 lines
230 B
GDScript
extends StaticBody3D
|
|
|
|
@export var health_restore: float = 25.0
|
|
|
|
func on_interact(player: Node) -> void:
|
|
if player.has_method("add_health"):
|
|
player.add_health(health_restore)
|
|
print("You rest for a while. Health restored.")
|
|
|