7 lines
133 B
GDScript3
7 lines
133 B
GDScript3
|
|
extends Item
|
||
|
|
@export var heal_amount = 1
|
||
|
|
|
||
|
|
func collect():
|
||
|
|
if(player.current_hp < player.max_hp):
|
||
|
|
player.current_hp += heal_amount
|