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();
|
await r.evaluate();
|
||||||
let classes = `roll die d6`;
|
let classes = `roll die d6`;
|
||||||
|
|
||||||
const total = r.total;
|
let total = r.total;
|
||||||
|
|
||||||
if (total <= statBase) {
|
if (total <= statBase) {
|
||||||
successes += 1;
|
successes += 1;
|
||||||
|
|
@ -82,7 +82,7 @@ async function main() {
|
||||||
|
|
||||||
if (succeeded) {
|
if (succeeded) {
|
||||||
try {
|
try {
|
||||||
const { holdTheTrigger, ventHeat } = await DialogManager.ask({
|
const { holdTheTrigger } = await DialogManager.ask({
|
||||||
id: `mini-gun-hold-the-trigger`,
|
id: `mini-gun-hold-the-trigger`,
|
||||||
question: `Hold The Trigger?`,
|
question: `Hold The Trigger?`,
|
||||||
inputs: [
|
inputs: [
|
||||||
|
|
@ -114,6 +114,7 @@ async function main() {
|
||||||
heatMeter += (holdTheTrigger ? 1 : -1);
|
heatMeter += (holdTheTrigger ? 1 : -1);
|
||||||
if (holdTheTrigger) {
|
if (holdTheTrigger) {
|
||||||
diceCount += 1;
|
diceCount += 1;
|
||||||
|
classes += ` exploded`;
|
||||||
};
|
};
|
||||||
if (heatMeter >= 6) {
|
if (heatMeter >= 6) {
|
||||||
heatMeter = 0;
|
heatMeter = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue