diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-02 15:50:45 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-02 15:51:22 +0200 |
commit | 5fea8ea3d372167a251bfbfaa764ec74b0e7fdf6 (patch) | |
tree | c9ee8327a358987835566ea43d0c537fc9ba08aa | |
parent | 5be29e653312fe0edee449a4dbc4e62cda53243e (diff) | |
download | julius-caesar-5fea8ea3d372167a251bfbfaa764ec74b0e7fdf6.tar.gz |
Remove special case view for game over.
-rw-r--r-- | play.js | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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 = "" |