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/scenario.js')
-rw-r--r-- | src/modules/scenario.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/scenario.js b/src/modules/scenario.js index 6ab66db..805d0fe 100644 --- a/src/modules/scenario.js +++ b/src/modules/scenario.js @@ -94,11 +94,15 @@ export async function build(svg, request) { //if (startLocs) grid.before(svg.ownerDocument.importNode(startLocs, true)); const scenarioGrid = scenario.querySelector('.grid'); + const scenarioBuildings = scenario.querySelector('.gameboard .buildings'); if (scenarioGrid) { grid.replaceWith(svg.ownerDocument.importNode(scenarioGrid, true)); } + if (scenarioBuildings) + svg.querySelector('.gameboard .buildings').replaceWith(svg.ownerDocument.importNode(scenarioBuildings, true)); + await loadScript(scenario, svg, 'radial') return loadScript(scenario, svg, 'map'); } |