summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-13 13:22:00 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commit4df24dfec4e012d4bba3235166034fba3c28d0fe (patch)
treed29a3c2ef96c6f4a547d372f19e1837b4669eb26 /ui.js
parentcd3a2fc467cb8f4aefcf0190c519839f038d3372 (diff)
downloadcrusader-rex-4df24dfec4e012d4bba3235166034fba3c28d0fe.tar.gz
crusader: Reveal all blocks when the game is over.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js4
1 files changed, 3 insertions, 1 deletions
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 {