Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;