summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-02 15:50:45 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-02 15:51:22 +0200
commit5fea8ea3d372167a251bfbfaa764ec74b0e7fdf6 (patch)
treec9ee8327a358987835566ea43d0c537fc9ba08aa
parent5be29e653312fe0edee449a4dbc4e62cda53243e (diff)
downloadjulius-caesar-5fea8ea3d372167a251bfbfaa764ec74b0e7fdf6.tar.gz
Remove special case view for game over.
-rw-r--r--play.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/play.js b/play.js
index b9a4870..16fb4e4 100644
--- a/play.js
+++ b/play.js
@@ -498,8 +498,6 @@ function hide_block(element) {
}
function is_known_block(who) {
- if (view.game_over && player === 'Observer')
- return true
if (block_owner(who) === player)
return true
let where = view.location[who]
@@ -509,8 +507,6 @@ function is_known_block(who) {
}
function is_visible_block(where, who) {
- if (view.game_over && player === 'Observer')
- return true
if (where === LEVY)
return block_owner(who) === player
return true
@@ -533,10 +529,7 @@ function update_map() {
if (is_known_block(b)) {
let image = " block_" + b
let known = " known"
- let jupiter = ""
- if (set_has(view.traitor, b) && view.game_over)
- jupiter = " jupiter"
- element.classList = block_color(b) + known + " block" + image + moved + jupiter
+ element.classList = block_color(b) + known + " block" + image + moved
update_steps(b, element, true)
} else {
let jupiter = ""