diff --git a/src/entities/behaviours/Ownership.gd b/src/entities/behaviours/Ownership.gd index a59626c..bf77084 100644 --- a/src/entities/behaviours/Ownership.gd +++ b/src/entities/behaviours/Ownership.gd @@ -1,4 +1,13 @@ extends Node +class_name Ownership var entity_owner: Node = null + + +static func get_value(first) -> Node: + var first_node = first.get_node("Ownership") + var first_alliance = null + if first_node != null: + first_alliance = first_node.alliance + return first_alliance