summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/play.js b/play.js
index 0a9a40b..936f75b 100644
--- a/play.js
+++ b/play.js
@@ -1064,6 +1064,7 @@ function on_update() {
// Command buttons
action_button("attack", "Attack")
+ action_button("end_attack", "End Attack")
action_button("migrate", "Migrate")
action_button("end_migrate", "End Migrate")
action_button("rally", "Rally")
@@ -1385,7 +1386,7 @@ function on_log(text) {
text = text.substring(4)
p.className = "h2 ds"
}
- else if (text.match(/^\.h2 ds/)) {
+ else if (text.match(/^\.h2 DS/)) {
text = text.substring(6)
p.className = "h2 ds"
}
@@ -1393,7 +1394,7 @@ function on_log(text) {
text = text.substring(4)
p.className = "h2 bk"
}
- else if (text.match(/^\.h2 bk/)) {
+ else if (text.match(/^\.h2 BK/)) {
text = text.substring(6)
p.className = "h2 bk"
}
@@ -1401,7 +1402,7 @@ function on_log(text) {
text = text.substring(4)
p.className = "h2 ve"
}
- else if (text.match(/^\.h2 ve/)) {
+ else if (text.match(/^\.h2 VE/)) {
text = text.substring(6)
p.className = "h2 ve"
}
@@ -1409,6 +1410,10 @@ function on_log(text) {
text = text.substring(4)
p.className = "h2 mi"
}
+ else if (text.match(/^\.h2 MI/)) {
+ text = text.substring(4)
+ p.className = "h2 mi"
+ }
else if (text.match(/^\.h2 /)) {
text = text.substring(3)
p.className = "h2"