diff --git a/scenes/game_elements/props/filling_barrel/components/Vase_activate.wav b/scenes/game_elements/props/filling_barrel/components/Vase_activate.wav new file mode 100644 index 0000000000..9e80547a07 --- /dev/null +++ b/scenes/game_elements/props/filling_barrel/components/Vase_activate.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1eed3205612e338f322d3c38a5dd308f6d75ce7db5430c5ff15a99f928a046a1 +size 315156 diff --git a/scenes/game_elements/props/filling_barrel/components/Vase_activate.wav.import b/scenes/game_elements/props/filling_barrel/components/Vase_activate.wav.import new file mode 100644 index 0000000000..43d15d0910 --- /dev/null +++ b/scenes/game_elements/props/filling_barrel/components/Vase_activate.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c3cl4rglkh5um" +path="res://.godot/imported/Vase_activate.wav-41d2b392f9b0dd094e96b397ccc5f7fb.sample" + +[deps] + +source_file="res://scenes/game_elements/props/filling_barrel/components/Vase_activate.wav" +dest_files=["res://.godot/imported/Vase_activate.wav-41d2b392f9b0dd094e96b397ccc5f7fb.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/scenes/quests/lore_quests/song_sanctuary_3/1_ink_drinker_levels/components/barrel_unlock_sequence.gd b/scenes/quests/lore_quests/song_sanctuary_3/1_ink_drinker_levels/components/barrel_unlock_sequence.gd index 14066a8957..614710597a 100644 --- a/scenes/quests/lore_quests/song_sanctuary_3/1_ink_drinker_levels/components/barrel_unlock_sequence.gd +++ b/scenes/quests/lore_quests/song_sanctuary_3/1_ink_drinker_levels/components/barrel_unlock_sequence.gd @@ -6,6 +6,7 @@ extends Node @export var barrels: Array[FillingBarrel] @export var auto_start: bool = true @export var randomize_barrel_order: bool = false +@export var unlock_sound: AudioStreamPlayer var current_target_index: int = 0 @@ -37,6 +38,8 @@ func unlock_next_barrel() -> void: if current_target_index < barrels.size(): var target: FillingBarrel = barrels[current_target_index] target.is_locked = false + if unlock_sound: + unlock_sound.play() func _on_barrel_completed() -> void: diff --git a/scenes/quests/lore_quests/song_sanctuary_3/1_ink_drinker_levels/ink_combat_round_6.tscn b/scenes/quests/lore_quests/song_sanctuary_3/1_ink_drinker_levels/ink_combat_round_6.tscn index af82294fbe..562de28260 100644 --- a/scenes/quests/lore_quests/song_sanctuary_3/1_ink_drinker_levels/ink_combat_round_6.tscn +++ b/scenes/quests/lore_quests/song_sanctuary_3/1_ink_drinker_levels/ink_combat_round_6.tscn @@ -10,6 +10,7 @@ [ext_resource type="Script" uid="uid://en37d2lad0px" path="res://scenes/quests/lore_quests/song_sanctuary_3/1_ink_drinker_levels/components/barrel_unlock_sequence.gd" id="3_ihx08"] [ext_resource type="TileSet" uid="uid://bjx3gvah0ycl1" path="res://tiles/foam_2.tres" id="5_4co4a"] [ext_resource type="TileSet" uid="uid://do0ffypatd77h" path="res://tiles/bridges.tres" id="5_bl3l0"] +[ext_resource type="AudioStream" uid="uid://c3cl4rglkh5um" path="res://scenes/game_elements/props/filling_barrel/components/Vase_activate.wav" id="5_n0ti8"] [ext_resource type="PackedScene" uid="uid://iu2q66clupc6" path="res://scenes/game_elements/characters/player/player.tscn" id="5_pbtyo"] [ext_resource type="SpriteFrames" uid="uid://dtoylirwywk0j" path="res://scenes/game_elements/characters/components/sprite_frames/storyweaver_blue.tres" id="6_0oabu"] [ext_resource type="PackedScene" uid="uid://lgu7aeqa7o3r" path="res://scenes/game_elements/props/door/door.tscn" id="7_bl3l0"] @@ -69,9 +70,14 @@ script = ExtResource("3_4co4a") clip = &"cozy" metadata/_custom_type_script = "uid://c2lx7gvkonxaa" -[node name="BarrelUnlockSequence" type="Node" parent="." unique_id=961449658 node_paths=PackedStringArray("barrels")] +[node name="BarrelUnlockSequence" type="Node" parent="." unique_id=961449658 node_paths=PackedStringArray("barrels", "unlock_sound")] script = ExtResource("3_ihx08") barrels = [NodePath("../OnTheGround/FillingBarrel"), NodePath("../OnTheGround/FillingBarrel2"), NodePath("../OnTheGround/FillingBarrel3")] +unlock_sound = NodePath("AudioStreamPlayer2D") + +[node name="AudioStreamPlayer2D" type="AudioStreamPlayer" parent="BarrelUnlockSequence" unique_id=1673907098] +stream = ExtResource("5_n0ti8") +bus = &"SFX" [node name="Cinematic" type="Node2D" parent="." unique_id=590207237] script = ExtResource("30_t7x86")