8 lines
208 B
GDScript
8 lines
208 B
GDScript
extends Item
|
|
@export var heal_amount = 1
|
|
|
|
func collect() -> bool:
|
|
if(player.current_hp < player.max_hp):
|
|
player.current_hp = min(player.max_hp, player.current_hp + heal_amount)
|
|
return true
|
|
return false
|