diff options
-rw-r--r-- | play.js | 4 | ||||
-rw-r--r-- | rules.js | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -58,7 +58,9 @@ function on_log(text) { text = text.replace(/^([A-Z]):/, '<span class="$1"> $1 </span>'); - if (text.match(/^~ .* ~$/)) + if (text.match(/^Scenario: /)) + p.className = 'st', text = text.substring(10); + else if (text.match(/^~ .* ~$/)) p.className = 'br', text = text.substring(2, text.length-2); else if (text.match(/^Start England turn/)) p.className = 'E'; @@ -2905,6 +2905,7 @@ exports.setup = function (seed, scenario, options) { setup_campaign(); else throw new Error("Unknown scenario:", scenario); + log("Scenario: " + scenario); start_year(); return game; } |