summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.css27
-rw-r--r--play.js8
-rw-r--r--rules.js8
3 files changed, 38 insertions, 5 deletions
diff --git a/play.css b/play.css
index c46aef5..922bc69 100644
--- a/play.css
+++ b/play.css
@@ -207,6 +207,33 @@ header.your_turn.austria { background-color: var(--color-light-austria); }
#log .h.pragmatic { background-color: var(--color-light-pragmatic); }
#log .h.saxony { background-color: var(--color-light-saxony); }
+#log .h.austria.pragmatic {
+ background-image: linear-gradient(120deg,
+ var(--color-light-austria) 20%,
+ var(--color-light-pragmatic) 80%
+ );
+}
+#log .h.austria.pragmatic.saxony {
+ background-image: linear-gradient(120deg,
+ var(--color-light-austria) 15%,
+ var(--color-light-pragmatic) 40%,
+ var(--color-light-pragmatic) 60%,
+ var(--color-light-saxony) 85%
+ );
+}
+#log .h.france.bavaria {
+ background-image: linear-gradient(120deg,
+ var(--color-light-france) 20%,
+ var(--color-light-bavaria) 80%
+ );
+}
+#log .h.prussia.saxony {
+ background-image: linear-gradient(120deg,
+ var(--color-light-prussia) 20%,
+ var(--color-light-saxony) 80%
+ );
+}
+
#log div.q { font-style: italic; padding-left: 8px; text-indent: 12px; }
#log div { padding-left: 20px; text-indent: -12px; }
diff --git a/play.js b/play.js
index 6d02d51..96a1242 100644
--- a/play.js
+++ b/play.js
@@ -57,7 +57,13 @@ const SET_ASIDE_FRANCE = 4
const SET_ASIDE_PRUSSIA = 5
const power_name = [ "France", "Prussia", "Pragmatic Army", "Austria", "Bavaria", "Saxony" ]
-const power_class = [ "france", "prussia", "pragmatic", "austria", "bavaria", "saxony" ]
+const power_class = [
+ "france", "prussia", "pragmatic", "austria", "bavaria", "saxony",
+ "france bavaria",
+ "prussia saxony",
+ "austria pragmatic",
+ "austria pragmatic saxony",
+]
const F_EMPEROR_FRANCE = 1
const F_EMPEROR_AUSTRIA = 2
diff --git a/rules.js b/rules.js
index 7343c2a..05dba84 100644
--- a/rules.js
+++ b/rules.js
@@ -1198,19 +1198,19 @@ function next_sequence_of_play() {
function start_action_stage() {
switch (game.power) {
case P_FRANCE:
- log("=0 France and Bavaria")
+ log("=6 France and Bavaria")
break
case P_PRUSSIA:
if (is_saxony_prussian())
- log("=1 Prussia and Saxony")
+ log("=7 Prussia and Saxony")
else
log("=1 Prussia")
break
case P_AUSTRIA:
if (is_saxony_prussian())
- log("=2 Austria and Pragmatic Army")
+ log("=8 Austria and the Pragmatic Army")
else
- log("=2 Austria, Pragmatic Army, and Saxony")
+ log("=9 Austria, Pragmatic, Saxony")
break
}
next_sequence_of_play()