Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-06-28 11:01:33 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-06-28 11:01:33 -0700
commitade861767b9961590ba31ca6ba30be1ca8346ea1 (patch)
treefaab247251939a41392b0d2559407188ae4ea481 /src/modules/game/soldier.js
parentf270c13fb32666b3fe0c3579f5366dacc8ed1e2f (diff)
WIP: get sightline working after cube coords update
Diffstat (limited to 'src/modules/game/soldier.js')
-rw-r--r--src/modules/game/soldier.js5
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;