From b92d2be9b166530b015a9ac0e610d20b25f23232 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 14 Dec 2023 19:16:50 +0100 Subject: dkblue --- cards.css | 2 +- play.js | 4 ++++ tools/gendata.js | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cards.css b/cards.css index f98f255..ea86ff0 100644 --- a/cards.css +++ b/cards.css @@ -43,7 +43,7 @@ .name.red { background-color: #e32223; color: white; } .name.pink { background-color: #f49899; color: black; } .name.blue { background-color: #2482e4; color: white; } -.name.dkblue { background-color: #44d; color: white; } +.name.dkblue { background-color: #1239c3; color: white; } .name.sym { padding-left: 30px; diff --git a/play.js b/play.js index 6f7447d..3ea8f94 100644 --- a/play.js +++ b/play.js @@ -315,6 +315,10 @@ function on_update() { ui.name[p1].textContent = data.scenarios[view.scenario].players[0].name ui.name[p2].textContent = data.scenarios[view.scenario].players[1].name + let w1 = data.cards[view.front[0][0]].wing + let w2 = data.cards[view.front[1][0]].wing + + console.log("W", w1, w2) ui.role_name[p1].textContent = data.scenarios[view.scenario].players[0].name ui.role_name[p2].textContent = data.scenarios[view.scenario].players[1].name diff --git a/tools/gendata.js b/tools/gendata.js index bd1e799..e593eac 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -8,6 +8,7 @@ var result = [ ` + Table Battle Cards -- cgit v1.2.3