forked from public/foundryvtt-reve-de-dragon
Utilisation de constant pour le systeme
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { SYSTEM_RDD } from "./constants.js";
|
||||
|
||||
/* -------------------------------------------- */
|
||||
const context2file = {
|
||||
@ -9,7 +10,7 @@ export class RdDAudio {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static PlayContextAudio(context) {
|
||||
if (game.settings.get("foundryvtt-reve-de-dragon", "activer-sons-audio") ) {
|
||||
if (game.settings.get(SYSTEM_RDD, "activer-sons-audio") ) {
|
||||
let audioData = context2file[context];
|
||||
if ( audioData ) {
|
||||
let audioPath = "systems/foundryvtt-reve-de-dragon/sounds/" + audioData.file;
|
||||
|
Reference in New Issue
Block a user