From 707bb75a61c871aede018ae14b845127b2980723 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 27 Sep 2024 11:22:47 +0100 Subject: Small fixes to remove references to demCtrl aand comCtrl --- rules.js | 10 +++++----- 1 file 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() -- cgit v1.2.3