diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-14 00:33:16 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:15 +0200 |
commit | b6957996cdedb3e87460f3c6389655b41273cc8e (patch) | |
tree | 1fbac04917ab21566cfd12f9ed5b8283a7907cd3 /play.js | |
parent | 80c8991a117fe20d583ff7df272fa50f7cdd2f5c (diff) | |
download | andean-abyss-b6957996cdedb3e87460f3c6389655b41273cc8e.tar.gz |
Permanently removed out of play pieces (AUC guerrillas from event).
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -32,6 +32,7 @@ const last_loc = data.last_loc // Spaces const AVAILABLE = -1 +const OUT_OF_PLAY = -2 // Sequence of Play options const ELIGIBLE = 0 @@ -878,6 +879,9 @@ function on_update() { for (; tix < 40; ++tix) ui.terror[tix].className = "hide" + for (let i = first_piece[AUC][GUERRILLA]; i <= last_piece[AUC][GUERRILLA]; ++i) + ui.pieces[i].classList.toggle("hide", view.pieces[i] === OUT_OF_PLAY) + list.length = 0 for (let i = 0; i < 4; ++i) { let shx = view.shipments[i] |