index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/modules/game/soldier.js')
-rw-r--r-- | src/modules/game/soldier.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js index 8e5774b..a71ceba 100644 --- a/src/modules/game/soldier.js +++ b/src/modules/game/soldier.js @@ -152,24 +152,6 @@ export function endMove(svg, counter) { removeClones(svg, counter); } -export function hasProne(counter) { - return !!counter.querySelector('[href="#counter-prone"]:not(.removed)'); -} - -export function toggleProne(counter) { - let proneCounter = counter.querySelector('[href="#counter-prone"]'); - - if (!proneCounter) { - proneCounter = document.createElementNS(svgns, 'use'); - proneCounter.setAttributeNS(null, 'href', '#counter-prone'); - counter.appendChild(proneCounter); - } else if ('preexisting' in proneCounter.dataset) { - proneCounter.classList.toggle('removed'); - } else { - proneCounter.remove(); - } -} - export function getSelectedClass() { return selectedClass; } |