extends ItemBase
class_name ItemUpgrade

@export var value: float
@export var descriptin: String
@export var stat_id: String

func apply_upgrade() -> void:
	var current_value := Global.player.stats.get(stat_id) as float 
	var new_value := float(value) + float(current_value)
	Global.player.stats.set(stat_id, new_value)
