summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-14 19:16:50 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commitb92d2be9b166530b015a9ac0e610d20b25f23232 (patch)
tree31be78389fe87b96b64abdbfb4029ec060108bac
parent9a30ef0fc5a5a6fb45e1dc9d72cfa762fe8285b5 (diff)
downloadtable-battles-b92d2be9b166530b015a9ac0e610d20b25f23232.tar.gz
dkblue
-rw-r--r--cards.css2
-rw-r--r--play.js4
-rw-r--r--tools/gendata.js1
3 files changed, 6 insertions, 1 deletions
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 = [
`<!doctype html>
<html lang="en">
<head>
+<meta charset="utf-8">
<title>Table Battle Cards</title>
<link rel="stylesheet" href="/fonts/fonts.css">
<link rel="stylesheet" href="/table-battles/cards.css">