Enable no unused vars and add more types

This commit is contained in:
Carlos Fernandez 2026-06-14 15:12:47 -04:00
parent af49c1f4c8
commit ba11651b0c
20 changed files with 141 additions and 31 deletions

View file

@ -39,7 +39,7 @@ export default class FormulaField extends foundry.data.fields.StringField {
let roll = null;
try {
roll = new Roll(value.replace(/@([a-z.0-9_-]+)/gi, '1'));
} catch (_) {
} catch {
roll = new Roll(value.replace(/@([a-z.0-9_-]+)/gi, 'd6'));
}
roll.evaluateSync({ strict: false });