mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Added ActiveEffect rules for default hope and fear dice
This commit is contained in:
parent
0b343c9f52
commit
f37f3ea899
6 changed files with 176 additions and 15 deletions
|
|
@ -130,9 +130,14 @@ 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;
|
||||
const hopeFaces = Number.parseInt(defaultHopeDice.substring(1));
|
||||
const fearFaces = Number.parseInt(defaultFearDice.substring(1));
|
||||
|
||||
this.terms[0] = new foundry.dice.terms.Die({ faces: hopeFaces });
|
||||
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: fearFaces });
|
||||
}
|
||||
|
||||
applyAdvantage() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue