summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-08-22 01:27:40 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:26 +0100
commit58dc4f6e59d5cf463fa3b413caa08690dcfaa490 (patch)
treed2377d3c9947f3b826168dfb97e7967afe0f301c /play.js
parentb65be71ad11379120f905b5d43d6a456ac5744f5 (diff)
downloadrommel-in-the-desert-58dc4f6e59d5cf463fa3b413caa08690dcfaa490.tar.gz
Withdrawal regroup moves.
Unfinished.
Diffstat (limited to 'play.js')
-rw-r--r--play.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/play.js b/play.js
index 43ba4bc..f9f2c75 100644
--- a/play.js
+++ b/play.js
@@ -880,6 +880,7 @@ function on_update() {
action_button("end_rout", "End rout")
action_button("end_retreat", "End retreat")
action_button("end_combat", "End combat")
+ action_button("end_deployment", "End deployment")
action_button("end_buildup", "End buildup")
action_button("end_turn", "End turn")
@@ -928,6 +929,11 @@ function on_log_line(text, cn) {
function on_log(text) {
let p = document.createElement("div")
+ if (text.match(/^>>/)) {
+ text = text.substring(2)
+ p.className = "ii"
+ }
+
if (text.match(/^>/)) {
text = text.substring(1)
p.className = "i"