mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Changed so all default rolls become BaseRolls to access convenience functions and getters
This commit is contained in:
parent
c68b3045f2
commit
d7f0747e5c
4 changed files with 8 additions and 3 deletions
|
|
@ -4,4 +4,8 @@ export default class BaseRoll extends Roll {
|
|||
|
||||
/** @inheritdoc */
|
||||
static TOOLTIP_TEMPLATE = 'systems/daggerheart/templates/ui/chat/foundryRollTooltip.hbs';
|
||||
|
||||
get modifierTotal() {
|
||||
return this.total - this.dice.reduce((acc, dice) => acc + dice.total, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue