Add nullish coalescing to the DialogManager return types
This commit is contained in:
parent
547d8d1bbb
commit
4ff1f60a76
7 changed files with 15 additions and 15 deletions
|
|
@ -47,8 +47,8 @@ async function rollDice() {
|
|||
const { statBase, extraDice } = answers;
|
||||
let rollMode = game.settings.get(`core`, `rollMode`);
|
||||
|
||||
let diceCount = statBase;
|
||||
diceCount += extraDice;
|
||||
let diceCount = statBase ?? 1;
|
||||
diceCount += extraDice ?? 0;
|
||||
|
||||
let successes = 0;
|
||||
let critsOnly = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue