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-02 17:18:45 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-02 17:18:45 -0700 |
commit | 5f17d5d786af74bb7b6bd6f99bcd0ccfab4fc9d5 (patch) | |
tree | b0bc7678fae2f79799f5aee4d99d872bb7f58673 /src/index.js | |
parent | 3c0e59f68ee061abc98dafa07301bd54005e94dc (diff) |
Add troop number and squad number when creating counters
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index f1bc918..24e017d 100644 --- a/src/index.js +++ b/src/index.js @@ -66,7 +66,26 @@ async function buildScenario(req) { panzoom.start(svg); gameboard.start(svg); - recordSheet.start(svg.querySelector('.start-locations'), gameboard.getUnits()); + // recordSheet.start(svg.querySelector('.start-locations'), gameboard.getUnits()); + const units = [ + { dataset: { allegiance: 'attacker', number: 1, squad: 1, weapon: 'blazer' }}, + { dataset: { allegiance: 'attacker', number: 2, squad: 1, weapon: 'rifle' }}, + { dataset: { allegiance: 'attacker', number: 3, squad: 1, weapon: 'rifle' }}, + { dataset: { allegiance: 'attacker', number: 4, squad: 1, weapon: 'smg' }}, + { dataset: { allegiance: 'attacker', number: 5, squad: 1, weapon: 'smg' }}, + { dataset: { allegiance: 'attacker', number: 6, squad: 1, weapon: 'smg' }}, + { dataset: { allegiance: 'attacker', number: 7, squad: 1, weapon: 'smg' }}, + + { dataset: { allegiance: 'defender', number: 1, squad: 1, weapon: 'blazer' }}, + { dataset: { allegiance: 'defender', number: 2, squad: 1, weapon: 'rifle' }}, + { dataset: { allegiance: 'defender', number: 3, squad: 1, weapon: 'rifle' }}, + { dataset: { allegiance: 'defender', number: 4, squad: 1, weapon: 'smg' }}, + { dataset: { allegiance: 'defender', number: 5, squad: 1, weapon: 'smg' }}, + { dataset: { allegiance: 'defender', number: 6, squad: 1, weapon: 'smg' }}, + { dataset: { allegiance: 'defender', number: 7, squad: 1, weapon: 'smg' }}, + ] + + recordSheet.start(null, units); } function updateTurnCounter() { |