1
Fork 0
mirror of https://github.com/RYGhub/the-cold-night.git synced 2024-11-22 04:34:19 +00:00

🔧 Why do I hear boss music?

This commit is contained in:
Steffo 2022-04-05 02:58:31 +02:00
parent ddaec26915
commit 6a35bb0ad4
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -10,6 +10,8 @@ export var drum_min: float = 100
export var drum_max: float = 160 export var drum_max: float = 160
export var crackle_min: float = 0 export var crackle_min: float = 0
export var crackle_max: float = 170 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 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 $Bell.volume_db = (smoothstep(bell_min, bell_max, value) - 1) * 60
$Drum.volume_db = (smoothstep(drum_min, drum_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 $FireCrackle.volume_db = (smoothstep(crackle_min, crackle_max, value) - 1) * 60
$BossDrum.volume_db = (smoothstep(boss_min, boss_max, value) - 1) * 60
update_state() update_state()