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-07-10 19:29:38 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-10 19:29:38 -0700 |
commit | 17118633340b1979e94f30d0c85b885d5237ba14 (patch) | |
tree | 11b87ffb5b7e872088d9a67c84889aabc7c930c5 /src/modules/scenario.js | |
parent | b3f902f012e04facad489c613b5c577a1788b570 (diff) |
Clone template instead of modifying original
Diffstat (limited to 'src/modules/scenario.js')
-rw-r--r-- | src/modules/scenario.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/modules/scenario.js b/src/modules/scenario.js index c15f500..039801d 100644 --- a/src/modules/scenario.js +++ b/src/modules/scenario.js @@ -70,9 +70,6 @@ export async function build(svg, request) { return acc; }, {}); - console.log('refs', refs); - console.log(counters.split('/').pop().split('-').shift()); - const hashedFilenames = { 'counters.svg': counters, 'mapsheets.svg': mapsheets @@ -98,13 +95,6 @@ export async function build(svg, request) { }); }); - // scenario.querySelectorAll('use.mapsheet').forEach(el => - // gb.querySelector('#background').after(svg.ownerDocument.importNode(el, true)) - //); - - // startLocs.querySelectorAll('.counter').forEach(el => console.log(el)); - //console.log(startLocs); - //if (startLocs) grid.before(svg.ownerDocument.importNode(startLocs, true)); const scenarioGrid = scenario.querySelector('.grid'); @@ -113,8 +103,6 @@ export async function build(svg, request) { grid.replaceWith(svg.ownerDocument.importNode(scenarioGrid, true)); } - //defs.replaceWith(scenario.querySelector('defs')); - await loadScript(scenario, svg, 'radial') return loadScript(scenario, svg, 'map'); } |