added ns in CONFIG.l5r5e.systemName
This commit is contained in:
@@ -176,7 +176,7 @@ export class DicePickerDialog extends FormApplication {
|
||||
|
||||
// Difficulty
|
||||
if (!options.difficulty || !this.parseDifficulty(options.difficulty)) {
|
||||
this.difficulty = game.settings.get("l5r5e", "initiative-difficulty-value");
|
||||
this.difficulty = game.settings.get(CONFIG.l5r5e.systemName, "initiative-difficulty-value");
|
||||
}
|
||||
|
||||
// DifficultyHidden
|
||||
@@ -201,7 +201,7 @@ export class DicePickerDialog extends FormApplication {
|
||||
*/
|
||||
async refresh() {
|
||||
if (this._difficultyHiddenIsLock.option) {
|
||||
this.difficulty = game.settings.get("l5r5e", "initiative-difficulty-value");
|
||||
this.difficulty = game.settings.get(CONFIG.l5r5e.systemName, "initiative-difficulty-value");
|
||||
this.difficultyHidden = false;
|
||||
}
|
||||
this.render(false);
|
||||
@@ -363,7 +363,7 @@ export class DicePickerDialog extends FormApplication {
|
||||
*/
|
||||
set difficultyHidden(isHidden) {
|
||||
// If GM hide, then player choice don't matter
|
||||
this._difficultyHiddenIsLock.gm = game.settings.get("l5r5e", "initiative-difficulty-hidden");
|
||||
this._difficultyHiddenIsLock.gm = game.settings.get(CONFIG.l5r5e.systemName, "initiative-difficulty-hidden");
|
||||
if (this._difficultyHiddenIsLock.gm || this._difficultyHiddenIsLock.option) {
|
||||
isHidden = true;
|
||||
}
|
||||
|
||||
@@ -683,7 +683,7 @@ export class RollnKeepDialog extends FormApplication {
|
||||
}
|
||||
|
||||
// Delete old chat message related to this series
|
||||
if (game.settings.get("l5r5e", "rnk-deleteOldMessage")) {
|
||||
if (game.settings.get(CONFIG.l5r5e.systemName, "rnk-deleteOldMessage")) {
|
||||
if (game.user.isFirstGM) {
|
||||
const message = game.messages.get(msgOldId);
|
||||
if (message) {
|
||||
|
||||
Reference in New Issue
Block a user