From cb39a4a156c9643b412ff605eb311b944c2a03da Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 2 Apr 2024 11:53:27 -0400 Subject: [PATCH] Lower volume of loud battle animation sounds --- src/battle-scene.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index 7a68fde8e..52490cd16 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -1247,6 +1247,9 @@ export default class BattleScene extends SceneBase { config['volume'] = this.masterVolume * this.seVolume; } else config = { volume: this.masterVolume * this.seVolume }; + // PRSFX sounds are mixed too loud + if ((typeof sound === 'string' ? sound : sound.key).startsWith('PRSFX- ')) + config['volume'] *= 0.5; if (typeof sound === 'string') { this.sound.play(sound, config); return this.sound.get(sound) as AnySound;