diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-09-01 12:39:36 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-09-01 23:57:26 +0200 |
commit | 1351599374d27912b055b0dfba3ba93824ba3cbb (patch) | |
tree | 4644b67d2c06cb74f0b39d883a810c60a4a8bb12 | |
parent | bf6a280e8d11940a76c829c6accaedf8e82aad18 (diff) | |
download | time-of-crisis-1351599374d27912b055b0dfba3ba93824ba3cbb.tar.gz |
Fix support boxes 5-8 in Italia.
-rw-r--r-- | play.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -833,6 +833,16 @@ function create_support_buttons(region) { e.style.top = y + "px" e.style.left = x + "px" } + if (region === ITALIA) { + [ x0, y0 ] = BOXES["Italia Support 2"] + for (let i = 5; i <= 7; ++i) { + let x = Math.floor(-1 + x0 + (i-5) * 51.6666) + let y = (-1 + y0) + let e = create_thing({ className: "support s" + i, my_action: "support", my_id: (region << 3) + i }) + e.style.top = y + "px" + e.style.left = x + "px" + } + } } function is_action(action, arg) { |