bazar_alea/client/player/Attributes/GameAttribute.gd

24 lines
542 B
GDScript3
Raw Permalink Normal View History

2023-11-14 21:41:08 +00:00
extends Node
class_name GameAttribute
@onready var attributes_manager : AttributesManager = get_parent()
@export_category("Attribute")
## Is the attribute name
@export var attribute_name : String
## Is the attribute minimum value
@export var minimum_value : float
## Is the attribute maximum value
@export var maximum_value : float
## Is the attribute initial value
@export var current_value : float :
set(v):
set_attribute(current_value, v)
current_value = v
var can_use:bool = true
2023-11-19 19:41:38 +00:00
func set_attribute(_prev_v, _current_v):
2023-11-14 21:41:08 +00:00
pass