Correction configuration affichage prix

L'option de configuration étaity toujours vrai quand vue par le MJ
This commit is contained in:
Vincent Vandemeulebrouck 2022-10-08 15:36:28 +02:00
parent 18039e905b
commit d75eef1926

View File

@ -73,7 +73,7 @@ export class ReglesOptionelles extends FormApplication {
const regles = listeReglesOptionelles.filter(it => game.user.isGM || it.scope == "client").map(it => {
it = duplicate(it);
it.id = ReglesOptionelles._getIdRegle(it.name);
it.active = ReglesOptionelles.isUsing(it.name);
it.active = ReglesOptionelles.isSet(it.name);
return it;
});
formData.regles = regles;
@ -85,11 +85,11 @@ export class ReglesOptionelles extends FormApplication {
if (game.user.isGM && uniquementJoueur.includes(name)) {
return true;
}
return game.settings.get(SYSTEM_RDD, ReglesOptionelles._getIdRegle(name));
return ReglesOptionelles.isSet(name);
}
static isSet(name) {
return ReglesOptionelles.isUsing(name);
return game.settings.get(SYSTEM_RDD, ReglesOptionelles._getIdRegle(name));
}
static set(name, value) {