summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-24 07:39:30 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-24 07:39:30 +0100
commit6b084b8c94304f212d2df45f828ff4b8be2fce0c (patch)
tree6fe534d41ce97ed7c4c72929ec3f71d7b82b112b
parent1dcf9d56455871f26e7fdbe665ec41ab6221791e (diff)
download1989-dawn-of-freedom-6b084b8c94304f212d2df45f828ff4b8be2fce0c.tar.gz
Fix for Civic Forum
-rw-r--r--rules.js28
1 files changed, 2 insertions, 26 deletions
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);
}