diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -345,6 +345,7 @@ function build_map() { element.classList.add("known") element.classList.add(block_color(b)) element.classList.add("block_"+b) + element.classList.add("block_"+block.row+"_"+block.col) element.addEventListener("mouseenter", on_focus_map_block) element.addEventListener("mouseleave", on_blur_map_block) element.addEventListener("click", on_click_map_block) @@ -370,6 +371,7 @@ function build_map() { element.classList.add("block") element.classList.add(block_color(b)) element.classList.add("block_"+b) + element.classList.add("block_"+block.row+"_"+block.col) element.addEventListener("mouseenter", on_focus_battle_block) element.addEventListener("mouseleave", on_blur_battle_block) element.addEventListener("click", on_click_battle_block) @@ -483,7 +485,7 @@ function layout_blocks_spread(location, north, south) { function position_block_spread(location, row, n_rows, col, n_cols, element) { let space = SPACES[location] - let block_size = (label_style === 'columbia') ? 56+6 : 48+6 + let block_size = (label_style === 'columbia') ? 60+6 : 48+6 let padding = (location === LEVY || location === DEAD) ? 6 : 3 let offset = block_size + padding let row_size = (n_rows-1) * offset @@ -585,6 +587,7 @@ function update_map() { battle = " battle" if (is_known_block(b)) { let image = " block_" + b + image += " block_"+info.row+"_"+info.col let known = " known" element.classList = block_color(b) + known + " block" + image + moved + battle update_steps(b, element, true) |