This commit is contained in:
WBHarry 2026-03-30 22:25:10 +02:00
parent bf5a6d2a4d
commit fe0cb4468c
3 changed files with 25 additions and 9 deletions

View file

@ -43,6 +43,22 @@ export default class FateRoll extends D20Roll {
return this.data.fateType;
}
get withHope() {
if (!this._evaluatedl) return;
return this.dHope.total >= this.dFear.total;
}
get withFear() {
if (!this._evaluated) return;
return this.dHope.total < this.dFear.total;
}
get totalLabel() {
const label = this.withHope ? 'DAGGERHEART.GENERAL.hope' : 'DAGGERHEART.GENERAL.fear';
return game.i18n.localize(label);
}
static getHooks(hooks) {
return [...(hooks ?? []), 'Fate'];
}