diff options
author | tpart <tpart120@proton.me> | 2024-09-16 12:46:09 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-16 12:46:09 +0200 |
commit | fee8f4ee5b331add43eb8b885b2f04d719d18d69 (patch) | |
tree | a2a148d6640aed7ee89d80a1c0ed98585c3005cc /client/map/items/plate.gd | |
parent | d178223b1a916682c8dc4b9fdd0d7ad886bf9df6 (diff) | |
download | hurrycurry-fee8f4ee5b331add43eb8b885b2f04d719d18d69.tar hurrycurry-fee8f4ee5b331add43eb8b885b2f04d719d18d69.tar.bz2 hurrycurry-fee8f4ee5b331add43eb8b885b2f04d719d18d69.tar.zst |
Fix item stacking on plate; Implement correct bun slice behaviour on plates
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 |