aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/plate.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-01 18:37:00 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-01 18:37:00 +0200
commitb6dddafa910f096f7e627cce90ed74b04b7be281 (patch)
treee86bdbcc22d0756588d3c1d45323bca353514516 /client/map/items/plate.gd
parent404e2e43d44a71344b5fc7399a74f517d7d3c9d4 (diff)
parent7c9ff7817c2cbdcd3fcbb7083ca655694653def5 (diff)
downloadhurrycurry-b6dddafa910f096f7e627cce90ed74b04b7be281.tar
hurrycurry-b6dddafa910f096f7e627cce90ed74b04b7be281.tar.bz2
hurrycurry-b6dddafa910f096f7e627cce90ed74b04b7be281.tar.zst
Merge branch 'master' of https://codeberg.org/metamuffin/undercooked
Diffstat (limited to 'client/map/items/plate.gd')
-rw-r--r--client/map/items/plate.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd
index ac6a6c00..88403b55 100644
--- a/client/map/items/plate.gd
+++ b/client/map/items/plate.gd
@@ -19,6 +19,11 @@ extends Item
func _init(owned_by_: Node3D):
super(owned_by_)
add_child(load("res://map/items/plate.tscn").instantiate())
+ sound_instance.setup([preload("res://map/sounds/plate_up.ogg")])
+
+func take():
+ sound_instance.play_random()
+ super()
static func base_position() -> Vector3:
return Vector3(0., 0.05, 0.)