summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-25 10:57:09 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-25 10:57:09 +0200
commit2da0d09e5718f8099b1e42ebdbabf31f68e7a4b0 (patch)
tree9580d3e48f06226ea3059564c994187391d1339f /play.js
parent9f2f99a05be1bf496dd398f1337e3e9f1767c77e (diff)
downloadmaria-2da0d09e5718f8099b1e42ebdbabf31f68e7a4b0.tar.gz
move hussars to east map border
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/play.js b/play.js
index 725f1ad..0083dfd 100644
--- a/play.js
+++ b/play.js
@@ -243,8 +243,10 @@ const ELECTORAL_COLLEGE_X = 526
const ELECTORAL_COLLEGE_Y = 1574
const ELECTORAL_COLLEGE_DX = 52
-const HUSSAR_X = 2190
-const HUSSAR_Y = 1630
+const HUSSAR_X = 2485 - 36
+const HUSSAR_Y = 960
+const HUSSAR_DX = 0
+const HUSSAR_DY = -48
const VICTORY_BOX_X = [ 115, 170, 235 ]
const VICTORY_BOX_Y = [ 235, 290, 345, 401 ]
@@ -916,8 +918,8 @@ function layout_hussar(id, s) {
y = data.cities.y[s]
}
- e.style.left = (x - 21 + n * ELIMINATED_GENERAL_DX) + "px"
- e.style.top = (y - 29 + 7) + "px"
+ e.style.left = (x - 21 + n * HUSSAR_DX) + "px"
+ e.style.top = (y - 29 + 7 + n * HUSSAR_DY) + "px"
e.classList.toggle("selected", set_has(view.selected, id))
}