diff options
author | Joël Simoneau <simoneaujoel@gmail.com> | 2025-03-19 22:25:42 -0400 |
---|---|---|
committer | Joël Simoneau <simoneaujoel@gmail.com> | 2025-03-19 22:25:42 -0400 |
commit | 6b3319a0b88c234a7a0c5ed72954c381ec1ec327 (patch) | |
tree | 7cc577d0785b28b6d3f9420f6ce36794945cebc6 /play.js | |
parent | 1e328ef28fe8c58f6787090d751dc5d8ca1d0811 (diff) | |
download | vijayanagara-6b3319a0b88c234a7a0c5ed72954c381ec1ec327.tar.gz |
Transfer cavalry
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 33 |
1 files changed, 19 insertions, 14 deletions
@@ -172,7 +172,7 @@ const space_id = [ ] /* LAYOUT DATA */ -// :r !node tools/parse-layout.js +// modified from tools/parse-layout.js const layout = { "circles": { "provinces": { @@ -285,22 +285,22 @@ const layout = { "h": 126 }, "DS_available": { - "x": 796, - "y": 91, - "w": 388, - "h": 223 + "x": 792, + "y": 85, + "w": 400, + "h": 237 }, "BK_available": { - "x": 21, - "y": 908, - "w": 238, - "h": 224 + "x": 16, + "y": 902, + "w": 250, + "h": 237 }, "VE_available": { - "x": 21, - "y": 1405, - "w": 239, - "h": 225 + "x": 16, + "y": 1401, + "w": 251, + "h": 236 } }, "tracks": { @@ -594,6 +594,11 @@ function init_ui() { } } + ui.spaces[S_MONGOL_INVADERS].classList.toggle("mi", true) + ui.spaces[S_DS_AVAILABLE].classList.toggle("ds", true) + ui.spaces[S_BK_AVAILABLE].classList.toggle("bk", true) + ui.spaces[S_VE_AVAILABLE].classList.toggle("ve", true) + function create_piece(c, action, id, x, y) { let e = create("div", { className: c, @@ -1043,7 +1048,7 @@ function on_update() { xy = get_layout_xy(s, "mongols") layout_pieces(items, xy[0], xy[1], discs, MI) } else if (s <= S_VE_AVAILABLE) { - // Nothing ? + ui.spaces[s].classList.toggle("action", is_action("space", s)) } else if (s <= S_BK_INF_4) { items.length = discs.length = 0 filter_piece_list(items, s, BK, ELITE) |