inching towards better class inheritence and multiplayer compatibility

This commit is contained in:
2023-11-15 15:19:40 +11:00
parent f004f64b71
commit 1500c22ccc
204 changed files with 1920 additions and 1951 deletions

View File

@ -0,0 +1,13 @@
extends Resource
class_name CardText
@export var target_type : Data.TargetType
@export var attributes : Array[StatAttribute]
@export_multiline var text : String
func get_attribute(attribute : String) -> float:
for stat in attributes:
if stat.key == attribute:
return stat.value
return 0.0