diff options
Diffstat (limited to 'client/map/items/pot.gd')
-rw-r--r-- | client/map/items/pot.gd | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/client/map/items/pot.gd b/client/map/items/pot.gd index 9b3e0ad3..11648b7f 100644 --- a/client/map/items/pot.gd +++ b/client/map/items/pot.gd @@ -22,8 +22,32 @@ func _init(owned_by_: Node3D, contents: Array): 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, self)) + + for i in contents: + match i: + "mochi-dough": + add_child(PotFill.new(self, Color(1.,1.,.3))) + "rice": + add_child(load("res://map/items/rice_content.tscn").instantiate()) + "rice-flour": + add_child(PotFill.new(self, Color(1.,1.,.8))) + "tomato-juice": + add_child(PotFill.new(self, Color(1.,.0,.0))) + "tomato-soup": + add_child(PotFill.new(self, Color(1.,.3,.2))) + "leek": + var leek = ItemFactory.produce(i, self) + leek.rotation_degrees = Vector3(-75.5, 0, -25) + leek.position = Vector3(.03, .1, .25) + base.add_child(leek) + "cooked-rice": + add_child(PotFill.new(self, Color(1.,1.,1.))) + "curry": + add_child(PotFill.new(self, Color(.75, .45, .1))) + "milk": + add_child(PotFill.new(self, Color8(250, 250, 250))) + _: + base.add_child(ItemFactory.produce(i, self)) func progress(position_: float, speed: float, warn: bool): super(position_, speed, warn) |