Correction configuration affichage prix
L'option de configuration étaity toujours vrai quand vue par le MJ
This commit is contained in:
parent
18039e905b
commit
d75eef1926
@ -73,7 +73,7 @@ export class ReglesOptionelles extends FormApplication {
|
|||||||
const regles = listeReglesOptionelles.filter(it => game.user.isGM || it.scope == "client").map(it => {
|
const regles = listeReglesOptionelles.filter(it => game.user.isGM || it.scope == "client").map(it => {
|
||||||
it = duplicate(it);
|
it = duplicate(it);
|
||||||
it.id = ReglesOptionelles._getIdRegle(it.name);
|
it.id = ReglesOptionelles._getIdRegle(it.name);
|
||||||
it.active = ReglesOptionelles.isUsing(it.name);
|
it.active = ReglesOptionelles.isSet(it.name);
|
||||||
return it;
|
return it;
|
||||||
});
|
});
|
||||||
formData.regles = regles;
|
formData.regles = regles;
|
||||||
@ -85,11 +85,11 @@ export class ReglesOptionelles extends FormApplication {
|
|||||||
if (game.user.isGM && uniquementJoueur.includes(name)) {
|
if (game.user.isGM && uniquementJoueur.includes(name)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return game.settings.get(SYSTEM_RDD, ReglesOptionelles._getIdRegle(name));
|
return ReglesOptionelles.isSet(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static isSet(name) {
|
static isSet(name) {
|
||||||
return ReglesOptionelles.isUsing(name);
|
return game.settings.get(SYSTEM_RDD, ReglesOptionelles._getIdRegle(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
static set(name, value) {
|
static set(name, value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user