diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-13 13:22:00 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:19:39 +0100 |
commit | 4df24dfec4e012d4bba3235166034fba3c28d0fe (patch) | |
tree | d29a3c2ef96c6f4a547d372f19e1837b4669eb26 /ui.js | |
parent | cd3a2fc467cb8f4aefcf0190c519839f038d3372 (diff) | |
download | crusader-rex-4df24dfec4e012d4bba3235166034fba3c28d0fe.tar.gz |
crusader: Reveal all blocks when the game is over.
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 { |