Added prettier (#661)
* Added prettier * Added prettier * Added prettier
This commit is contained in:
@@ -9,12 +9,13 @@ import { isInitializing } from '../../InitSaveLoad/Variables';
|
||||
* @param {string} volConfig The setting in CM.Options that is checked to determine volume
|
||||
*/
|
||||
export default function PlaySound(url, sndConfig, volConfig) {
|
||||
// The arguments check makes the sound not play upon initialization of the mod
|
||||
if (CMOptions[sndConfig] === 1 && isInitializing === false) {
|
||||
// eslint-disable-next-line new-cap
|
||||
const sound = new realAudio(url);
|
||||
if (CMOptions.GeneralSound) sound.volume = (CMOptions[volConfig] / 100) * (Game.volume / 100);
|
||||
else sound.volume = (CMOptions[volConfig] / 100);
|
||||
sound.play();
|
||||
}
|
||||
// The arguments check makes the sound not play upon initialization of the mod
|
||||
if (CMOptions[sndConfig] === 1 && isInitializing === false) {
|
||||
// eslint-disable-next-line new-cap
|
||||
const sound = new realAudio(url);
|
||||
if (CMOptions.GeneralSound)
|
||||
sound.volume = (CMOptions[volConfig] / 100) * (Game.volume / 100);
|
||||
else sound.volume = CMOptions[volConfig] / 100;
|
||||
sound.play();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user