enabled enforced static typing

This commit is contained in:
2024-02-22 06:22:22 +11:00
parent e1a867d2a9
commit a93660f755
1645 changed files with 24730 additions and 2078 deletions

View File

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