aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/plate.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-19 22:00:24 +0200
committertpart <tpart120@proton.me>2024-09-19 22:00:48 +0200
commite91afb1dce9344128ca96f0c418cdd59749e1d1e (patch)
tree02d56488e4efcbe34322cfe994f236d664379b13 /client/map/items/plate.gd
parent26a07daf4a2f216e04f6469c006638f63980f808 (diff)
downloadhurrycurry-e91afb1dce9344128ca96f0c418cdd59749e1d1e.tar
hurrycurry-e91afb1dce9344128ca96f0c418cdd59749e1d1e.tar.bz2
hurrycurry-e91afb1dce9344128ca96f0c418cdd59749e1d1e.tar.zst
Fix incorrect bun size for plate:bun item
Diffstat (limited to 'client/map/items/plate.gd')
-rw-r--r--client/map/items/plate.gd7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd
index b3f9ff58..32843011 100644
--- a/client/map/items/plate.gd
+++ b/client/map/items/plate.gd
@@ -32,6 +32,11 @@ func _init(owned_by_: Node3D, contents: Array):
contents.erase("seared-steak")
contents.append("seared-steak-small")
+ # Buns should be small if combined with other items
+ if contents.has("bun") and contents.size() > 1:
+ contents.erase("bun")
+ contents.append("bun-small")
+
# Stack content items on top of each other
var height_sum := 0.
for c in contents:
@@ -40,7 +45,7 @@ func _init(owned_by_: Node3D, contents: Array):
"curry": add_child(PlateFill.new(self, Color(.75, .45, .1)))
"cooked-rice": add_child(load("res://map/items/cooked_rice_fill.tscn").instantiate())
"tomato-soup": add_child(PlateFill.new(self, Color(1., .3, .2)))
- "bun":
+ "bun-small":
var bun = ItemFactory.produce(c, base)
base.add_child(bun)
bun.scale *= 0.5