mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-14 04:31:07 +01:00
Added fallback for defaultHopeDice and defaultFearDice
This commit is contained in:
parent
9473250f0c
commit
acafd2c8b9
2 changed files with 7 additions and 5 deletions
|
|
@ -131,11 +131,13 @@ export default class DualityRoll extends D20Roll {
|
|||
return;
|
||||
}
|
||||
|
||||
const { defaultHopeDice, defaultFearDice } = this.data.rules.dualityRoll;
|
||||
|
||||
this.terms[0] = new foundry.dice.terms.Die({ faces: defaultHopeDice });
|
||||
this.terms[0] = new foundry.dice.terms.Die({
|
||||
faces: this.data.rules.dualityRoll?.defaultHopeDice ?? 12
|
||||
});
|
||||
this.terms[1] = new foundry.dice.terms.OperatorTerm({ operator: '+' });
|
||||
this.terms[2] = new foundry.dice.terms.Die({ faces: defaultFearDice });
|
||||
this.terms[2] = new foundry.dice.terms.Die({
|
||||
faces: this.data.rules.dualityRoll?.defaultFearDice ?? 12
|
||||
});
|
||||
}
|
||||
|
||||
applyAdvantage() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue