Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. common/on_actions/00_on_actions.txt +1151 -424
common/on_actions/00_on_actions.txt CHANGED
@@ -6,8 +6,19 @@ on_startup = {
6
6
  save_global_event_target_as = Emperor
7
7
  }
8
8
  if = {
9
- limit = { is_emperor_of_china = yes }
10
- save_global_event_target_as = EmperorOfChina
9
+ limit = {
10
+ has_dlc = "Mandate of Heaven"
11
+ }
12
+ if = {
13
+ limit = { is_emperor_of_china = yes }
14
+ save_global_event_target_as = EmperorOfChina
15
+ }
16
+ }
17
+ else = {
18
+ if = {
19
+ limit = { has_reform = celestial_empire }
20
+ save_global_event_target_as = EmperorOfChina
21
+ }
11
22
  }
12
23
  events = {
13
24
  muslim_school_events.20 #Pick School
@@ -135,6 +146,12 @@ on_secondary_religion_change = {
135
146
  which = khojas_retained value = 0
136
147
  }
137
148
  }
149
+ if = {
150
+ limit = {
151
+ has_country_flag = hordes_devout_tengri_completion_flag
152
+ }
153
+ add_prestige = 50
154
+ }
138
155
  }
139
156
 
140
157
  # country. Spawned when Enforcing Rebel Demands through a Support Rebels-war.
@@ -175,6 +192,14 @@ on_peace_recipient = {
175
192
  # country
176
193
  # root = winning country, from = loser country
177
194
  on_war_won = {
195
+ if = {
196
+ limit = {
197
+ has_country_modifier = hun_avenge_varna
198
+ FROM = { tag = TUR }
199
+ }
200
+ remove_country_modifier = hun_avenge_varna
201
+ }
202
+
178
203
  FROM = { country_event = { id = flavor_cri.6 } }
179
204
  ROOT = { country_event = { id = tributary_events.32 } }
180
205
  if = {
@@ -302,6 +327,10 @@ on_war_won = {
302
327
  id = flavor_swe.121
303
328
  }
304
329
  }
330
+ change_variable = {
331
+ which = num_of_wars_won_var
332
+ value = 1
333
+ }
305
334
  }
306
335
 
307
336
  # country
@@ -317,6 +346,13 @@ on_main_war_won = {
317
346
  # country
318
347
  # root = winning country, from = loser country
319
348
  on_separate_war_won = {
349
+ if = {
350
+ limit = {
351
+ has_country_modifier = hun_avenge_varna
352
+ FROM = { tag = TUR }
353
+ }
354
+ remove_country_modifier = hun_avenge_varna
355
+ }
320
356
  if = {
321
357
  limit = {
322
358
  ROOT = {
@@ -336,6 +372,29 @@ on_separate_war_won = {
336
372
  # country
337
373
  # root = loser country, from = winner country
338
374
  on_war_lost = {
375
+ if = {
376
+ limit = {
377
+ ROOT = {
378
+ has_country_modifier = hun_avenge_varna
379
+ }
380
+ FROM = { tag = TUR }
381
+ }
382
+ remove_country_modifier = hun_avenge_varna
383
+ }
384
+ if = {
385
+ limit = {
386
+ ROOT = {
387
+ has_country_modifier = boh_hegemon
388
+ }
389
+ }
390
+ remove_country_modifier = boh_hegemon
391
+ }
392
+ if = {
393
+ limit = {
394
+ has_country_modifier = hun_avenge_varna
395
+ }
396
+ remove_country_modifier = hun_avenge_varna
397
+ }
339
398
  ROOT = { country_event = { id = flavor_cri.6 } }
340
399
  ROOT = { country_event = { id = tributary_events.32 } }
341
400
  if = {
@@ -371,12 +430,30 @@ on_war_lost = {
371
430
  }
372
431
  }
373
432
  on_main_war_lost = {
433
+ if = {
434
+ limit = {
435
+ ROOT = {
436
+ has_country_modifier = hun_avenge_varna
437
+ }
438
+ FROM = { tag = TUR }
439
+ }
440
+ remove_country_modifier = hun_avenge_varna
441
+ }
374
442
  events = {
375
443
  flavor_kor.15
376
444
  flavor_tur.300 #Defeat of the Ottomans
377
445
  }
378
446
  }
379
447
  on_separate_war_lost = {
448
+ if = {
449
+ limit = {
450
+ ROOT = {
451
+ has_country_modifier = hun_avenge_varna
452
+ }
453
+ FROM = { tag = TUR }
454
+ }
455
+ remove_country_modifier = hun_avenge_varna
456
+ }
380
457
  }
381
458
 
382
459
 
@@ -385,54 +462,22 @@ on_separate_war_lost = {
385
462
  on_battle_won_country = {
386
463
  on_battle_ended_effect = yes
387
464
  on_battle_won_country_effect = yes
465
+ #Hungary Achievement -> this triggers first
388
466
  if = {
389
467
  limit = {
390
- ROOT = {
391
- tag = ALB
392
- NOT = { has_country_flag = albanian_victory }
393
- }
394
- FROM = {
395
- tag = TUR
396
- }
397
- }
398
- ROOT = { set_country_flag = albanian_victory }
399
- }
400
- count_won_battles_and_reward_at_end = {
401
- counting_flag = teu_crusader_battle_counter
402
- max_value = 20
403
- effect = "
404
- country_event = {
405
- id = flavor_teu.12
406
- }
407
- "
408
- }
409
- count_won_battles_and_reward_at_end = {
410
- counting_flag = has_rus_kill_counter
411
- max_value = 40
412
- effect = "set_country_flag = rus_finished_kill_mission"
413
- }
414
- if = {
415
- limit = {
416
- has_country_modifier = geo_bane_khagan
417
- FROM = {
418
- has_reform = steppe_horde
419
- }
420
- }
421
- add_army_tradition = 0.5
422
- }
423
- if = {
424
- limit = {
425
- ROOT = {
426
- has_country_modifier = turkoman_triumphant_conquest
468
+ any_hired_mercenary_company = {
469
+ OR = {
470
+ template = merc_black_army
471
+ template = merc_black_army_2
472
+ }
427
473
  }
428
- FROM = {
429
- tag = TIM
474
+ from = {
475
+ war_with = root
476
+ NOT = { has_country_flag = hun_uniqe_defeated_country }
430
477
  }
431
478
  }
432
- random_list = {
433
- 20 = { ROOT = { add_manpower = 2 } }
434
- 80 = { }
435
- }
479
+ set_country_flag = hun_won_battle
480
+ from = { set_country_flag = hun_lost_battle }
436
481
  }
437
482
  }
438
483
 
@@ -597,6 +642,153 @@ on_battle_won_unit = {
597
642
  }
598
643
  }
599
644
  }
645
+ if = {
646
+ limit = {
647
+ unit_owner = {
648
+ religion = mesoamerican_religion
649
+ }
650
+ }
651
+ unit_owner = {
652
+ change_variable = {
653
+ which = land_units_killed_since_last_reform
654
+ which = land_units_killed
655
+ }
656
+ }
657
+ }
658
+ if = {
659
+ limit = {
660
+ unit_owner = {
661
+ has_government_mechanic = blood_gathering_mechanic
662
+ }
663
+ }
664
+ unit_owner = {
665
+ set_variable = {
666
+ which = blood_kill
667
+ which = land_units_killed
668
+ }
669
+ if = {
670
+ limit = {
671
+ NOT = { has_country_flag = azt_blood_cap_flag }
672
+ check_variable = {
673
+ which = blood_kill
674
+ value = 200001
675
+ }
676
+ }
677
+ set_variable = {
678
+ which = blood_kill
679
+ value = 200000
680
+ }
681
+ }
682
+ else_if = {
683
+ limit = {
684
+ has_country_flag = azt_blood_cap_flag
685
+ check_variable = {
686
+ which = blood_kill
687
+ value = 400001
688
+ }
689
+ }
690
+ set_variable = {
691
+ which = blood_kill
692
+ value = 400000
693
+ }
694
+ }
695
+ while = {
696
+ limit = {
697
+ check_variable = {
698
+ which = blood_kill
699
+ value = 1000
700
+ }
701
+ }
702
+ change_variable = {
703
+ which = blood_kill
704
+ value = -1000
705
+ }
706
+ add_government_power = {
707
+ mechanic_type = blood_gathering_mechanic
708
+ power_type = blood
709
+ value = 0.1
710
+ }
711
+ }
712
+ }
713
+ }
714
+ if = {
715
+ limit = {
716
+ unit_owner = {
717
+ has_country_flag = hordes_legendary_conqueror_battles_flag
718
+ ruler_has_personality = conqueror_personality
719
+ }
720
+ is_ruler_commanding_unit = yes
721
+ }
722
+ unit_owner = {
723
+ change_variable = {
724
+ which = NumOfRulerBattles
725
+ value = 1
726
+ }
727
+ if = {
728
+ limit = {
729
+ check_variable = {
730
+ which = NumOfRulerBattles
731
+ value = 50
732
+ }
733
+ }
734
+ remove_ruler_personality = conqueror_personality
735
+ add_ruler_personality = legendary_conqueror_personality
736
+ }
737
+ }
738
+ }
739
+ if = {
740
+ limit = {
741
+ is_ruler_commanding_unit = yes
742
+ }
743
+ unit_owner = {
744
+ change_variable = {
745
+ which = num_of_battles_won_ruler
746
+ value = 1
747
+ }
748
+ }
749
+ }
750
+ if = {
751
+ limit = {
752
+ OR = {
753
+ mercenary_company = merc_black_army
754
+ mercenary_company = merc_black_army_2
755
+ }
756
+ unit_owner = {
757
+ has_country_flag = hun_won_battle
758
+ any_war_enemy_country = {
759
+ has_country_flag = hun_lost_battle
760
+ }
761
+ }
762
+ }
763
+ unit_owner = {
764
+ change_variable = {
765
+ which = black_army_glorious_victories
766
+ value = 1
767
+ }
768
+ clr_country_flag = hun_won_battle
769
+ random_war_enemy_country = {
770
+ limit = { has_country_flag = hun_lost_battle }
771
+ clr_country_flag = hun_lost_battle
772
+ set_country_flag = hun_uniqe_defeated_country
773
+ }
774
+ }
775
+ }
776
+ else = {
777
+ if = {
778
+ limit = {
779
+ unit_owner = {
780
+ has_country_flag = hun_won_battle
781
+ }
782
+ }
783
+ unit_owner = {
784
+ clr_country_flag = hun_won_battle
785
+ random_war_enemy_country = {
786
+ limit = { has_country_flag = hun_lost_battle }
787
+ clr_country_flag = hun_lost_battle
788
+ }
789
+ }
790
+ }
791
+ }
600
792
  }
601
793
 
602
794
  # #Unit Scope OnAction for Battle Lost
@@ -660,6 +852,17 @@ on_company_disolved ={
660
852
  # province
661
853
  # root = location, from = winner country
662
854
  on_battle_lost_province = {
855
+ if = {
856
+ limit = {
857
+ FROM = {
858
+ has_government_attribute = battles_on_own_territory_bonus_tradition
859
+ }
860
+ owned_by = FROM
861
+ }
862
+ FROM = {
863
+ add_army_tradition = 0.1
864
+ }
865
+ }
663
866
  random_events = {
664
867
  1000 = 0
665
868
  100 = tyw_events.22 # Capital Battle in Religious War
@@ -743,6 +946,7 @@ on_siege_won_country = {
743
946
  has_dlc = "Domination"
744
947
  not = { tag = MAM }
745
948
  exists = MAM
949
+ NOT = { exists = EGY }
746
950
  FROM = {
747
951
  is_capital = yes
748
952
  owner = { tag = MAM }
@@ -884,6 +1088,23 @@ on_new_monarch = {
884
1088
  hab_remove_mission_mods_if_not_emperor_effect = yes
885
1089
  thu_remain_von_wettin_effect = yes
886
1090
  ladislaus_postumus_union_effect = yes
1091
+ if = {
1092
+ limit = {
1093
+ has_country_flag = hordes_legendary_conqueror_battles_flag
1094
+ }
1095
+ set_variable = {
1096
+ which = NumOfRulerBattles
1097
+ value = 0
1098
+ }
1099
+ }
1100
+ if = {
1101
+ limit = {
1102
+ has_country_flag = hordes_guaranteed_conquerors
1103
+ has_dlc = "Rights of Man"
1104
+ NOT = { ruler_has_personality = conqueror_personality }
1105
+ }
1106
+ add_ruler_personality = conqueror_personality
1107
+ }
887
1108
  events = {
888
1109
  tribal_succession.1 # Harsh anti-tribals.
889
1110
  9492 # Remove some event modifiers
@@ -972,6 +1193,7 @@ on_monarch_death = {
972
1193
  flavor_mal.11 # Mali pretenders
973
1194
  flavor_mal.47 # Pilgrimage ends prematurely
974
1195
  government_events.3 # Election of a new Ruler
1196
+ flavor_inc.27 # Mummification of the Dead
975
1197
  }
976
1198
  }
977
1199
 
@@ -1045,6 +1267,14 @@ on_death_election = {
1045
1267
  elections.800 # Lottery election
1046
1268
  flavor_tus.16 #Savonarola Leaves This World
1047
1269
  }
1270
+ if = {
1271
+ limit = { has_country_flag = ven_lichking_rulers_flag }
1272
+ add_ruler_modifier = {
1273
+ name = ven_plague_doctors_modifier
1274
+ duration = -1
1275
+ hidden = yes
1276
+ }
1277
+ }
1048
1278
  }
1049
1279
 
1050
1280
  # country
@@ -1230,6 +1460,15 @@ on_successive_emperor = {
1230
1460
  events = {
1231
1461
  900
1232
1462
  }
1463
+ if = {
1464
+ limit = {
1465
+ emperor = {
1466
+ has_country_flag = hun_imperial_reelection_bonus
1467
+ }
1468
+ }
1469
+ add_prestige = 10
1470
+ add_imperial_influence = 5
1471
+ }
1233
1472
  }
1234
1473
 
1235
1474
  # Called whenever a new emperor is elected
@@ -1392,6 +1631,21 @@ on_native_change_government = {
1392
1631
 
1393
1632
  # Nation is integrated after being in union
1394
1633
  on_integrate = {
1634
+ if = {
1635
+ limit = {
1636
+ has_country_flag = hun_integrate_pu_bonus
1637
+ FROM = { junior_union_with = ROOT }
1638
+ }
1639
+ if = {
1640
+ limit = {
1641
+ has_dlc = "Mandate of Heaven"
1642
+ }
1643
+ add_splendor = 100
1644
+ }
1645
+ else = {
1646
+ add_dip_power = 100
1647
+ }
1648
+ }
1395
1649
  events = {
1396
1650
  610
1397
1651
  }
@@ -1425,6 +1679,36 @@ on_annexed = {
1425
1679
  every_country = { limit = { has_country_modifier = rus_grand_duke_of_finland } remove_country_modifier = rus_grand_duke_of_finland }
1426
1680
  }
1427
1681
  }
1682
+ if = {
1683
+ limit = {
1684
+ tag = HAB
1685
+ FROM = { tag = HUN }
1686
+ NOT = { has_country_flag = hab_hungarian_crown_event_flag }
1687
+ num_of_owned_provinces_with = {
1688
+ value = 1
1689
+ OR = {
1690
+ culture = hungarian
1691
+ is_core = HUN
1692
+ }
1693
+ }
1694
+ }
1695
+ country_event = { id = hungarian_revolt_events.4 }
1696
+ }
1697
+ if = {
1698
+ limit = {
1699
+ has_country_flag = hun_integrate_pu_bonus
1700
+ FROM = { junior_union_with = ROOT }
1701
+ }
1702
+ if = {
1703
+ limit = {
1704
+ has_dlc = "Mandate of Heaven"
1705
+ }
1706
+ add_splendor = 100
1707
+ }
1708
+ else = {
1709
+ add_dip_power = 100
1710
+ }
1711
+ }
1428
1712
  }
1429
1713
 
1430
1714
  # When the chinese empire gets dismantled (e.g. when the emperor is annexed)
@@ -1652,188 +1936,31 @@ on_dismantle_revolution = {
1652
1936
 
1653
1937
  # province
1654
1938
  on_adm_development = {
1655
- on_adm_development_effect = yes
1656
- on_development_effect = yes
1657
- if = {
1658
- limit = { owner = { has_country_flag = enable_supplemental_development_flag } }
1659
- random_list = {
1660
- 20 = { add_base_tax = 1 }
1661
- 80 = { }
1662
- }
1663
- }
1664
- if = {
1665
- limit = {
1666
- owner = { has_country_modifier = lit_increased_dev_modifier }
1667
- }
1668
- add_base_tax = 1
1669
- }
1670
- if = {
1671
- limit = { has_state_edict = chinese_industrialization }
1672
- random_list = {
1673
- 10 = { add_base_tax = 1 }
1674
- 10 = { add_prosperity = 1 }
1675
- 10 = { add_province_modifier = { name = qng_center_of_industrialization_modifier duration = 3650 } }
1676
- 70 = { }
1677
- }
1678
- }
1679
- if = {
1680
- limit = { owner = { has_country_modifier = JAP_cadastral_surveys has_dlc = "Domination" } }
1681
- owner = {
1682
- change_estate_land_share = {
1683
- estate = all
1684
- share = -0.2
1685
- }
1686
- }
1687
- }
1688
-
1689
- if = {
1690
- limit = { owner = { has_country_modifier = jap_20_years_devving_tax_yields_twice_bonus_1_burgher_loyalt_modifier } }
1691
- add_base_tax = 1
1692
- owner = {
1693
- add_estate_loyalty = {
1694
- estate = estate_burghers
1695
- loyalty = 1
1696
- }
1697
- }
1698
- }
1699
-
1700
- if = {
1701
- limit = {
1702
- owner = { has_country_modifier = pru_victory_lower_saxony_modifier }
1703
- OR = {
1704
- culture = saxon
1705
- culture = lower_saxon
1706
- }
1707
- }
1708
- add_nationalism = -3
1709
- add_local_autonomy = -5
1710
- add_prosperity = 1
1711
- }
1712
- if = {
1713
- limit = {
1714
- religion = ROOT
1715
- owner = {
1716
- has_country_flag = geo_orthodox_dev
1717
- }
1718
- }
1719
- random_list = {
1720
- 10 = { add_base_tax = 1 }
1721
- 90 = { }
1722
- }
1723
- }
1724
- if = {
1725
- limit = {
1726
- OR = {
1727
- trade_goods = cloth
1728
- trade_goods = silk
1729
- }
1730
- owner = { has_country_modifier = turkoman_expanding_industry }
1731
- }
1732
- random_list = {
1733
- 20 = { add_base_tax = 1 }
1734
- 80 = { }
1735
- }
1736
- }
1737
- }
1738
-
1739
- # province
1740
- on_dip_development = {
1741
- on_dip_development_effect = yes
1742
- on_development_effect = yes
1743
- if = {
1744
- limit = {
1745
- owner = { has_country_modifier = pru_victory_lower_saxony_modifier }
1746
- OR = {
1747
- culture = saxon
1748
- culture = lower_saxon
1749
- }
1750
- }
1751
- add_nationalism = -3
1752
- add_local_autonomy = -5
1753
- add_prosperity = 1
1754
- }
1755
- if = {
1756
- limit = {
1757
- religion = ROOT
1758
- owner = {
1759
- has_country_flag = geo_orthodox_dev
1760
- }
1761
- }
1762
- random_list = {
1763
- 10 = { add_base_production = 1 }
1764
- 90 = { }
1765
- }
1766
- }
1767
- if = {
1768
- limit = {
1769
- OR = {
1770
- trade_goods = cloth
1771
- trade_goods = silk
1772
- }
1773
- owner = { has_country_modifier = turkoman_expanding_industry }
1774
- }
1775
- random_list = {
1776
- 20 = { add_base_production = 1 }
1777
- 80 = { }
1778
- }
1779
- }
1780
- }
1781
-
1782
- # province
1783
- on_mil_development = {
1784
- on_mil_development_effect = yes
1785
- on_development_effect = yes
1786
- if = {
1787
- limit = {
1788
- owner = { has_country_modifier = pru_victory_lower_saxony_modifier }
1789
- OR = {
1790
- culture = saxon
1791
- culture = lower_saxon
1792
- }
1793
- }
1794
- add_nationalism = -3
1795
- add_local_autonomy = -5
1796
- add_prosperity = 1
1797
- }
1798
- if = {
1799
- limit = {
1800
- religion = ROOT
1801
- owner = {
1802
- has_country_flag = geo_orthodox_dev
1803
- }
1804
- }
1805
- random_list = {
1806
- 10 = { add_base_manpower = 1 }
1807
- 90 = { }
1808
- }
1809
- }
1810
- if = {
1811
- limit = {
1812
- OR = {
1813
- trade_goods = cloth
1814
- trade_goods = silk
1815
- }
1816
- owner = { has_country_modifier = turkoman_expanding_industry }
1817
- }
1818
- random_list = {
1819
- 20 = { add_base_manpower = 1 }
1820
- 80 = { }
1821
- }
1822
- }
1823
- }
1824
-
1825
- on_overextension_pulse = {
1826
- random_events = {
1827
- 100 = overextension.1
1828
- 100 = overextension.2
1829
- 100 = overextension.3
1830
- 100 = overextension.4
1831
- 100 = overextension.5
1832
- 100 = overextension.6
1833
- 100 = overextension.7
1834
- 100 = overextension.8
1835
- 100 = overextension.9
1836
- 100 = overextension.10
1939
+ on_development_effect = { type = adm }
1940
+ }
1941
+
1942
+ # province
1943
+ on_dip_development = {
1944
+ on_development_effect = { type = dip }
1945
+ }
1946
+
1947
+ # province
1948
+ on_mil_development = {
1949
+ on_development_effect = { type = mil }
1950
+ }
1951
+
1952
+ on_overextension_pulse = {
1953
+ random_events = {
1954
+ 100 = overextension.1
1955
+ 100 = overextension.2
1956
+ 100 = overextension.3
1957
+ 100 = overextension.4
1958
+ 100 = overextension.5
1959
+ 100 = overextension.6
1960
+ 100 = overextension.7
1961
+ 100 = overextension.8
1962
+ 100 = overextension.9
1963
+ 100 = overextension.10
1837
1964
  }
1838
1965
  #Decadence specific
1839
1966
  random = {
@@ -4241,44 +4368,7 @@ on_province_culture_changed = {
4241
4368
 
4242
4369
  # THIS = Province, FROM = Country who Propogated
4243
4370
  on_convert_by_trade_policy = {
4244
- if = {
4245
- limit = {
4246
- trade_company_region = trade_company_moluccas
4247
- FROM = { is_defender_of_faith = yes }
4248
- }
4249
- FROM = {
4250
- if = {
4251
- limit = {
4252
- ai = no
4253
- NOT = { check_variable = { which = religion_propagated_in_moluccas value = 1 } }
4254
- }
4255
- set_variable = {
4256
- which = religion_propagated_in_moluccas value = 1
4257
- }
4258
- }
4259
- else_if = {
4260
- limit = {
4261
- ai = no
4262
- check_variable = { which = religion_propagated_in_moluccas value = 1 }
4263
- NOT = { check_variable = { which = religion_propagated_in_moluccas value = 6 } }
4264
- }
4265
- change_variable = {
4266
- which = religion_propagated_in_moluccas value = 1
4267
- }
4268
- }
4269
- }
4270
- }
4271
-
4272
- if = {
4273
- limit = {
4274
- FROM = {
4275
- has_country_flag = YEM_propagation_gives_navy_tradition
4276
- }
4277
- }
4278
- FROM = {
4279
- add_navy_tradition = 1
4280
- }
4281
- }
4371
+ on_convert_by_trade_policy_effect = yes
4282
4372
  }
4283
4373
 
4284
4374
  # province
@@ -4306,6 +4396,36 @@ on_province_owner_change = {
4306
4396
  }
4307
4397
  remove_province_modifier = sufi_shrine
4308
4398
  }
4399
+ if = {
4400
+ limit = {
4401
+ OR = {
4402
+ religion_group = christian
4403
+ religion_group = muslim
4404
+ }
4405
+ owner = {
4406
+ has_church_aspect = jewish_abrahamic_aspect
4407
+ }
4408
+ }
4409
+ add_province_modifier = {
4410
+ name = judaism_abrahamic_roots
4411
+ duration = -1
4412
+ }
4413
+ }
4414
+ else_if = {
4415
+ limit = {
4416
+ has_province_modifier = judaism_abrahamic_roots
4417
+ OR = {
4418
+ AND = {
4419
+ NOT = { religion_group = christian }
4420
+ NOT = { religion_group = muslim }
4421
+ }
4422
+ owner = {
4423
+ NOT = { has_church_aspect = jewish_abrahamic_aspect }
4424
+ }
4425
+ }
4426
+ }
4427
+ remove_province_modifier = judaism_abrahamic_roots
4428
+ }
4309
4429
  on_province_owner_change_estate_privileges_effect = yes
4310
4430
  imperial_modifiers_on_province_change_culture_or_change_owner_effect = yes
4311
4431
 
@@ -4411,113 +4531,358 @@ on_province_owner_change = {
4411
4531
  duration = -1
4412
4532
  }
4413
4533
  }
4414
- }
4415
-
4416
- # country
4417
- on_parliament_debate_reset = {
4418
- on_parliament_debate_reset_effect = yes
4419
- }
4420
-
4421
- #province
4422
- on_parliament_seat_given = {
4423
- on_parliament_seat_given_effect = yes
4424
- }
4425
-
4426
- #province
4427
- on_parliament_seat_lost = {
4428
- on_parliament_seat_lost_effect = yes
4429
- }
4430
-
4431
- # country
4432
- on_parliament_debate_failed = {
4433
- on_parliament_debate_failed_effect = yes
4434
- }
4435
-
4436
- # country
4437
- on_parliament_debate_succeeded = {
4438
- on_parliament_debate_succeeded_effect = yes
4439
- increase_issue_passed_counter = yes
4440
- }
4441
-
4442
- # country
4443
- on_harmonized_pagan = {
4444
- on_harmonized_effect = yes
4445
- on_harmonized_religion_estate_privileges_effect = yes
4446
- events = {
4447
- confucian_events.1
4448
- }
4449
- }
4450
- on_harmonized_christian = {
4451
- on_harmonized_effect = yes
4452
- on_harmonized_religion_estate_privileges_effect = yes
4453
- events = {
4454
- confucian_events.2
4455
- }
4456
- }
4457
- on_harmonized_muslim = {
4458
- on_harmonized_effect = yes
4459
- on_harmonized_religion_estate_privileges_effect = yes
4460
- events = {
4461
- confucian_events.3
4462
- }
4463
- }
4464
- on_harmonized_jewish_group = {
4465
- on_harmonized_effect = yes
4466
- on_harmonized_religion_estate_privileges_effect = yes
4467
- events = {
4468
- confucian_events.5
4469
- }
4470
- }
4471
- on_harmonized_zoroastrian_group = {
4472
- on_harmonized_effect = yes
4473
- on_harmonized_religion_estate_privileges_effect = yes
4474
- events = {
4475
- confucian_events.6
4476
- }
4477
- }
4478
- on_harmonized_dharmic = {
4479
- on_harmonized_effect = yes
4480
- on_harmonized_religion_estate_privileges_effect = yes
4481
- events = {
4482
- confucian_events.4
4483
- }
4484
- }
4485
- on_harmonized_mahayana = {
4486
- on_harmonized_effect = yes
4487
- on_harmonized_religion_estate_privileges_effect = yes
4488
- events = {
4489
- confucian_events.9
4490
- }
4491
- }
4492
- on_harmonized_buddhism = { #Theravada
4493
- on_harmonized_effect = yes
4494
- on_harmonized_religion_estate_privileges_effect = yes
4495
- events = {
4496
- confucian_events.8
4497
- }
4498
- }
4499
- on_harmonized_shinto = {
4500
- on_harmonized_effect = yes
4501
- on_harmonized_religion_estate_privileges_effect = yes
4502
- events = {
4503
- confucian_events.7
4504
- }
4505
- }
4506
- on_harmonized_vajrayana = {
4507
- on_harmonized_effect = yes
4508
- on_harmonized_religion_estate_privileges_effect = yes
4509
- events = {
4510
- confucian_events.10
4534
+ if = {
4535
+ limit = {
4536
+ owner = { has_government_attribute = negate_unaccepted_levantine_culture }
4537
+ culture_group = turko_semitic
4538
+ has_owner_accepted_culture = no
4539
+ }
4540
+ add_province_modifier = {
4541
+ name = hsn_ayyubid_tolerance
4542
+ duration = -1
4543
+ }
4511
4544
  }
4512
- }
4513
-
4514
- # province
4515
- on_consecrate_patriarch = {
4516
4545
  if = {
4517
4546
  limit = {
4518
- owner = { has_country_flag = has_improved_consecration }
4547
+ owner = {
4548
+ has_government_attribute = seven_provinces_organization
4549
+ }
4519
4550
  }
4520
- every_province_in_state = {
4551
+ if = {
4552
+ limit = {
4553
+ region = low_countries_region
4554
+ culture_group = ROOT
4555
+ }
4556
+ add_province_modifier = {
4557
+ name = ned_seven_provinces_organization_positive_modifier
4558
+ duration = -1
4559
+ hidden = yes
4560
+ }
4561
+ }
4562
+ else_if = {
4563
+ limit = {
4564
+ NOT = { region = low_countries_region }
4565
+ continent = europe
4566
+ }
4567
+ add_province_modifier = {
4568
+ name = ned_seven_provinces_organization_negative_modifier
4569
+ duration = -1
4570
+ hidden = yes
4571
+ }
4572
+ }
4573
+ }
4574
+
4575
+ if = {
4576
+ limit = {
4577
+ owner = {
4578
+ has_country_flag = ned_buffed_forts_flag
4579
+ NOT = {
4580
+ full_idea_group = defensive_ideas
4581
+ }
4582
+ }
4583
+ region = low_countries_region
4584
+ has_fort_building_trigger = yes
4585
+ }
4586
+ add_province_modifier = {
4587
+ name = ned_low_countries_fort_buff
4588
+ duration = -1
4589
+ hidden = yes
4590
+ }
4591
+ }
4592
+ else_if = {
4593
+ limit = {
4594
+ owner = {
4595
+ has_country_flag = ned_buffed_forts_flag
4596
+ full_idea_group = defensive_ideas
4597
+ }
4598
+ region = low_countries_region
4599
+ has_fort_building_trigger = yes
4600
+ }
4601
+ add_province_modifier = {
4602
+ name = ned_low_countries_fort_buff_buffed
4603
+ duration = -1
4604
+ hidden = yes
4605
+ }
4606
+ }
4607
+
4608
+ if = {
4609
+ limit = {
4610
+ owner = {
4611
+ has_country_flag = ned_unlock_dutch_urbanization_flag
4612
+ }
4613
+ region = low_countries_region
4614
+ development = 25
4615
+ }
4616
+ add_province_modifier = {
4617
+ name = ned_dutch_urbanization
4618
+ duration = -1
4619
+ }
4620
+ }
4621
+ if = {
4622
+ limit = {
4623
+ owner = {
4624
+ has_country_flag = ned_unlock_flemish_urbanization_flag
4625
+ }
4626
+ region = low_countries_region
4627
+ development = 25
4628
+ }
4629
+ add_province_modifier = {
4630
+ name = ned_flemish_urbanization
4631
+ duration = -1
4632
+ }
4633
+ }
4634
+ if = {
4635
+ limit = {
4636
+ OR = {
4637
+ continent = south_america
4638
+ continent = north_america
4639
+ continent = new_world
4640
+ }
4641
+ colonial_territory_trigger_on_action = yes
4642
+ }
4643
+ set_province_flag = SUN_colonial_territory
4644
+ }
4645
+ if = {
4646
+ limit = {
4647
+ owner = {
4648
+ has_country_flag = INC_royal_roads_flag
4649
+ }
4650
+ OR = {
4651
+ has_terrain = mountain
4652
+ has_terrain = highlands
4653
+ has_terrain = hills
4654
+ }
4655
+ continent = south_america
4656
+ }
4657
+ add_province_modifier = {
4658
+ name = INC_royal_roads
4659
+ duration = -1
4660
+ }
4661
+ }
4662
+
4663
+ if = {
4664
+ limit = {
4665
+ owner = {
4666
+ has_estate_privilege = estate_church_INC_idol_making
4667
+ }
4668
+ trade_goods = gold
4669
+ }
4670
+ add_province_modifier = {
4671
+ name = INC_gold_debuff
4672
+ duration = -1
4673
+ }
4674
+ }
4675
+
4676
+ if = {
4677
+ limit = {
4678
+ owner = {
4679
+ has_country_flag = azt_temples_buffs_flag
4680
+ }
4681
+ has_tax_building_trigger = yes
4682
+ }
4683
+ add_province_modifier = {
4684
+ name = azt_religious_classes
4685
+ duration = -1
4686
+ hidden = yes
4687
+ }
4688
+ }
4689
+
4690
+ if = {
4691
+ limit = {
4692
+ owner = {
4693
+ has_government_attribute = chinampa_farms_mechanic
4694
+ }
4695
+ trade_goods = grain
4696
+ }
4697
+ add_province_modifier = {
4698
+ name = chinampa_farms_modifier
4699
+ duration = -1
4700
+ hidden = yes
4701
+ }
4702
+ }
4703
+
4704
+ if = {
4705
+ limit = {
4706
+ owner = {
4707
+ has_estate_privilege = estate_nobles_vegvar_system
4708
+ }
4709
+ has_fort_building_trigger = yes
4710
+ any_neighbor_province = {
4711
+ NOT = { owned_by = ROOT }
4712
+ }
4713
+ }
4714
+ add_province_modifier = {
4715
+ name = estate_nobles_vegvar_system_modifier
4716
+ duration = -1
4717
+ }
4718
+ }
4719
+ if = {
4720
+ limit = {
4721
+ has_province_modifier = estate_nobles_vegvar_system_modifier
4722
+ NOT = {
4723
+ any_neighbor_province = {
4724
+ NOT = { owned_by = ROOT }
4725
+ }
4726
+ }
4727
+ }
4728
+ remove_province_modifier = estate_nobles_vegvar_system_modifier
4729
+ }
4730
+ if = {
4731
+ limit = {
4732
+ owner = {
4733
+ has_estate_privilege = estate_nobles_vegvar_system
4734
+ }
4735
+ }
4736
+ owner = {
4737
+ every_owned_province = {
4738
+ limit = {
4739
+ has_province_modifier = estate_nobles_vegvar_system_modifier
4740
+ has_fort_building_trigger = yes
4741
+ all_neighbor_province = {
4742
+ owned_by = ROOT
4743
+ }
4744
+ }
4745
+ remove_province_modifier = estate_nobles_vegvar_system_modifier
4746
+ }
4747
+ }
4748
+ }
4749
+ if = {
4750
+ limit = {
4751
+ has_province_modifier = estate_nobles_vegvar_system_modifier
4752
+ NOT = {
4753
+ owner = {
4754
+ has_estate_privilege = estate_nobles_vegvar_system
4755
+ }
4756
+ has_fort_building_trigger = yes
4757
+ any_neighbor_province = {
4758
+ NOT = { owned_by = ROOT }
4759
+ }
4760
+ }
4761
+ }
4762
+ remove_province_modifier = estate_nobles_vegvar_system_modifier
4763
+ }
4764
+ if = {
4765
+ limit = {
4766
+ has_province_modifier = estate_nobles_vegvar_system_modifier
4767
+ NOT = {
4768
+ owner = {
4769
+ has_estate_privilege = estate_nobles_vegvar_system
4770
+ }
4771
+ has_fort_building_trigger = yes
4772
+ any_neighbor_province = {
4773
+ NOT = { owned_by = ROOT }
4774
+ }
4775
+ }
4776
+ }
4777
+ remove_province_modifier = estate_nobles_vegvar_system_modifier
4778
+ }
4779
+ }
4780
+
4781
+ # country
4782
+ on_parliament_debate_reset = {
4783
+ on_parliament_debate_reset_effect = yes
4784
+ }
4785
+
4786
+ #province
4787
+ on_parliament_seat_given = {
4788
+ on_parliament_seat_given_effect = yes
4789
+ }
4790
+
4791
+ #province
4792
+ on_parliament_seat_lost = {
4793
+ on_parliament_seat_lost_effect = yes
4794
+ }
4795
+
4796
+ # country
4797
+ on_parliament_debate_failed = {
4798
+ on_parliament_debate_failed_effect = yes
4799
+ }
4800
+
4801
+ # country
4802
+ on_parliament_debate_succeeded = {
4803
+ on_parliament_debate_succeeded_effect = yes
4804
+ increase_issue_passed_counter = yes
4805
+ }
4806
+
4807
+ # country
4808
+ on_harmonized_pagan = {
4809
+ on_harmonized_effect = yes
4810
+ on_harmonized_religion_estate_privileges_effect = yes
4811
+ events = {
4812
+ confucian_events.1
4813
+ }
4814
+ }
4815
+ on_harmonized_christian = {
4816
+ on_harmonized_effect = yes
4817
+ on_harmonized_religion_estate_privileges_effect = yes
4818
+ events = {
4819
+ confucian_events.2
4820
+ }
4821
+ }
4822
+ on_harmonized_muslim = {
4823
+ on_harmonized_effect = yes
4824
+ on_harmonized_religion_estate_privileges_effect = yes
4825
+ events = {
4826
+ confucian_events.3
4827
+ }
4828
+ }
4829
+ on_harmonized_jewish_group = {
4830
+ on_harmonized_effect = yes
4831
+ on_harmonized_religion_estate_privileges_effect = yes
4832
+ events = {
4833
+ confucian_events.5
4834
+ }
4835
+ }
4836
+ on_harmonized_zoroastrian_group = {
4837
+ on_harmonized_effect = yes
4838
+ on_harmonized_religion_estate_privileges_effect = yes
4839
+ events = {
4840
+ confucian_events.6
4841
+ }
4842
+ }
4843
+ on_harmonized_dharmic = {
4844
+ on_harmonized_effect = yes
4845
+ on_harmonized_religion_estate_privileges_effect = yes
4846
+ events = {
4847
+ confucian_events.4
4848
+ }
4849
+ }
4850
+ on_harmonized_mahayana = {
4851
+ on_harmonized_effect = yes
4852
+ on_harmonized_religion_estate_privileges_effect = yes
4853
+ events = {
4854
+ confucian_events.9
4855
+ }
4856
+ }
4857
+ on_harmonized_buddhism = { #Theravada
4858
+ on_harmonized_effect = yes
4859
+ on_harmonized_religion_estate_privileges_effect = yes
4860
+ events = {
4861
+ confucian_events.8
4862
+ }
4863
+ }
4864
+ on_harmonized_shinto = {
4865
+ on_harmonized_effect = yes
4866
+ on_harmonized_religion_estate_privileges_effect = yes
4867
+ events = {
4868
+ confucian_events.7
4869
+ }
4870
+ }
4871
+ on_harmonized_vajrayana = {
4872
+ on_harmonized_effect = yes
4873
+ on_harmonized_religion_estate_privileges_effect = yes
4874
+ events = {
4875
+ confucian_events.10
4876
+ }
4877
+ }
4878
+
4879
+ # province
4880
+ on_consecrate_patriarch = {
4881
+ if = {
4882
+ limit = {
4883
+ owner = { has_country_flag = has_improved_consecration }
4884
+ }
4885
+ every_province_in_state = {
4521
4886
  limit = { has_state_patriach = yes }
4522
4887
  add_province_modifier = {
4523
4888
  name = consecrated_ground
@@ -4551,10 +4916,63 @@ on_consecrate_patriarch = {
4551
4916
  }
4552
4917
  }
4553
4918
  }
4919
+ if = {
4920
+ limit = {
4921
+ owner = { has_country_flag = metropolitan_double_buff }
4922
+ }
4923
+ every_province_in_state = {
4924
+ add_province_modifier = {
4925
+ name = tre_consecrated_ground
4926
+ duration = -1
4927
+ hidden = yes
4928
+ }
4929
+ }
4930
+ }
4554
4931
  }
4555
4932
 
4556
4933
  # country. from = overlord
4557
4934
  on_accept_tribute = {
4935
+ if = {
4936
+ limit = {
4937
+ FROM = {
4938
+ has_country_flag = azt_imperial_tributes_flag
4939
+ }
4940
+ }
4941
+ FROM = {
4942
+ add_estate_loyalty = {
4943
+ estate = estate_nobles
4944
+ loyalty = 1
4945
+ }
4946
+ }
4947
+ }
4948
+ if = {
4949
+ limit = {
4950
+ FROM = {
4951
+ has_country_flag = basaqs_tribes_loyalty_from_tribute_flag
4952
+ has_estate_privilege = estate_nomadic_tribes_basqaq_autonomy
4953
+ }
4954
+ }
4955
+ FROM = {
4956
+ add_estate_loyalty = {
4957
+ estate = estate_nomadic_tribes
4958
+ loyalty = 1
4959
+ }
4960
+ }
4961
+ }
4962
+ if = {
4963
+ limit = {
4964
+ FROM = {
4965
+ has_country_flag = basaqs_tribes_loyalty_from_tribute_flag
4966
+ has_estate_privilege = estate_nobles_basqaq_autonomy
4967
+ }
4968
+ }
4969
+ FROM = {
4970
+ add_estate_loyalty = {
4971
+ estate = estate_nobles
4972
+ loyalty = 1
4973
+ }
4974
+ }
4975
+ }
4558
4976
  }
4559
4977
 
4560
4978
  # country. from = overlord
@@ -4834,6 +5252,8 @@ on_culture_promoted = {
4834
5252
  judaism_on_culture_country_effect = yes
4835
5253
  imperial_modifiers_on_culture_country_effect = yes
4836
5254
 
5255
+ GER_on_culture_promoted = yes
5256
+
4837
5257
  if = {
4838
5258
  limit = { has_country_flag = reduce_ae_from_prom_cultures_flag }
4839
5259
  every_country = {
@@ -4851,10 +5271,13 @@ on_culture_demoted = {
4851
5271
  judaism_on_culture_country_effect = yes
4852
5272
  imperial_modifiers_on_culture_country_effect = yes
4853
5273
  on_culture_demoted_effect = yes
4854
- on_culture_demoted_effect_remove_all_free_slots = yes
5274
+ #on_culture_demoted_effect_remove_all_free_slots = yes
5275
+
5276
+ GER_on_culture_demoted = yes
4855
5277
  }
4856
5278
 
4857
5279
  on_primary_culture_changed = {
5280
+ on_primary_culture_changed_effect = yes
4858
5281
  on_primary_culture_changed_privileges_effect = yes
4859
5282
  judaism_on_culture_country_effect = yes
4860
5283
  imperial_modifiers_on_primary_culture_change_effect = yes
@@ -4893,6 +5316,42 @@ on_dependency_lost = {
4893
5316
  # ROOT = New vassal, FROM = Overlord
4894
5317
  on_create_vassal = {
4895
5318
  on_religion_change_estate_privileges_effect = yes
5319
+ if = {
5320
+ limit = {
5321
+ ai = no
5322
+ tag = BOH
5323
+ has_dlc = "Winds of Change"
5324
+ not_in_mission_preview_mode = { key = BOH_RELIGION }
5325
+ NOT = { mission_completed = boh_hussite_regency }
5326
+ }
5327
+ enable_branching_mission_review_without_ai = {
5328
+ key = BOH_RELIGION
5329
+ }
5330
+ }
5331
+ if = {
5332
+ limit = {
5333
+ ai = no
5334
+ tag = HSN
5335
+ has_dlc = "Winds of Change"
5336
+ not_in_mission_preview_mode = { key = HSN }
5337
+ NOT = { mission_completed = hsn_fate_of_anatolia }
5338
+ }
5339
+ enable_branching_mission_review_without_ai = {
5340
+ key = HSN
5341
+ }
5342
+ }
5343
+ if = {
5344
+ limit = {
5345
+ ai = no
5346
+ tag = HSN
5347
+ has_dlc = "Winds of Change"
5348
+ not_in_mission_preview_mode = { key = HSN2 }
5349
+ NOT = { mission_completed = hsn_sultan_shah }
5350
+ }
5351
+ enable_branching_mission_review_without_ai = {
5352
+ key = HSN2
5353
+ }
5354
+ }
4896
5355
  if = {
4897
5356
  limit = {
4898
5357
  has_dlc = "Emperor"
@@ -4922,7 +5381,14 @@ on_create_vassal = {
4922
5381
  # ROOT = Country establishing it
4923
5382
  # First province in state is set
4924
5383
  on_holy_order_established = {
4925
-
5384
+ ROOT = {
5385
+ if = {
5386
+ limit = {
5387
+ has_country_flag = ven_establish_scuola_effect_flag
5388
+ }
5389
+ change_innovativeness = 1
5390
+ }
5391
+ }
4926
5392
  }
4927
5393
 
4928
5394
  # When a minority is expelled to a colony
@@ -5010,6 +5476,42 @@ on_flagship_destroyed = {
5010
5476
 
5011
5477
  # this = Released country, FROM = Releasing country
5012
5478
  on_country_released = {
5479
+ if = {
5480
+ limit = {
5481
+ ai = no
5482
+ tag = BOH
5483
+ has_dlc = "Winds of Change"
5484
+ not_in_mission_preview_mode = { key = BOH_RELIGION }
5485
+ NOT = { mission_completed = boh_hussite_regency }
5486
+ }
5487
+ enable_branching_mission_review_without_ai = {
5488
+ key = BOH_RELIGION
5489
+ }
5490
+ }
5491
+ if = {
5492
+ limit = {
5493
+ ai = no
5494
+ tag = HSN
5495
+ has_dlc = "Winds of Change"
5496
+ not_in_mission_preview_mode = { key = HSN }
5497
+ NOT = { mission_completed = hsn_fate_of_anatolia }
5498
+ }
5499
+ enable_branching_mission_review_without_ai = {
5500
+ key = HSN
5501
+ }
5502
+ }
5503
+ if = {
5504
+ limit = {
5505
+ ai = no
5506
+ tag = HSN
5507
+ has_dlc = "Winds of Change"
5508
+ not_in_mission_preview_mode = { key = HSN2 }
5509
+ NOT = { mission_completed = hsn_sultan_shah }
5510
+ }
5511
+ enable_branching_mission_review_without_ai = {
5512
+ key = HSN2
5513
+ }
5514
+ }
5013
5515
  if = {
5014
5516
  limit = {
5015
5517
  tag = PAP
@@ -5055,6 +5557,24 @@ on_trade_good_changed = {
5055
5557
  }
5056
5558
  add_base_production = -1
5057
5559
  }
5560
+ if = {
5561
+ limit = {
5562
+ has_province_modifier = INC_gold_debuff
5563
+ NOT = { trade_goods = gold }
5564
+ }
5565
+ remove_province_modifier = INC_gold_debuff
5566
+ }
5567
+ else_if = {
5568
+ limit = {
5569
+ from = { has_estate_privilege = estate_church_INC_idol_making }
5570
+ NOT = { has_province_modifier = INC_gold_debuff }
5571
+ trade_goods = gold
5572
+ }
5573
+ add_province_modifier = {
5574
+ name = INC_gold_debuff
5575
+ duration = -1
5576
+ }
5577
+ }
5058
5578
  }
5059
5579
  }
5060
5580
 
@@ -5161,7 +5681,7 @@ on_golden_bull_enacted = {
5161
5681
  set_country_flag = enacted_golden_bull
5162
5682
  if = {
5163
5683
  limit = {
5164
- FRA = { has_country_flag = fu_gain_25_random_pp_and_10_pi_per_bull_flag }
5684
+ FRA = { has_country_flag = gain_25_random_pp_and_10_pi_per_bull_flag }
5165
5685
  }
5166
5686
  FRA = {
5167
5687
  random_list = {
@@ -5178,50 +5698,7 @@ on_golden_bull_enacted = {
5178
5698
  # province: spawned whenever a new owner takes over the province
5179
5699
  # FROM = The previous owner.
5180
5700
  on_conquest = {
5181
- remove_named_unrest = estate_land_seized
5182
- clr_province_flag = has_estate_unrest_flag
5183
- if = {
5184
- limit = {
5185
- is_part_of_hre = no
5186
- owner = {
5187
- has_country_flag = pru_dom_hre_flag
5188
- alliance_with = emperor
5189
- }
5190
- }
5191
- owner = {
5192
- add_trust = {
5193
- who = emperor
5194
- value = 3
5195
- mutual = yes
5196
- }
5197
- }
5198
- }
5199
- else_if = {
5200
- limit = {
5201
- is_part_of_hre = no
5202
- owner = {
5203
- has_country_flag = pru_dom_hre_flag
5204
- NOT = { alliance_with = emperor }
5205
- is_emperor = no
5206
- }
5207
- }
5208
- owner = {
5209
- add_power_projection = {
5210
- type = mission_rewards_power_projection
5211
- amount = 1
5212
- }
5213
- }
5214
- }
5215
- else_if = {
5216
- limit = {
5217
- is_part_of_hre = no
5218
- owner = { is_emperor = yes }
5219
- development = 25
5220
- }
5221
- emperor = {
5222
- add_imperial_influence = 1
5223
- }
5224
- }
5701
+ on_conquest_effect = yes
5225
5702
  }
5226
5703
 
5227
5704
  on_country_creation = {
@@ -5447,12 +5924,62 @@ on_institution_embracement = {
5447
5924
  }
5448
5925
  on_national_focus_change = {}
5449
5926
 
5927
+ #ROOT = new capital province, FROM = old capital
5450
5928
  on_capital_moved = {
5451
5929
  on_capital_moved_effect = yes
5452
5930
  }
5453
5931
 
5454
5932
  #ROOT = province that was expanded in, FROM = country that did it
5455
5933
  on_expanded_infrastructure = {
5934
+ if = {
5935
+ limit = {
5936
+ province_id = 266
5937
+ owner = {
5938
+ has_country_flag = boh_expand_infrastructure_prague_flag
5939
+ }
5940
+ }
5941
+ add_base_tax = 1
5942
+ add_base_production = 1
5943
+ add_base_manpower = 1
5944
+ }
5945
+ if = {
5946
+ limit = {
5947
+ has_province_flag = feo_expand_infrastructure_gold_income
5948
+ }
5949
+ FROM = {
5950
+ add_years_of_owned_provinces_production_income = {
5951
+ years = 2
5952
+ trigger = {
5953
+ province_id = 1766
5954
+ }
5955
+ }
5956
+ }
5957
+ 1766 = { clr_province_flag = feo_expand_infrastructure_gold_income}
5958
+ }
5959
+ if = {
5960
+ limit = {
5961
+ has_province_flag = azt_tenochtitlan_expand_infrastructure_flag
5962
+ }
5963
+ FROM = {
5964
+ change_government_reform_progress = 10
5965
+ }
5966
+ }
5967
+ if = {
5968
+ limit = {
5969
+ FROM = {
5970
+ has_country_flag = MUG_upgrade_expanding_infrastructure
5971
+ }
5972
+ }
5973
+ area = {
5974
+ limit = {
5975
+ owned_by = FROM
5976
+ }
5977
+ add_province_modifier = {
5978
+ name = MUG_expanded_infrastructure
5979
+ duration = 7300
5980
+ }
5981
+ }
5982
+ }
5456
5983
  }
5457
5984
 
5458
5985
  #ROOT = province that was centralized in
@@ -5490,6 +6017,26 @@ on_centralized_state = {
5490
6017
  }
5491
6018
  }
5492
6019
  }
6020
+ if = {
6021
+ limit = {
6022
+ owner = {
6023
+ OR = {
6024
+ has_government_attribute = centralize_state_development
6025
+ has_country_modifier = hun_strengthen_the_government
6026
+ }
6027
+ }
6028
+ }
6029
+ area = {
6030
+ limit = {
6031
+ owned_by = ROOT
6032
+ }
6033
+ random_list = {
6034
+ 1 = { add_base_tax = 1 }
6035
+ 1 = { add_base_production = 1 }
6036
+ 1 = { add_base_manpower = 1 }
6037
+ }
6038
+ }
6039
+ }
5493
6040
  }
5494
6041
 
5495
6042
  #ROOT = country
@@ -5583,6 +6130,13 @@ on_new_age = {
5583
6130
  desc = until_end_of_age_desc
5584
6131
  }
5585
6132
  }
6133
+ if = {
6134
+ limit = {
6135
+ has_country_flag = ITA_gain_100_splendor_flag
6136
+ has_dlc = "Mandate of Heaven"
6137
+ }
6138
+ add_splendor = 100
6139
+ }
5586
6140
  }
5587
6141
 
5588
6142
  #ROOT = province
@@ -5608,16 +6162,105 @@ on_adm_exploited = {
5608
6162
  add_base_tax = 1
5609
6163
  }
5610
6164
  }
6165
+ if = {
6166
+ limit = {
6167
+ owner = { has_government_mechanic = blood_gathering_mechanic }
6168
+ }
6169
+ owner = {
6170
+ add_government_power = {
6171
+ mechanic_type = blood_gathering_mechanic
6172
+ power_type = blood
6173
+ value = 1
6174
+ }
6175
+ }
6176
+ }
6177
+ if = {
6178
+ limit = {
6179
+ has_province_modifier = estate_burghers_hungarian_royal_city_modifier
6180
+ NOT = { development = 20 }
6181
+ }
6182
+ }
6183
+ remove_province_modifier = estate_burghers_hungarian_royal_city_modifier
5611
6184
  }
5612
6185
  on_dip_exploited = {
6186
+ if = {
6187
+ limit = {
6188
+ owner = { has_government_mechanic = blood_gathering_mechanic }
6189
+ }
6190
+ owner = {
6191
+ add_government_power = {
6192
+ mechanic_type = blood_gathering_mechanic
6193
+ power_type = blood
6194
+ value = 1
6195
+ }
6196
+ }
6197
+ }
6198
+ if = {
6199
+ limit = {
6200
+ has_province_modifier = estate_burghers_hungarian_royal_city_modifier
6201
+ NOT = { development = 20 }
6202
+ }
6203
+ }
6204
+ remove_province_modifier = estate_burghers_hungarian_royal_city_modifier
5613
6205
  }
5614
6206
  on_mil_exploited = {
6207
+ if = {
6208
+ limit = {
6209
+ owner = { has_government_mechanic = blood_gathering_mechanic }
6210
+ }
6211
+ owner = {
6212
+ add_government_power = {
6213
+ mechanic_type = blood_gathering_mechanic
6214
+ power_type = blood
6215
+ value = 1
6216
+ }
6217
+ }
6218
+ }
6219
+ if = {
6220
+ limit = {
6221
+ has_province_modifier = estate_burghers_hungarian_royal_city_modifier
6222
+ NOT = { development = 20 }
6223
+ }
6224
+ }
6225
+ remove_province_modifier = estate_burghers_hungarian_royal_city_modifier
5615
6226
  }
5616
6227
  on_raze = {
5617
6228
  add_permanent_province_modifier = {
5618
6229
  name = province_razed
5619
6230
  duration = 7300
5620
6231
  }
6232
+ owner = {
6233
+ change_variable = {
6234
+ which = HordeProvincesRazed
6235
+ value = 1
6236
+ }
6237
+ }
6238
+
6239
+ if = {
6240
+ limit = {
6241
+ has_tax_building_trigger = yes
6242
+ owner = {
6243
+ has_country_flag = tatars_curch_raze_flag
6244
+ }
6245
+ }
6246
+ owner = {
6247
+ add_treasury = 10
6248
+ }
6249
+ }
6250
+
6251
+ if = {
6252
+ limit = {
6253
+ owner = {
6254
+ has_country_flag = hordes_unlock_tribes_loyalty_through_razing_flag
6255
+ }
6256
+ }
6257
+ owner = {
6258
+ add_estate_loyalty = {
6259
+ estate = estate_nomadic_tribes
6260
+ loyalty = 1
6261
+ }
6262
+ }
6263
+ }
5621
6264
  }
5622
6265
  on_concentrate_development = {
5623
6266
  if = {
@@ -5651,7 +6294,12 @@ on_adm_advisor_hired = { #ROOT - Country, executed after on_advisor_hired!
5651
6294
  }
5652
6295
 
5653
6296
  on_dip_advisor_hired = { #ROOT - Country, executed after on_advisor_hired!
5654
-
6297
+ if = {
6298
+ limit = {
6299
+ has_country_flag = ITA_cavour_alive
6300
+ }
6301
+ clr_country_flag = ITA_cavour_alive
6302
+ }
5655
6303
  }
5656
6304
 
5657
6305
  on_mil_advisor_hired = { #ROOT - Country, executed after on_advisor_hired!
@@ -5659,23 +6307,88 @@ on_mil_advisor_hired = { #ROOT - Country, executed after on_advisor_hired!
5659
6307
  }
5660
6308
 
5661
6309
  on_core = { #ROOT - Province, #FROM - Country that gets the core
5662
-
6310
+ if = {
6311
+ limit = {
6312
+ FROM = { has_country_flag = GER_get_full_core_on_cored_italian_provinces_flag }
6313
+ }
6314
+ add_core = FROM
6315
+ }
6316
+ if = {
6317
+ limit = {
6318
+ FROM = { has_country_modifier = INC_the_mitma_for_control }
6319
+ NOT = { is_territorial_core = FROM }
6320
+ }
6321
+ FROM = {
6322
+ random_owned_province = {
6323
+ limit = {
6324
+ is_state_core = ROOT
6325
+ NOT = { has_province_modifier = INC_mitma_settlers }
6326
+ NOT = { nationalism = 1 }
6327
+ }
6328
+ random_list = {
6329
+ 50 = { }
6330
+ 50 = { add_random_development = 1 }
6331
+ }
6332
+ add_province_modifier = {
6333
+ name = INC_mitma_settlers
6334
+ duration = 10950
6335
+ }
6336
+ }
6337
+ }
6338
+ }
5663
6339
  }
5664
6340
 
5665
6341
  on_tech_taken = { #ROOT - Country
5666
-
6342
+ if = {
6343
+ limit = { has_country_flag = ven_academy_of_the_unknowns_reward_flag }
6344
+ if = {
6345
+ limit = { has_dlc = "Rule Britannia" }
6346
+ change_innovativeness = 1
6347
+ }
6348
+ add_republican_tradition = 1
6349
+ }
5667
6350
  }
5668
6351
 
5669
6352
  on_adm_tech_taken = { #ROOT - Country, executed after on_tech_taken!
5670
-
6353
+ if = {
6354
+ limit = {
6355
+ ROOT = {
6356
+ ruler_total_stats = {
6357
+ amount = 12
6358
+ }
6359
+ has_country_flag = hun_refund_mana_on_tech
6360
+ }
6361
+ }
6362
+ add_adm_power = 50
6363
+ }
5671
6364
  }
5672
6365
 
5673
6366
  on_dip_tech_taken = { #ROOT - Country, executed after on_tech_taken!
5674
-
6367
+ if = {
6368
+ limit = {
6369
+ ruler_total_stats = {
6370
+ amount = 12
6371
+ }
6372
+ ROOT = {
6373
+ has_country_flag = hun_refund_mana_on_tech
6374
+ }
6375
+ }
6376
+ add_dip_power = 50
6377
+ }
5675
6378
  }
5676
6379
 
5677
6380
  on_mil_tech_taken = { #ROOT - Country, executed after on_tech_taken!
5678
-
6381
+ if = {
6382
+ limit = {
6383
+ ruler_total_stats = {
6384
+ amount = 12
6385
+ }
6386
+ ROOT = {
6387
+ has_country_flag = hun_refund_mana_on_tech
6388
+ }
6389
+ }
6390
+ add_mil_power = 50
6391
+ }
5679
6392
  }
5680
6393
 
5681
6394
  on_barrage = { #ROOT - barraging country, FROM - barraged province
@@ -5719,7 +6432,6 @@ on_alliance_broken = { #ROOT - Original alliance creator, FROM - Alliance accept
5719
6432
  }
5720
6433
 
5721
6434
  on_royal_marriage_broken = { #ROOT - Original marriage creator, FROM - Marriage accepter
5722
-
5723
6435
  }
5724
6436
 
5725
6437
  on_alliance_created = { #ROOT - Alliance sender, FROM - Alliance accepter
@@ -5727,12 +6439,27 @@ on_alliance_created = { #ROOT - Alliance sender, FROM - Alliance accepter
5727
6439
  }
5728
6440
 
5729
6441
  on_royal_marriage = { #ROOT - Marraige sender, FROM - marriage accepter
5730
-
6442
+ if = {
6443
+ limit = {
6444
+ tag = BUR
6445
+ NOT = { has_country_flag = burgundian_succession_has_already_fired }
6446
+ }
6447
+ FROM = { set_country_flag = received_burgundian_marriage }
6448
+ }
5731
6449
  }
5732
6450
 
5733
6451
  on_heir_disinherited = {
5734
6452
  on_heir_disinherited_or_death_effect = yes
5735
6453
  }
5736
6454
  on_overrun = { #ROOT - winner, FROM - loser, on stackwipe
5737
-
6455
+ if = {
6456
+ limit = {
6457
+ ROOT = {
6458
+ has_government_attribute = army_tradition_on_stackwipe
6459
+ }
6460
+ }
6461
+ ROOT = {
6462
+ add_army_tradition = 0.1
6463
+ }
6464
+ }
5738
6465
  }