From 6a35bb0ad46e0115d63a61242fc2fbb022e07a5d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 5 Apr 2022 02:58:31 +0200 Subject: [PATCH] :wrench: Why do I hear boss music? --- src/levels/Music.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/levels/Music.gd b/src/levels/Music.gd index fb9f2ad..8bf3291 100644 --- a/src/levels/Music.gd +++ b/src/levels/Music.gd @@ -10,6 +10,8 @@ export var drum_min: float = 100 export var drum_max: float = 160 export var crackle_min: float = 0 export var crackle_max: float = 170 +export var boss_min: float = 170 +export var boss_max: float = 195 export var muted: bool setget set_mute, get_mute @@ -36,6 +38,7 @@ func _on_Fire_intensity_changed(_origin, value): $Bell.volume_db = (smoothstep(bell_min, bell_max, value) - 1) * 60 $Drum.volume_db = (smoothstep(drum_min, drum_max, value) - 1) * 60 $FireCrackle.volume_db = (smoothstep(crackle_min, crackle_max, value) - 1) * 60 + $BossDrum.volume_db = (smoothstep(boss_min, boss_max, value) - 1) * 60 update_state()