summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-09-29 14:16:21 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-09-29 14:16:21 +0200
commit743249cc75444bc57cbab849735040354064b800 (patch)
tree322c167e76161226657b438a7ab00dee2f6fc776 /rules.js
parent5567701ee8786e38bd724ba7143794b9fa18a671 (diff)
downloadalgeria-743249cc75444bc57cbab849735040354064b800.tar.gz
deploy
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 5bc7eb7..7a179c0 100644
--- a/rules.js
+++ b/rules.js
@@ -335,6 +335,7 @@ function unit_box(u) {
}
function set_unit_box(u, x) {
+ console.log("set_unit_box", u, x)
game.units[u] = (game.units[u] & ~UNIT_BOX_MASK) | (x << UNIT_BOX_SHIFT)
}
@@ -725,7 +726,7 @@ states.scenario_setup = {
if (done)
gen_action('end_deployment')
if (game.selected.length > 0) {
- for (let i = 0; i < areas.length; ++i) {
+ for (let i = 3; i < area_count; ++i) {
let loc = areas[i].loc
gen_action_loc(loc)
}