Mark dice that have the trigger held as exploded

This commit is contained in:
Oliver-Akins 2025-06-17 00:36:16 -06:00
parent a1da4918f4
commit 547d8d1bbb

View file

@ -58,7 +58,7 @@ async function main() {
await r.evaluate();
let classes = `roll die d6`;
const total = r.total;
let total = r.total;
if (total <= statBase) {
successes += 1;
@ -82,7 +82,7 @@ async function main() {
if (succeeded) {
try {
const { holdTheTrigger, ventHeat } = await DialogManager.ask({
const { holdTheTrigger } = await DialogManager.ask({
id: `mini-gun-hold-the-trigger`,
question: `Hold The Trigger?`,
inputs: [
@ -114,6 +114,7 @@ async function main() {
heatMeter += (holdTheTrigger ? 1 : -1);
if (holdTheTrigger) {
diceCount += 1;
classes += ` exploded`;
};
if (heatMeter >= 6) {
heatMeter = 0;