From 91af980dfff5ea7648ce882c3ae3d2b94eb96fa1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 23 Mar 2022 15:09:46 +0100 Subject: Show current scenario in game log. --- play.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index 241ce49..d890b47 100644 --- a/play.js +++ b/play.js @@ -58,7 +58,9 @@ function on_log(text) { text = text.replace(/^([A-Z]):/, ' $1 '); - 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'; -- cgit v1.2.3