Added critical threshold for Adversaries, determining at what number they crit (#1331)

This commit is contained in:
WBHarry 2025-11-25 00:26:27 +01:00 committed by GitHub
parent d5b501cb98
commit f78f8e32b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 31 additions and 6 deletions

View file

@ -13,8 +13,6 @@ export default class D20Roll extends DHRoll {
DISADVANTAGE: -1
};
static CRITICAL_TRESHOLD = 20;
static DefaultDialog = D20RollDialog;
get title() {
@ -37,7 +35,7 @@ export default class D20Roll extends DHRoll {
get isCritical() {
if (!this.d20._evaluated) return;
return this.d20.total >= this.constructor.CRITICAL_TRESHOLD;
return this.d20.total >= this.data.system.criticalThreshold;
}
get hasAdvantage() {