extends Control

@onready var potion: HBoxContainer = $Layout/Levels/Potion # health
@onready var sword: HBoxContainer = $Layout/Levels/Sword # level
#@onready var treasure: HBoxContainer = $Layout/Levels/Treasure # mask pieces
@onready var hearts: HBoxContainer = $Layout/Levels/Heart # level


func update_level(value: int):
	sword.update_label(value)
	
func update_hearts(value: int):
	hearts.str_update_label(str(value) + " / 666")

func update_health(value: int):
	potion.update_label(value)

#func update_heart_pieces(value: int):
	#treasure.update_label(value)
