diff options
Diffstat (limited to 'client/map/items/plate.gd')
-rw-r--r-- | client/map/items/plate.gd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd index 1b736f59..eb9ee4b5 100644 --- a/client/map/items/plate.gd +++ b/client/map/items/plate.gd @@ -21,6 +21,13 @@ func _init(owned_by_: Node3D, contents: Array): super(owned_by_) add_child(load("res://map/items/plate.tscn").instantiate()) + # Custom logic for handling burgers with buns on bottom and top + if contents.has("sliced-bun"): + contents.erase("sliced-bun") + contents.push_front("sliced-bun-bottom") + contents.push_back("sliced-bun-top") + + # Stack content items on top of each other var height_sum := 0. for c in contents: var item: Item |