summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-21 11:43:50 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-21 11:43:50 +0100
commitc0e4a0d544c6559077834303ff1e23d889a5d78b (patch)
treef01b300886f375fdcd4f0738c73912f9e6bd665b
parentf0c03596bbcbe6476a0b9b08e90c951c6d61335d (diff)
download1989-dawn-of-freedom-c0e4a0d544c6559077834303ff1e23d889a5d78b.tar.gz
Additional debug steps
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 9d2d908..f28a1ce 100644
--- a/rules.js
+++ b/rules.js
@@ -2434,9 +2434,9 @@ function valid_spaces_infl() {
// Check adjacency information
for (let adj_space_id of piece.adjacent) {
- console.log('adj_space_id', adj_space_id)
- console.log('checking adjacent space', spaces[adj_space_id].name_unique)
+ console.log('adj_space_id', adj_space_id)
if (adj_space_id) {
+ console.log('checking adjacent space', spaces[adj_space_id].name_unique)
const adj_piece = game.pieces.find(p => p && p.space_id === adj_space_id);
console.log('adjacent piece', adj_piece)
// Check if the adjacent space is controlled by the opponent