feat(audio): wire SFX into HoldableItem and OutfitItem

This commit is contained in:
Steven Wroblewski
2026-05-10 20:19:40 +02:00
parent a220b641ca
commit 2e0cd18b6e
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -24,6 +24,7 @@ func _ready() -> void:
func _on_drag_picked_up(_pos: Vector2) -> void:
if is_in_hand_slot():
_detach_from_hand_slot()
AudioManager.play_sfx("item_drag_start")
item_picked_up.emit(self)
@@ -35,6 +36,9 @@ func _on_drag_released(_pos: Vector2) -> void:
var character: Character = result[0] as Character
var hand: String = result[1] as String
character.attach_item(hand, self)
AudioManager.play_sfx("item_drop_hand")
else:
AudioManager.play_sfx("item_drop_floor")
item_placed.emit(self)
@@ -46,6 +50,7 @@ func _try_return_to_chest() -> bool:
var chest: RoomChest = home_chest as RoomChest
if chest == null:
return false
AudioManager.play_sfx("item_return_chest")
chest.receive_item(self)
return true