Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-07-25 12:25:44 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-07-25 12:25:44 -0700
commitf1d67663dab2fd084c7e3996a83d17e9a6c5e037 (patch)
tree9b084d52077dc518f67c831e73d6bbeacc6ba548 /src/index.js
parent37b05156c6024926cee7cbf6afc84759f78c8e36 (diff)
WIP: add multiple counters to troopers and cells
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index d2c1b01..df48274 100644
--- a/src/index.js
+++ b/src/index.js
@@ -84,6 +84,11 @@ async function buildScenario(req) {
// recordSheet.start(svg.querySelector('.start-locations'), gameboard.getUnits());
recordSheet.start(null, scenarioUnits);
+
+ const [trooper] = gameboard.getUnits();
+ Observable.notify('select', trooper);
+ gameboard.setCounter('prone');
+ gameboard.setCounter('1st-floor');
}
function updateTurnCounter() {