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
|
|
@ -40,8 +40,8 @@ async function main() {
|
|||
let { statBase } = answers;
|
||||
let rollMode = game.settings.get(`core`, `rollMode`);
|
||||
|
||||
let diceCount = statBase;
|
||||
diceCount += extraDice;
|
||||
let diceCount = statBase ?? 1;
|
||||
diceCount += extraDice ?? 0;
|
||||
if (statBase === 6) {
|
||||
diceCount += 6;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue