diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-26 12:21:13 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-26 12:21:13 +0100 |
commit | 264161f150688577c757835dafbd78645106172c (patch) | |
tree | a60eecdaff91a284bd255c65db1cd32d16638260 | |
parent | 1bfe93eea7faffbe59af0b5c2c0f6aa6889527e4 (diff) | |
download | 1989-dawn-of-freedom-264161f150688577c757835dafbd78645106172c.tar.gz |
Remove null space
-rw-r--r-- | data.js | 2552 | ||||
-rw-r--r-- | events.txt | 28 | ||||
-rw-r--r-- | play.js | 14 | ||||
-rw-r--r-- | rules.js | 245 |
4 files changed, 1426 insertions, 1413 deletions
@@ -1,1282 +1,1280 @@ const spaces = [ - null, - { - name_unique: "Schwerin", - space_id: 1, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 111, - y: 61, - }, - adjacent: [ 2, 3 ], - ascii_name: "Schwerin", - }, - { - name_unique: "Rostock", - space_id: 2, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 228, - y: 41, - }, - adjacent: [ 1, 3 ], - ascii_name: "Rostock", - }, - { - name_unique: "Berlin", - space_id: 3, - socio: 2, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 2, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 251, - y: 113, - }, - adjacent: [ 1, 2, 5, 9 ], - ascii_name: "Berlin", - }, - { - name_unique: "German Writers", - space_id: 4, - socio: 5, - stability: 2, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 58, - y: 185, - }, - adjacent: [ 5 ], - ascii_name: "German Writers", - }, - { - name_unique: "Walter Ulbricht Academy", - space_id: 5, - socio: 6, - stability: 1, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 175, - y: 187, - }, - adjacent: [ 3, 4 ], - ascii_name: "Walter Ulbricht Academy", - }, - { - name_unique: "Lutheran Church", - space_id: 6, - socio: 7, - stability: 5, - battleground: 1, - demInfl: 1, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 300, - y: 212, - }, - adjacent: [ 9 ], - ascii_name: "Lutheran Church", - }, - { - name_unique: "Magdeburg", - space_id: 7, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 58, - y: 275, - }, - adjacent: [ 8, 10, 11 ], - ascii_name: "Magdeburg", - }, - { - name_unique: "Halle", - space_id: 8, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 175, - y: 278, - }, - adjacent: [ 7, 9, 11 ], - ascii_name: "Halle", - }, - { - name_unique: "Leipzig", - space_id: 9, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 297, - y: 297, - }, - adjacent: [ 3, 6, 8, 11, 12 ], - ascii_name: "Leipzig", - }, - { - name_unique: "Erfurt", - space_id: 10, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 23, - y: 356, - }, - adjacent: [ 7 ], - ascii_name: "Erfurt", - }, - { - name_unique: "Karl-Marx-Stadt", - space_id: 11, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 138, - y: 385, - }, - adjacent: [ 7, 8, 9, 12 ], - ascii_name: "Karl-Marx-Stadt", - }, - { - name_unique: "Dresden", - space_id: 12, - socio: 1, - stability: 4, - battleground: 1, - demInfl: 0, - comInfl: 2, - country: "East_Germany", - region: "Eastern Europe", - box: { - x: 262, - y: 375, - }, - adjacent: [ 9, 11, 19, 27 ], - ascii_name: "Dresden", - }, - { - name_unique: "Szczecin", - space_id: 13, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 434, - y: 204, - }, - adjacent: [ 14, 16 ], - ascii_name: "Szczecin", - }, - { - name_unique: "Gdańsk", - space_id: 14, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 1, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 699, - y: 215, - }, - adjacent: [ 13, 15, 16, 17, 18 ], - ascii_name: "Gdansk", - }, - { - name_unique: "Bydgoszcz", - space_id: 15, - socio: 1, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 1, - country: "Poland", - region: "Eastern Europe", - box: { - x: 679, - y: 304, - }, - adjacent: [ 14, 17 ], - ascii_name: "Bydgoszcz", - }, - { - name_unique: "Poznań", - space_id: 16, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 521, - y: 355, - }, - adjacent: [ 13, 14, 19, 20 ], - ascii_name: "Poznan", - }, - { - name_unique: "Warszawa", - space_id: 17, - socio: 2, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 1, - country: "Poland", - region: "Eastern Europe", - box: { - x: 806, - y: 383, - }, - adjacent: [ 14, 15, 18, 21, 24 ], - ascii_name: "Warszawa", - }, - { - name_unique: "Białystok", - space_id: 18, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 940, - y: 342, - }, - adjacent: [ 14, 17, 24 ], - ascii_name: "Bialystok", - }, - { - name_unique: "Wrocław", - space_id: 19, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 462, - y: 443, - }, - adjacent: [ 12, 16, 20, 22 ], - ascii_name: "Wroclaw", - }, - { - name_unique: "Catholic Church, Poland", - space_id: 20, - socio: 7, - stability: 5, - battleground: 0, - demInfl: 5, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 625, - y: 437, - }, - adjacent: [ 16, 19, 21, 22, 23 ], - ascii_name: "Catholic Church, Poland", - }, - { - name_unique: "Łódź", - space_id: 21, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 749, - y: 486, - }, - adjacent: [ 17, 20, 23, 24 ], - ascii_name: "Lodz", - }, - { - name_unique: "Katowice", - space_id: 22, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 570, - y: 569, - }, - adjacent: [ 19, 20, 23, 33 ], - ascii_name: "Katowice", - }, - { - name_unique: "Kraków", - space_id: 23, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 1, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 711, - y: 598, - }, - adjacent: [ 20, 21, 22, 25 ], - ascii_name: "Krakow", - }, - { - name_unique: "Lublin", - space_id: 24, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 1, - country: "Poland", - region: "Eastern Europe", - box: { - x: 879, - y: 603, - }, - adjacent: [ 17, 18, 21 ], - ascii_name: "Lublin", - }, - { - name_unique: "Jagiellonian University", - space_id: 25, - socio: 6, - stability: 1, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 679, - y: 681, - }, - adjacent: [ 23, 26 ], - ascii_name: "Jagiellonian University", - }, - { - name_unique: "Polish Writers", - space_id: 26, - socio: 5, - stability: 2, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Poland", - region: "Eastern Europe", - box: { - x: 832, - y: 694, - }, - adjacent: [ 25 ], - ascii_name: "Polish Writers", - }, - { - name_unique: "Plzeň", - space_id: 27, - socio: 1, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 2, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 159, - y: 483, - }, - adjacent: [ 12, 28, 29 ], - ascii_name: "Plzen", - }, - { - name_unique: "České Budĕjovice", - space_id: 28, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 196, - y: 601, - }, - adjacent: [ 27, 29 ], - ascii_name: "Ceske Budejovice", - }, - { - name_unique: "Praha", - space_id: 29, - socio: 2, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 2, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 317, - y: 614, - }, - adjacent: [ 27, 28, 30, 32 ], - ascii_name: "Praha", - }, - { - name_unique: "Charles University", - space_id: 30, - socio: 6, - stability: 1, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 380, - y: 532, - }, - adjacent: [ 29, 31 ], - ascii_name: "Charles University", - }, - { - name_unique: "Czech Writers", - space_id: 31, - socio: 5, - stability: 2, - battleground: 1, - demInfl: 2, - comInfl: 0, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 444, - y: 607, - }, - adjacent: [ 30 ], - ascii_name: "Czech Writers", - }, - { - name_unique: "Brno", - space_id: 32, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 1, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 403, - y: 711, - }, - adjacent: [ 29, 33, 34 ], - ascii_name: "Brno", - }, - { - name_unique: "Ostrava", - space_id: 33, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 523, - y: 681, - }, - adjacent: [ 22, 32, 34, 35 ], - ascii_name: "Ostrava", - }, - { - name_unique: "Bratislava", - space_id: 34, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 417, - y: 797, - }, - adjacent: [ 32, 33, 35 ], - ascii_name: "Bratislava", - }, - { - name_unique: "Catholic Church, Czechoslovakia", - space_id: 35, - socio: 7, - stability: 5, - battleground: 0, - demInfl: 1, - comInfl: 0, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 538, - y: 794, - }, - adjacent: [ 33, 34, 36 ], - ascii_name: "Catholic Church, Czechoslovakia", - }, - { - name_unique: "Prešov", - space_id: 36, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 658, - y: 794, - }, - adjacent: [ 35, 37 ], - ascii_name: "Presov", - }, - { - name_unique: "Košice", - space_id: 37, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Czechoslovakia", - region: "Eastern Europe", - box: { - x: 777, - y: 815, - }, - adjacent: [ 36, 42 ], - ascii_name: "Kosice", - }, - { - name_unique: "Catholic Church, Hungary", - space_id: 38, - socio: 7, - stability: 5, - battleground: 0, - demInfl: 1, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 314, - y: 886, - }, - adjacent: [ 39, 43 ], - ascii_name: "Catholic Church, Hungary", - }, - { - name_unique: "Győr", - space_id: 39, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 434, - y: 887, - }, - adjacent: [ 38, 40, 43, 44 ], - ascii_name: "Gyor", - }, - { - name_unique: "Tatabánya", - space_id: 40, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 549, - y: 886, - }, - adjacent: [ 39, 41, 45 ], - ascii_name: "Tatabanya", - }, - { - name_unique: "Miskolc", - space_id: 41, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 664, - y: 901, - }, - adjacent: [ 40, 42, 45 ], - ascii_name: "Miskolc", - }, - { - name_unique: "Debrecen", - space_id: 42, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 781, - y: 938, - }, - adjacent: [ 37, 41 ], - ascii_name: "Debrecen", - }, - { - name_unique: "Szombathely", - space_id: 43, - socio: 1, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 1, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 316, - y: 963, - }, - adjacent: [ 38, 39, 44 ], - ascii_name: "Szombathely", - }, - { - name_unique: "Székesfehérvár", - space_id: 44, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 1, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 442, - y: 962, - }, - adjacent: [ 39, 43, 45 ], - ascii_name: "Szekesfehervar", - }, - { - name_unique: "Budapest", - space_id: 45, - socio: 2, - stability: 3, - battleground: 1, - demInfl: 1, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 630, - y: 983, - }, - adjacent: [ 40, 41, 44, 47, 48 ], - ascii_name: "Budapest", - }, - { - name_unique: "Hungarian Writers", - space_id: 46, - socio: 5, - stability: 2, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 348, - y: 1040, - }, - adjacent: [ 47 ], - ascii_name: "Hungarian Writers", - }, - { - name_unique: "Eötvös Loránd University", - space_id: 47, - socio: 6, - stability: 1, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 512, - y: 1034, - }, - adjacent: [ 46, 45 ], - ascii_name: "Eotvos Lorand University", - }, - { - name_unique: "Szeged", - space_id: 48, - socio: 3, - stability: 4, - battleground: 1, - demInfl: 1, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 632, - y: 1073, - }, - adjacent: [ 45, 49, 50 ], - ascii_name: "Szeged", - }, - { - name_unique: "Pécs", - space_id: 49, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Hungary", - region: "Eastern Europe", - box: { - x: 486, - y: 1105, - }, - adjacent: [ 48 ], - ascii_name: "Pecs", - }, - { - name_unique: "Timişoara", - space_id: 50, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 597, - y: 1204, - }, - adjacent: [ 48, 51, 60 ], - ascii_name: "Timisoara", - }, - { - name_unique: "Cluj-Napoca", - space_id: 51, - socio: 1, - stability: 4, - battleground: 1, - demInfl: 0, - comInfl: 2, - country: "Romania", - region: "Balkans", - box: { - x: 756, - y: 1125, - }, - adjacent: [ 50, 54, 58, 61 ], - ascii_name: "Cluj-Napoca", - }, - { - name_unique: "Târgu Mureş", - space_id: 52, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 915, - y: 1136, - }, - adjacent: [ 53, 56 ], - ascii_name: "Targu Mures", - }, - { - name_unique: "Iaşi", - space_id: 53, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 1072, - y: 1097, - }, - adjacent: [ 52, 57, 62 ], - ascii_name: "Iasi", - }, - { - name_unique: "Babeş-Bolyai University", - space_id: 54, - socio: 6, - stability: 1, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 746, - y: 1203, - }, - adjacent: [ 51, 55 ], - ascii_name: "Babes-Bolyai University", - }, - { - name_unique: "Romanian Writers", - space_id: 55, - socio: 5, - stability: 2, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 739, - y: 1278, - }, - adjacent: [ 54 ], - ascii_name: "Romanian Writers", - }, - { - name_unique: "Harghita/Covasna", - space_id: 56, - socio: 8, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 928, - y: 1227, - }, - adjacent: [ 52 ], - ascii_name: "Harghita/Covasna", - }, - { - name_unique: "Braşov", - space_id: 57, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 1049, - y: 1225, - }, - adjacent: [ 53, 59, 61 ], - ascii_name: "Brasov", - }, - { - name_unique: "Orthodox Church, Romania", - space_id: 58, - socio: 7, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 855, - y: 1338, - }, - adjacent: [ 51, 60 ], - ascii_name: "Orthodox Church, Romania", - }, - { - name_unique: "Ploieşti", - space_id: 59, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 1061, - y: 1316, - }, - adjacent: [ 57, 61, 62 ], - ascii_name: "Ploiesti", - }, - { - name_unique: "Craiova", - space_id: 60, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 763, - y: 1411, - }, - adjacent: [ 50, 58, 61 ], - ascii_name: "Craiova", - }, - { - name_unique: "Bucureşti", - space_id: 61, - socio: 2, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 2, - country: "Romania", - region: "Balkans", - box: { - x: 929, - y: 1445, - }, - adjacent: [ 51, 57, 59, 60, 63 ], - ascii_name: "Bucuresti", - }, - { - name_unique: "Galaţi", - space_id: 62, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 1104, - y: 1399, - }, - adjacent: [ 53, 59, 63 ], - ascii_name: "Galati", - }, - { - name_unique: "Constanţa", - space_id: 63, - socio: 4, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Romania", - region: "Balkans", - box: { - x: 1130, - y: 1517, - }, - adjacent: [ 61, 62, 72 ], - ascii_name: "Constanta", - }, - { - name_unique: "Pleven", - space_id: 64, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 764, - y: 1534, - }, - adjacent: [ 68 ], - ascii_name: "Pleven", - }, - { - name_unique: "Orthodox Church, Bulgaria", - space_id: 65, - socio: 7, - stability: 3, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 882, - y: 1540, - }, - adjacent: [ 66, 68 ], - ascii_name: "Orthodox Church, Bulgaria", - }, - { - name_unique: "Ruse", - space_id: 66, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 998, - y: 1540, - }, - adjacent: [ 65, 69, 70, 71, 72 ], - ascii_name: "Ruse", - }, - { - name_unique: "Sofia University", - space_id: 67, - socio: 6, - stability: 1, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 645, - y: 1650, - }, - adjacent: [ 68, 73 ], - ascii_name: "Sofia University", - }, - { - name_unique: "Sofia", - space_id: 68, - socio: 2, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 2, - country: "Bulgaria", - region: "Balkans", - box: { - x: 768, - y: 1653, - }, - adjacent: [ 64, 65, 67, 69, 74 ], - ascii_name: "Sofia", - }, - { - name_unique: "Stara Zagora", - space_id: 69, - socio: 1, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 1, - country: "Bulgaria", - region: "Balkans", - box: { - x: 886, - y: 1694, - }, - adjacent: [ 66, 68, 71 ], - ascii_name: "Stara Zagora", - }, - { - name_unique: "Razgrad", - space_id: 70, - socio: 8, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 954, - y: 1620, - }, - adjacent: [ 66 ], - ascii_name: "Razgrad", - }, - { - name_unique: "Burgas", - space_id: 71, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 1004, - y: 1695, - }, - adjacent: [ 66, 69, 72 ], - ascii_name: "Burgas", - }, - { - name_unique: "Varna", - space_id: 72, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 1086, - y: 1613, - }, - adjacent: [ 63, 66, 71 ], - ascii_name: "Varna", - }, - { - name_unique: "Bulgarian Writers", - space_id: 73, - socio: 5, - stability: 2, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 652, - y: 1726, - }, - adjacent: [ 67 ], - ascii_name: "Bulgarian Writers", - }, - { - name_unique: "Plovdiv", - space_id: 74, - socio: 4, - stability: 3, - battleground: 1, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 771, - y: 1739, - }, - adjacent: [ 68, 75 ], - ascii_name: "Plovdiv", - }, - { - name_unique: "Sliven", - space_id: 75, - socio: 3, - stability: 4, - battleground: 0, - demInfl: 0, - comInfl: 0, - country: "Bulgaria", - region: "Balkans", - box: { - x: 894, - y: 1768, - }, - adjacent: [ 74 ], - ascii_name: "Sliven", - }, + { + name_unique: "Schwerin", + space_id: 0, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 111, + y: 61, + }, + adjacent: [ 1, 2 ], + ascii_name: "Schwerin", + }, + { + name_unique: "Rostock", + space_id: 1, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 228, + y: 41, + }, + adjacent: [ 0, 2 ], + ascii_name: "Rostock", + }, + { + name_unique: "Berlin", + space_id: 2, + socio: 2, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 2, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 251, + y: 113, + }, + adjacent: [ 0, 1, 4, 8 ], + ascii_name: "Berlin", + }, + { + name_unique: "German Writers", + space_id: 3, + socio: 5, + stability: 2, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 58, + y: 185, + }, + adjacent: [ 4 ], + ascii_name: "German Writers", + }, + { + name_unique: "Walter Ulbricht Academy", + space_id: 4, + socio: 6, + stability: 1, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 175, + y: 187, + }, + adjacent: [ 2, 3 ], + ascii_name: "Walter Ulbricht Academy", + }, + { + name_unique: "Lutheran Church", + space_id: 5, + socio: 7, + stability: 5, + battleground: 1, + demInfl: 1, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 300, + y: 212, + }, + adjacent: [ 8 ], + ascii_name: "Lutheran Church", + }, + { + name_unique: "Magdeburg", + space_id: 6, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 58, + y: 275, + }, + adjacent: [ 7, 9, 10 ], + ascii_name: "Magdeburg", + }, + { + name_unique: "Halle", + space_id: 7, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 175, + y: 278, + }, + adjacent: [ 6, 8, 10 ], + ascii_name: "Halle", + }, + { + name_unique: "Leipzig", + space_id: 8, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 297, + y: 297, + }, + adjacent: [ 2, 5, 7, 10, 11 ], + ascii_name: "Leipzig", + }, + { + name_unique: "Erfurt", + space_id: 9, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 23, + y: 356, + }, + adjacent: [ 6 ], + ascii_name: "Erfurt", + }, + { + name_unique: "Karl-Marx-Stadt", + space_id: 10, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 138, + y: 385, + }, + adjacent: [ 6, 7, 8, 11 ], + ascii_name: "Karl-Marx-Stadt", + }, + { + name_unique: "Dresden", + space_id: 11, + socio: 1, + stability: 4, + battleground: 1, + demInfl: 0, + comInfl: 2, + country: "East_Germany", + region: "Eastern Europe", + box: { + x: 262, + y: 375, + }, + adjacent: [ 8, 10, 18, 26 ], + ascii_name: "Dresden", + }, + { + name_unique: "Szczecin", + space_id: 12, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 434, + y: 204, + }, + adjacent: [ 13, 15 ], + ascii_name: "Szczecin", + }, + { + name_unique: "Gdańsk", + space_id: 13, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 1, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 699, + y: 215, + }, + adjacent: [ 12, 14, 15, 16, 17 ], + ascii_name: "Gdansk", + }, + { + name_unique: "Bydgoszcz", + space_id: 14, + socio: 1, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 1, + country: "Poland", + region: "Eastern Europe", + box: { + x: 679, + y: 304, + }, + adjacent: [ 13, 16 ], + ascii_name: "Bydgoszcz", + }, + { + name_unique: "Poznań", + space_id: 15, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 521, + y: 355, + }, + adjacent: [ 12, 13, 18, 19 ], + ascii_name: "Poznan", + }, + { + name_unique: "Warszawa", + space_id: 16, + socio: 2, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 1, + country: "Poland", + region: "Eastern Europe", + box: { + x: 806, + y: 383, + }, + adjacent: [ 13, 14, 17, 20, 23 ], + ascii_name: "Warszawa", + }, + { + name_unique: "Białystok", + space_id: 17, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 940, + y: 342, + }, + adjacent: [ 13, 16, 23 ], + ascii_name: "Bialystok", + }, + { + name_unique: "Wrocław", + space_id: 18, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 462, + y: 443, + }, + adjacent: [ 11, 15, 19, 21 ], + ascii_name: "Wroclaw", + }, + { + name_unique: "Catholic Church, Poland", + space_id: 19, + socio: 7, + stability: 5, + battleground: 0, + demInfl: 5, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 625, + y: 437, + }, + adjacent: [ 15, 18, 20, 21, 22 ], + ascii_name: "Catholic Church, Poland", + }, + { + name_unique: "Łódź", + space_id: 20, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 749, + y: 486, + }, + adjacent: [ 16, 19, 22, 23 ], + ascii_name: "Lodz", + }, + { + name_unique: "Katowice", + space_id: 21, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 570, + y: 569, + }, + adjacent: [ 18, 19, 22, 32 ], + ascii_name: "Katowice", + }, + { + name_unique: "Kraków", + space_id: 22, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 1, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 711, + y: 598, + }, + adjacent: [ 19, 20, 21, 24 ], + ascii_name: "Krakow", + }, + { + name_unique: "Lublin", + space_id: 23, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 1, + country: "Poland", + region: "Eastern Europe", + box: { + x: 879, + y: 603, + }, + adjacent: [ 16, 17, 20 ], + ascii_name: "Lublin", + }, + { + name_unique: "Jagiellonian University", + space_id: 24, + socio: 6, + stability: 1, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 679, + y: 681, + }, + adjacent: [ 22, 25 ], + ascii_name: "Jagiellonian University", + }, + { + name_unique: "Polish Writers", + space_id: 25, + socio: 5, + stability: 2, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Poland", + region: "Eastern Europe", + box: { + x: 832, + y: 694, + }, + adjacent: [ 24 ], + ascii_name: "Polish Writers", + }, + { + name_unique: "Plzeň", + space_id: 26, + socio: 1, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 2, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 159, + y: 483, + }, + adjacent: [ 11, 27, 28 ], + ascii_name: "Plzen", + }, + { + name_unique: "České Budĕjovice", + space_id: 27, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 196, + y: 601, + }, + adjacent: [ 26, 28 ], + ascii_name: "Ceske Budejovice", + }, + { + name_unique: "Praha", + space_id: 28, + socio: 2, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 2, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 317, + y: 614, + }, + adjacent: [ 26, 27, 29, 31 ], + ascii_name: "Praha", + }, + { + name_unique: "Charles University", + space_id: 29, + socio: 6, + stability: 1, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 380, + y: 532, + }, + adjacent: [ 28, 30 ], + ascii_name: "Charles University", + }, + { + name_unique: "Czech Writers", + space_id: 30, + socio: 5, + stability: 2, + battleground: 1, + demInfl: 2, + comInfl: 0, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 444, + y: 607, + }, + adjacent: [ 29 ], + ascii_name: "Czech Writers", + }, + { + name_unique: "Brno", + space_id: 31, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 1, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 403, + y: 711, + }, + adjacent: [ 28, 32, 33 ], + ascii_name: "Brno", + }, + { + name_unique: "Ostrava", + space_id: 32, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 523, + y: 681, + }, + adjacent: [ 21, 31, 33, 34 ], + ascii_name: "Ostrava", + }, + { + name_unique: "Bratislava", + space_id: 33, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 417, + y: 797, + }, + adjacent: [ 31, 32, 34 ], + ascii_name: "Bratislava", + }, + { + name_unique: "Catholic Church, Czechoslovakia", + space_id: 34, + socio: 7, + stability: 5, + battleground: 0, + demInfl: 1, + comInfl: 0, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 538, + y: 794, + }, + adjacent: [ 32, 33, 35 ], + ascii_name: "Catholic Church, Czechoslovakia", + }, + { + name_unique: "Prešov", + space_id: 35, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 658, + y: 794, + }, + adjacent: [ 34, 36 ], + ascii_name: "Presov", + }, + { + name_unique: "Košice", + space_id: 36, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Czechoslovakia", + region: "Eastern Europe", + box: { + x: 777, + y: 815, + }, + adjacent: [ 35, 41 ], + ascii_name: "Kosice", + }, + { + name_unique: "Catholic Church, Hungary", + space_id: 37, + socio: 7, + stability: 5, + battleground: 0, + demInfl: 1, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 314, + y: 886, + }, + adjacent: [ 38, 42 ], + ascii_name: "Catholic Church, Hungary", + }, + { + name_unique: "Győr", + space_id: 38, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 434, + y: 887, + }, + adjacent: [ 37, 39, 42, 43 ], + ascii_name: "Gyor", + }, + { + name_unique: "Tatabánya", + space_id: 39, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 549, + y: 886, + }, + adjacent: [ 38, 40, 44 ], + ascii_name: "Tatabanya", + }, + { + name_unique: "Miskolc", + space_id: 40, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 664, + y: 901, + }, + adjacent: [ 39, 41, 44 ], + ascii_name: "Miskolc", + }, + { + name_unique: "Debrecen", + space_id: 41, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 781, + y: 938, + }, + adjacent: [ 36, 40 ], + ascii_name: "Debrecen", + }, + { + name_unique: "Szombathely", + space_id: 42, + socio: 1, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 1, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 316, + y: 963, + }, + adjacent: [ 37, 38, 43 ], + ascii_name: "Szombathely", + }, + { + name_unique: "Székesfehérvár", + space_id: 43, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 1, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 442, + y: 962, + }, + adjacent: [ 38, 42, 44 ], + ascii_name: "Szekesfehervar", + }, + { + name_unique: "Budapest", + space_id: 44, + socio: 2, + stability: 3, + battleground: 1, + demInfl: 1, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 630, + y: 983, + }, + adjacent: [ 39, 40, 43, 46, 47 ], + ascii_name: "Budapest", + }, + { + name_unique: "Hungarian Writers", + space_id: 45, + socio: 5, + stability: 2, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 348, + y: 1040, + }, + adjacent: [ 46 ], + ascii_name: "Hungarian Writers", + }, + { + name_unique: "Eötvös Loránd University", + space_id: 46, + socio: 6, + stability: 1, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 512, + y: 1034, + }, + adjacent: [ 45, 44 ], + ascii_name: "Eotvos Lorand University", + }, + { + name_unique: "Szeged", + space_id: 47, + socio: 3, + stability: 4, + battleground: 1, + demInfl: 1, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 632, + y: 1073, + }, + adjacent: [ 44, 48, 49 ], + ascii_name: "Szeged", + }, + { + name_unique: "Pécs", + space_id: 48, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Hungary", + region: "Eastern Europe", + box: { + x: 486, + y: 1105, + }, + adjacent: [ 47 ], + ascii_name: "Pecs", + }, + { + name_unique: "Timişoara", + space_id: 49, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 597, + y: 1204, + }, + adjacent: [ 47, 50, 59 ], + ascii_name: "Timisoara", + }, + { + name_unique: "Cluj-Napoca", + space_id: 50, + socio: 1, + stability: 4, + battleground: 1, + demInfl: 0, + comInfl: 2, + country: "Romania", + region: "Balkans", + box: { + x: 756, + y: 1125, + }, + adjacent: [ 49, 53, 57, 60 ], + ascii_name: "Cluj-Napoca", + }, + { + name_unique: "Târgu Mureş", + space_id: 51, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 915, + y: 1136, + }, + adjacent: [ 52, 55 ], + ascii_name: "Targu Mures", + }, + { + name_unique: "Iaşi", + space_id: 52, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 1072, + y: 1097, + }, + adjacent: [ 51, 56, 61 ], + ascii_name: "Iasi", + }, + { + name_unique: "Babeş-Bolyai University", + space_id: 53, + socio: 6, + stability: 1, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 746, + y: 1203, + }, + adjacent: [ 50, 54 ], + ascii_name: "Babes-Bolyai University", + }, + { + name_unique: "Romanian Writers", + space_id: 54, + socio: 5, + stability: 2, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 739, + y: 1278, + }, + adjacent: [ 53 ], + ascii_name: "Romanian Writers", + }, + { + name_unique: "Harghita/Covasna", + space_id: 55, + socio: 8, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 928, + y: 1227, + }, + adjacent: [ 51 ], + ascii_name: "Harghita/Covasna", + }, + { + name_unique: "Braşov", + space_id: 56, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 1049, + y: 1225, + }, + adjacent: [ 52, 58, 60 ], + ascii_name: "Brasov", + }, + { + name_unique: "Orthodox Church, Romania", + space_id: 57, + socio: 7, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 855, + y: 1338, + }, + adjacent: [ 50, 59 ], + ascii_name: "Orthodox Church, Romania", + }, + { + name_unique: "Ploieşti", + space_id: 58, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 1061, + y: 1316, + }, + adjacent: [ 56, 60, 61 ], + ascii_name: "Ploiesti", + }, + { + name_unique: "Craiova", + space_id: 59, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 763, + y: 1411, + }, + adjacent: [ 49, 57, 60 ], + ascii_name: "Craiova", + }, + { + name_unique: "Bucureşti", + space_id: 60, + socio: 2, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 2, + country: "Romania", + region: "Balkans", + box: { + x: 929, + y: 1445, + }, + adjacent: [ 50, 56, 58, 59, 62 ], + ascii_name: "Bucuresti", + }, + { + name_unique: "Galaţi", + space_id: 61, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 1104, + y: 1399, + }, + adjacent: [ 52, 58, 62 ], + ascii_name: "Galati", + }, + { + name_unique: "Constanţa", + space_id: 62, + socio: 4, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Romania", + region: "Balkans", + box: { + x: 1130, + y: 1517, + }, + adjacent: [ 60, 61, 71 ], + ascii_name: "Constanta", + }, + { + name_unique: "Pleven", + space_id: 63, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 764, + y: 1534, + }, + adjacent: [ 67 ], + ascii_name: "Pleven", + }, + { + name_unique: "Orthodox Church, Bulgaria", + space_id: 64, + socio: 7, + stability: 3, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 882, + y: 1540, + }, + adjacent: [ 65, 67 ], + ascii_name: "Orthodox Church, Bulgaria", + }, + { + name_unique: "Ruse", + space_id: 65, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 998, + y: 1540, + }, + adjacent: [ 64, 68, 69, 70, 71 ], + ascii_name: "Ruse", + }, + { + name_unique: "Sofia University", + space_id: 66, + socio: 6, + stability: 1, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 645, + y: 1650, + }, + adjacent: [ 67, 72 ], + ascii_name: "Sofia University", + }, + { + name_unique: "Sofia", + space_id: 67, + socio: 2, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 2, + country: "Bulgaria", + region: "Balkans", + box: { + x: 768, + y: 1653, + }, + adjacent: [ 63, 64, 66, 68, 73 ], + ascii_name: "Sofia", + }, + { + name_unique: "Stara Zagora", + space_id: 68, + socio: 1, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 1, + country: "Bulgaria", + region: "Balkans", + box: { + x: 886, + y: 1694, + }, + adjacent: [ 65, 67, 70 ], + ascii_name: "Stara Zagora", + }, + { + name_unique: "Razgrad", + space_id: 69, + socio: 8, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 954, + y: 1620, + }, + adjacent: [ 65 ], + ascii_name: "Razgrad", + }, + { + name_unique: "Burgas", + space_id: 70, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 1004, + y: 1695, + }, + adjacent: [ 65, 68, 71 ], + ascii_name: "Burgas", + }, + { + name_unique: "Varna", + space_id: 71, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 1086, + y: 1613, + }, + adjacent: [ 62, 65, 70 ], + ascii_name: "Varna", + }, + { + name_unique: "Bulgarian Writers", + space_id: 72, + socio: 5, + stability: 2, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 652, + y: 1726, + }, + adjacent: [ 66 ], + ascii_name: "Bulgarian Writers", + }, + { + name_unique: "Plovdiv", + space_id: 73, + socio: 4, + stability: 3, + battleground: 1, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 771, + y: 1739, + }, + adjacent: [ 67, 74 ], + ascii_name: "Plovdiv", + }, + { + name_unique: "Sliven", + space_id: 74, + socio: 3, + stability: 4, + battleground: 0, + demInfl: 0, + comInfl: 0, + country: "Bulgaria", + region: "Balkans", + box: { + x: 894, + y: 1768, + }, + adjacent: [ 73 ], + ascii_name: "Sliven", + }, ] - const cards = [ null, {number: 1, period: 1, side: 'C', name: 'Legacy of Martial Law*', ops: 2, remove: 1, playable: true, red: false}, @@ -33,7 +33,7 @@ support_check 2 CARD 4 - Michnik # Place 3 Democratic SPs in the Polish Intellectuals space. permanently_remove -valid_spaces 26 +valid_spaces 'Polish Writers' prompt 'the Polish Intellectuals space' add_x_infl 3 @@ -136,7 +136,7 @@ add_limited_infl 4 1 CARD 19 - Papal vist # Place 3 SPs in any Catholic Church space. permanently_remove -valid_spaces 20 35 38 +valid_spaces 'Catholic Church, Poland', 'Catholic Church, Czechoslovakia', 'Catholic Church, Hungary' prompt 'any Catholic Church space' add_x_infl 3 @@ -165,7 +165,7 @@ power_struggle CARD 24 - St Nicolas Church # Place sufficient Democratic SPs in the Lutheran Church space for Democratic control. Allows play of The Monday Demonstrations. permanently_remove -valid_spaces 6 +valid_spaces 'Lutheran Church' prompt 'the Lutheran Church' take_control_prep 1 st_nicholas_church @@ -204,7 +204,7 @@ remove_limited_opp_infl 3 2 CARD 29 - Jan Palach Week* # Place 6 Democratic SPs in the Charles University space. permanently_remove -valid_spaces 30 +valid_spaces 'Charles University' prompt 'the Charles University space' add_x_infl 6 @@ -216,7 +216,7 @@ tear_gas CARD 31 - Intelligentsia # Place 4 Democratic SPs in Intellectual spaces, no more than 2 per space. -valid_spaces 4 26 31 46 55 73 +valid_spaces_socio 5 prompt 'Intellectual spaces, no more than 2 per space' add_limited_infl 4 2 @@ -241,7 +241,7 @@ sajudis CARD 34 - Fidesz* # Place 5 Democratic SPs in Hungary Student space. permanently_remove -valid_spaces 47 +valid_spaces 'Eotvos Lorand University' prompt 'the Hungary students space' add_x_infl 5 @@ -281,7 +281,7 @@ add_infl_free 3 CARD 39 - Eco-Glasnost* # Place 4 Democratic SPs in Ruse. permanently_remove -valid_spaces 66 +valid_spaces 'Ruse' prompt 'Ruse' add_x_infl 4 eco_glasnost @@ -502,7 +502,7 @@ permanently_remove klaus_and_komarek prompt 'Prague' remove_x_opp_infl 2 -valid_spaces 29 +valid_spaces 'Praha' add_x_infl 2 @@ -532,7 +532,7 @@ peasant_parties_revolt CARD 73 - Laszlo Tokes* # Place 1 Democratic SP in Timisoara and Harghita/Covasna. The Democratic may then place SPs or make Support Check rolls in Romania using the Ops value of this card. Allows play of Massacre in Timisoara. permanently_remove -valid_spaces 50 56 +valid_spaces 'Timisoara', 'Harghita/Covasna' prompt 'in Timisoara and Harghita/Covasna' add_limited_infl 2 1 laszlo_tokes @@ -585,7 +585,7 @@ CARD 79 - The Third Way* # -2 VP. Place 3 Communist SPs in the German writers space. permanently_remove the_third_way -valid_spaces 4 +valid_spaces 'German Writers' prompt 'the East German Writers space' add_x_infl 3 @@ -740,7 +740,7 @@ support_check_modified 5 3 CARD 97 - The Tyrant is Gone* # Remove 4 Communist SPs from the Romanian Elite Space. The Democrat announces where the Ceausescus flee, choosing a space with no Democratic SPs. If the Democratic Player gains control of the space before the end of the game the Ceausescus are captured, +2 VP. If not they escape, -2 VP. Requires play of The Crowd Turns Against Ceausescu if game.persistent_events.includes(54) -valid_spaces 51 +valid_spaces 'Cluj-Napoca' prompt 'the Romanian Elite Space' remove_x_opp_infl 4 the_tyrant_is_gone @@ -777,7 +777,7 @@ CARD 101 - Elena* # Add 2 SPs to the Romania Elite Space. -1 drm for Democratic Player for Support Checks in Romania the rest of this turn. No longer playable after The Tyrant is Gone permanently_remove if !game.the_tyrant_is_gone -valid_spaces 51 +valid_spaces 'Cluj-Napoca' prompt 'the Romania Elite Space' add_x_infl 2 elena @@ -807,10 +807,10 @@ new_years_eve_party CARD 105 - Public Against Violence* # Place 2 Democratic SPs each in Kosice and Presov. Make one Support Check in Bratislava using the Ops value of this card. permanently_remove -valid_spaces 36 +valid_spaces 'Kosice' prompt 'Kosice' add_x_infl 2 -valid_spaces 37 +valid_spaces 'Presov' prompt 'Presov' add_x_infl 2 public_against_violence @@ -18,7 +18,7 @@ function on_click_action(evt) { send_action(evt.target.my_action, evt.target.my_id) } -const last_space = 75 +const last_space = 74 const last_card = 110 const last_power_card = 52 @@ -152,11 +152,11 @@ function create_ui() { // SUPPORTING FUNCTIONS function on_click_space(evt) { - if (evt.button === 0) { - const space = evt.target.my_space; - //console.log('on_click_space_called with space:', space); - if (send_action('space', space)) { - //console.log('send_action with infl:', space); + if (evt.button === 0) { + const space = evt.target.my_space + //console.log('on_click_space_called with space:', space); + if (send_action("space", space)) { + console.log('send_action with space:', space); evt.stopPropagation() } else if (send_action("sc", space)) { //console.log('send_action with sc:', space); @@ -655,4 +655,4 @@ var LAYOUT = { "vp_neg_19": [246,2456,55,50], "vp_neg_2": [772,2395,56,51], "vp_neg_20": [215,2395,55,51], -} +}
\ No newline at end of file @@ -269,13 +269,18 @@ exports.view = function(state, player) { // === ACTIONS =========== function gen_action(action, argument) { +//console.log('gen_action called with ', action, ' and ', argument) if (argument === undefined) { + //console.log('argument undefined') view.actions[action] = 1 } else { - if (!(action in view.actions)) + if (!(action in view.actions)) { + //console.log('push argument') view.actions[action] = [] + } view.actions[action].push(argument) } + //console.log('view.actions: ', view.actions, 'view.actions[action]: ', view.actions[action]) } function gen_action_space(space){ @@ -2621,7 +2626,7 @@ function valid_spaces_setup() { game.valid_spaces = [] let valid_spaces_set = new Set(); //console.log('in vs setup, state', game.state) - for (let i =1 ; i <= 75 ; i++) { + for (let i =0 ; i <= 74 ; i++) { space = spaces[i] if (game.state === 'com_init') { @@ -2646,7 +2651,7 @@ function valid_spaces_sc() { let valid_spaces_set = new Set(); //console.log('valid spaces sc, persistent events', game.persistent_events) - for (let i = 1 ; i <= 75; i++) { + for (let i = 0 ; i <= 74; i++) { space = spaces[i] if (game.active === DEM) { @@ -2658,13 +2663,13 @@ function valid_spaces_sc() { infl = game.demInfl[i] if (infl !== 0 ) { // Check Solidarity Legalised - if (game.persistent_events.includes(2) && space.space_id === 14) {continue} + if (game.persistent_events.includes(2) && space.space_id === 13) {continue} // Check Civic Forum - if (game.persistent_events.includes(90) && space.space_id === 30) {continue} + if (game.persistent_events.includes(90) && space.space_id === 29) {continue} // Check We Are the People - if (game.persistent_events.includes(48) && space.space_id === 9) {continue} + if (game.persistent_events.includes(48) && space.space_id === 8) {continue} //Check for Foreign Currency Debt Burden if (game.persistent_events.includes(49) && space.country === game.foreign_currency_debt_burden) {continue} { @@ -2689,7 +2694,7 @@ function valid_spaces_sc() { function valid_spaces_support_loss() { let valid_spaces_set = new Set(); - for (let i = 1; i < game.demInfl.length; i++) { + for (let i = 0; i < game.demInfl.length; i++) { //console.log('spaces.length', game.demInfl.length, 'i', i) space = spaces[i] if (game.active === DEM) { @@ -2746,7 +2751,7 @@ function valid_spaces_infl() { let valid_spaces_set = new Set(); // Iterate over all spaces to find the ones with the player's influence - for (let i = 1; i < game.demInfl.length; i++) { + for (let i = 0; i < game.demInfl.length; i++) { //piece = game.pieces[i] space = spaces[i] @@ -3034,7 +3039,7 @@ function check_presence(country) { let com_leaders = {1: false, 4: false, 5: false, 6: false, 7: false}; - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (space.country === country) { @@ -3549,7 +3554,7 @@ function finish_the_wall() { if (check_vp()) { return } - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (space.country === 'East_Germany' && game.comInfl[i] > 0){ game.valid_spaces.push(space.space_id) @@ -3623,7 +3628,7 @@ function end_round() { return [...new Set(duplicates)]; } - //console.log('game.strategy_deck', game.strategy_deck, 'game.strategy_discard', game.strategy_discard, 'game.strategy_removed', game.strategy_removed, 'game.table_cards', game.table_cards, 'game.communist_hand', game.communist_hand, 'game.democrat_hand', game.democrat_hand) + console.log('game.strategy_deck', game.strategy_deck, 'game.strategy_discard', game.strategy_discard, 'game.strategy_removed', game.strategy_removed, 'game.table_cards', game.table_cards, 'game.communist_hand', game.communist_hand, 'game.democrat_hand', game.democrat_hand) if (check_duplicates(card_check)) { console.log('card check', card_check) @@ -4629,13 +4634,21 @@ function vm_opp_hand_false() { } function vm_valid_spaces() { - let space_1 = vm_operand(1) - let space_2 = vm_operand(2) - let space_3 = vm_operand(3) - let space_4 = vm_operand(4) - let space_5 = vm_operand(5) - let space_6 = vm_operand(6) - game.valid_spaces = [space_1, space_2, space_3, space_4, space_5, space_6] + let space_1 + let space_2 + let space_3 + let space_4 + let space_5 + let space_6 + + if (vm_operand(1)) { space_1 = spaces.find(space => space.ascii_name === vm_operand(1)).space_id} + if (vm_operand(2)) { space_2 = spaces.find(space => space.ascii_name === vm_operand(2)).space_id} + if (vm_operand(3)) { space_3 = spaces.find(space => space.ascii_name === vm_operand(3)).space_id} + if (vm_operand(4)) { space_4 = spaces.find(space => space.ascii_name === vm_operand(4)).space_id} + if (vm_operand(5)) { space_5 = spaces.find(space => space.ascii_name === vm_operand(5)).space_id} + if (vm_operand(6)) { space_6 = spaces.find(space => space.ascii_name === vm_operand(6)).space_id} + + game.valid_spaces = [space_1, space_2, space_3, space_4, space_5, space_6] game.valid_spaces = game.valid_spaces.filter( n => n ) // Check for Systematization - may not use this space @@ -4646,7 +4659,7 @@ function vm_valid_spaces() { function vm_valid_spaces_opponent () { let valid_spaces = [] - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (game.active === DEM) { @@ -4668,7 +4681,7 @@ function vm_valid_spaces_opponent () { function vm_valid_spaces_socio () { let valid_spaces = [] - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (space.socio === vm_operand(1)) { @@ -4686,7 +4699,7 @@ function vm_valid_spaces_socio () { function vm_valid_spaces_opponent_socio () { let valid_spaces = [] - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (game.active === DEM) { @@ -4772,13 +4785,13 @@ function vm_valid_spaces_country_sc () { } else { if (space.country === country && game.demInfl[space.space_id] >0) { //Check Solidarity Legalised - if (game.persistent_events.includes(2) && space.space_id === 14) {continue} + if (game.persistent_events.includes(2) && space.space_id === 13) {continue} //Check Civic Forum - if (game.persistent_events.includes(90) && space.space_id === 30) {continue} + if (game.persistent_events.includes(90) && space.space_id === 29) {continue} //Check We are the People - if (game.persistent_events.includes(48) && space.space_id === 9) {continue} + if (game.persistent_events.includes(48) && space.space_id === 8) {continue} valid_spaces.push(space.space_id); //Check Foreign Currency Debt Burden @@ -4834,7 +4847,7 @@ function vm_valid_spaces_region_opp() { function vm_valid_spaces_solidarity_legalised() { let valid_spaces = [] - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] let uncontrolled = (!check_control(i) && !check_opp_control(i)) if ((space.country === 'Poland' && uncontrolled && space.socio === 3) || (space.country === 'Poland' && uncontrolled && space.socio === 4)) { @@ -5319,8 +5332,8 @@ function vm_breakaway_baltic_republics() { } game.playable_cards.push(109) game.playable_cards = game.playable_cards.filter(n => n !== 14) - if (!check_dem_control(56) && game.systematization !== 56) {game.valid_spaces.push(56)} - if (!check_dem_control(70)) {game.valid_spaces.push(70)} + if (!check_dem_control(55) && game.systematization !== 55) {game.valid_spaces.push(55)} + if (!check_dem_control(69)) {game.valid_spaces.push(69)} vm_next() } @@ -5346,13 +5359,19 @@ function vm_bulgarian_turks_expelled(){ function vm_ceausescu() { let adj_cluj = false - if (game.demInfl[50] > 0 ) {adj_cluj = true} - if (game.demInfl[54] > 0 ) {adj_cluj = true} - if (game.demInfl[58] > 0 ) {adj_cluj = true} - if (game.demInfl[61] > 0 ) {adj_cluj = true} + let Timisoara = spaces.find(space => space.ascii_name === "Timisoara").space_id + let Babes = spaces.find(space => space.ascii_name === "Babes-Bolyai University").space_id + let Church = spaces.find(space => space.ascii_name === "Orthodox Church, Romania").space_id + let Bucuresti = spaces.find(space => space.ascii_name === "Bucuresti").space_id + - if (adj_cluj && game.comInfl[61]>0) { - game.valid_spaces = [61] + if (game.demInfl[Timisoara] > 0 ) {adj_cluj = true} + if (game.demInfl[Babes] > 0 ) {adj_cluj = true} + if (game.demInfl[Church] > 0 ) {adj_cluj = true} + if (game.demInfl[Bucuresti] > 0 ) {adj_cluj = true} + + if (adj_cluj && game.comInfl[Bucuresti]>0) { + game.valid_spaces = [60] game.vm_available_ops = 1 //next_player() game.remove_opponent_infl = false @@ -5372,7 +5391,7 @@ function vm_civic_forum() { return } game.persistent_events.push(90) - if (check_dem_control(31)) { + if (check_dem_control(30)) { vm_next() } else { permanently_remove(90) @@ -5451,20 +5470,20 @@ function vm_eliminate(space_id) { //console.log('adjacency before: Iasi', game.pieces[53].adjacent, 'Ploesti:', game.pieces[59].adjacent, 'Bucharesti:', game.pieces[61].adjacent) // Eliminate the democrat influence and move the communist influence to Bucuresti - if (space_id === 61) { + if (space_id === 60) { game.demInfl[space_id] = 0 game.comInfl[space_id] = 0 } else { game.demInfl[space_id] = 0 - game.comInfl[61] += game.comInfl[space_id] + game.comInfl[60] += game.comInfl[space_id] if (game.comInfl[space_id] > 0 ) { - log(`${pluralize(game.comInfl[space_id],'Communist SP')} relocated to %61`) + log(`${pluralize(game.comInfl[space_id],'Communist SP')} relocated to %60`) } game.comInfl[space_id] = 0 } //Update control in the eliminated space and in Bucuresti check_control_change(space_id) - check_control_change(61) + check_control_change(60) } @@ -5509,8 +5528,8 @@ function vm_foreign_currency_debt_burden() { } function vm_foreign_television() { - for (let i = 1 ; i < spaces.length; i++) { - if (i === 12) {continue} /*Does not apply to Dresden*/ + for (let i = 0 ; i < spaces.length; i++) { + if (i === 11) {continue} /*Does not apply to Dresden*/ if (game.comInfl[i] > 0 ) { game.valid_spaces.push(i) } @@ -5560,7 +5579,7 @@ function vm_goodbye_lenin() { } function vm_government_resigns() { - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (space.socio === 1 && game.comInfl[i] > 0 && !check_control(i)) { game.valid_spaces.push(i) @@ -5643,7 +5662,7 @@ function vm_kiss_of_death() { } function vm_klaus_and_komarek() { - if (game.comInfl[29] > 0 ) {game.valid_spaces = [29]} + if (game.comInfl[28] > 0 ) {game.valid_spaces = [28]} vm_next() } @@ -5694,7 +5713,7 @@ function vm_legacy_of_martial_law() { } function vm_legacy_of_1968() { - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if ((!check_com_control(i) && space.country === 'Czechoslovakia')) { game.valid_spaces.push(space.space_id); @@ -5730,8 +5749,8 @@ function vm_modrow() { } function vm_nagy_reburied(){ - if (game.comInfl[43] > 0) { - game.valid_spaces.push(43) + if (game.comInfl[42] > 0) { + game.valid_spaces.push(42) } vm_next() } @@ -5756,8 +5775,8 @@ function vm_nomenklatura() { } function vm_normalisation() { - if (game.demInfl[27] >0) {game.valid_spaces.push(27)} - if (game.demInfl[29] > 0) {game.valid_spaces.push(29)} + if (game.demInfl[26] >0) {game.valid_spaces.push(26)} + if (game.demInfl[28] > 0) {game.valid_spaces.push(28)} game.remove_opponent_infl = true vm_next() } @@ -5840,7 +5859,7 @@ function vm_prudence() { function vm_public_against_violence() { game.valid_spaces = [] - if (game.comInfl[34] > 0 ) {game.valid_spaces.push(34)} + if (game.comInfl[33] > 0 ) {game.valid_spaces.push(33)} vm_next() } @@ -5867,11 +5886,11 @@ function vm_roundtable_talks() { } function vm_sajudis_check() { - if (!check_dem_control(56)) { - game.valid_spaces.push(56) + if (!check_dem_control(55)) { + game.valid_spaces.push(55) } - if (!check_dem_control(70)) { - game.valid_spaces.push(70) + if (!check_dem_control(69)) { + game.valid_spaces.push(69) } vm_next() } @@ -5960,8 +5979,8 @@ function vm_tear_gas () { function vm_the_baltic_way() { game.playable_cards.push(84) game.stability++ - if (!check_dem_control(56) && game.systematization !== 56) {game.valid_spaces.push(56)} - if (!check_dem_control(70) && game.systematization !== 70) {game.valid_spaces.push(70)} + if (!check_dem_control(55) && game.systematization !== 55) {game.valid_spaces.push(55)} + if (!check_dem_control(69) ) {game.valid_spaces.push(69)} log('+3 VP') game.vp += 3 if (check_vp()) { @@ -5982,8 +6001,8 @@ function vm_the_crowd_turns_against_ceausescu() { } function vm_the_monday_demonstrations() { - if (!check_dem_control(6)) {game.valid_spaces.push(6)} - if (!check_dem_control(9)) {game.valid_spaces.push(9)} + if (!check_dem_control(5)) {game.valid_spaces.push(5)} + if (!check_dem_control(8)) {game.valid_spaces.push(8)} vm_next() } @@ -6000,7 +6019,7 @@ function vm_the_third_way() { function vm_the_tyrant_is_gone() { game.valid_spaces = [] - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (game.demInfl[i] === 0 && space.country === 'Romania') { if (space.space_id === game.systematization) {continue} @@ -6046,12 +6065,12 @@ function vm_warsaw_pact_summit() { } function vm_we_are_the_people() { - if (game.demInfl[6] > 0) {game.valid_spaces = [6]} - game.persistent_events.push(48) + if (game.demInfl[5] > 0) {game.valid_spaces = [5]} + game.persistent_events.push(48) if (!game.vm_influence_added) { game.vm_influence_added = {}; } - game.vm_influence_added[6] = 0 + game.vm_influence_added[5] = 0 game.vm_available_ops = 4 game.state = 'vm_we_are_the_people_remove' } @@ -6871,39 +6890,39 @@ states.vm_central_committee_reshuffle = { if (!game.revolutions[5]) {gen_action('romania')} } }, - east_germany() { + east_germany() { /*Updated for zero index spaces*/ push_undo() game.vm_active_country = "East_Germany" log(`Chose ${country_name(game.vm_active_country)}`) - game.valid_spaces = [1,2,3,4,5,6,7,8,9,10,11,12] + game.valid_spaces = [0,1,2,3,4,5,6,7,8,9,10,11] vm_next() }, poland() { push_undo() game.vm_active_country = "Poland" log(`Chose ${country_name(game.vm_active_country)}`) - game.valid_spaces = [13,14,15,16,17,18,19,20,21,22,23,24,25,26] + game.valid_spaces = [12,13,14,15,16,17,18,19,20,21,22,23,24,25] vm_next() }, czechoslovakia() { push_undo() game.vm_active_country = "Czechoslovakia" log(`Chose ${country_name(game.vm_active_country)}`) - game.valid_spaces = [27,28,29,30,31,32,33,34,35,36,37] + game.valid_spaces = [26,27,28,29,30,31,32,33,34,35,36] vm_next() }, hungary() { push_undo() game.vm_active_country = "Hungary" log(`Chose ${country_name(game.vm_active_country)}`) - game.valid_spaces = [38,39,40,41,42,43,44,45,46,47,48,49] + game.valid_spaces = [37,38,39,40,41,42,43,44,45,46,47,48] vm_next() }, romania() { push_undo() game.vm_active_country = "Romania" log(`Chose ${country_name(game.vm_active_country)}`) - game.valid_spaces = [50,51,52,53,54,55,56,57,58,59,60,61,62,63] + game.valid_spaces = [49,50,51,52,53,54,55,56,57,58,59,60,61,62] game.valid_spaces = game.valid_spaces.filter(space => space !== game.systematization) vm_next() }, @@ -6911,7 +6930,7 @@ states.vm_central_committee_reshuffle = { push_undo() game.vm_active_country = "Bulgaria" log(`Chose ${country_name(game.vm_active_country)}`) - game.valid_spaces = [64,65,66,67,68,69,70,71,72,73,74,75] + game.valid_spaces = [63,64,65,66,67,68,69,70,71,72,73,74] vm_next() }, pass() { @@ -7310,10 +7329,6 @@ states.vm_goodbye_lenin_ops = { influence(){ push_undo() game.vm_available_ops = get_card_ops(this_card()) - /*if (game.persistent_events.includes(50)) { - log(`+1 from C50`) - game.vm_available_ops++ - }*/ valid_spaces_infl() // If ABHR - Set AHBR tracker to true @@ -7644,22 +7659,22 @@ states.vm_kremlin_coup_take_control = { space(space) { push_undo() vm_take_control(space) - if (game.vm_active_country === 'East_Germany') {game.selected_space = 3 } - if (game.vm_active_country === 'Poland') {game.selected_space = 17} - if (game.vm_active_country === 'Czechoslovakia') {game.selected_space = 29} - if (game.vm_active_country === 'Hungary') {game.selected_space = 45} - if (game.vm_active_country === 'Romania') {game.selected_space = 61} - if (game.vm_active_country === 'Bulgaria') {game.selected_space = 68} + if (game.vm_active_country === 'East_Germany') {game.selected_space = 2 } + if (game.vm_active_country === 'Poland') {game.selected_space = 16} + if (game.vm_active_country === 'Czechoslovakia') {game.selected_space = 28} + if (game.vm_active_country === 'Hungary') {game.selected_space = 44} + if (game.vm_active_country === 'Romania') {game.selected_space = 60} + if (game.vm_active_country === 'Bulgaria') {game.selected_space = 67} game.state = 'vm_kremlin_coup_sc_prep' }, done() { push_undo() - if (game.vm_active_country === 'East_Germany') {game.selected_space = 3 } - if (game.vm_active_country === 'Poland') {game.selected_space = 17} - if (game.vm_active_country === 'Czechoslovakia') {game.selected_space = 29} - if (game.vm_active_country === 'Hungary') {game.selected_space = 45} - if (game.vm_active_country === 'Romania') {game.selected_space = 61} - if (game.vm_active_country === 'Bulgaria') {game.selected_space = 68} + if (game.vm_active_country === 'East_Germany') {game.selected_space = 2 } + if (game.vm_active_country === 'Poland') {game.selected_space = 16} + if (game.vm_active_country === 'Czechoslovakia') {game.selected_space = 28} + if (game.vm_active_country === 'Hungary') {game.selected_space = 44} + if (game.vm_active_country === 'Romania') {game.selected_space = 60} + if (game.vm_active_country === 'Bulgaria') {game.selected_space = 67} game.state = 'vm_kremlin_coup_sc_prep' } } @@ -7801,12 +7816,12 @@ states.vm_malta_summit = { if (check_vp()) { return } - if (game.comInfl[12] > 0 ) {game.valid_spaces.push(12)} - if (game.comInfl[15] > 0 ) {game.valid_spaces.push(15)} - if (game.comInfl[27] > 0 ) {game.valid_spaces.push(27)} - if (game.comInfl[43] > 0 ) {game.valid_spaces.push(43)} - if (game.comInfl[51] > 0 ) {game.valid_spaces.push(51)} - if (game.comInfl[69] > 0 ) {game.valid_spaces.push(69)} + if (game.comInfl[11] > 0 ) {game.valid_spaces.push(11)} + if (game.comInfl[14] > 0 ) {game.valid_spaces.push(14)} + if (game.comInfl[26] > 0 ) {game.valid_spaces.push(26)} + if (game.comInfl[42] > 0 ) {game.valid_spaces.push(42)} + if (game.comInfl[50] > 0 ) {game.valid_spaces.push(50)} + if (game.comInfl[68] > 0 ) {game.valid_spaces.push(68)} //game.vm_available_ops = 5 game.remove_opponent_infl = true vm_next() @@ -7928,7 +7943,7 @@ states.vm_nomenklatura = { remove() { push_undo() game.valid_spaces = [] - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (space.socio === 1 && game.demInfl[i] > 0) { @@ -8457,7 +8472,7 @@ states.vm_the_wall_must_go = { if (check_vp()) { return } - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (space.country === 'East_Germany' && game.comInfl[i] > 0){ game.valid_spaces.push(space.space_id) @@ -8491,7 +8506,7 @@ states.vm_warsaw_pact_summit = { }, influence(){ push_undo() - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (game.demInfl[i] === 0) { game.valid_spaces.push(space.space_id); @@ -8504,7 +8519,7 @@ states.vm_warsaw_pact_summit = { }, support_check(){ push_undo() - for (let i = 1; i < spaces.length; i++) { + for (let i = 0; i < spaces.length; i++) { let space = spaces[i] if (game.demInfl[i] > 0 && (space.socio === 5 || space.socio === 6)) { game.valid_spaces.push(space.space_id) @@ -8521,7 +8536,7 @@ states.vm_we_are_the_people_remove = { return `resolve ${clean_name(cards[game.played_card].name)}.` }, prompt() { - if (game.demInfl[6] === 0 && game.vm_available_ops > 0) { + if (game.demInfl[5] === 0 && game.vm_available_ops > 0) { view.prompt = '"We are the People!": no SPs to remove.' gen_action('done') } else if (game.vm_available_ops > 0 ) { @@ -8543,11 +8558,11 @@ states.vm_we_are_the_people_remove = { pop_summary() log_br() } - if (!game.vm_influence_added[6]) { + if (!game.vm_influence_added[5]) { log('No SPs removed') vm_next() } else { - game.valid_spaces = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] + game.valid_spaces = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] game.state = 'vm_we_are_the_people_add' } } @@ -8563,15 +8578,15 @@ states.vm_we_are_the_people_add = { return }*/ - view.prompt = `"We are the People!": you must add the ${pluralize(game.vm_influence_added[6],'SP')} to spaces in Germany.` + view.prompt = `"We are the People!": you must add the ${pluralize(game.vm_influence_added[5],'SP')} to spaces in Germany.` for (let space_id of game.valid_spaces) { gen_action_space(space_id); } }, space(space) { vm_do_add_infl_free(space) - game.vm_influence_added[6]-- - if (game.vm_influence_added[6] === 0 ) { + game.vm_influence_added[5]-- + if (game.vm_influence_added[5] === 0 ) { game.valid_spaces = [] if (game.summary.length > 0) { pop_summary() @@ -9011,7 +9026,6 @@ states.vm_support_falters = { /* =================== EVENTS ================================ */ // #region GENERATED EVENT CODE - const CODE = [] CODE[1] = [ // Legacy of Martial Law* @@ -9047,7 +9061,7 @@ CODE[3] = [ // Walesa CODE[4] = [ // Michnik [ vm_permanently_remove ], - [ vm_valid_spaces, 26 ], + [ vm_valid_spaces, 'Polish Writers' ], [ vm_prompt, 'the Polish Intellectuals space' ], [ vm_add_x_infl, 3 ], [ vm_return ], @@ -9150,7 +9164,7 @@ CODE[18] = [ // Poszgay Defends the Revolution CODE[19] = [ // Papal vist [ vm_permanently_remove ], - [ vm_valid_spaces, 20, 35, 38 ], + [ vm_valid_spaces, 'Catholic Church, Poland', 'Catholic Church, Czechoslovakia', 'Catholic Church, Hungary' ], [ vm_prompt, 'any Catholic Church space' ], [ vm_add_x_infl, 3 ], [ vm_return ], @@ -9179,7 +9193,7 @@ CODE[23] = [ // Power Struggle - Hungary CODE[24] = [ // St Nicolas Church [ vm_permanently_remove ], - [ vm_valid_spaces, 6 ], + [ vm_valid_spaces, 'Lutheran Church' ], [ vm_prompt, 'the Lutheran Church' ], [ vm_take_control_prep, 1 ], [ vm_st_nicholas_church ], @@ -9218,7 +9232,7 @@ CODE[28] = [ // Factory Party Cells CODE[29] = [ // Jan Palach Week* [ vm_permanently_remove ], - [ vm_valid_spaces, 30 ], + [ vm_valid_spaces, 'Charles University' ], [ vm_prompt, 'the Charles University space' ], [ vm_add_x_infl, 6 ], [ vm_return ], @@ -9230,7 +9244,7 @@ CODE[30] = [ // Tear Gas ] CODE[31] = [ // Intelligentsia - [ vm_valid_spaces, 4, 26, 31, 46, 55, 73 ], + [ vm_valid_spaces_socio, 5 ], [ vm_prompt, 'Intellectual spaces, no more than 2 per space' ], [ vm_add_limited_infl, 4, 2 ], [ vm_return ], @@ -9255,7 +9269,7 @@ CODE[33] = [ // Sajudis* CODE[34] = [ // Fidesz* [ vm_permanently_remove ], - [ vm_valid_spaces, 47 ], + [ vm_valid_spaces, 'Eotvos Lorand University' ], [ vm_prompt, 'the Hungary students space' ], [ vm_add_x_infl, 5 ], [ vm_return ], @@ -9295,7 +9309,7 @@ CODE[38] = [ // July Concept CODE[39] = [ // Eco-Glasnost* [ vm_permanently_remove ], - [ vm_valid_spaces, 66 ], + [ vm_valid_spaces, 'Ruse' ], [ vm_prompt, 'Ruse' ], [ vm_add_x_infl, 4 ], [ vm_eco_glasnost ], @@ -9516,7 +9530,7 @@ CODE[68] = [ // Klaus and Komarek* [ vm_klaus_and_komarek ], [ vm_prompt, 'Prague' ], [ vm_remove_x_opp_infl, 2 ], - [ vm_valid_spaces, 29 ], + [ vm_valid_spaces, 'Praha' ], [ vm_add_x_infl, 2 ], [ vm_return ], ] @@ -9546,7 +9560,7 @@ CODE[72] = [ // Peasant Parties Revolt CODE[73] = [ // Laszlo Tokes* [ vm_permanently_remove ], - [ vm_valid_spaces, 50, 56 ], + [ vm_valid_spaces, 'Timisoara', 'Harghita/Covasna' ], [ vm_prompt, 'in Timisoara and Harghita/Covasna' ], [ vm_add_limited_infl, 2, 1 ], [ vm_laszlo_tokes ], @@ -9579,7 +9593,7 @@ CODE[76] = [ // Warsaw Pact Summit [ vm_add_infl_free, 4 ], [ vm_else ], [ vm_prompt, 'Select a Student or Intellectual space' ], - [ vm_valid_spaces_country_socio_2, 3,, 4 ], + [ vm_valid_spaces_country_socio_2, 3, 4 ], [ vm_support_check_modified, 2, 2 ], [ vm_endif ], [ vm_return ], @@ -9599,7 +9613,7 @@ CODE[78] = [ // Workers Revolt CODE[79] = [ // The Third Way* [ vm_permanently_remove ], [ vm_the_third_way ], - [ vm_valid_spaces, 4 ], + [ vm_valid_spaces, 'German Writers' ], [ vm_prompt, 'the East German Writers space' ], [ vm_add_x_infl, 3 ], [ vm_return ], @@ -9751,7 +9765,7 @@ CODE[96] = [ // The Chinese Solution* CODE[97] = [ // The Tyrant is Gone* [ vm_if, ()=>game.persistent_events.includes(54) ], - [ vm_valid_spaces, 51 ], + [ vm_valid_spaces, 'Cluj-Napoca' ], [ vm_prompt, 'the Romanian Elite Space' ], [ vm_remove_x_opp_infl, 4 ], [ vm_the_tyrant_is_gone ], @@ -9788,7 +9802,7 @@ CODE[100] = [ // Stand Fast* CODE[101] = [ // Elena* [ vm_permanently_remove ], [ vm_if, ()=>!game.the_tyrant_is_gone ], - [ vm_valid_spaces, 51 ], + [ vm_valid_spaces, 'Cluj-Napoca' ], [ vm_prompt, 'the Romania Elite Space' ], [ vm_add_x_infl, 2 ], [ vm_elena ], @@ -9818,10 +9832,10 @@ CODE[104] = [ // New Year's Eve Party* CODE[105] = [ // Public Against Violence* [ vm_permanently_remove ], - [ vm_valid_spaces, 36 ], + [ vm_valid_spaces, 'Kosice' ], [ vm_prompt, 'Kosice' ], [ vm_add_x_infl, 2 ], - [ vm_valid_spaces, 37 ], + [ vm_valid_spaces, 'Presov' ], [ vm_prompt, 'Presov' ], [ vm_add_x_infl, 2 ], [ vm_public_against_violence ], @@ -9915,3 +9929,4 @@ CODE[351] = [ // Support Falters [ vm_return ], ] // #endregion + |