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-06-28 11:01:33 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-06-28 11:01:33 -0700 |
commit | ade861767b9961590ba31ca6ba30be1ca8346ea1 (patch) | |
tree | faab247251939a41392b0d2559407188ae4ea481 /src/modules/game/soldier.js | |
parent | f270c13fb32666b3fe0c3579f5366dacc8ed1e2f (diff) |
WIP: get sightline working after cube coords update
Diffstat (limited to 'src/modules/game/soldier.js')
-rw-r--r-- | src/modules/game/soldier.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js index 2a89426..12adf6b 100644 --- a/src/modules/game/soldier.js +++ b/src/modules/game/soldier.js @@ -66,8 +66,9 @@ function createTrace(previous, current, selected) { export function createCounter(selected) { const use = document.createElementNS(svgns, 'use'); const g = document.createElementNS(svgns, 'g'); - use.setAttributeNS(null, 'href', `#t-${selected.dataset.number}`); - // use.setAttributeNS(null, 'href', `counters.svg#rifle`); + // use.setAttributeNS(null, 'href', `#t-${selected.dataset.number}`); + use.setAttributeNS(null, 'href', `counters.svg#rifle`); + use.classList.add('primary-weapon'); g.classList.add('counter'); g.dataset.allegiance = selected.dataset.allegiance; g.dataset.number = selected.dataset.number; |