Working on initiative, and now TN is global with GM tool

This commit is contained in:
Vlyan
2021-01-14 18:44:56 +01:00
parent 30950a0d63
commit 58a4e71b32
15 changed files with 561 additions and 186 deletions

View File

@@ -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