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-04-30 10:17:45 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-30 10:17:45 -0700 |
commit | 82d3a4b415ba920176058d615b697e84a49adabc (patch) | |
tree | 7bc250d9f332689e3dc0c4e7aec5949175a0f9fa /src/modules/game/soldier.js | |
parent | a4888a3e0905f3561781cb0ef4686befc0dff122 (diff) |
Create record sheet dynamically when map is loaded
Diffstat (limited to 'src/modules/game/soldier.js')
-rw-r--r-- | src/modules/game/soldier.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js index 922faca..b01ed15 100644 --- a/src/modules/game/soldier.js +++ b/src/modules/game/soldier.js @@ -29,6 +29,10 @@ function getCounterAndClones(svg, counter) { return svg.querySelectorAll(`.counter${dataSelector(counter)}`); } +export function getAllCounters(container) { + return container.querySelectorAll('g.counter[data-allegiance][data-number]'); +} + export function getCounter(svg, selected) { return svg.querySelector(`.counter${dataSelector(selected)}:not(.clone)`); } |