summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-05-09 01:55:36 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:18 +0100
commite5a0479eb2d29ed075aca3cd4b751a8167133d62 (patch)
tree34a9d64106fc7fd77a6f2c1732deb044e87b3780 /play.js
parentef2a513f8c0fe374d2a3abdbcee6f6450bfb0b7c (diff)
downloadhammer-of-the-scots-e5a0479eb2d29ed075aca3cd4b751a8167133d62.tar.gz
Clean up grammar: use past tense consistently.
Diffstat (limited to 'play.js')
-rw-r--r--play.js9
1 files changed, 9 insertions, 0 deletions
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);