Changed so all default rolls become BaseRolls to access convenience functions and getters

This commit is contained in:
WBHarry 2026-07-17 16:28:37 +02:00
parent c68b3045f2
commit d7f0747e5c
4 changed files with 8 additions and 3 deletions

View file

@ -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);
}
}