diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-08-22 01:27:40 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 13:11:26 +0100 |
commit | 58dc4f6e59d5cf463fa3b413caa08690dcfaa490 (patch) | |
tree | d2377d3c9947f3b826168dfb97e7967afe0f301c /play.js | |
parent | b65be71ad11379120f905b5d43d6a456ac5744f5 (diff) | |
download | rommel-in-the-desert-58dc4f6e59d5cf463fa3b413caa08690dcfaa490.tar.gz |
Withdrawal regroup moves.
Unfinished.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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" |