summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-01 12:39:36 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-01 23:57:26 +0200
commit1351599374d27912b055b0dfba3ba93824ba3cbb (patch)
tree4644b67d2c06cb74f0b39d883a810c60a4a8bb12
parentbf6a280e8d11940a76c829c6accaedf8e82aad18 (diff)
downloadtime-of-crisis-1351599374d27912b055b0dfba3ba93824ba3cbb.tar.gz
Fix support boxes 5-8 in Italia.
-rw-r--r--play.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/play.js b/play.js
index 06fb3e8..befa0f3 100644
--- a/play.js
+++ b/play.js
@@ -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) {