From 4df24dfec4e012d4bba3235166034fba3c28d0fe Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 13 Jul 2021 13:22:00 +0200 Subject: crusader: Reveal all blocks when the game is over. --- ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui.js b/ui.js index 34297f9..ea2097c 100644 --- a/ui.js +++ b/ui.js @@ -463,6 +463,8 @@ function hide_block(element) { } function is_known_block(info, who) { + if (game_over) + return true; if (info.owner == player || info.owner == ASSASSINS || who == game.assassinate) return true; let town = game.location[who]; @@ -502,7 +504,7 @@ function update_map() { let image = " block_" + info.image; let steps = " r" + (info.steps - game.steps[b]); let known = " known"; - if ((town == S_POOL || town == F_POOL) && b != game.who) + if ((town == S_POOL || town == F_POOL) && b != game.who && !game_over) known = ""; element.classList = info.owner + known + " block" + image + steps + moved; } else { -- cgit v1.2.3