summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-14 00:33:38 +0100
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:15 +0200
commit2505041778d8ca6613be6de39dd34bc938cba6f2 (patch)
treea40500103c84db55a0d73b1439564d5f649832c6
parentb6957996cdedb3e87460f3c6389655b41273cc8e (diff)
downloadandean-abyss-2505041778d8ca6613be6de39dd34bc938cba6f2.tar.gz
WIP shipment layout
-rw-r--r--play.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/play.js b/play.js
index daec377..16bf3dd 100644
--- a/play.js
+++ b/play.js
@@ -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