summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-03 16:16:58 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit88cb72429f29716a44fa0fa81dffeb319ccc19fe (patch)
tree8fd70fa91cfe623197ca294d9dfeb3de8745b358
parentbae03391deeb1b129b5744cb4bacf929a8b21b09 (diff)
downloadnevsky-88cb72429f29716a44fa0fa81dffeb319ccc19fe.tar.gz
Give priority to "selected" and "action" over "command" highlighting.
-rw-r--r--play.html24
-rw-r--r--rules.js13
2 files changed, 16 insertions, 21 deletions
diff --git a/play.html b/play.html
index 72b876e..897cf0d 100644
--- a/play.html
+++ b/play.html
@@ -310,14 +310,14 @@ body.Teutons #plan_actions .russian { display: none }
filter: grayscale(50%)
}
-.mat.selected .background {
- box-shadow: 0 0 0 1px #584800, 0 0 0 3px yellow;
-}
-
.mat.command .background {
box-shadow: 0 0 0 1px #584800, 0 0 0 3px gold;
}
+.mat.selected .background {
+ box-shadow: 0 0 0 1px #584800, 0 0 0 3px yellow;
+}
+
.mat .capabilities {
position: absolute;
width: 372px;
@@ -900,6 +900,14 @@ body.shift .mustered_vassals {
transform: translateY(8px)
}
+.cylinder.command {
+ filter:
+ drop-shadow(2px 0px 0px gold)
+ drop-shadow(0px 2px 0px gold)
+ drop-shadow(0px -2px 0px gold)
+ drop-shadow(-2px 0px 0px gold);
+}
+
.cylinder.action {
filter:
drop-shadow(2px 0px 0px white)
@@ -916,14 +924,6 @@ body.shift .mustered_vassals {
drop-shadow(-2px 0px 0px yellow);
}
-.cylinder.command {
- filter:
- drop-shadow(2px 0px 0px gold)
- drop-shadow(0px 2px 0px gold)
- drop-shadow(0px -2px 0px gold)
- drop-shadow(-2px 0px 0px gold);
-}
-
.cylinder.andreas { background-image: url(images/lord_teutonic_1.svg) }
.cylinder.hermann.marshal { background-image: url(images/lord_teutonic_2.svg) }
.cylinder.hermann { background-image: url(images/lord_teutonic_3.svg) }
diff --git a/rules.js b/rules.js
index cafb883..c8b59b0 100644
--- a/rules.js
+++ b/rules.js
@@ -1,23 +1,18 @@
"use strict"
-// TODO: lift_siege / besieged needs checking!
-// TODO: remove_legate_if_endangered needs checking!
-
-// TODO: clean up and use play_card/discard_card/remove_card helpers
-
// TODO: hit remainders
// TODO: choose crossbow/normal hit application order
-
// TODO: Ambush
// TODO: Bridge - kn, sgt, 1x lh, maa, militia, serf, lh, ah
+// TODO: Lodya capability during supply!
+// TODO: 2nd edition supply rule - no reuse of transports
+// TODO: lift_siege / besieged needs checking!
+// TODO: remove_legate_if_endangered needs checking!
// TODO: precompute distance to supply lines for faster supply path rejection
// TODO - precompute possible supply lines for faster rejections
// Use BFS for winter/rasputitsa supply
-// TODO: Lodya capability during supply!
-// TODO: 2nd edition supply rule - no reuse of transports
-
// TODO: show command lord different from selected lord (inactive player)
// TODO: show siegeworks + walls on battle mat for protection indication
// TODO: show feed x2 on lord mats with > 6 units