From b6957996cdedb3e87460f3c6389655b41273cc8e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 14 Mar 2023 00:33:16 +0100 Subject: Permanently removed out of play pieces (AUC guerrillas from event). --- play.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'play.js') diff --git a/play.js b/play.js index ec27b0f..daec377 100644 --- a/play.js +++ b/play.js @@ -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] -- cgit v1.2.3