From 6b084b8c94304f212d2df45f828ff4b8be2fce0c Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 24 Sep 2024 07:39:30 +0100 Subject: Fix for Civic Forum --- rules.js | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index ce94a24..9e364b1 100644 --- a/rules.js +++ b/rules.js @@ -2375,7 +2375,7 @@ function valid_spaces_sc() { if (space.space_id === 14) {continue} } if (game.persistent_events['civic_forum']) { - if (space.space_id === 31) {continue} + if (space.space_id === 30) {continue} } if (game.persistent_events['we_are_the_people']) { if (space.space_id === 9) {continue} @@ -3914,30 +3914,6 @@ function vm_valid_spaces_country () { function vm_valid_spaces_sc () { console.log('in vm_valid_spaces_sc: game.persistent_events[we_are_the_people]', game.persistent_events['we_are_the_people']) valid_spaces_sc() - - /*let valid_spaces = [] - for (let space of game.pieces) { - if (!space) continue - if (game.active === DEM) { - if (space.comInfl >0) { - valid_spaces.push(space.space_id); - } - } else { - if (space.demInfl >0) { - valid_spaces.push(space.space_id); - } - if (game.persistent_events['civic_forum']) { - if (space.space_id === 31) {continue} - } - if (game.persistent_events['we_are_the_people']) { - if (space.space_id === 9) {continue} - } - } - } - game.valid_spaces = valid_spaces - if (game.persistent_events['foreign_currency_debt_burden'] !== '') { - game.valid_spaces = game.valid_spaces.filter(n => spaces[n].country !== game.persistent_events['foreign_currency_debt_burden']) - }*/ vm_next() } @@ -3982,7 +3958,7 @@ function vm_valid_spaces_country_sc () { } else { if (space.country === country && game.pieces[space.space_id].demInfl >0) { if (game.persistent_events['solidarity_legalised'] && space.space_id === 14) {continue} - if (game.persistent_events['civic_forum'] && space.space_id === 31) {continue} + if (game.persistent_events['civic_forum'] && space.space_id === 30) {continue} if (game.persistent_events['we_are_the_people'] && space.space_id === 9) {continue} valid_spaces.push(space.space_id); } -- cgit v1.2.3