diff options
-rw-r--r-- | rules.js | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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() |