Mark dice that have the trigger held as exploded
This commit is contained in:
parent
a1da4918f4
commit
547d8d1bbb
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue