mirror of
https://port.numenaute.org/aleajactaest/bazar_alea.git
synced 2024-11-10 01:09:53 +00:00
23 lines
542 B
GDScript
23 lines
542 B
GDScript
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
|
|
|
|
|
|
func set_attribute(_prev_v, _current_v):
|
|
pass
|