summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js10
-rw-r--r--rules.js2
2 files changed, 7 insertions, 5 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))
}
diff --git a/rules.js b/rules.js
index 8c2dc7c..22a04b9 100644
--- a/rules.js
+++ b/rules.js
@@ -1217,13 +1217,13 @@ function end_action_stage() {
/* AUSTRIA PLACES ITS HUSSARS */
function goto_place_hussars() {
+ log("=" + P_AUSTRIA + " Hussars")
set_active_to_power(P_AUSTRIA)
game.state = "place_hussars"
}
function end_place_hussars() {
set_clear(game.moved)
- log("=" + P_AUSTRIA + " Hussars")
for (let p of all_hussars)
log("Hussar at S" + game.pos[p] + ".")