diff options
author | tpart <tpart120@proton.me> | 2024-09-13 19:07:31 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-13 19:07:31 +0200 |
commit | 5e95797d7cff71c261f0c97c3c1fe96882b89650 (patch) | |
tree | c2b95f7aa5b89c893854b961ca4763b9befc75cb /client/map/items/glass.gd | |
parent | 08f94a71a66999c95a4382d08978ee78fb786132 (diff) | |
download | hurrycurry-5e95797d7cff71c261f0c97c3c1fe96882b89650.tar hurrycurry-5e95797d7cff71c261f0c97c3c1fe96882b89650.tar.bz2 hurrycurry-5e95797d7cff71c261f0c97c3c1fe96882b89650.tar.zst |
Re-implement glass fill; Update steaks because godot keeps changing it back
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 |