summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-09-03 16:20:44 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:27 +0100
commit4b1373063559ec4794506d0e0cd623da64b25fa3 (patch)
tree1a26b2a37504ae4eca6815169414006c350857f2
parent3ee705d44d5862aeb950c572a51c7004a3259ad8 (diff)
downloadrommel-in-the-desert-4b1373063559ec4794506d0e0cd623da64b25fa3.tar.gz
move highlights?
-rw-r--r--play.html20
-rw-r--r--rules.js4
2 files changed, 13 insertions, 11 deletions
diff --git a/play.html b/play.html
index 0cfbcae..8781fa1 100644
--- a/play.html
+++ b/play.html
@@ -301,24 +301,28 @@ svg .hex.refit.action {
stroke: lightskyblue;
}
-svg .hex.to {
- stroke: blue;
- stroke-dasharray: 4 4;
-}
-
svg .hex.action {
stroke: ivory;
stroke-dasharray: 2 2;
stroke-dashoffset: 1;
}
+svg .hex.action.forced_march {
+ stroke: crimson;
+}
+
svg .hex.from {
stroke: yellow;
- stroke-dasharray: 8 4;
+ stroke-dasharray: none;
}
-svg .hex.action.forced_march {
- stroke: crimson;
+svg .hex.to {
+ stroke: yellow;
+ stroke-dasharray: 4 4;
+}
+
+svg .hex.to.from {
+ stroke-dasharray: 8 4;
}
svg .hex.selected {
diff --git a/rules.js b/rules.js
index f8ccf2c..776a2b2 100644
--- a/rules.js
+++ b/rules.js
@@ -3270,12 +3270,10 @@ states.move = {
let rommel1 = (game.rommel === 1) ? 1 : 0
let rommel2 = (game.rommel === 2) ? 1 : 0
- if (game.to1) view.to1 = game.to1
- if (game.to2) view.to2 = game.to2
-
if (game.selected < 0) {
view.prompt = `Move: Select unit to move.`
+ show_move_commands()
// Select Group Move 1
if (!game.to1 && game.from1) {