Add nullish coalescing to the DialogManager return types

This commit is contained in:
Oliver-Akins 2025-06-17 00:49:07 -06:00
parent 547d8d1bbb
commit 4ff1f60a76
7 changed files with 15 additions and 15 deletions

View file

@ -44,11 +44,11 @@ async function rollDice() {
const { statBase, bonusThreshold, extraDice, } = answers;
let rollMode = game.settings.get(`core`, `rollMode`);
let diceCount = statBase;
let diceCount = statBase ?? 1;
if (statBase <= bonusThreshold) {
diceCount += 3;
};
diceCount += extraDice;
diceCount += extraDice ?? 0;
let successes = 0;
let critsOnly = 0;