Add an option to set the TN to 1 when the encounter type is selected (Intrigue, Duel, Skirmish or Mass battle)

This commit is contained in:
Vlyan
2021-02-13 16:14:06 +01:00
parent cb0696f662
commit 95d031c7a8
8 changed files with 77 additions and 36 deletions

View File

@@ -238,4 +238,16 @@ export class HelpersL5r5e {
},
}).render(true);
}
/**
* Notify Applications using Difficulty settings that the values was changed
*/
static notifyDifficultyChange() {
["l5r5e-dice-picker-dialog", "l5r5e-gm-tools-dialog"].forEach((appId) => {
const app = Object.values(ui.windows).find((e) => e.id === appId);
if (app && typeof app.refresh === "function") {
app.refresh();
}
});
}
}