summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2025-02-03 23:04:51 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2025-02-03 23:04:51 +0000
commit9d7e76571120396020a87a23b311804820fee945 (patch)
tree612c3e7c941fd6615fcc16a07965d2bba8e4d5f9
parent44a88f3c8896a7b1aa49be7cbd8d5384800de0e7 (diff)
download1989-dawn-of-freedom-9d7e76571120396020a87a23b311804820fee945.tar.gz
Fix Systematisatino and Ceausescu
-rw-r--r--rules.js18
1 files 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()