summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-27 11:22:47 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-27 11:22:47 +0100
commit707bb75a61c871aede018ae14b845127b2980723 (patch)
tree4c317a2719bf27009f0ee6eb1976074dc8b4c274
parent30c3503c856185833af21190995224cbaa1522a3 (diff)
download1989-dawn-of-freedom-707bb75a61c871aede018ae14b845127b2980723.tar.gz
Small fixes to remove references to demCtrl aand comCtrl
-rw-r--r--rules.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index db84ced..f8c62b9 100644
--- a/rules.js
+++ b/rules.js
@@ -2290,7 +2290,7 @@ function do_sc(space) {
roll--
log('-1 from C59')
}
- if ((game.active === COM && game.persistent_events['stand_fast'] === DEM && check_dem_control(clicked_space)) || (game.active === DEM && game.persistent_events['stand_fast'] === COM && game.pieces[clicked_space].comCtrl === 1)){
+ if ((game.active === COM && game.persistent_events['stand_fast'] === DEM && check_dem_control(clicked_space)) || (game.active === DEM && game.persistent_events['stand_fast'] === COM && check_com_control(clicked_space))){
roll--
log('-1 from C100')
}
@@ -4652,8 +4652,8 @@ function vm_breakaway_baltic_republics() {
}
game.playable_cards[109].playable = 1
game.playable_cards[14].playable = 0
- if (game.pieces[56].demCtrl === 0 && game.persistent_events['systematization'] !== 56) {game.valid_spaces.push(56)}
- if (game.pieces[70].demCtrl === 0) {game.valid_spaces.push(70)}
+ if (!check_dem_control(56) && game.persistent_events['systematization'] !== 56) {game.valid_spaces.push(56)}
+ if (!check_dem_control(70)) {game.valid_spaces.push(70)}
vm_next()
}
@@ -5210,10 +5210,10 @@ function vm_roundtable_talks() {
}
function vm_sajudis_check() {
- if (spaces[56].demCtrl !== 1) {
+ if (!check_dem_control(56)) {
game.valid_spaces.push(56)
}
- if (spaces[70].demCtrl !== 1) {
+ if (!check_dem_control(70)) {
game.valid_spaces.push(70)
}
vm_next()