Lower volume of loud battle animation sounds

pull/26/head
Flashfyre 2024-04-02 11:53:27 -04:00
parent 1813ae294c
commit cb39a4a156
1 changed files with 3 additions and 0 deletions

View File

@ -1247,6 +1247,9 @@ export default class BattleScene extends SceneBase {
config['volume'] = this.masterVolume * this.seVolume; config['volume'] = this.masterVolume * this.seVolume;
} else } else
config = { volume: this.masterVolume * this.seVolume }; 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') { if (typeof sound === 'string') {
this.sound.play(sound, config); this.sound.play(sound, config);
return this.sound.get(sound) as AnySound; return this.sound.get(sound) as AnySound;