mtd/Scripts/Resources/card_text.gd

13 lines
310 B
GDScript3
Raw Normal View History

2024-02-22 06:22:22 +11:00
class_name CardText extends Resource
2024-02-22 06:22:22 +11:00
@export var target_type: Data.TargetType
@export var attributes: Array[StatAttribute]
@export_multiline var text: String
2024-02-22 06:22:22 +11:00
func get_attribute(attribute: String) -> float:
for stat: StatAttribute in attributes:
if stat.key == attribute:
return stat.value
return 0.0