From a60f0f249f3ce6a0c740f898a67dd97ec66da202 Mon Sep 17 00:00:00 2001 From: tpart Date: Tue, 16 Sep 2025 23:16:43 +0200 Subject: Add custom tomato lettuce salad model to make it more visually recognizable --- client/map/items/plate.gd | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/map/items/plate.gd') 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) -- cgit v1.2.3-70-g09d2