From 9d7e76571120396020a87a23b311804820fee945 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Mon, 3 Feb 2025 23:04:51 +0000 Subject: Fix Systematisatino and Ceausescu --- rules.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/rules.js b/rules.js index 6dac1ea..47fb7a6 100644 --- a/rules.js +++ b/rules.js @@ -5108,15 +5108,15 @@ function vm_ceausescu_prep() { function vm_ceausescu() { game.persistent_events = game.persistent_events.filter(n => n!== C_CEAUSESCU) let adj_cluj = false - if (game.demInfl[S_TIMISOARA] > 0) - adj_cluj = true - if (game.demInfl[S_BABES_BOLYAI_UNIVERSITY] > 0) - adj_cluj = true - if (game.demInfl[S_ORTHODOX_CHURCH_ROMANIA] > 0) - adj_cluj = true - if (game.demInfl[S_BUCURESTI] > 0) - adj_cluj = true - + let adj_spaces + if (game.systematization !== S_CLUJ_NAPOCA) + adj_spaces = get_adjusted_adjacency(S_CLUJ_NAPOCA) + if (adj_spaces) { + for (let s of adj_spaces) { + if (game.demInfl[s] > 0) + adj_cluj = true + } + } if (adj_cluj && game.comInfl[S_BUCURESTI] > 0) { if (game.active !== COM) { change_player() -- cgit v1.2.3