diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-06-24 00:16:39 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-07 18:39:37 +0200 |
commit | ea9dd06941674256b07c5353d39121c3983ab9b1 (patch) | |
tree | e11411346a519fce2573297ed8d656e85b2d18da /play.js | |
parent | b265df692299a50c69daf11f06a82e3ef24cd419 (diff) | |
download | time-of-crisis-ea9dd06941674256b07c5353d39121c3983ab9b1.tar.gz |
Prompts.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 30 |
1 files changed, 18 insertions, 12 deletions
@@ -635,8 +635,8 @@ let ui = { document.getElementById("mapsvg").getElementById("region_alamanni"), document.getElementById("mapsvg").getElementById("region_franks"), document.getElementById("mapsvg").getElementById("region_goths"), - document.getElementById("mapsvg").getElementById("region_nomads"), document.getElementById("mapsvg").getElementById("region_sassanids"), + document.getElementById("mapsvg").getElementById("region_nomads"), document.getElementById("mapsvg").getElementById("region_mare_occidentale"), document.getElementById("mapsvg").getElementById("region_mare_orientale"), @@ -955,6 +955,8 @@ function on_update() { let legacy = view.legacy[pi] let turns = view.emperor_turns[pi] + if (legacy > 80) + legacy -= 80 if (legacy > 40) { legacy -= 40 ui.legacy[pi].classList.toggle("legacy_40", true) @@ -1350,27 +1352,31 @@ function on_log(text) { p.className = 'turn ' + text } - if (text.match(/^\.h1/)) { + if (text.match(/^\.h1 Red/)) { text = text.substring(4) - p.className = "h1" + p.className = "h1 p_red" } - else if (text.match(/^\.h2 Red/)) { + else if (text.match(/^\.h1 Blue/)) { text = text.substring(4) - p.className = "h2 p_red" + p.className = "h1 p_blue" } - else if (text.match(/^\.h2 Blue/)) { + else if (text.match(/^\.h1 Yellow/)) { text = text.substring(4) - p.className = "h2 p_blue" + p.className = "h1 p_yellow" } - else if (text.match(/^\.h2 Yellow/)) { + else if (text.match(/^\.h1 Green/)) { text = text.substring(4) - p.className = "h2 p_yellow" + p.className = "h1 p_green" } - else if (text.match(/^\.h2 Green/)) { + else if (text.match(/^\.h1/)) { text = text.substring(4) - p.className = "h2 p_green" + p.className = "h1" + } + else if (text.match(/^\.h4/)) { + text = text.substring(4) + p.className = "h3" } - if (text.match(/^\.h3/)) { + else if (text.match(/^\.h3/)) { text = text.substring(4) p.className = "h3" } |