mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 04:01:06 +01:00
Finished GroupRoll
This commit is contained in:
parent
a442cb904b
commit
c49079c57c
15 changed files with 632 additions and 42 deletions
|
|
@ -15,7 +15,8 @@ export default class RegisterHandlebarsHelpers {
|
|||
setVar: this.setVar,
|
||||
empty: this.empty,
|
||||
pluralize: this.pluralize,
|
||||
positive: this.positive
|
||||
positive: this.positive,
|
||||
isNullish: this.isNullish
|
||||
});
|
||||
}
|
||||
static add(a, b) {
|
||||
|
|
@ -94,4 +95,8 @@ export default class RegisterHandlebarsHelpers {
|
|||
static positive(a) {
|
||||
return Math.abs(Number(a));
|
||||
}
|
||||
|
||||
static isNullish(a) {
|
||||
return a === null || a === undefined;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue