diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/map/items/plate.gd | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd index d081450e..b3f9ff58 100644 --- a/client/map/items/plate.gd +++ b/client/map/items/plate.gd @@ -27,6 +27,11 @@ func _init(owned_by_: Node3D, contents: Array): contents.push_front("sliced-bun-bottom") contents.push_back("sliced-bun-top") + # Seared steak should be small if combined with other items + if contents.has("seared-steak") and contents.size() > 1: + contents.erase("seared-steak") + contents.append("seared-steak-small") + # Stack content items on top of each other var height_sum := 0. for c in contents: @@ -35,6 +40,16 @@ 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": + var bun = ItemFactory.produce(c, base) + base.add_child(bun) + bun.scale *= 0.5 + bun.position += Vector3(-.1, 0, -.1) + "seared-steak-small": + var seared_steak = ItemFactory.produce("seared-steak", base) + base.add_child(seared_steak) + seared_steak.scale *= 0.5 + seared_steak.position += Vector3(.1, 0, .1) _: item = ItemFactory.produce(c, base) if item != null: base.add_child(item) |