From e5a0479eb2d29ed075aca3cd4b751a8167133d62 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 9 May 2022 01:55:36 +0200 Subject: Clean up grammar: use past tense consistently. --- play.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'play.js') diff --git a/play.js b/play.js index d890b47..af2e45f 100644 --- a/play.js +++ b/play.js @@ -70,6 +70,15 @@ function on_log(text) { p.className = 'st', text = text.replace(/\.$/, ""); else if (text.match(/^(Battle in|Defection battle in)/)) p.className = 'bs'; + else if (text.match(/^.h1 /)) { + p.className = 'st', text = text.substring(4); + } + else if (text.match(/^.turn England/)) { + p.className = 'E', text = text.substring(6); + } + else if (text.match(/^.turn Scotland/)) { + p.className = 'S', text = text.substring(6); + } if (text.match(/^Start /)) text = text.substring(6); -- cgit v1.2.3