summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
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);