diff options
Diffstat (limited to 'client/map/items/pot.gd')
-rw-r--r-- | client/map/items/pot.gd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/map/items/pot.gd b/client/map/items/pot.gd index 2bed6a5c..fb41e3d7 100644 --- a/client/map/items/pot.gd +++ b/client/map/items/pot.gd @@ -18,10 +18,12 @@ extends Item var steam: CPUParticles3D = load("res://map/items/steam.tscn").instantiate() -func _init(owned_by_: Node3D): +func _init(owned_by_: Node3D, contents: Array[String]): super(owned_by_) add_child(load("res://map/items/pot.tscn").instantiate()) base.add_child(steam) + for c in contents: + base.add_child(ItemFactory.produce(c, owned_by_)) func progress(position_: float, speed: float, warn: bool): super(position_, speed, warn) |