[Feature] ActiveEffect Default Hope/Fear dice (#1522)

* Added ActiveEffect rules for default hope and fear dice

* .

* Raised system version
This commit is contained in:
WBHarry 2026-01-13 10:58:03 +01:00 committed by GitHub
parent d282a81594
commit 3c9ef75645
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 180 additions and 16 deletions

View file

@ -130,9 +130,12 @@ export default class DualityRoll extends D20Roll {
this.terms = [this.terms[0], this.terms[1], this.terms[2]];
return;
}
this.terms[0] = new foundry.dice.terms.Die({ faces: 12 });
const { defaultHopeDice, defaultFearDice } = this.data.rules.dualityRoll;
this.terms[0] = new foundry.dice.terms.Die({ faces: defaultHopeDice });
this.terms[1] = new foundry.dice.terms.OperatorTerm({ operator: '+' });
this.terms[2] = new foundry.dice.terms.Die({ faces: 12 });
this.terms[2] = new foundry.dice.terms.Die({ faces: defaultFearDice });
}
applyAdvantage() {