Initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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.")
|
||||
|
||||
Reference in New Issue
Block a user