summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-22 12:44:15 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-22 12:44:15 +0200
commit2130e4b6486bf7dff444a954241e07535d221071 (patch)
treec1b3223505f514a58743bfec0e07af716ec0446a
parenta0fdc24e3c84ffc62ae21b7c0c2806b70cdcb414 (diff)
downloadfriedrich-2130e4b6486bf7dff444a954241e07535d221071.tar.gz
Show offensive option in player list.
-rw-r--r--play.css2
-rw-r--r--play.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/play.css b/play.css
index 61115f9..308cd65 100644
--- a/play.css
+++ b/play.css
@@ -24,6 +24,8 @@
#role_Maria_Theresa { background-color: var(--color-role-austria) }
#role_Pompadour { background-color: var(--color-role-france) }
+#role_Frederick.oo .role_name::after { content: " (OO)" }
+
.role.active span { font-weight: bold }
header.your_turn.prussia { background-color: var(--color-light-prussia); }
diff --git a/play.js b/play.js
index 7d25ba2..3bd7b21 100644
--- a/play.js
+++ b/play.js
@@ -1157,6 +1157,8 @@ function on_update() {
ui.header.classList.toggle("imperial", view.power === P_IMPERIAL)
ui.header.classList.toggle("france", view.power === P_FRANCE)
+ roles.Frederick.element.classList.toggle("oo", !!view.oo)
+
update_player_power_list("Frederick")
update_player_power_list("Elisabeth")
update_player_power_list("Maria Theresa")