diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-05-09 01:55:36 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 12:53:18 +0100 |
commit | e5a0479eb2d29ed075aca3cd4b751a8167133d62 (patch) | |
tree | 34a9d64106fc7fd77a6f2c1732deb044e87b3780 /play.js | |
parent | ef2a513f8c0fe374d2a3abdbcee6f6450bfb0b7c (diff) | |
download | hammer-of-the-scots-e5a0479eb2d29ed075aca3cd4b751a8167133d62.tar.gz |
Clean up grammar: use past tense consistently.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |