From 82442689adb66ad3f46a52283bff097eb30ec2a9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Sep 2023 19:22:19 +0200 Subject: Allow entering reinforcements from both 1017 and 1018. --- play.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'play.js') diff --git a/play.js b/play.js index 72d34b3..5736494 100644 --- a/play.js +++ b/play.js @@ -72,6 +72,7 @@ const TURN_DX = 70 const REINF_OFFSET = { 1015: [ hex_dx/2, hex_dy * 3/4 ], + 1017: [ hex_dx/2, hex_dy * 3/4 ], 1018: [ -hex_dx/2, hex_dy * 3/4 ], 1020: [ -hex_dx/2, hex_dy * 3/4 ], 3000: [ -hex_dx/2, 0 ], @@ -333,6 +334,8 @@ function on_update() { let x, y if (hex === REINFORCEMENTS) { hex = find_reinforcement_hex(id) + if (typeof hex !== "number") + hex = hex[0] s = find_reinforcement_z(id) z = 4 - s x = ui.hex_x[hex] + s * 24 -- cgit v1.2.3