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/record_sheet.js')
-rw-r--r-- | src/modules/record_sheet.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/record_sheet.js b/src/modules/record_sheet.js index b180a8e..f13f5f8 100644 --- a/src/modules/record_sheet.js +++ b/src/modules/record_sheet.js @@ -137,11 +137,7 @@ function select(data) { record.classList.add('selected'); } -export function getSelected() { - return document.querySelector('.soldier-record.selected'); -} - -export function endMove() { +function endMove() { const selected = getSelected(); if (selected) { @@ -151,6 +147,10 @@ export function endMove() { deselect(); } +export function getSelected() { + return document.querySelector('.soldier-record.selected'); +} + export function start(startLoc, units) { clear(); const forces = createRecords(units); |