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-08-08 15:27:12 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-08-08 15:27:12 -0700 |
commit | 23188152c91a8e638ab832fa1fa122d59d1fc391 (patch) | |
tree | d8568304a5b4b91f4864a540619493a511a4bb24 /src/index.js | |
parent | b970b34a8848a65a44f1e3a64465270845371492 (diff) |
Add additional params to observable calls; reveal counter and record logic on selections
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js index a8e0c4b..89af2a1 100644 --- a/src/index.js +++ b/src/index.js @@ -172,8 +172,7 @@ document.querySelectorAll('.end-turn').forEach(el => gameboard.clearFiringArcs(opponent); if (opponentRecords.length > 0) { - Observable.notify('select', opponentRecords.at(0)); - //firstOpponentRecord.scrollIntoView({ behavior: 'smooth' }); + Observable.notify('select', opponentRecords.at(0), { revealCounter: true, revealRecord: true }); } }) ); |