diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-14 00:33:38 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:15 +0200 |
commit | 2505041778d8ca6613be6de39dd34bc938cba6f2 (patch) | |
tree | a40500103c84db55a0d73b1439564d5f649832c6 | |
parent | b6957996cdedb3e87460f3c6389655b41273cc8e (diff) | |
download | andean-abyss-2505041778d8ca6613be6de39dd34bc938cba6f2.tar.gz |
WIP shipment layout
-rw-r--r-- | play.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -885,9 +885,10 @@ function on_update() { list.length = 0 for (let i = 0; i < 4; ++i) { let shx = view.shipments[i] - if (shx === 0) { + if (shx === 0) list.push(ui.shipments[i]) - } else if ((shx & 3) === 0) { + /* + if ((shx & 3) === 0) { let holder = ui.pieces[shx >> 2] place_piece_under(ui.shipments[i], holder) } else { @@ -895,6 +896,7 @@ function on_update() { let xy = get_center_xy(shx >> 2) place_piece(ui.shipments[i], xy[0] - 26, xy[1] - 72, 0) } + */ if (view.actions && view.actions.shipment && set_has(view.actions.shipment, i)) ui.shipments[i].classList.add("action") else |