diff options
-rw-r--r-- | play.js | 10 | ||||
-rw-r--r-- | rules.js | 2 |
2 files changed, 7 insertions, 5 deletions
@@ -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)) } @@ -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] + ".") |