diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-29 20:21:29 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-29 20:21:29 +0100 |
commit | c55bedbaef91557377d1dad3c642a3f9406a5876 (patch) | |
tree | 0671cae7504f0b44445ef556bc01eb3d57411a7e | |
parent | c2cf78994539419d6503282fcaf1ef8b5cd2af8c (diff) | |
download | 1989-dawn-of-freedom-c55bedbaef91557377d1dad3c642a3f9406a5876.tar.gz |
Debugging Crowd Turns infl
-rw-r--r-- | rules.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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;
}
}
|