diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-06-21 21:18:28 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-07 18:39:37 +0200 |
commit | 78eb830571c26ebbfbcb8bc0608b11db868aeb90 (patch) | |
tree | 48b672dd6125849e851ed21e71d3d69ff7fe5292 /play.js | |
parent | d8aa3a523ce28ec3e3e616ad2c090bd3f4f835fa (diff) | |
download | time-of-crisis-78eb830571c26ebbfbcb8bc0608b11db868aeb90.tar.gz |
Praetorian Guard.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -747,11 +747,13 @@ function layout_available(list, dx, x0, y0) { let y = 1650 + 45 - y0 let x = 25 + x0 for (let item of list) { - item.style.left = x + "px" + let xo = item.my_id % 6 + if (list.length < 6) + xo -= 1 + item.style.left = (x + xo * dx) + "px" item.style.top = y + "px" item.style.zIndex = 1 item.my_stack = 0 - x += dx } } |