aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/sliced_bun_top.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-16 12:46:09 +0200
committertpart <tpart120@proton.me>2024-09-16 12:46:09 +0200
commitfee8f4ee5b331add43eb8b885b2f04d719d18d69 (patch)
treea2a148d6640aed7ee89d80a1c0ed98585c3005cc /client/map/items/sliced_bun_top.gd
parentd178223b1a916682c8dc4b9fdd0d7ad886bf9df6 (diff)
downloadhurrycurry-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/sliced_bun_top.gd')
-rw-r--r--client/map/items/sliced_bun_top.gd21
1 files changed, 21 insertions, 0 deletions
diff --git a/client/map/items/sliced_bun_top.gd b/client/map/items/sliced_bun_top.gd
new file mode 100644
index 00000000..c4ad4dc5
--- /dev/null
+++ b/client/map/items/sliced_bun_top.gd
@@ -0,0 +1,21 @@
+# Hurry Curry! - a game about cooking
+# Copyright 2024 tpart
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, version 3 of the License only.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+#
+class_name SlicedBunTop
+extends Item
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/sliced_bun_top.tscn").instantiate())