summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-16 23:38:01 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commitab0e69f51f9904f918c88953218aa3546638a697 (patch)
treec389ce72730973f1d1a7b8aaf37a28f294081e89 /play.js
parent03fa05f2f083ab541749ee56a8a8056b298200b9 (diff)
downloadpax-pamir-ab0e69f51f9904f918c88953218aa3546638a697.tar.gz
Colored faction icons in role panel.
Diffstat (limited to 'play.js')
-rw-r--r--play.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/play.js b/play.js
index 6720f11..5f8ad64 100644
--- a/play.js
+++ b/play.js
@@ -641,6 +641,7 @@ function on_update() {
ui.player[p].prize.textContent = view.players[p].prizes + " prizes"
}
+ ui.player[p].role.className = "role " + view.players[p].loyalty;
ui.player[p].role.classList.toggle("active", p === player_index[view.active])
ui.player[p].dial.className = "player_dial " + view.players[p].loyalty + " p" + p