1
Fork 0
mirror of https://github.com/RYGhub/the-cold-night.git synced 2024-11-22 04:34:19 +00:00

🔧 Add utility static methods to Ownership

This commit is contained in:
Steffo 2022-04-03 08:47:39 +02:00
parent 3e56b51c9b
commit edc036941f
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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