The_Dark_Side_of_Earth/items/heal_item.gd

9 lines
169 B
GDScript3
Raw Normal View History

2025-09-17 12:19:19 +02:00
extends Item
@export var heal_amount = 1
func collect() -> bool:
2025-09-17 12:19:19 +02:00
if(player.current_hp < player.max_hp):
player.current_hp += heal_amount
return true
return false