aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/plate.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-09-16 23:16:43 +0200
committertpart <tpart120@proton.me>2025-09-16 23:17:18 +0200
commita60f0f249f3ce6a0c740f898a67dd97ec66da202 (patch)
tree43fb44f43badd06fa4d65f4299fb7cf4e52cc398 /client/map/items/plate.gd
parent15fbaa99f1700f15277187ce56f815a55fe5b7cc (diff)
downloadhurrycurry-a60f0f249f3ce6a0c740f898a67dd97ec66da202.tar
hurrycurry-a60f0f249f3ce6a0c740f898a67dd97ec66da202.tar.bz2
hurrycurry-a60f0f249f3ce6a0c740f898a67dd97ec66da202.tar.zst
Add custom tomato lettuce salad model to make it more visually recognizable
Diffstat (limited to 'client/map/items/plate.gd')
-rw-r--r--client/map/items/plate.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd
index 5fbc0339..60903ab3 100644
--- a/client/map/items/plate.gd
+++ b/client/map/items/plate.gd
@@ -36,6 +36,12 @@ func _init(owned_by_: Node3D, contents: Array):
contents.erase("bun")
contents.append("bun-small")
+ # Tomato + lettuce salad has a custom mesh
+ if contents.has("sliced-tomato") and contents.has("sliced-lettuce") and contents.size() == 2:
+ contents.erase("sliced-tomato")
+ contents.erase("sliced-lettuce")
+ contents.append("tomato-lettuce-salad")
+
# Stack content items on top of each other
var height_sum := 0.
for c in contents:
@@ -43,6 +49,7 @@ func _init(owned_by_: Node3D, contents: Array):
match c:
"curry": add_child(PlateFill.new(self, Color(.75, .45, .1)))
"cooked-rice": add_child(load("res://map/items/cooked_rice_fill.tscn").instantiate())
+ "tomato-lettuce-salad": add_child(load("res://map/items/sliced_tomato_sliced_lettuce_fill.tscn").instantiate())
"tomato-soup": add_child(PlateFill.new(self, Color(1., .3, .2)))
"bun-small":
var bun = ItemFactory.produce("bun", base)