From 4dc47d6f045c01479d1298b933fd3e129d3d8279 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Mon, 22 Apr 2024 14:28:29 -0700
Subject: Add grenade counter
---
src/index.js | 2 ++
1 file changed, 2 insertions(+)
(limited to 'src/index.js')
diff --git a/src/index.js b/src/index.js
index 617e953..63925b1 100644
--- a/src/index.js
+++ b/src/index.js
@@ -206,6 +206,8 @@ window.addEventListener('load', () => {
el.addEventListener('click', () => game.setFiringArc(el.dataset.size))
);
+ document.querySelector('.set-grenade').addEventListener('click', () => game.setGrenade());
+
recordSheetVisibility.addEventListener('input', e => {
let divs = document.querySelectorAll('#content div');
--
cgit v1.2.3