From 547d8d1bbbf95a11f0fa83c875dcc54326ef5f38 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Tue, 17 Jun 2025 00:36:16 -0600 Subject: [PATCH] Mark dice that have the trigger held as exploded --- Axolotl-with-a-Gun/guns/mini-gun/base.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Axolotl-with-a-Gun/guns/mini-gun/base.mjs b/Axolotl-with-a-Gun/guns/mini-gun/base.mjs index 9bbfc22..a3dcce1 100644 --- a/Axolotl-with-a-Gun/guns/mini-gun/base.mjs +++ b/Axolotl-with-a-Gun/guns/mini-gun/base.mjs @@ -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;