summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-01 15:04:23 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-01 15:04:23 +0200
commit562e1822729e85834e54cc76d0bfbc8a584c572c (patch)
treee3cf66ad203b7bebcc0b0f31f64e5ab772cee746 /play.js
parente1a0ee4619c330f9da81f00dc4f1e50c5ee61d02 (diff)
downloadmaria-562e1822729e85834e54cc76d0bfbc8a584c572c.tar.gz
setup
Diffstat (limited to 'play.js')
-rw-r--r--play.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/play.js b/play.js
index 4204a13..daf430c 100644
--- a/play.js
+++ b/play.js
@@ -645,7 +645,7 @@ function layout_general(id, s) {
// e.style.top = (y + 7 - 15 * n) + "px"
e.style.top = (y + 2 - 15 * n) + "px"
e.style.zIndex = y + n + 1
- e.className = power_class[GENERAL_POWER[id]] + " piece number n" + view.troops[id]
+ e.className = power_class[piece_power[id]] + " piece number n" + view.troops[id]
}
function layout_train(id, s) {
@@ -762,18 +762,16 @@ function on_update() {
ui.header.classList.toggle("prussia", view.power === P_PRUSSIA)
ui.header.classList.toggle("saxony", view.power === P_SAXONY)
ui.header.classList.toggle("pragmatic", view.power === P_PRAGMATIC)
- ui.header.classList.toggle("austira", view.power === P_AUSTRIA)
+ ui.header.classList.toggle("austria", view.power === P_AUSTRIA)
sort_power_panel(true)
-/*
for (let p = 0; p < 20; ++p)
layout_general(p, view.pos[p])
for (let p = 20; p < 30; ++p)
layout_train(p, view.pos[p])
for (let p = 30; p < 32; ++p)
layout_hussar(p, view.pos[p])
-*/
let back = [ 0, 0, 0, 0 ]