diff options
Diffstat (limited to 'client/map/items/plate.gd')
| -rw-r--r-- | client/map/items/plate.gd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd index 61e097b8..2ff62d65 100644 --- a/client/map/items/plate.gd +++ b/client/map/items/plate.gd @@ -17,9 +17,11 @@ class_name Plate extends Item -func _init(owned_by_: Node3D): +func _init(owned_by_: Node3D, contents: Array[String]): super(owned_by_) add_child(load("res://map/items/plate.tscn").instantiate()) + for c in contents: + base.add_child(ItemFactory.produce(c, base)) func setup_sounds(): take_sound.setup([preload("res://map/items/sounds/plate_take.ogg")]) |