diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-03 23:04:51 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-03 23:04:51 +0000 |
commit | 9d7e76571120396020a87a23b311804820fee945 (patch) | |
tree | 612c3e7c941fd6615fcc16a07965d2bba8e4d5f9 | |
parent | 44a88f3c8896a7b1aa49be7cbd8d5384800de0e7 (diff) | |
download | 1989-dawn-of-freedom-9d7e76571120396020a87a23b311804820fee945.tar.gz |
Fix Systematisatino and Ceausescu
-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() |