summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-29 20:21:29 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-29 20:21:29 +0100
commitc55bedbaef91557377d1dad3c642a3f9406a5876 (patch)
tree0671cae7504f0b44445ef556bc01eb3d57411a7e
parentc2cf78994539419d6503282fcaf1ef8b5cd2af8c (diff)
download1989-dawn-of-freedom-c55bedbaef91557377d1dad3c642a3f9406a5876.tar.gz
Debugging Crowd Turns infl
-rw-r--r--rules.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index cadb7d7..d54c78a 100644
--- a/rules.js
+++ b/rules.js
@@ -2688,14 +2688,16 @@ function check_control(space_id) {
}
function check_opp_control(space_id) {
- console.log('in check control, space', spaces[space_id].name_unique)
+ if (spaces[space_id].country === 'Romania') {
+ console.log('in check opp control, space', spaces[space_id].name_unique)
+ }
if (game.active === DEM && ((game.comInfl[space_id] - game.demInfl[space_id]) >= spaces[space_id].stability)) {
return true;
} else if (game.active === COM && ((game.demInfl[space_id] - game.comInfl[space_id]) >= spaces[space_id].stability)) {
- console.log('true')
+ //console.log('true')
return true;
} else {
- console.log('false')
+ //console.log('false')
return false;
}
}