aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/item.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/items/item.gd')
-rw-r--r--client/map/items/item.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/map/items/item.gd b/client/map/items/item.gd
index 5a43af2d..44482c9b 100644
--- a/client/map/items/item.gd
+++ b/client/map/items/item.gd
@@ -57,6 +57,12 @@ func _init(owned_by_: Node3D):
add_child(base)
owned_by = owned_by_
+func add_contents(contents: Array[String]):
+ for i in contents:
+ match i:
+ _:
+ base.add_child(ItemFactory.produce(i, self))
+
func animate_spawn():
creation_timer = 0.0
scale = Vector3.ONE * 0.001 # setting to zero breaks assertions somewhere in the engine