mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Fixed parsing of resource.max
This commit is contained in:
parent
9fc1005caa
commit
de4267ff3c
6 changed files with 36 additions and 51 deletions
|
|
@ -6,7 +6,7 @@ export default class RegisterHandlebarsHelpers {
|
|||
times: this.times,
|
||||
damageFormula: this.damageFormula,
|
||||
damageSymbols: this.damageSymbols,
|
||||
tertiary: this.tertiary
|
||||
rollParsed: this.rollParsed
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ export default class RegisterHandlebarsHelpers {
|
|||
return new Handlebars.SafeString(Array.from(symbols).map(symbol => `<i class="fa-solid ${symbol}"></i>`));
|
||||
}
|
||||
|
||||
static tertiary(a, b) {
|
||||
return a ?? b;
|
||||
static rollParsed(value, actor) {
|
||||
return Roll.replaceFormulaData(value, actor);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue