Working on initiative, and now TN is global with GM tool
This commit is contained in:
@@ -121,14 +121,27 @@ export class DicePickerDialog extends FormApplication {
|
||||
// Difficulty
|
||||
if (options?.difficulty) {
|
||||
this.difficulty = options.difficulty;
|
||||
} else {
|
||||
this.difficulty = game.settings.get("l5r5e", "initiative.difficulty.value");
|
||||
}
|
||||
|
||||
// difficultyHidden
|
||||
if (options?.difficultyHidden) {
|
||||
this.difficultyHidden = options.difficultyHidden;
|
||||
} else {
|
||||
this.difficultyHidden = game.settings.get("l5r5e", "initiative.difficulty.hidden");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh data (used from socket)
|
||||
*/
|
||||
async refresh() {
|
||||
this.difficulty = game.settings.get("l5r5e", "initiative.difficulty.value");
|
||||
this.difficultyHidden = game.settings.get("l5r5e", "initiative.difficulty.hidden");
|
||||
this.render(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set actor
|
||||
* @param actor
|
||||
|
||||
Reference in New Issue
Block a user