index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-23 15:05:58 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-23 15:05:58 -0700 |
commit | 5fc598cdd15be3d8dd856997af2b1f68f774162c (patch) | |
tree | ad964b16b065e859a5c71e7ff294c86f14ad77e4 /src/index.js | |
parent | 9d44de5f114cacd915661ef5b2af3e5098fee3b8 (diff) |
WIP: counters
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 46f39fd..d2c1b01 100644 --- a/src/index.js +++ b/src/index.js @@ -158,7 +158,10 @@ document.querySelectorAll('.set-firing-arc').forEach(el => el.addEventListener('click', gameboard.setFiringArc) ); -document.querySelector('.set-grenade').addEventListener('click', gameboard.setGrenade); +document.querySelectorAll('.counters-list button').forEach(el => { + el.addEventListener('click', e => gameboard.setCounter(el.className)); +}); + document.querySelector('.set-mech-template').addEventListener('click', gameboard.setMechTemplate); document.querySelectorAll('#toggle-firing-arc-vis input').forEach(el => |