enabled enforced static typing
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user