Web Dev Solutions

Catalin Mititiuc

From f1d67663dab2fd084c7e3996a83d17e9a6c5e037 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 25 Jul 2024 12:25:44 -0700 Subject: WIP: add multiple counters to troopers and cells --- src/index.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/index.js') 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() { -- cgit v1.2.3