aboutsummaryrefslogtreecommitdiff
path: root/client/map/items
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-01 18:34:42 +0200
committertpart <tpart120@proton.me>2024-07-01 18:34:47 +0200
commit7c9ff7817c2cbdcd3fcbb7083ca655694653def5 (patch)
treec3acc6d9e703e543863f4591d93387cc3fc13d65 /client/map/items
parentf698256b17ba0ee96182ca2b49fc41568c27e807 (diff)
downloadhurrycurry-7c9ff7817c2cbdcd3fcbb7083ca655694653def5.tar
hurrycurry-7c9ff7817c2cbdcd3fcbb7083ca655694653def5.tar.bz2
hurrycurry-7c9ff7817c2cbdcd3fcbb7083ca655694653def5.tar.zst
Add plate up sound effect
Diffstat (limited to 'client/map/items')
-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.)