From 0cc290407e8792ee79c918d528e500237173da97 Mon Sep 17 00:00:00 2001 From: Joël Simoneau Date: Sun, 29 Dec 2024 12:49:18 -0500 Subject: Conspire automation --- play.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'play.js') 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" -- cgit v1.2.3