feat(audio): wire SFX into HoldableItem and OutfitItem
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user