diff options
Diffstat (limited to 'client/map/items/glass.gd')
-rw-r--r-- | client/map/items/glass.gd | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/map/items/glass.gd b/client/map/items/glass.gd index 2e2452f6..e64cb2a0 100644 --- a/client/map/items/glass.gd +++ b/client/map/items/glass.gd @@ -19,7 +19,15 @@ extends Item func _init(owned_by_: Node3D, contents: Array): super(owned_by_) add_child(load("res://map/items/glass.tscn").instantiate()) - # TODO + + for i in contents: + var item: Item + match i: + "water": item = GlassFill.new(self, Color(.5, .6, .8)) + "strawberry-shake": item = GlassFill.new(self, Color(.98, .55, .71)) + _: push_error("Glass fill not implemented: %s" % contents) + + base.add_child(item) func setup_sounds(): # TODO: Add custom glass sounds; For now use plate sounds as they are similar |