diff options
Diffstat (limited to 'client/map/items/pot.gd')
-rw-r--r-- | client/map/items/pot.gd | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/map/items/pot.gd b/client/map/items/pot.gd index 5c9623a2..77c8ebd1 100644 --- a/client/map/items/pot.gd +++ b/client/map/items/pot.gd @@ -18,11 +18,12 @@ extends Item var steam: CPUParticles3D = load("res://map/items/steam.tscn").instantiate() -func _init(owned_by_: Node3D, contents: Array): +func _init(owned_by_: Node3D): super(owned_by_) add_child(load("res://map/items/pot.tscn").instantiate()) base.add_child(steam) - + +func add_contents(contents: Array[String]): for i in contents: match i: "cheese-leek-soup": @@ -49,7 +50,7 @@ func _init(owned_by_: Node3D, contents: Array): "milk": add_child(PotFill.new(self, Color8(250, 250, 250))) _: - base.add_child(ItemFactory.produce(i, self)) + super([i]) func progress(position_: float, speed: float, warn: bool): super(position_, speed, warn) |