#92 Armes à 2 mains gérées dans le HUD

This commit is contained in:
2021-01-02 00:04:27 +01:00
parent 65d5b1c45e
commit aeb2c43688
5 changed files with 31 additions and 23 deletions

19
module/rdd-audio.js Normal file
View File

@ -0,0 +1,19 @@
/* -------------------------------------------- */
const context2file = {
"argent": { file: "son_piece_monnaie.mp3", isGlobal: false }
}
/* -------------------------------------------- */
export class RdDAudio {
/* -------------------------------------------- */
static PlayContextAudio(context) {
let audioData = context2file[context];
if ( audioData ) {
let audioPath = "systems/foundryvtt-reve-de-dragon/sounds/" + audioData.file;
console.log(`wfrp4e | Playing Sound: ${audioPath}`)
AudioHelper.play({ src: audioPath }, audioData.isGlobal);
}
}
}