Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. common/buildings/00_buildings.txt +431 -0
common/buildings/00_buildings.txt CHANGED
@@ -166,6 +166,28 @@ temple = {
166
166
  }
167
167
  }
168
168
  }
169
+ if = {
170
+ limit = {
171
+ FROM = { has_government_mechanic = blood_gathering_mechanic }
172
+ }
173
+ FROM = {
174
+ add_government_power = {
175
+ mechanic_type = blood_gathering_mechanic
176
+ power_type = blood
177
+ value = 0.5
178
+ }
179
+ }
180
+ }
181
+ if = {
182
+ limit = {
183
+ FROM = { has_country_flag = azt_temples_buffs_flag }
184
+ }
185
+ add_province_modifier = {
186
+ name = azt_religious_classes
187
+ duration = -1
188
+ hidden = yes
189
+ }
190
+ }
169
191
  }
170
192
  on_destroyed = {
171
193
  on_province_tax_building_destroyed_estate_privileges_effect = yes
@@ -205,6 +227,24 @@ temple = {
205
227
  }
206
228
  }
207
229
  }
230
+ if = {
231
+ limit = {
232
+ FROM = { has_government_mechanic = blood_gathering_mechanic }
233
+ }
234
+ FROM = {
235
+ add_government_power = {
236
+ mechanic_type = blood_gathering_mechanic
237
+ power_type = blood
238
+ value = -1
239
+ }
240
+ }
241
+ }
242
+ if = {
243
+ limit = {
244
+ has_province_modifier = azt_religious_classes
245
+ }
246
+ remove_province_modifier = azt_religious_classes
247
+ }
208
248
  }
209
249
  on_obsolete = {
210
250
  }
@@ -249,6 +289,18 @@ barracks = {
249
289
  update_improved_military_buildings_modifier = {
250
290
  building = barracks
251
291
  }
292
+ if = {
293
+ limit = {
294
+ owner = {
295
+ has_country_flag = azt_calpulli_houses_flag
296
+ }
297
+ }
298
+ add_province_modifier = {
299
+ name = azt_barracks_households
300
+ duration = -1
301
+ hidden = yes
302
+ }
303
+ }
252
304
  }
253
305
  on_destroyed = {
254
306
  if = {
@@ -280,6 +332,12 @@ barracks = {
280
332
  update_improved_military_buildings_modifier = {
281
333
  building = barracks
282
334
  }
335
+ if = {
336
+ limit = {
337
+ has_province_modifier = azt_barracks_households
338
+ }
339
+ remove_province_modifier = azt_barracks_households
340
+ }
283
341
  }
284
342
  on_obsolete = {
285
343
  }
@@ -414,16 +472,113 @@ fort_15th = {
414
472
  duration = -1
415
473
  }
416
474
  }
475
+ if = {
476
+ limit = {
477
+ FROM = {
478
+ has_country_flag = orm_forts_trade_power_buff_flag
479
+ }
480
+ }
481
+ add_province_modifier = {
482
+ name = orm_forts_buff
483
+ duration = -1
484
+ hidden = yes
485
+ }
486
+ }
487
+ if = {
488
+ limit = {
489
+ owner = {
490
+ has_country_flag = ned_buffed_forts_flag
491
+ NOT = {
492
+ full_idea_group = defensive_ideas
493
+ }
494
+ }
495
+ region = low_countries_region
496
+ }
497
+ add_province_modifier = {
498
+ name = ned_low_countries_fort_buff
499
+ duration = -1
500
+ hidden = yes
501
+ }
502
+ }
503
+ else_if = {
504
+ limit = {
505
+ owner = {
506
+ has_country_flag = ned_buffed_forts_flag
507
+ full_idea_group = defensive_ideas
508
+ }
509
+ region = low_countries_region
510
+ }
511
+ add_province_modifier = {
512
+ name = ned_low_countries_fort_buff_buffed
513
+ duration = -1
514
+ hidden = yes
515
+ }
516
+ }
517
+ if = {
518
+ limit = {
519
+ owner = { has_country_flag = ven_defensive_reward_flag }
520
+ NOT = { has_province_modifier = ven_defensive_stance_modifier }
521
+ }
522
+ add_province_modifier = {
523
+ name = ven_defensive_stance_modifier
524
+ duration = -1
525
+ hidden = yes
526
+ }
527
+ }
528
+ if = {
529
+ limit = {
530
+ owner = {
531
+ has_estate_privilege = estate_nobles_vegvar_system
532
+ }
533
+ any_neighbor_province = {
534
+ NOT = { owned_by = ROOT }
535
+ }
536
+ }
537
+ add_province_modifier = {
538
+ name = estate_nobles_vegvar_system_modifier
539
+ duration = -1
540
+ }
541
+ }
417
542
  }
418
543
 
419
544
  # THIS = Province, FROM = Destroyer, Will not be called on buildings made obsolete!
420
545
  on_destroyed = {
546
+ if = {
547
+ limit = {
548
+ has_province_modifier = estate_nobles_vegvar_system_modifier
549
+ }
550
+ remove_province_modifier = estate_nobles_vegvar_system_modifier
551
+ }
421
552
  if = {
422
553
  limit = {
423
554
  has_province_modifier = estate_nobles_development_of_castles_mod
424
555
  }
425
556
  remove_province_modifier = estate_nobles_development_of_castles_mod
426
557
  }
558
+ if = {
559
+ limit = {
560
+ has_province_modifier = ven_defensive_stance_modifier
561
+ }
562
+ remove_province_modifier = ven_defensive_stance_modifier
563
+ }
564
+ if = {
565
+ limit = {
566
+ has_province_modifier = orm_forts_buff
567
+ }
568
+ remove_province_modifier = orm_forts_buff
569
+ }
570
+ if = {
571
+ limit = {
572
+ has_province_modifier = ned_low_countries_fort_buff
573
+ }
574
+ remove_province_modifier = ned_low_countries_fort_buff
575
+ }
576
+ if = {
577
+ limit = {
578
+ has_province_modifier = ned_low_countries_fort_buff_buffed
579
+ }
580
+ remove_province_modifier = ned_low_countries_fort_buff_buffed
581
+ }
427
582
  }
428
583
 
429
584
  # THIS = Province, FROM = Destroyer, Will not be called on buildings destroyed!
@@ -704,6 +859,18 @@ regimental_camp = {
704
859
  add_army_professionalism = 0.001
705
860
  }
706
861
  }
862
+ if = {
863
+ limit = {
864
+ owner = {
865
+ has_country_flag = azt_calpulli_houses_flag
866
+ }
867
+ }
868
+ add_province_modifier = {
869
+ name = azt_conscription_households
870
+ duration = -1
871
+ hidden = yes
872
+ }
873
+ }
707
874
  }
708
875
  on_destroyed = {
709
876
  remove_development_from_building = {
@@ -725,6 +892,12 @@ regimental_camp = {
725
892
  add_army_professionalism = -0.001
726
893
  }
727
894
  }
895
+ if = {
896
+ limit = {
897
+ has_province_modifier = azt_conscription_households
898
+ }
899
+ remove_province_modifier = azt_conscription_households
900
+ }
728
901
  }
729
902
  on_obsolete = {
730
903
  }
@@ -798,16 +971,78 @@ fort_16th = {
798
971
  duration = -1
799
972
  }
800
973
  }
974
+ if = {
975
+ limit = {
976
+ owner = {
977
+ has_country_flag = ned_buffed_forts_flag
978
+ NOT = {
979
+ full_idea_group = defensive_ideas
980
+ }
981
+ }
982
+ region = low_countries_region
983
+ }
984
+ add_province_modifier = {
985
+ name = ned_low_countries_fort_buff
986
+ duration = -1
987
+ hidden = yes
988
+ }
989
+ }
990
+ else_if = {
991
+ limit = {
992
+ owner = {
993
+ has_country_flag = ned_buffed_forts_flag
994
+ full_idea_group = defensive_ideas
995
+ }
996
+ region = low_countries_region
997
+ }
998
+ add_province_modifier = {
999
+ name = ned_low_countries_fort_buff_buffed
1000
+ duration = -1
1001
+ hidden = yes
1002
+ }
1003
+ }
1004
+ if = {
1005
+ limit = {
1006
+ owner = {
1007
+ has_estate_privilege = estate_nobles_vegvar_system
1008
+ }
1009
+ any_neighbor_province = {
1010
+ NOT = { owned_by = ROOT }
1011
+ }
1012
+ }
1013
+ add_province_modifier = {
1014
+ name = estate_nobles_vegvar_system_modifier
1015
+ duration = -1
1016
+ }
1017
+ }
801
1018
  }
802
1019
 
803
1020
  # THIS = Province, FROM = Destroyer, Will not be called on buildings made obsolete!
804
1021
  on_destroyed = {
1022
+ if = {
1023
+ limit = {
1024
+ has_province_modifier = estate_nobles_vegvar_system_modifier
1025
+ }
1026
+ remove_province_modifier = estate_nobles_vegvar_system_modifier
1027
+ }
805
1028
  if = {
806
1029
  limit = {
807
1030
  has_province_modifier = estate_nobles_development_of_castles_mod
808
1031
  }
809
1032
  remove_province_modifier = estate_nobles_development_of_castles_mod
810
1033
  }
1034
+ if = {
1035
+ limit = {
1036
+ has_province_modifier = ned_low_countries_fort_buff
1037
+ }
1038
+ remove_province_modifier = ned_low_countries_fort_buff
1039
+ }
1040
+ if = {
1041
+ limit = {
1042
+ has_province_modifier = ned_low_countries_fort_buff_buffed
1043
+ }
1044
+ remove_province_modifier = ned_low_countries_fort_buff_buffed
1045
+ }
811
1046
  }
812
1047
 
813
1048
  # THIS = Province, FROM = Destroyer, Will not be called on buildings destroyed!
@@ -908,6 +1143,23 @@ cathedral = {
908
1143
  }
909
1144
  }
910
1145
  }
1146
+ if = {
1147
+ limit = {
1148
+ FROM = { has_government_mechanic = blood_gathering_mechanic }
1149
+ }
1150
+ FROM = {
1151
+ add_government_power = {
1152
+ mechanic_type = blood_gathering_mechanic
1153
+ power_type = blood
1154
+ value = 0.5
1155
+ }
1156
+ }
1157
+ }
1158
+ add_province_modifier = {
1159
+ name = azt_religious_classes
1160
+ duration = -1
1161
+ hidden = yes
1162
+ }
911
1163
  }
912
1164
  on_destroyed = {
913
1165
  on_province_tax_building_destroyed_estate_privileges_effect = yes
@@ -947,6 +1199,24 @@ cathedral = {
947
1199
  }
948
1200
  }
949
1201
  }
1202
+ if = {
1203
+ limit = {
1204
+ FROM = { has_government_mechanic = blood_gathering_mechanic }
1205
+ }
1206
+ FROM = {
1207
+ add_government_power = {
1208
+ mechanic_type = blood_gathering_mechanic
1209
+ power_type = blood
1210
+ value = -1
1211
+ }
1212
+ }
1213
+ }
1214
+ if = {
1215
+ limit = {
1216
+ has_province_modifier = azt_religious_classes
1217
+ }
1218
+ remove_province_modifier = azt_religious_classes
1219
+ }
950
1220
  }
951
1221
  on_obsolete = {
952
1222
  }
@@ -1201,6 +1471,18 @@ training_fields = {
1201
1471
  add_army_professionalism = 0.001
1202
1472
  }
1203
1473
  }
1474
+ if = {
1475
+ limit = {
1476
+ owner = {
1477
+ has_country_flag = azt_calpulli_houses_flag
1478
+ }
1479
+ }
1480
+ add_province_modifier = {
1481
+ name = azt_barracks_households
1482
+ duration = -1
1483
+ hidden = yes
1484
+ }
1485
+ }
1204
1486
  }
1205
1487
  on_destroyed = {
1206
1488
  if = {
@@ -1232,6 +1514,12 @@ training_fields = {
1232
1514
  type = manpower
1233
1515
  value = 2
1234
1516
  }
1517
+ if = {
1518
+ limit = {
1519
+ has_province_modifier = azt_barracks_households
1520
+ }
1521
+ remove_province_modifier = azt_barracks_households
1522
+ }
1235
1523
  }
1236
1524
  on_obsolete = {
1237
1525
  }
@@ -1300,16 +1588,79 @@ fort_17th = {
1300
1588
  duration = -1
1301
1589
  }
1302
1590
  }
1591
+ if = {
1592
+ limit = {
1593
+ owner = {
1594
+ has_country_flag = ned_buffed_forts_flag
1595
+ NOT = {
1596
+ full_idea_group = defensive_ideas
1597
+ }
1598
+ }
1599
+ region = low_countries_region
1600
+ }
1601
+ add_province_modifier = {
1602
+ name = ned_low_countries_fort_buff
1603
+ duration = -1
1604
+ hidden = yes
1605
+ }
1606
+ }
1607
+ else_if = {
1608
+ limit = {
1609
+ owner = {
1610
+ has_country_flag = ned_buffed_forts_flag
1611
+ full_idea_group = defensive_ideas
1612
+ }
1613
+ region = low_countries_region
1614
+ }
1615
+ add_province_modifier = {
1616
+ name = ned_low_countries_fort_buff_buffed
1617
+ duration = -1
1618
+ hidden = yes
1619
+ }
1620
+ }
1621
+ if = {
1622
+ limit = {
1623
+ owner = {
1624
+ has_estate_privilege = estate_nobles_vegvar_system
1625
+ }
1626
+ any_neighbor_province = {
1627
+ NOT = { owned_by = ROOT }
1628
+ }
1629
+ }
1630
+ add_province_modifier = {
1631
+ name = estate_nobles_vegvar_system_modifier
1632
+ duration = -1
1633
+ }
1634
+ }
1303
1635
  }
1304
1636
 
1305
1637
  # THIS = Province, FROM = Destroyer, Will not be called on buildings made obsolete!
1306
1638
  on_destroyed = {
1639
+ if = {
1640
+ limit = {
1641
+ has_province_modifier = estate_nobles_vegvar_system_modifier
1642
+ }
1643
+ remove_province_modifier = estate_nobles_vegvar_system_modifier
1644
+ }
1307
1645
  if = {
1308
1646
  limit = {
1309
1647
  has_province_modifier = estate_nobles_development_of_castles_mod
1310
1648
  }
1311
1649
  remove_province_modifier = estate_nobles_development_of_castles_mod
1312
1650
  }
1651
+ if = {
1652
+ limit = {
1653
+ has_province_modifier = ned_low_countries_fort_buff
1654
+ }
1655
+ remove_province_modifier = ned_low_countries_fort_buff
1656
+ }
1657
+ if = {
1658
+ limit = {
1659
+ has_province_modifier = ned_low_countries_fort_buff_buffed
1660
+ }
1661
+ remove_province_modifier = ned_low_countries_fort_buff_buffed
1662
+ }
1663
+
1313
1664
  }
1314
1665
 
1315
1666
  # THIS = Province, FROM = Destroyer, Will not be called on buildings destroyed!
@@ -1650,6 +2001,18 @@ conscription_center = {
1650
2001
  add_army_professionalism = 0.001
1651
2002
  }
1652
2003
  }
2004
+ if = {
2005
+ limit = {
2006
+ owner = {
2007
+ has_country_flag = azt_calpulli_houses_flag
2008
+ }
2009
+ }
2010
+ add_province_modifier = {
2011
+ name = azt_conscription_households
2012
+ duration = -1
2013
+ hidden = yes
2014
+ }
2015
+ }
1653
2016
  }
1654
2017
  on_destroyed = {
1655
2018
  remove_development_from_building = {
@@ -1671,6 +2034,12 @@ conscription_center = {
1671
2034
  add_army_professionalism = -0.001
1672
2035
  }
1673
2036
  }
2037
+ if = {
2038
+ limit = {
2039
+ has_province_modifier = azt_conscription_households
2040
+ }
2041
+ remove_province_modifier = azt_conscription_households
2042
+ }
1674
2043
  }
1675
2044
  on_obsolete = {
1676
2045
  }
@@ -1749,16 +2118,78 @@ fort_18th = {
1749
2118
  duration = -1
1750
2119
  }
1751
2120
  }
2121
+ if = {
2122
+ limit = {
2123
+ owner = {
2124
+ has_country_flag = ned_buffed_forts_flag
2125
+ NOT = {
2126
+ full_idea_group = defensive_ideas
2127
+ }
2128
+ }
2129
+ region = low_countries_region
2130
+ }
2131
+ add_province_modifier = {
2132
+ name = ned_low_countries_fort_buff
2133
+ duration = -1
2134
+ hidden = yes
2135
+ }
2136
+ }
2137
+ else_if = {
2138
+ limit = {
2139
+ owner = {
2140
+ has_country_flag = ned_buffed_forts_flag
2141
+ full_idea_group = defensive_ideas
2142
+ }
2143
+ region = low_countries_region
2144
+ }
2145
+ add_province_modifier = {
2146
+ name = ned_low_countries_fort_buff_buffed
2147
+ duration = -1
2148
+ hidden = yes
2149
+ }
2150
+ }
2151
+ if = {
2152
+ limit = {
2153
+ owner = {
2154
+ has_estate_privilege = estate_nobles_vegvar_system
2155
+ }
2156
+ any_neighbor_province = {
2157
+ NOT = { owned_by = ROOT }
2158
+ }
2159
+ }
2160
+ add_province_modifier = {
2161
+ name = estate_nobles_vegvar_system_modifier
2162
+ duration = -1
2163
+ }
2164
+ }
1752
2165
  }
1753
2166
 
1754
2167
  # THIS = Province, FROM = Destroyer, Will not be called on buildings made obsolete!
1755
2168
  on_destroyed = {
2169
+ if = {
2170
+ limit = {
2171
+ has_province_modifier = estate_nobles_vegvar_system_modifier
2172
+ }
2173
+ remove_province_modifier = estate_nobles_vegvar_system_modifier
2174
+ }
1756
2175
  if = {
1757
2176
  limit = {
1758
2177
  has_province_modifier = estate_nobles_development_of_castles_mod
1759
2178
  }
1760
2179
  remove_province_modifier = estate_nobles_development_of_castles_mod
1761
2180
  }
2181
+ if = {
2182
+ limit = {
2183
+ has_province_modifier = ned_low_countries_fort_buff
2184
+ }
2185
+ remove_province_modifier = ned_low_countries_fort_buff
2186
+ }
2187
+ if = {
2188
+ limit = {
2189
+ has_province_modifier = ned_low_countries_fort_buff_buffed
2190
+ }
2191
+ remove_province_modifier = ned_low_countries_fort_buff_buffed
2192
+ }
1762
2193
  }
1763
2194
 
1764
2195
  # THIS = Province, FROM = Destroyer, Will not be called on buildings destroyed!