diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-19 15:15:54 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | ecf9632a91e9da727b978a00c8d231221095fb50 (patch) | |
tree | 80f33eacd0a26d644699ef268589da05967fec85 /play.js | |
parent | 0524f40f02364fed87269b60eddccb8ee029604b (diff) | |
download | andean-abyss-ecf9632a91e9da727b978a00c8d231221095fb50.tar.gz |
Propaganda Phase (part 1).
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -601,8 +601,8 @@ function calc_oppose_bases() { if (view.support[s] < 0) total -= data.spaces[s].pop * view.support[s] } - for (let b = first_piece[FARC][BASE]; b <= last_piece[FARC][BASE]; ++b) - if (b !== AVAILABLE) + for (let p = first_piece[FARC][BASE]; p <= last_piece[FARC][BASE]; ++p) + if (view.pieces[p] !== AVAILABLE) total += 1 return total } @@ -1125,6 +1125,10 @@ function on_log(text) { text = text.substring(3) p.className = "h2 farc" } + else if (text.match(/^\.h2 /)) { + text = text.substring(3) + p.className = "h2" + } else if (text.match(/^\.h3/)) { text = text.substring(4) p.className = "h3" |