diff --git a/common/coat_of_arms/coat_of_arms/NEOW_dynasties.txt b/common/coat_of_arms/coat_of_arms/NEOW_dynasties.txt index f10c34633..a7832bc4f 100644 --- a/common/coat_of_arms/coat_of_arms/NEOW_dynasties.txt +++ b/common/coat_of_arms/coat_of_arms/NEOW_dynasties.txt @@ -10841,22 +10841,34 @@ dynn_britannia_windsor = { color1=yellow texture="ce_harp.dds" instance={ - position={ 0.320000 0.750000 } - scale={ 0.500000 0.500000 } + position={ 0.320000 0.730000 } + scale={ 0.480000 0.480000 } depth=7.010000 rotation=348 } } + colored_emblem={ + color1=yellow + color2=yellow + texture="ce_moors_head_02.dds" + instance={ + position={ 0.150000 0.640000 } + scale={ 0.200000 0.200000 } + depth=1.010000 + } + + } + colored_emblem={ color1=yellow color2=black color3=blue texture="ce_leopard_passant_guardant.dds" instance={ - position={ 0.750000 0.900000 } - scale={ 0.500000 0.500000 } + position={ 0.700000 0.840000 } + scale={ 0.420000 0.420000 } depth=2.010000 } @@ -10872,26 +10884,13 @@ dynn_britannia_windsor = { } - colored_emblem={ - color1=yellow - color2=yellow - color3=yellow - texture="ce_moors_head_02.dds" - instance={ - position={ 0.145000 0.660000 } - scale={ 0.200000 0.200000 } - depth=1.010000 - } - - } - colored_emblem={ color1=red color2=blue texture="ce_lion_rampant.dds" instance={ - position={ 0.750000 0.250000 } - scale={ 0.300000 0.300000 } + position={ 0.720000 0.250000 } + scale={ 0.290000 0.290000 } depth=5.010000 } @@ -10903,32 +10902,32 @@ dynn_britannia_windsor = { color3=black texture="ce_leopard_passant_guardant.dds" instance={ - position={ 0.750000 0.750000 } - scale={ 0.500000 0.500000 } + position={ 0.700000 0.720000 } + scale={ 0.420000 0.420000 } depth=3.010000 } instance={ - position={ 0.750000 0.600000 } - scale={ 0.500000 0.500000 } + position={ 0.700000 0.580000 } + scale={ 0.420000 0.420000 } depth=4.010000 } instance={ - position={ 0.250000 0.400000 } - scale={ 0.500000 0.500000 } + position={ 0.290000 0.400000 } + scale={ 0.420000 0.420000 } depth=8.010000 } instance={ - position={ 0.250000 0.100000 } - scale={ 0.500000 0.500000 } + position={ 0.290000 0.100000 } + scale={ 0.420000 0.420000 } depth=9.010000 } instance={ - position={ 0.250000 0.250000 } - scale={ 0.500000 0.500000 } + position={ 0.290000 0.250000 } + scale={ 0.420000 0.420000 } depth=10.010000 } @@ -10948,8 +10947,8 @@ dynn_britannia_windsor = { color1=red texture="ce_double_tressure.dds" instance={ - position={ 0.750000 0.250000 } - scale={ 0.600000 0.500000 } + position={ 0.720000 0.270000 } + scale={ 0.490000 0.490000 } } } @@ -10959,7 +10958,6 @@ dynn_britannia_windsor = { - dynn_britannia_cyflymarhyan ={ pattern="pattern_horizontal_split_01.dds" color1=purple diff --git a/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt b/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt index fd0e7270f..886c7be5a 100644 --- a/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt +++ b/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt @@ -23027,55 +23027,6 @@ k_troy={ } } - -k_royal_household ={ - pattern="pattern_checkers_02.dds" - color1=red - color2=blue - color3=blue - colored_emblem={ - color1=yellow - texture="ce_harp.dds" - instance={ - position={ 0.320000 0.750000 } - scale={ 0.500000 0.500000 } - depth=7.010000 - rotation=348 - } - - } - - colored_emblem={ - color1=yellow - color2=black - color3=blue - texture="ce_leopard_passant_guardant.dds" - instance={ - position={ 0.750000 0.900000 } - scale={ 0.500000 0.500000 } - depth=2.010000 - } - - } - - colored_emblem={ - color1=red - color2=blue - texture="ce_quarterly.dds" - instance={ - depth=11.010000 - } - - } - - colored_emblem={ - color1=yellow - color2=yellow - color3=yellow - texture="ce_moors_head_02.dds" - instance={ - position={ 0.145000 0.660000 } - scale={ 0.200000 0.200000 } d_et_crimea={ pattern="pattern_horizontal_split_01.dds" color1=blue @@ -23097,13 +23048,6 @@ d_et_crimea={ } - colored_emblem={ - color1=red - color2=blue - texture="ce_lion_rampant.dds" - instance={ - position={ 0.750000 0.250000 } - scale={ 0.300000 0.300000 } } d_et_moscow={ @@ -23172,38 +23116,6 @@ d_et_montenegro={ } colored_emblem={ - color1=yellow - color2=blue - color3=black - texture="ce_leopard_passant_guardant.dds" - instance={ - position={ 0.750000 0.750000 } - scale={ 0.500000 0.500000 } - depth=3.010000 - } - - instance={ - position={ 0.750000 0.600000 } - scale={ 0.500000 0.500000 } - depth=4.010000 - } - - instance={ - position={ 0.250000 0.400000 } - scale={ 0.500000 0.500000 } - depth=8.010000 - } - - instance={ - position={ 0.250000 0.100000 } - scale={ 0.500000 0.500000 } - depth=9.010000 - } - - instance={ - position={ 0.250000 0.250000 } - scale={ 0.500000 0.500000 } - depth=10.010000 color1=blue texture="ce_block_01.dds" instance={ @@ -23233,20 +23145,6 @@ d_et_montenegro={ colored_emblem={ color1=yellow - texture="ce_block_02.dds" - instance={ - position={ 1.000000 0.000000 } - depth=6.010000 - } - - } - - colored_emblem={ - color1=red - texture="ce_double_tressure.dds" - instance={ - position={ 0.750000 0.250000 } - scale={ 0.600000 0.500000 } texture="ce_cross_patriarchal.dds" instance={ position={ 0.500000 0.390000 } diff --git a/common/governments/01_japan_government_types.txt b/common/governments/01_japan_government_types.txt deleted file mode 100644 index 975e2587d..000000000 --- a/common/governments/01_japan_government_types.txt +++ /dev/null @@ -1,271 +0,0 @@ -japan_administrative_government = { # Ritsuryo - government_rules = { - create_cadet_branches = yes - rulers_should_have_dynasty = yes - dynasty_named_realms = no - legitimacy = yes - landless_playable = yes - use_as_base_on_landed = yes - use_as_base_on_rank_up = yes - inherit_from_dynastic_government = no - sticky_government = yes - house_aspirations = yes - noble_families = yes - deny_powerful_vassal = yes - disable_regnal_numbers = yes - allow_accolades = yes - } - - royal_court = any - blocked_subject_courts = { meritocratic_government celestial_government japan_administrative_government administrative_government steppe_admin_government } - mechanic_type = administrative - domicile_type = japanese_manor - main_administrative_tier = county - min_appointment_tier = county - minimum_provincial_maa_tier = duchy - - primary_holding = castle_holding - primary_heritages = { heritage_japonic } - valid_holdings = { city_holding temple_citadel_holding tribal_holding } - required_county_holdings = { castle_holding city_holding church_holding } - - vassal_contract_group = japan_administrative_vassal - - character_modifier = { - # LEVIES & TAXES - japan_feudal_government_tax_contribution_mult = -0.5 - japan_feudal_government_levy_contribution_mult = -0.5 - garrison_size = -0.5 - # MEN-AT-ARMS - men_at_arms_cap = -2 - men_at_arms_limit = -2 - # KNIGHTS - knight_limit = -5 - # VASSALS - vassal_limit = 50 # Kampaku - # DOMAIN - domain_limit_max = 1 # Raised further by manor - domain_tax_mult = 0.3 - } - - can_get_government = { - has_tgp_dlc_trigger = yes - top_liege = { # Only creatable in a Ritsuryo, Soryo, or restored Ritsuryo realm - OR = { - government_is_japanese_trigger = yes - has_character_flag = tgp_japan_restore_japanese_government_flag - } - } - } - - # The Regent always remains in the same place. - can_move_realm_capital = { - NOT = { primary_title ?= title:e_japan } - } - - compatible_government_type_succession = { japan_feudal_government } - - # Use flags instead of has_government for moddability if possible (i.e., wherever not visible to the player). - flags = { - government_is_japan_administrative - # These flags only exist for loc and in-game descriptions - government_has_influence - government_has_title_men_at_arms - government_has_powerful_families - government_has_county_tier_noble_families - has_special_house_aspirations - government_is_settled - government_uses_domicile_but_not_adventurer - has_unique_government_perks - government_uses_admin_province_obligations - government_uses_japanese_family_aspirations - government_has_house_blocs - government_uses_japanese_bureaucracy - } - - possible_grant_vassal_governments = { theocracy_government ecclesiastical_government } - - ai = { - use_legends = yes - } - - color = { 250 90 150 } - realm_mask_offset = { 0.02 0.072 } - realm_mask_scale = { 0.88 0.88 } -} - -british_administrative_government = { # Ritsuryo - government_rules = { - create_cadet_branches = yes - rulers_should_have_dynasty = yes - dynasty_named_realms = no - legitimacy = yes - landless_playable = yes - use_as_base_on_landed = yes - use_as_base_on_rank_up = yes - inherit_from_dynastic_government = no - sticky_government = yes - house_aspirations = yes - noble_families = yes - deny_powerful_vassal = yes - disable_regnal_numbers = yes - allow_accolades = yes - } - - royal_court = any - blocked_subject_courts = { meritocratic_government celestial_government japan_administrative_government administrative_government steppe_admin_government } - mechanic_type = administrative - domicile_type = japanese_manor - main_administrative_tier = county - min_appointment_tier = county - minimum_provincial_maa_tier = duchy - - primary_holding = castle_holding - primary_heritages = { heritage_brythonic heritage_anglo-saxon heritage_scottish } - valid_holdings = { city_holding temple_citadel_holding tribal_holding } - required_county_holdings = { castle_holding city_holding church_holding } - - vassal_contract_group = japan_administrative_vassal - - character_modifier = { - # LEVIES & TAXES - japan_feudal_government_tax_contribution_mult = -0.5 - japan_feudal_government_levy_contribution_mult = -0.5 - garrison_size = -0.5 - # MEN-AT-ARMS - men_at_arms_cap = -2 - men_at_arms_limit = -2 - # KNIGHTS - knight_limit = -5 - # VASSALS - vassal_limit = 50 # Kampaku - # DOMAIN - domain_limit_max = 1 # Raised further by manor - domain_tax_mult = 0.3 - } - - can_get_government = { - has_tgp_dlc_trigger = yes - top_liege = { # Only creatable in a Ritsuryo, Soryo, or restored Ritsuryo realm - OR = { - government_is_japanese_trigger = yes - has_character_flag = tgp_japan_restore_japanese_government_flag - } - } - } - - # The Regent always remains in the same place. - can_move_realm_capital = { - NOT = { primary_title ?= title:e_britannia } - } - - compatible_government_type_succession = { japan_feudal_government } - - # Use flags instead of has_government for moddability if possible (i.e., wherever not visible to the player). - flags = { - government_is_japan_administrative - # These flags only exist for loc and in-game descriptions - government_has_influence - government_has_title_men_at_arms - government_has_powerful_families - government_has_county_tier_noble_families - has_special_house_aspirations - government_is_settled - government_uses_domicile_but_not_adventurer - has_unique_government_perks - government_uses_admin_province_obligations - government_uses_japanese_family_aspirations - government_has_house_blocs - government_uses_japanese_bureaucracy - } - - possible_grant_vassal_governments = { theocracy_government ecclesiastical_government } - - ai = { - use_legends = yes - } - - color = { 250 90 150 } - realm_mask_offset = { 0.02 0.072 } - realm_mask_scale = { 0.88 0.88 } -} - -japan_feudal_government = { # Soryo - government_rules = { - create_cadet_branches = yes - rulers_should_have_dynasty = yes - dynasty_named_non_independent_landed_rulers = yes - landless_playable = yes - legitimacy = yes - house_aspirations = yes - use_as_base_on_landed = yes - use_as_base_on_rank_up = yes - noble_families = yes - disable_regnal_numbers = yes - allow_accolades = yes - } - - royal_court = any - - character_modifier = { - # LEVIES & TAXES - japan_administrative_government_tax_contribution_mult = -0.5 - japan_administrative_government_levy_contribution_mult = -0.5 - garrison_size = -0.5 - # VASSALS - vassal_limit = 50 # Shogun - # KNIGHTS - knight_effectiveness_mult = 0.1 - knight_limit = 2 - # DOMAIN - domain_limit_max = 2 # Raised further by manor - # SAMURAI - archer_cavalry_recruitment_cost_mult = -0.25 - heavy_infantry_recruitment_cost_mult = -0.25 - } - - domicile_type = japanese_manor - - primary_holding = castle_holding - primary_heritages = { heritage_japonic } - valid_holdings = { temple_citadel_holding tribal_holding } - required_county_holdings = { castle_holding city_holding church_holding } - - vassal_contract_group = japan_feudal_vassal - - can_get_government = { - tgp_can_become_japanese_feudal_trigger = yes - } - - # The Regent always remains in the same place. - can_move_realm_capital = { - NOT = { primary_title ?= title:e_japan } - } - - compatible_government_type_succession = { japan_administrative_government } - - ai = { - use_legends = yes - } - - # Use flags instead of has_government for moddability if possible (i.e., wherever not visible to the player). - flags = { - may_elevate_co_monarch - government_is_japan_feudal - government_has_county_tier_noble_families - has_special_house_aspirations - government_is_settled - government_uses_domicile_but_not_adventurer - has_unique_government_perks - government_uses_japanese_family_aspirations - government_has_house_blocs - government_uses_japanese_bureaucracy - } - - possible_grant_vassal_governments = { theocracy_government ecclesiastical_government } - - color = { 68 100 250 } - realm_mask_offset = { 0.0 0.075 } - realm_mask_scale = { 0.95 0.95 } -} - diff --git a/common/landed_titles/britannia.txt b/common/landed_titles/britannia.txt index 6ed6bf84c..637d1c4b4 100644 --- a/common/landed_titles/britannia.txt +++ b/common/landed_titles/britannia.txt @@ -7007,68 +7007,3 @@ k_doggerlaw = { name_list_NEOW_cypriot = cn_atlantikonomos } } - -# Japanese Emperor -k_royal_household = { - color = { 96 3 42 } - - capital = c_berkshire - can_be_named_after_dynasty = no - landless = yes - figurehead = yes - allow_domicile = no - always_follows_primary_heir = yes - definite_form = yes - - can_create = { always = no } - - dlc_feature = all_under_heaven - - ai_primary_priority = { - if = { - limit = { - culture = { has_cultural_pillar = heritage_brythonic heritage_anglo-saxon heritage_scottish } - } - add = @correct_culture_primary_score - } - } - - # Ceremonial Liege/Regent in personal relation summary - # (reminder: the ceremonial liege if mechanically a vassal of the ceremonial regent) - # - # Scopes - # ------ - # root: Inspected character (who holds this title). - # target: Character we are evaluating relationships to (usually local player). - # title: This title (held by inspected character). - # liege: Inspected characters liege. - # vassal: Vassal who matches the trigger below, if any. - # - # Alternate descriptions are provided to trim the extra "Your" before this entry in the summary. - # - personal_relation_entry = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:target - scope:liege ?= scope:target - } - desc = japan_personal_relation_ceremonial_liege_same - } - triggered_desc = { - trigger = { exists = scope:liege } - desc = japan_personal_relation_ceremonial_liege_other - } - } - } - - # Male posthumous Ten'no names - posthumous_regnal_male_names = { - - } - - # Female posthumous Ten'no names - posthumous_regnal_female_names = { - - } -} \ No newline at end of file diff --git a/common/laws/00_realm_laws.txt b/common/laws/00_realm_laws.txt deleted file mode 100644 index 92a99c13e..000000000 --- a/common/laws/00_realm_laws.txt +++ /dev/null @@ -1,3561 +0,0 @@ -@crown_authority_cooldown_years = 20 -@tribal_authority_cooldown_years = 10 -@nomadic_authority_cooldown_years = 5 -@church_authority_cooldown_years = 20 -@imperial_bureaucracy_cooldown_years_1 = 10 -@imperial_bureaucracy_cooldown_years_2 = 20 -@imperial_bureaucracy_cooldown_years_3 = 30 - -@camp_purpose_prestige_cost = 1000 -@camp_purpose_ai_will_do_malus_t3 = -30 -@camp_purpose_ai_will_do_malus_t2 = -20 -@camp_purpose_ai_will_do_malus_t1 = -10 -@camp_purpose_ai_will_do_bonus_t1 = 10 -@camp_purpose_ai_will_do_bonus_t2 = 20 -@camp_purpose_ai_will_do_bonus_t3 = 30 - -@mandala_decree_piety_cost = 1000 -@mandala_decree_prestige_cost = 500 - - -crown_authority_0 = { - law_group_type = crown_authority - index = 0 - - modifier = { - belligerent_opinion = -10 - barons_and_minor_landholders_opinion = 20 - glory_hound_opinion = 10 - parochial_opinion = 10 - courtly_opinion = 5 - } - flag = uses_crown_authority - flag = authority_level_0 - flag = has_requirement_for_authority_level - - can_keep = { - realm_law_use_crown_authority = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = crown_authority_0 } - } - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - -crown_authority_1 = { - law_group_type = crown_authority - index = 1 - - modifier = { - belligerent_opinion = 5 - barons_and_minor_landholders_opinion = -30 - glory_hound_opinion = -15 - parochial_opinion = -15 - courtly_opinion = -5 - minority_opinion = -10 - } - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = can_have_tributaries - flag = can_change_partition_succession_laws - flag = diarchs_want_to_subsidise_without_this_flag - flag = authority_level_1 - - can_keep = { - realm_law_use_crown_authority = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = crown_authority_1 } - } - } - - can_pass = { - trigger_if = { - limit = { has_realm_law = crown_authority_0 } - custom_description = { - subject = root - text = "has_crown_authority_cooldown" - NAND = { - has_variable = crown_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - can_pass_law_ca1_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = crown_authority_0 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = crown_authority_0 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = crown_authority_cooldown - years = @crown_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = crown_authority_0 } - value = 1 - } - } -} - -crown_authority_2 = { - law_group_type = crown_authority - index = 2 - - modifier = { - belligerent_opinion = 10 - barons_and_minor_landholders_opinion = -10 - glory_hound_opinion = -10 - parochial_opinion = -10 - courtly_opinion = -5 - zealot_opinion = -10 - minority_opinion = -10 - vassal_tax_contribution_mult = 0.1 - vassal_levy_contribution_mult = 0.1 - } - flag = vassal_internal_wars_banned - flag = vassal_refusal_is_treason - flag = can_change_succession_laws - flag = titles_cannot_leave_realm_on_succession # Hardcoded flag - flag = authority_level_2 - - can_keep = { - realm_law_use_crown_authority = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = crown_authority_2 } - } - } - - can_pass = { - trigger_if = { - limit = { - NOT = { has_realm_law = crown_authority_3 } - should_synchronize_liege_law = no - } - has_realm_law = crown_authority_1 - custom_description = { - subject = root - text = "has_crown_authority_cooldown" - NAND = { - has_variable = crown_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - can_pass_law_ca2_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = crown_authority_1 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = crown_authority_1 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = crown_authority_cooldown - years = @crown_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = crown_authority_1 } - value = 1 - } - } -} - -crown_authority_3 = { - law_group_type = crown_authority - index = 3 - - modifier = { - belligerent_opinion = 15 - barons_and_minor_landholders_opinion = -20 - glory_hound_opinion = -25 - parochial_opinion = -25 - courtly_opinion = -10 - zealot_opinion = -20 - minority_opinion = -30 - vassal_tax_contribution_mult = 0.25 - vassal_levy_contribution_mult = 0.25 - } - flag = vassal_all_wars_banned - flag = can_designate_heirs - flag = max_authority_level - flag = authority_level_3 - - can_keep = { - realm_law_use_crown_authority = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = crown_authority_3 } - } - } - - can_pass = { - trigger_if = { - limit = { should_synchronize_liege_law = no } - has_realm_law = crown_authority_2 - custom_description = { - subject = root - text = "has_crown_authority_cooldown" - NAND = { - has_variable = crown_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - can_pass_law_ca3_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = crown_authority_2 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - calculate_authority_cooldown_break_effect = yes - # Set regular cooldown. - set_variable = { - name = crown_authority_cooldown - years = @crown_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - - -tribal_authority_0 = { - law_group_type = tribal_authority - index = 0 - - modifier = { - glory_hound_opinion = 10 - parochial_opinion = 10 - courtly_opinion = 5 - belligerent_opinion = -15 - } - flag = uses_tribal_authority - flag = imprisonment_toggle_enable - flag = authority_level_0 - - can_keep = { realm_law_use_tribal_authority = yes } - #Imprisonment is disabled if you have this law. Script is in the interaction, currently in 00_prison_interactions. - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - -tribal_authority_1 = { - law_group_type = tribal_authority - index = 1 - - modifier = { - glory_hound_opinion = -15 - parochial_opinion = -15 - courtly_opinion = -5 - minority_opinion = -10 - belligerent_opinion = 5 - } - flag = can_have_tributaries - flag = can_change_succession_laws - flag = imprisonment_toggle_on - flag = authority_level_1 - - can_keep = { - realm_law_use_tribal_authority = yes - } - - can_pass = { - trigger_if = { - limit = { has_realm_law = tribal_authority_0 } - custom_description = { - subject = root - text = "has_tribal_authority_cooldown" - NAND = { - has_variable = tribal_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = tribal_authority_0 - } - add = increase_tribal_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = tribal_authority_0 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = tribal_authority_cooldown - years = @tribal_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = tribal_authority_0 } - value = 1 - } - } -} - -tribal_authority_2 = { - law_group_type = tribal_authority - index = 2 - - modifier = { - glory_hound_opinion = -10 - parochial_opinion = -10 - courtly_opinion = -5 - zealot_opinion = -10 - minority_opinion = -10 - belligerent_opinion = 15 - } - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = diarchs_want_to_subsidise_without_this_flag - flag = authority_level_2 - - can_keep = { - realm_law_use_tribal_authority = yes - trigger_if = { - limit = { - NOT = { - culture = { - has_cultural_parameter = forming_confederations_is_easier - } - } - } - NOT = { - is_confederation_member = yes - } - } - } - - can_pass = { - trigger_if = { - limit = { - NOT = { has_realm_law = tribal_authority_3 } - } - has_realm_law = tribal_authority_1 - custom_description = { - subject = root - text = "has_tribal_authority_cooldown" - NAND = { - has_variable = tribal_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = tribal_authority_1 - } - add = increase_tribal_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = tribal_authority_1 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = tribal_authority_cooldown - years = @tribal_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = tribal_authority_1 } - value = 1 - } - } -} - -tribal_authority_3 = { - law_group_type = tribal_authority - index = 3 - - modifier = { - glory_hound_opinion = -25 - parochial_opinion = -25 - courtly_opinion = -10 - zealot_opinion = -20 - minority_opinion = -30 - belligerent_opinion = 20 - } - flag = max_authority_level - flag = authority_level_3 - #Settling is disabled unless you have this law. Script is in the decisions, currently in 80_major_decisions. - #Reforming pagan religions (but not creating other faiths) is disabled unless you have this law. Script is in the reformation prereqs, currently in 00_rules. - - can_keep = { - realm_law_use_tribal_authority = yes - trigger_if = { - limit = { - NOT = { - culture = { - has_cultural_parameter = forming_confederations_is_easier - } - } - } - NOT = { - is_confederation_member = yes - } - } - } - - can_pass = { - has_realm_law = tribal_authority_2 - custom_description = { - subject = root - text = "has_tribal_authority_cooldown" - NAND = { - has_variable = tribal_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - - pass_cost = { prestige = increase_tribal_authority_prestige_cost } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - calculate_authority_cooldown_break_effect = yes - # Set regular cooldown. - set_variable = { - name = tribal_authority_cooldown - years = @tribal_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = tribal_authority_2 } - value = 1 - } - if = { # Genghis is fundamentally uninterested in settling as feudal, and doesn't care for the additional -20 vassal opinion! - limit = { has_title = title:e_mongol_empire } - value = -10 - } - } -} - - -church_authority_0 = { - law_group_type = church_authority - index = 0 - - modifier = { - zealot_opinion = 10 - parochial_opinion = 10 - minority_opinion = -10 - } - flag = uses_church_authority - flag = has_requirement_for_authority_level - flag = authority_level_0 - - can_keep = { realm_law_use_church_authority = yes } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - -church_authority_1 = { - law_group_type = church_authority - index = 1 - - modifier = { - zealot_opinion = 15 - parochial_opinion = -5 - minority_opinion = -15 - glory_hound_opinion = -5 - } - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = bulls_allowed - flag = authority_level_1 - flag = puppet_acceptance_1 - - can_keep = { realm_law_use_church_authority = yes } - - can_pass = { - trigger_if = { - limit = { has_realm_law = church_authority_0 } - custom_description = { - subject = root - text = "has_church_authority_cooldown" - NOT = { has_variable = church_authority_cooldown } - } - } - can_pass_law_church_authority_1_trigger = yes - } - - pass_cost = { - piety = { - if = { - limit = { - NOR = { - has_realm_law = church_authority_2 - has_realm_law = church_authority_3 - } - } - add = increase_church_authority_piety_cost - } - } - prestige = { - if = { - limit = { - has_realm_law = church_authority_0 - } - add = increase_crown_authority_prestige_cost - multiply = 0.4 - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = church_authority_0 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = church_authority_cooldown - years = @church_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = church_authority_0 } - value = 1 - } - } -} - -church_authority_2 = { - law_group_type = church_authority - index = 2 - - modifier = { - zealot_opinion = 20 - parochial_opinion = -10 - courtly_opinion = -10 - barons_and_minor_landholders_opinion = -5 - belligerent_opinion = -20 - minority_opinion = -20 - glory_hound_opinion = -10 - vassal_tax_contribution_mult = 0.1 - vassal_levy_contribution_mult = 0.1 - } - flag = can_establish_theocratic_dynasty - flag = vassal_internal_wars_banned - flag = vassal_refusal_is_treason - flag = titles_cannot_leave_realm_on_succession # Hardcoded flag - flag = authority_level_2 - flag = puppet_acceptance_2 - - can_keep = { realm_law_use_church_authority = yes } - - can_pass = { - trigger_if = { - limit = { - NOT = { has_realm_law = church_authority_3 } - } - has_realm_law = church_authority_1 - custom_description = { - subject = root - text = "has_church_authority_cooldown" - NOT = { has_variable = church_authority_cooldown } - } - } - can_pass_law_church_authority_2_trigger = yes - } - - pass_cost = { - piety = { - if = { - limit = { - NOT = { has_realm_law = church_authority_3 } - } - add = increase_church_authority_piety_cost - } - } - prestige = { - if = { - limit = { - has_realm_law = church_authority_1 - } - add = increase_crown_authority_prestige_cost - multiply = 0.4 - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = church_authority_1 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = church_authority_cooldown - years = @church_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = church_authority_1 } - value = 1 - } - } -} - -church_authority_3 = { - law_group_type = church_authority - index = 3 - - modifier = { - zealot_opinion = 30 - parochial_opinion = -20 - courtly_opinion = -15 - barons_and_minor_landholders_opinion = -5 - belligerent_opinion = -30 - minority_opinion = -30 - glory_hound_opinion = -10 - vassal_tax_contribution_mult = 0.25 - vassal_levy_contribution_mult = 0.25 - } - flag = vassal_all_wars_banned - flag = max_authority_level - flag = authority_level_3 - flag = clergy_force_land_transfers - flag = puppet_acceptance_3 - - can_keep = { realm_law_use_church_authority = yes } - - can_pass = { - has_realm_law = church_authority_2 - custom_description = { - subject = root - text = "has_church_authority_cooldown" - NOT = { has_variable = church_authority_cooldown } - } - can_pass_law_church_authority_3_trigger = yes - } - - pass_cost = { - piety = { - if = { - limit = { - NOT = { has_realm_law = church_authority_3 } - } - add = increase_church_authority_piety_cost - } - } - prestige = { - if = { - limit = { - has_realm_law = church_authority_2 - } - add = increase_crown_authority_prestige_cost - multiply = 0.4 - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - calculate_authority_cooldown_break_effect = yes - # Set regular cooldown. - set_variable = { - name = church_authority_cooldown - years = @church_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = church_authority_2 } - value = 1 - } - } -} - - -camp_purpose_wanderers = { - law_group_type = camp_purpose - index = 0 - - pass_phrase = camp_purpose_pass_phrase - confirmation_title = camp_purpose_pass_phrase - confirmation_button_text = camp_purpose_confirmation_button_text - - flag = uses_camp_purpose - flag = can_change_succession_laws - flag = can_change_purpose_for_free - - - can_keep = { realm_law_use_camp_purpose = yes } - - pass_cost = { - prestige = @camp_purpose_prestige_cost - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - # Remove inappropriate buildings. - laamp_clear_inappropriate_buildings_effect = yes - # Adjust flavourisation. - remove_camp_purpose_flavourisation_variables_effect = yes - set_variable = flavourise_camp_purpose_wanderers - local_arbitration_boon_set_purpose_effect = { - MODIFIER = landless_local_arbitration_wanderers_modifier - } - } - - ai_will_do = { value = 0 } -} - -camp_purpose_mercenaries = { - law_group_type = camp_purpose - index = 1 - - pass_phrase = camp_purpose_pass_phrase - confirmation_title = camp_purpose_pass_phrase - confirmation_button_text = camp_purpose_confirmation_button_text - - flag = uses_camp_purpose - flag = can_change_succession_laws - flag = laamp_contracts_weight_up_mercenary - flag = laamp_contracts_weight_up_martial - flag = laamp_contracts_weight_up_prowess - flag = martial_camp_purpose - - # Camp unlocks. - flag = unlocks_baggage_train_siege_engineers - flag = unlocks_proving_grounds_lockwagon - flag = unlocks_camp_perimeter_palisade - flag = unlocks_camp_perimeter_ditch - - can_keep = { realm_law_use_camp_purpose = yes } - - pass_cost = { - prestige = { - if = { - limit = { - NOT = { has_realm_law_flag = can_change_purpose_for_free } - } - value = @camp_purpose_prestige_cost - } - } - } - - modifier = { - men_at_arms_cap = 1 - embarkation_cost_mult = -0.5 - knight_limit = 8 - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - # Remove inappropriate buildings. - laamp_clear_inappropriate_buildings_effect = yes - # Adjust flavourisation. - remove_camp_purpose_flavourisation_variables_effect = yes - set_variable = flavourise_camp_purpose_mercenaries - local_arbitration_boon_set_purpose_effect = { - MODIFIER = landless_local_arbitration_mercenaries_modifier - } - } - - ai_will_do = { - # If we've picked a purpose, don't change it. - if = { - limit = { - NOT = { has_realm_law = camp_purpose_wanderers } - } - value = 0 - } - else = { - # Traits. - ## Education. - if = { - limit = { has_trait = education_martial } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ## Personality. - ### Cultural traditions - if = { - limit = { - culture = { - OR = { - has_cultural_parameter = much_more_likely_to_be_laamps - has_cultural_parameter = more_likely_to_be_laamps - } - } - } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Wrathful - if = { - limit = { has_trait = wrathful } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Calm - if = { - limit = { has_trait = calm } - add = @camp_purpose_ai_will_do_malus_t3 - } - ### Callous - if = { - limit = { has_trait = callous } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Sadistic - if = { - limit = { has_trait = sadistic } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Compassionate - if = { - limit = { has_trait = compassionate } - add = @camp_purpose_ai_will_do_malus_t3 - } - ### Brave - if = { - limit = { has_trait = brave } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Craven - if = { - limit = { has_trait = craven } - add = @camp_purpose_ai_will_do_malus_t3 - } - } - } -} - -camp_purpose_scholars = { - law_group_type = camp_purpose - index = 2 - - pass_phrase = camp_purpose_pass_phrase - confirmation_title = camp_purpose_pass_phrase - confirmation_button_text = camp_purpose_confirmation_button_text - - modifier = { - monthly_lifestyle_xp_gain_mult = 0.2 - } - flag = uses_camp_purpose - flag = can_change_succession_laws - flag = laamp_contracts_weight_up_learning - flag = laamp_contracts_weight_up_stewardship - flag = laamp_contracts_weight_up_diplomacy_slight - flag = nerd_camp_purpose - - # Camp unlocks. - flag = unlocks_baggage_train_siege_engineers - flag = unlocks_barber_tent_reference_corpus - flag = unlocks_barber_tent_morticians_tools - flag = unlocks_baggage_train_scribes - flag = unlocks_baggage_train_ascetics - flag = unlocks_camp_fire_nightly_debates - flag = unlocks_proving_grounds_martial_study - - can_keep = { realm_law_use_camp_purpose = yes } - - pass_cost = { - prestige = { - if = { - limit = { - NOT = { has_realm_law_flag = can_change_purpose_for_free } - } - value = @camp_purpose_prestige_cost - } - } - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - # Remove inappropriate buildings. - laamp_clear_inappropriate_buildings_effect = yes - # Adjust flavourisation. - remove_camp_purpose_flavourisation_variables_effect = yes - set_variable = flavourise_camp_purpose_scholars - local_arbitration_boon_set_purpose_effect = { - MODIFIER = landless_local_arbitration_scholars_modifier - } - } - - ai_will_do = { - # If we've picked a purpose, don't change it. - if = { - limit = { - NOT = { has_realm_law = camp_purpose_wanderers } - } - value = 0 - } - else = { - # Traits. - ## Education. - if = { - limit = { has_trait = education_learning } - add = @camp_purpose_ai_will_do_bonus_t3 - } - if = { - limit = { has_trait = education_stewardship } - add = @camp_purpose_ai_will_do_bonus_t1 - } - ## Personality. - ### Honest - if = { - limit = { has_trait = honest } - add = @camp_purpose_ai_will_do_bonus_t1 - } - ### Generous - if = { - limit = { has_trait = generous } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Calm - if = { - limit = { has_trait = calm } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Wrathful - if = { - limit = { has_trait = wrathful } - add = @camp_purpose_ai_will_do_malus_t2 - } - ### Eccentric - if = { - limit = { has_trait = eccentric } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Patient - if = { - limit = { has_trait = patient } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Impatient - if = { - limit = { has_trait = impatient } - add = @camp_purpose_ai_will_do_malus_t3 - } - ### Shy - if = { - limit = { has_trait = shy } - add = @camp_purpose_ai_will_do_bonus_t1 - } - ### Gregarious - if = { - limit = { has_trait = gregarious } - add = @camp_purpose_ai_will_do_malus_t1 - } - } - } -} - -camp_purpose_explorers = { - law_group_type = camp_purpose - index = 3 - - pass_phrase = camp_purpose_pass_phrase - confirmation_title = camp_purpose_pass_phrase - confirmation_button_text = camp_purpose_confirmation_button_text - - modifier = { - character_travel_speed_mult = 0.25 - coastal_sea_travel_danger = medium_sea_danger_reduction - sea_travel_danger = medium_sea_danger_reduction - } - flag = uses_camp_purpose - flag = can_change_succession_laws - flag = laamp_contracts_weight_up_transport - flag = laamp_contracts_weight_up_diplomacy - flag = laamp_contracts_weight_up_intrigue - flag = laamp_contracts_weight_up_martial_slight - - # Camp unlocks. - flag = unlocks_supply_tent_reserve_provisions - flag = unlocks_supply_tent_reserve_water - flag = unlocks_supply_tent_climbing_gear - flag = unlocks_camp_fire_local_hangers_on - flag = unlocks_camp_perimeter_extra_watch - - can_keep = { realm_law_use_camp_purpose = yes } - - pass_cost = { - prestige = { - if = { - limit = { - NOT = { has_realm_law_flag = can_change_purpose_for_free } - } - value = @camp_purpose_prestige_cost - } - } - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - # Remove inappropriate buildings. - laamp_clear_inappropriate_buildings_effect = yes - # Adjust flavourisation. - remove_camp_purpose_flavourisation_variables_effect = yes - set_variable = flavourise_camp_purpose_explorers - local_arbitration_boon_set_purpose_effect = { - MODIFIER = landless_local_arbitration_explorers_modifier - } - } - - ai_will_do = { - # If we've picked a purpose, don't change it. - if = { - limit = { - NOT = { has_realm_law = camp_purpose_wanderers } - } - value = 0 - } - else = { - # Traits. - ## Education. - if = { - limit = { has_trait = education_diplomacy } - add = @camp_purpose_ai_will_do_bonus_t3 - } - if = { - limit = { has_trait = education_stewardship } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ## Personality. - ### Diligent - if = { - limit = { has_trait = diligent } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Lazy - if = { - limit = { has_trait = lazy } - add = @camp_purpose_ai_will_do_malus_t2 - } - ### Athletic - if = { - limit = { has_trait = athletic } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Brave - if = { - limit = { has_trait = brave } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Craven - if = { - limit = { has_trait = craven } - add = @camp_purpose_ai_will_do_malus_t2 - } - ### Eccentric - if = { - limit = { has_trait = eccentric } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Stubborn - if = { - limit = { has_trait = stubborn } - add = @camp_purpose_ai_will_do_bonus_t1 - } - ### Fickle - if = { - limit = { has_trait = fickle } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Humble - if = { - limit = { has_trait = humble } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Arrogant - if = { - limit = { has_trait = arrogant } - add = @camp_purpose_ai_will_do_malus_t2 - } - } - } -} - -camp_purpose_brigands = { - law_group_type = camp_purpose - index = 4 - - pass_phrase = camp_purpose_pass_phrase - confirmation_title = camp_purpose_pass_phrase - confirmation_button_text = camp_purpose_confirmation_button_text - - flag = uses_camp_purpose - flag = can_change_succession_laws - flag = laamp_contracts_weight_up_criminal - flag = laamp_contracts_weight_up_prowess - flag = laamp_contracts_weight_up_intrigue - flag = martial_camp_purpose - - # Camp unlocks. - flag = unlocks_proving_grounds_lockwagon - flag = unlocks_barber_tent_morticians_tools - flag = unlocks_supply_tent_subdued_gear - flag = unlocks_baggage_train_ransom_cages - flag = unlocks_baggage_train_negotiators - flag = unlocks_camp_fire_juicy_rumors - flag = unlocks_proving_grounds_the_stick_game - - can_keep = { realm_law_use_camp_purpose = yes } - - pass_cost = { - prestige = { - if = { - limit = { - NOT = { has_realm_law_flag = can_change_purpose_for_free } - } - value = @camp_purpose_prestige_cost - } - } - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - # Remove inappropriate buildings. - laamp_clear_inappropriate_buildings_effect = yes - # Adjust flavourisation. - remove_camp_purpose_flavourisation_variables_effect = yes - set_variable = flavourise_camp_purpose_brigands - local_arbitration_boon_set_purpose_effect = { - MODIFIER = landless_local_arbitration_brigands_modifier - } - } - - modifier = { - embarkation_cost_mult = -0.5 - knight_limit = 3 - } - - ai_will_do = { - # If we've picked a purpose, don't change it. - if = { - limit = { - NOT = { has_realm_law = camp_purpose_wanderers } - } - value = 0 - } - else = { - # Traits. - ## Education. - if = { - limit = { has_trait = education_intrigue } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Cultural traditions - if = { - limit = { - culture = { - OR = { - has_cultural_parameter = much_more_likely_to_be_laamps - has_cultural_parameter = more_likely_to_be_laamps - } - } - } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ## Personality. - ### Deceitful. - if = { - limit = { has_trait = deceitful } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Honest. - if = { - limit = { has_trait = honest } - add = @camp_purpose_ai_will_do_malus_t3 - } - ### Arbitrary. - if = { - limit = { has_trait = arbitrary } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Just, - if = { - limit = { has_trait = just } - add = @camp_purpose_ai_will_do_malus_t3 - } - ### Greedy + either Humble or Content. - if = { - limit = { - has_trait = greedy - OR = { - has_trait = humble - has_trait = content - } - } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Generous. - if = { - limit = { has_trait = generous } - add = @camp_purpose_ai_will_do_malus_t2 - } - ### Arrogant. - if = { - limit = { has_trait = arrogant } - add = @camp_purpose_ai_will_do_malus_t2 - } - ### Ambitious. - if = { - limit = { has_trait = ambitious } - add = @camp_purpose_ai_will_do_malus_t2 - } - ### Wrathful. - if = { - limit = { has_trait = wrathful } - add = @camp_purpose_ai_will_do_bonus_t1 - } - ### Calm. - if = { - limit = { has_trait = calm } - add = @camp_purpose_ai_will_do_malus_t1 - } - ### Sadistic. - if = { - limit = { has_trait = sadistic } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Callous. - if = { - limit = { has_trait = callous } - add = @camp_purpose_ai_will_do_bonus_t2 - } - ### Compassionate. - if = { - limit = { has_trait = compassionate } - add = @camp_purpose_ai_will_do_malus_t2 - } - } - } -} - -camp_purpose_legitimists = { - law_group_type = camp_purpose - index = 5 - - pass_phrase = camp_purpose_pass_phrase - confirmation_title = camp_purpose_pass_phrase - confirmation_button_text = camp_purpose_confirmation_button_text - - flag = uses_camp_purpose - flag = can_change_succession_laws - flag = martial_camp_purpose - - # Camp unlocks. - flag = unlocks_baggage_train_scribes - flag = unlocks_proving_grounds_martial_study - flag = unlocks_baggage_train_proof_of_claims - flag = unlocks_baggage_train_ransom_cages - flag = unlocks_camp_fire_future_dreams - flag = unlocks_proving_grounds_bodyguard_drills - flag = unlocks_proving_grounds_lockwagon - - can_keep = { - realm_law_use_camp_purpose = yes - ep3_can_have_legitimists_camp_purpose_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - NOT = { has_realm_law_flag = can_change_purpose_for_free } - } - value = @camp_purpose_prestige_cost - } - } - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - # Remove inappropriate buildings. - laamp_clear_inappropriate_buildings_effect = yes - # Adjust flavourisation. - remove_camp_purpose_flavourisation_variables_effect = yes - set_variable = flavourise_camp_purpose_legitimists - local_arbitration_boon_set_purpose_effect = { - MODIFIER = landless_local_arbitration_legitimists_modifier - } - } - - modifier = { - men_at_arms_cap = 1 - knight_limit = 8 - } - - ai_will_do = { - # Weight up legitimists inherently. - value = 100 - # If we've picked a purpose, don't change it. - if = { - limit = { - NOT = { has_realm_law = camp_purpose_wanderers } - } - value = 0 - } - else = { - # Traits. - ## Education. - if = { - limit = { - OR = { - has_trait = education_diplomacy - has_trait = education_martial - } - } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ## Personality. - ### Ambitious - if = { - limit = { has_trait = ambitious } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Content - if = { - limit = { has_trait = content } - add = @camp_purpose_ai_will_do_malus_t3 - } - ### Arrogant - if = { - limit = { has_trait = arrogant } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Humble - if = { - limit = { has_trait = humble } - add = @camp_purpose_ai_will_do_malus_t3 - } - ### Vengeful - if = { - limit = { has_trait = vengeful } - add = @camp_purpose_ai_will_do_bonus_t3 - } - ### Forgiving - if = { - limit = { has_trait = forgiving } - add = @camp_purpose_ai_will_do_malus_t3 - } - } - } -} - - -imperial_bureaucracy_0 = { - law_group_type = imperial_bureaucracy - index = 0 - - modifier = { - belligerent_opinion = -10 - barons_and_minor_landholders_opinion = 20 - glory_hound_opinion = 10 - parochial_opinion = 10 - courtly_opinion = 5 - } - flag = uses_imperial_bureaucracy - flag = can_have_tributaries - flag = titles_cannot_leave_realm_on_succession # Hardcoded flag - flag = authority_level_0 - flag = has_requirement_for_authority_level - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = imperial_bureaucracy_0 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = imperial_bureaucracy_0 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - -imperial_bureaucracy_1 = { - law_group_type = imperial_bureaucracy - index = 1 - - modifier = { - belligerent_opinion = 5 - barons_and_minor_landholders_opinion = -30 - glory_hound_opinion = -15 - parochial_opinion = -15 - courtly_opinion = -5 - minority_opinion = -10 - vassal_limit = 100 - } - flag = can_have_tributaries - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = can_change_partition_succession_laws - flag = vassal_internal_wars_banned - flag = diarchs_want_to_subsidise_without_this_flag - flag = authority_level_1 - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = imperial_bureaucracy_1 } - } - } - - can_pass = { - trigger_if = { - limit = { - has_realm_law = imperial_bureaucracy_0 - should_synchronize_liege_law = no - } - custom_description = { - subject = root - text = "has_imperial_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = imperial_bureaucracy_1 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca1_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = imperial_bureaucracy_0 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = imperial_bureaucracy_0 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_1 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = imperial_bureaucracy_0 } - value = 1 - } - } -} - -imperial_bureaucracy_2 = { - law_group_type = imperial_bureaucracy - index = 2 - - modifier = { - belligerent_opinion = 10 - barons_and_minor_landholders_opinion = -10 - glory_hound_opinion = -10 - parochial_opinion = -10 - courtly_opinion = -5 - zealot_opinion = -10 - minority_opinion = -10 - republic_government_tax_contribution_add = 0.05 - vassal_limit = 100 - } - flag = vassal_refusal_is_treason - flag = can_change_succession_laws - flag = vassal_all_wars_banned - flag = admin_change_vassal_gov_cheaper - flag = admin_title_troop_cost_reduction - flag = authority_level_2 - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = imperial_bureaucracy_2 } - } - } - - can_pass = { - trigger_if = { - limit = { - NOT = { has_realm_law = imperial_bureaucracy_3 } - should_synchronize_liege_law = no - } - has_realm_law = imperial_bureaucracy_1 - custom_description = { - subject = root - text = "has_imperial_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = imperial_bureaucracy_2 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca2_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = imperial_bureaucracy_1 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = imperial_bureaucracy_1 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_2 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = imperial_bureaucracy_1 } - value = 1 - } - } -} - -imperial_bureaucracy_3 = { - law_group_type = imperial_bureaucracy - index = 3 - - modifier = { - belligerent_opinion = 15 - barons_and_minor_landholders_opinion = -20 - glory_hound_opinion = -25 - parochial_opinion = -25 - courtly_opinion = -10 - zealot_opinion = -20 - minority_opinion = -30 - republic_government_tax_contribution_add = 0.05 - vassal_limit = 200 - } - flag = vassal_all_wars_banned_permanent - flag = max_authority_level - flag = admin_title_troop_cost_reduction_high - flag = authority_level_3 - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = imperial_bureaucracy_3 } - } - } - - can_pass = { - trigger_if = { - limit = { should_synchronize_liege_law = no } - has_realm_law = imperial_bureaucracy_2 - custom_description = { - subject = root - text = "has_imperial_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = imperial_bureaucracy_3 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca3_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = imperial_bureaucracy_2 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - calculate_authority_cooldown_break_effect = yes - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_3 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - - -nomadic_authority_1 = { - law_group_type = nomadic_authority - index = 0 - - pass_phrase = nomadic_authority_1_pass_phrase - confirmation_title = nomadic_authority_1_pass_phrase - confirmation_button_text = nomadic_authority_confirmation_button_text - - modifier = { - belligerent_opinion = -25 - glory_hound_opinion = -20 - domain_limit_min = 1 - domain_limit_max = 2 - vassal_limit_min = 1 - vassal_limit_max = 1 - } - flag = can_have_tributaries - flag = title_revocation_allowed - flag = uses_nomadic_authority - flag = imprisonment_toggle_enable - flag = access_to_nomadic_county_conquest - flag = authority_level_0 - - can_pass = { - has_realm_law = nomadic_authority_2 - } - - can_keep = { realm_law_use_nomadic_authority = yes } - #Imprisonment is disabled if you have this law. Script is in the interaction, currently in 00_prison_interactions. - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - -nomadic_authority_2 = { - law_group_type = nomadic_authority - index = 1 - - pass_phrase = nomadic_authority_2_pass_phrase - confirmation_title = nomadic_authority_2_pass_phrase - confirmation_button_text = nomadic_authority_confirmation_button_text - - modifier = { - belligerent_opinion = 10 - glory_hound_opinion = 10 - max_migration_distance_mult = 0.25 - domain_limit_min = 1 - domain_limit_max = 1 - vassal_limit_min = 1 - vassal_limit_max = 2 # 3 - } - flag = can_change_succession_laws - flag = imprisonment_toggle_on - flag = title_revocation_allowed - flag = migration_to_duchies - flag = access_to_nomadic_county_conquest - flag = unlock_maa_nomad_lancers - flag = authority_level_1 - - can_keep = { - realm_law_use_nomadic_authority = yes - } - - can_pass = { - custom_tooltip = { - text = "nomadic_authority_2_level_requirement" - OR = { - has_realm_law = nomadic_authority_1 - has_realm_law = nomadic_authority_3 - } - } - custom_description = { - subject = root - text = "has_nomadic_authority_cooldown" - NAND = { - has_variable = nomadic_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - domicile.herd >= nomadic_authority_level_2_requirement - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = nomadic_authority_1 - } - add = increase_nomadic_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = nomadic_authority_1 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = nomadic_authority_cooldown - years = @nomadic_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = nomadic_authority_1 } - value = 1 - } - } -} - -nomadic_authority_3 = { - law_group_type = nomadic_authority - index = 2 - - pass_phrase = nomadic_authority_3_pass_phrase - confirmation_title = nomadic_authority_3_pass_phrase - confirmation_button_text = nomadic_authority_confirmation_button_text - - modifier = { - belligerent_opinion = 10 - glory_hound_opinion = 10 - max_migration_distance_mult = 0.5 - domain_limit_min = 2 - domain_limit_max = 3 - vassal_limit_min = 8 - vassal_limit_max = 12 # 15 - } - flag = vassal_retraction_allowed - flag = diarchs_want_to_subsidise_without_this_flag - flag = migration_to_kingdoms - flag = access_to_nomadic_duchy_conquest - flag = authority_level_2 - - can_keep = { - realm_law_use_nomadic_authority = yes - trigger_if = { - limit = { - NOT = { - culture = { - has_cultural_parameter = forming_confederations_is_easier - } - } - } - NOT = { - is_confederation_member = yes - } - } - } - - can_pass = { - custom_tooltip = { - text = "nomadic_authority_3_level_requirement" - OR = { - has_realm_law = nomadic_authority_2 - has_realm_law = nomadic_authority_4 - } - } - custom_description = { - subject = root - text = "has_nomadic_authority_cooldown" - NAND = { - has_variable = nomadic_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - domicile.herd >= nomadic_authority_level_3_requirement - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = nomadic_authority_2 - } - add = increase_nomadic_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = nomadic_authority_2 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = nomadic_authority_cooldown - years = @nomadic_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = nomadic_authority_2 } - value = 1 - } - } -} - -nomadic_authority_4 = { - law_group_type = nomadic_authority - index = 3 - - pass_phrase = nomadic_authority_4_pass_phrase - confirmation_title = nomadic_authority_4_pass_phrase - confirmation_button_text = nomadic_authority_confirmation_button_text - - modifier = { - belligerent_opinion = 20 - glory_hound_opinion = 10 - max_migration_distance_mult = 1 - domain_limit_min = 2 - vassal_limit_min = 5 - vassal_limit_max = 15 - } - flag = migration_to_empires - flag = authority_level_3 - #Settling is disabled unless you have this law. Script is in the decisions, currently in 80_major_decisions. - #Reforming pagan religions (but not creating other faiths) is disabled unless you have this law. Script is in the reformation prereqs, currently in 00_rules. - - can_keep = { - realm_law_use_nomadic_authority = yes - trigger_if = { - limit = { - NOT = { - culture = { - has_cultural_parameter = forming_confederations_is_easier - } - } - } - NOT = { - is_confederation_member = yes - } - } - } - - can_pass = { - custom_tooltip = { - text = "nomadic_authority_4_level_requirement" - OR = { - has_realm_law = nomadic_authority_3 - has_realm_law = nomadic_authority_5 - } - } - custom_description = { - subject = root - text = "has_nomadic_authority_cooldown" - NAND = { - has_variable = nomadic_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - domicile.herd >= nomadic_authority_level_4_requirement - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = nomadic_authority_3 - } - add = increase_nomadic_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = nomadic_authority_3 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = nomadic_authority_cooldown - years = @nomadic_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = nomadic_authority_3 } - value = 1 - } - } -} - -nomadic_authority_5 = { - law_group_type = nomadic_authority - index = 4 - - pass_phrase = nomadic_authority_5_pass_phrase - confirmation_title = nomadic_authority_5_pass_phrase - confirmation_button_text = nomadic_authority_confirmation_button_text - - modifier = { - belligerent_opinion = 25 - glory_hound_opinion = 15 - max_migration_distance_mult = 10 - max_migration_distance_mult = 2 - vassal_limit_min = 985 - vassal_limit_max = 970 - } - flag = max_authority_level - flag = authority_level_4 - #Settling is disabled unless you have this law. Script is in the decisions, currently in 80_major_decisions. - #Reforming pagan religions (but not creating other faiths) is disabled unless you have this law. Script is in the reformation prereqs, currently in 00_rules. - - can_keep = { - realm_law_use_nomadic_authority = yes - trigger_if = { - limit = { - NOT = { - culture = { - has_cultural_parameter = forming_confederations_is_easier - } - } - } - NOT = { - is_confederation_member = yes - } - } - } - - can_pass = { - has_realm_law = nomadic_authority_4 - trigger_if = { - limit = { - any_character_situation = { - any_participant_group = { - participant_group_type = nomad_rulers_capital - participant_group_has_character = root - } - } - } - custom_description = { - text = nomadic_authority_5_gurkhan - any_character_situation = { - any_participant_group = { - participant_group_type = nomad_rulers_capital - participant_group_has_character = root - } - situation_top_herd ?= root - } - } - } - custom_description = { - subject = root - text = "has_nomadic_authority_cooldown" - NAND = { - has_variable = nomadic_authority_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - domicile.herd >= nomadic_authority_level_5_requirement - } - - pass_cost = { - prestige = { - if = { - limit = { - NOT = { - has_realm_law = nomadic_authority_5 - } - } - add = increase_nomadic_authority_prestige_cost - multiply = 2 - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - calculate_authority_cooldown_break_effect = yes - # Set regular cooldown. - set_variable = { - name = nomadic_authority_cooldown - years = @nomadic_authority_cooldown_years - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - play_sound_effect = "event:/DLC/CE2/UI/Notifications/ce2_ui_notifications_nomadicAuthority_wolf" - } - - ai_will_do = { - if = { - limit = { has_realm_law = nomadic_authority_4 } - value = 1 - } - } -} - - -celestial_bureaucracy_0 = { - law_group_type = celestial_bureaucracy - index = 0 - - modifier = { - courtly_opinion = -20 # Pro-hegemon movement - #parochial_opinion = 0 # Advancement movement - #belligerent_opinion = 0 # Expansion movement - glory_hound_opinion = 10 # Conservative movement - #zealot_opinion = 0 - barons_and_minor_landholders_opinion = 10 - minority_opinion = 10 - - celestial_government_tax_contribution_add = 0.05 - republic_government_tax_contribution_add = 0.05 - } - flag = uses_celestial_bureaucracy - flag = titles_cannot_leave_realm_on_succession # Hardcoded flag - flag = can_have_tributaries - flag = authority_level_0 - flag = has_requirement_for_authority_level - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_bureaucracy_0 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = celestial_bureaucracy_0 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - -celestial_bureaucracy_1 = { - law_group_type = celestial_bureaucracy - index = 1 - - modifier = { - courtly_opinion = 20 # Pro-hegemon movement - parochial_opinion = -5 # Advancement movement - belligerent_opinion = -5 # Expansion movement - glory_hound_opinion = -10 # Conservative movement - #zealot_opinion = 0 - barons_and_minor_landholders_opinion = -15 - minority_opinion = -15 - - celestial_government_tax_contribution_add = 0.05 - republic_government_tax_contribution_add = 0.05 - } - flag = uses_celestial_bureaucracy - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = can_change_partition_succession_laws - flag = vassal_internal_wars_banned - flag = diarchs_want_to_subsidise_without_this_flag - flag = can_have_tributaries - flag = authority_level_1 - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_bureaucracy_1 } - } - } - - can_pass = { - trigger_if = { - limit = { - has_realm_law = celestial_bureaucracy_0 - should_synchronize_liege_law = no - } - custom_description = { - subject = root - text = "has_celestial_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = celestial_bureaucracy_1 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca1_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = celestial_bureaucracy_0 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = celestial_bureaucracy_0 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_1 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = celestial_bureaucracy_0 } - value = 1 - } - } -} - -celestial_bureaucracy_2 = { - law_group_type = celestial_bureaucracy - index = 2 - - modifier = { - courtly_opinion = 5 # Pro-hegemon movement - parochial_opinion = -5 # Advancement movement - belligerent_opinion = -5 # Expansion movement - glory_hound_opinion = -15 # Conservative movement - zealot_opinion = -5 - barons_and_minor_landholders_opinion = -15 - minority_opinion = -15 - - celestial_government_tax_contribution_add = 0.10 - republic_government_tax_contribution_add = 0.10 - } - flag = uses_celestial_bureaucracy - flag = vassal_refusal_is_treason - flag = can_change_succession_laws - flag = vassal_all_wars_banned - flag = admin_change_vassal_gov_cheaper - flag = can_have_tributaries - flag = authority_level_2 - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_bureaucracy_2 } - } - } - - can_pass = { - trigger_if = { - limit = { - NOT = { has_realm_law = celestial_bureaucracy_3 } - should_synchronize_liege_law = no - } - has_realm_law = celestial_bureaucracy_1 - custom_description = { - subject = root - text = "has_celestial_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = celestial_bureaucracy_2 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca2_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = celestial_bureaucracy_1 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = celestial_bureaucracy_1 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_2 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = celestial_bureaucracy_1 } - value = 1 - } - } -} - -celestial_bureaucracy_3 = { - law_group_type = celestial_bureaucracy - index = 3 - - modifier = { - courtly_opinion = 10 # Pro-hegemon movement - parochial_opinion = -10 # Advancement movement - belligerent_opinion = -10 # Expansion movement - glory_hound_opinion = -15 # Conservative movement - zealot_opinion = -15 - barons_and_minor_landholders_opinion = -20 - minority_opinion = -20 - - celestial_government_tax_contribution_add = 0.10 - republic_government_tax_contribution_add = 0.10 - } - flag = uses_celestial_bureaucracy - flag = vassal_all_wars_banned_permanent - flag = max_authority_level - flag = can_have_tributaries - flag = authority_level_3 - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { - this = title:h_china.holder - } - situation:dynastic_cycle ?= { - NOR = { - situation_current_phase = situation_dynastic_cycle_phase_instability - situation_current_phase = situation_dynastic_cycle_phase_instability_conquest - } - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_bureaucracy_3 } - } - } - - can_pass = { - trigger_if = { - limit = { should_synchronize_liege_law = no } - has_realm_law = celestial_bureaucracy_2 - custom_description = { - subject = root - text = "has_celestial_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = celestial_bureaucracy_3 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca3_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = celestial_bureaucracy_2 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - calculate_authority_cooldown_break_effect = yes - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_3 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - - -mandala_decree_none = { - law_group_type = mandala_decree - index = 0 - - #Standard laws - flag = can_have_tributaries - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = can_change_succession_laws - - can_keep = { realm_law_is_mandala = yes } - - can_pass = { - } - - pass_cost = { - prestige = @mandala_decree_prestige_cost - } - - on_pass = { - } - - ai_will_do = { - value = 0 - } -} - -mandala_decree_prosperity = { - law_group_type = mandala_decree - index = 1 - - modifier = { - men_at_arms_maintenance = 0.25 - levy_size = -0.25 - tributary_opinion = 15 - } - #Standard laws - flag = can_have_tributaries - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = can_change_succession_laws - #Decree specific - flag = piety_devotion_from_defensive_wars - flag = subjects_appear_more_economical - flag = can_use_piety_to_reassert_tributary - flag = tributaries_less_likely_to_break_free - - can_keep = { realm_law_is_mandala = yes } - - can_pass = { - legitimacy_level >= 2 - trigger_if = { - limit = { - house ?= { NOT = { has_house_head_parameter = can_enact_prosperity_decree } } - } - custom_tooltip = { - text = devaraja_aspect_does_not_allow_this_decree - always = no - } - } - } - - pass_cost = { - prestige = @mandala_decree_prestige_cost - } - - on_pass = { - #Don't need the alert no more - set_variable = { - name = has_picked_mandala_decree - value = flag:yes - } - } - - ai_will_do = { - value = 1 - #Traits - if = { - limit = { has_trait = greedy } - add = 5 - } - if = { - limit = { has_trait = craven } - add = 5 - } - if = { - limit = { ai_has_economical_boom_personality = yes } - add = 10 - } - } -} - -mandala_decree_expansion = { - law_group_type = mandala_decree - index = 2 - - modifier = { - vassal_levy_contribution_mult = 0.25 - independent_ruler_opinion = -25 - tributary_opinion = 25 - } - #Standard laws - flag = can_have_tributaries - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = can_change_succession_laws - #Decree specific - flag = piety_devotion_from_offensive_wars - flag = piety_for_sieging_capital_temple_complexes - flag = can_call_tributaries_for_piety - flag = subjects_appear_more_warlike - - can_keep = { realm_law_is_mandala = yes } - - can_pass = { - trigger_if = { - limit = { - house ?= { NOT = { has_house_head_parameter = can_enact_expansion_decree } } - } - custom_tooltip = { - text = devaraja_aspect_does_not_allow_this_decree - always = no - } - } - legitimacy_level >= 2 - } - - pass_cost = { - prestige = @mandala_decree_prestige_cost - } - - on_pass = { - #Don't need the alert no more - set_variable = { - name = has_picked_mandala_decree - value = flag:yes - } - } - - ai_will_do = { - value = 1 - #Traits - if = { - limit = { has_trait = brave } - add = 5 - } - if = { - limit = { has_trait = ambitious } - add = 5 - } - if = { - limit = { ai_has_warlike_personality = yes } - add = 10 - } - } -} - -mandala_decree_reverence = { - law_group_type = mandala_decree - index = 3 - - modifier = { - } - #Standard laws - flag = can_have_tributaries - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = can_change_succession_laws - #Decree specific - flag = cheaper_pilgrimages - flag = vassals_more_inclined_to_convert - flag = subjects_appear_more_pious - flag = can_convert_all_subjects_to_mandalas #Vassals more likely to accept, can now also ask Tribs - flag = tributaries_more_likely_to_contribute_to_GPs - - can_keep = { realm_law_is_mandala = yes } - - can_pass = { - legitimacy_level >= 2 - trigger_if = { - limit = { - house ?= { NOT = { has_house_head_parameter = can_enact_reverence_decree } } - } - custom_tooltip = { - text = devaraja_aspect_does_not_allow_this_decree - always = no - } - } - } - - pass_cost = { - prestige = @mandala_decree_prestige_cost - } - - on_pass = { - #Don't need the alert no more - set_variable = { - name = has_picked_mandala_decree - value = flag:yes - } - } - - ai_will_do = { - value = 1 - #Traits - if = { - limit = { has_trait = zealous } - add = 5 - } - if = { - limit = { has_trait = arrogant } - add = 5 - } - if = { - limit = { ai_has_pious_builder_personality = yes } - add = 10 - } - } -} - - -meritocratic_bureaucracy_0 = { - law_group_type = meritocratic_bureaucracy - index = 0 - - modifier = { - belligerent_opinion = -10 - barons_and_minor_landholders_opinion = 20 - glory_hound_opinion = 10 - parochial_opinion = 10 - courtly_opinion = 5 - } - flag = uses_meritocratic_bureaucracy - flag = titles_cannot_leave_realm_on_succession # Hardcoded flag - flag = can_have_tributaries - flag = authority_level_0 - flag = has_requirement_for_authority_level - - can_keep = { - realm_law_use_meritocratic_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = meritocratic_bureaucracy_0 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = meritocratic_bureaucracy_0 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - -meritocratic_bureaucracy_1 = { - law_group_type = meritocratic_bureaucracy - index = 1 - - modifier = { - belligerent_opinion = 5 - barons_and_minor_landholders_opinion = -30 - glory_hound_opinion = -15 - parochial_opinion = -15 - courtly_opinion = -5 - minority_opinion = -10 - meritocratic_government_tax_contribution_add = 0.05 - steppe_admin_government_tax_contribution_add = 0.05 - } - flag = uses_meritocratic_bureaucracy - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = can_change_partition_succession_laws - flag = vassal_internal_wars_banned - flag = diarchs_want_to_subsidise_without_this_flag - flag = can_have_tributaries - flag = authority_level_1 - - can_keep = { - realm_law_use_meritocratic_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = meritocratic_bureaucracy_1 } - } - } - - can_pass = { - trigger_if = { - limit = { - has_realm_law = meritocratic_bureaucracy_0 - should_synchronize_liege_law = no - } - custom_description = { - subject = root - text = "has_meritocratic_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = meritocratic_bureaucracy_1 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca1_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = meritocratic_bureaucracy_0 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = meritocratic_bureaucracy_0 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_1 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = meritocratic_bureaucracy_0 } - value = 1 - } - } -} - -meritocratic_bureaucracy_2 = { - law_group_type = meritocratic_bureaucracy - index = 2 - - modifier = { - belligerent_opinion = 10 - barons_and_minor_landholders_opinion = -10 - glory_hound_opinion = -10 - parochial_opinion = -10 - courtly_opinion = -5 - zealot_opinion = -10 - minority_opinion = -10 - meritocratic_government_tax_contribution_add = 0.05 - steppe_admin_government_tax_contribution_add = 0.05 - republic_government_tax_contribution_add = 0.05 - } - flag = uses_meritocratic_bureaucracy - flag = vassal_refusal_is_treason - flag = can_change_succession_laws - flag = vassal_all_wars_banned - flag = admin_change_vassal_gov_cheaper - flag = can_have_tributaries - flag = authority_level_2 - - can_keep = { - realm_law_use_meritocratic_bureaucracy = yes - trigger_if = { - limit = { - this = title:h_china.holder - } - situation:dynastic_cycle ?= { - NOR = { - situation_current_phase = situation_dynastic_cycle_phase_instability - situation_current_phase = situation_dynastic_cycle_phase_instability_conquest - } - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = meritocratic_bureaucracy_2 } - } - } - - can_pass = { - trigger_if = { - limit = { - NOT = { has_realm_law = meritocratic_bureaucracy_3 } - should_synchronize_liege_law = no - } - has_realm_law = meritocratic_bureaucracy_1 - custom_description = { - subject = root - text = "has_meritocratic_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = meritocratic_bureaucracy_2 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca2_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = meritocratic_bureaucracy_1 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = meritocratic_bureaucracy_1 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_2 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = meritocratic_bureaucracy_1 } - value = 1 - } - } -} - -meritocratic_bureaucracy_3 = { - law_group_type = meritocratic_bureaucracy - index = 3 - - modifier = { - belligerent_opinion = 15 - barons_and_minor_landholders_opinion = -20 - glory_hound_opinion = -25 - parochial_opinion = -25 - courtly_opinion = -10 - zealot_opinion = -20 - minority_opinion = -30 - meritocratic_government_tax_contribution_add = 0.1 - steppe_admin_government_tax_contribution_add = 0.1 - republic_government_tax_contribution_add = 0.05 - } - flag = uses_meritocratic_bureaucracy - flag = vassal_all_wars_banned_permanent - flag = max_authority_level - flag = can_have_tributaries - flag = authority_level_3 - - can_keep = { - realm_law_use_meritocratic_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = meritocratic_bureaucracy_3 } - } - } - - can_pass = { - trigger_if = { - limit = { should_synchronize_liege_law = no } - has_realm_law = meritocratic_bureaucracy_2 - custom_description = { - subject = root - text = "has_meritocratic_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = meritocratic_bureaucracy_3 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca3_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = meritocratic_bureaucracy_2 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - calculate_authority_cooldown_break_effect = yes - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_3 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - - -japanese_bureaucracy_0 = { - law_group_type = japanese_bureaucracy - index = 0 - - modifier = { - belligerent_opinion = -10 - barons_and_minor_landholders_opinion = 20 - glory_hound_opinion = 10 - parochial_opinion = 10 - courtly_opinion = 5 - } - flag = uses_japanese_bureaucracy - flag = titles_cannot_leave_realm_on_succession # Hardcoded flag - flag = can_designate_heirs - flag = authority_level_0 - flag = has_requirement_for_authority_level - - can_keep = { - realm_law_use_japanese_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = japanese_bureaucracy_0 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = japanese_bureaucracy_0 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - on_pass = { - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - -japanese_bureaucracy_1 = { - law_group_type = japanese_bureaucracy - index = 1 - - modifier = { - belligerent_opinion = 5 - barons_and_minor_landholders_opinion = -30 - glory_hound_opinion = -15 - parochial_opinion = -15 - courtly_opinion = -5 - minority_opinion = -10 - } - flag = uses_celestial_bureaucracy - flag = title_revocation_allowed - flag = vassal_retraction_allowed - flag = can_change_partition_succession_laws - flag = diarchs_want_to_subsidise_without_this_flag - flag = can_designate_heirs - flag = can_have_tributaries - flag = authority_level_1 - - can_keep = { - realm_law_use_japanese_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = japanese_bureaucracy_1 } - } - } - - can_pass = { - trigger_if = { - limit = { - has_realm_law = japanese_bureaucracy_0 - should_synchronize_liege_law = no - } - custom_description = { - subject = root - text = "has_japanese_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = japanese_bureaucracy_1 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca1_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = japanese_bureaucracy_0 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = japanese_bureaucracy_0 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_1 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = japanese_bureaucracy_0 } - value = 1 - } - } -} - -japanese_bureaucracy_2 = { - law_group_type = japanese_bureaucracy - index = 2 - - modifier = { - belligerent_opinion = 10 - barons_and_minor_landholders_opinion = -10 - glory_hound_opinion = -10 - parochial_opinion = -10 - courtly_opinion = -5 - zealot_opinion = -10 - minority_opinion = -10 - vassal_tax_contribution_mult = 0.1 - vassal_levy_contribution_mult = 0.1 - republic_government_tax_contribution_add = 0.05 - } - flag = uses_japanese_bureaucracy - flag = vassal_refusal_is_treason - flag = can_change_succession_laws - flag = admin_change_vassal_gov_cheaper - flag = can_designate_heirs - flag = vassal_internal_wars_banned - flag = can_have_tributaries - flag = authority_level_2 - - can_keep = { - realm_law_use_japanese_bureaucracy = yes - trigger_if = { - limit = { - this = title:h_china.holder - } - situation:dynastic_cycle ?= { - NOR = { - situation_current_phase = situation_dynastic_cycle_phase_instability - situation_current_phase = situation_dynastic_cycle_phase_instability_conquest - } - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = japanese_bureaucracy_2 } - } - } - - can_pass = { - trigger_if = { - limit = { - NOT = { has_realm_law = japanese_bureaucracy_3 } - should_synchronize_liege_law = no - } - has_realm_law = japanese_bureaucracy_1 - custom_description = { - subject = root - text = "has_japanese_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = japanese_bureaucracy_2 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca2_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = japanese_bureaucracy_1 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - if = { - limit = { - has_realm_law = japanese_bureaucracy_1 - } - calculate_authority_cooldown_break_effect = yes - } - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_2 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } - - ai_will_do = { - if = { - limit = { has_realm_law = japanese_bureaucracy_1 } - value = 1 - } - } -} - -japanese_bureaucracy_3 = { - law_group_type = japanese_bureaucracy - index = 3 - - modifier = { - belligerent_opinion = 15 - barons_and_minor_landholders_opinion = -20 - glory_hound_opinion = -25 - parochial_opinion = -25 - courtly_opinion = -10 - zealot_opinion = -20 - minority_opinion = -30 - vassal_tax_contribution_mult = 0.15 - vassal_levy_contribution_mult = 0.15 - republic_government_tax_contribution_add = 0.05 - } - flag = uses_japanese_bureaucracy - flag = max_authority_level - flag = can_designate_heirs - flag = vassal_all_wars_banned_permanent - flag = can_have_tributaries - flag = authority_level_3 - - can_keep = { - realm_law_use_japanese_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = japanese_bureaucracy_3 } - } - } - - can_pass = { - trigger_if = { - limit = { should_synchronize_liege_law = no } - has_realm_law = japanese_bureaucracy_2 - custom_description = { - subject = root - text = "has_japanese_bureaucracy_cooldown" - NAND = { - has_variable = imperial_bureaucracy_cooldown - NOT = { - culture = { has_innovation = innovation_all_things } - } - } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = japanese_bureaucracy_3 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - can_pass_law_ca3_trigger = yes - } - - pass_cost = { - prestige = { - if = { - limit = { - has_realm_law = japanese_bureaucracy_2 - } - add = increase_crown_authority_prestige_cost - } - } - } - - on_pass = { - # Increment cooldown breaker tally, if appropriate. - calculate_authority_cooldown_break_effect = yes - # Set regular cooldown. - set_variable = { - name = imperial_bureaucracy_cooldown - years = @imperial_bureaucracy_cooldown_years_3 - } - # Remove modifiers. - remove_law_related_modifiers_effect = yes - } -} - -uncrowned = { - law_group_type = crowned_laws - index = 0 - - can_keep = { - coronation_trigger = yes - NOT = { - has_game_rule = coronation_laws_off - } - } - can_have = { - coronation_trigger = yes - NOT = { - has_game_rule = coronation_laws_off - } - } - modifier = { - vassal_opinion = -10 - legitimacy_gain_mult = -0.25 - monthly_legitimacy_add = -2.5 - ai_war_chance = -100 - } - can_pass = { - custom_tooltip = { - text = can_only_be_lost_through_losing_titles - NOR = { - has_realm_law = crowned_king - has_realm_law = crowned_emperor - } - } - } - potential = { - coronation_trigger = yes - NOT = { - has_game_rule = coronation_laws_off - } - } -} - -crowned_king = { - law_group_type = crowned_laws - index = 1 - - can_keep = { - coronation_trigger = yes - NOT = { - has_game_rule = coronation_laws_off - } - } - can_have = { - coronation_trigger = yes - NOT = { - has_game_rule = coronation_laws_off - } - } - modifier = { - courtly_opinion = 5 - barons_and_minor_landholders_opinion = 5 - } - can_pass = { - # If you have a worse Coronation law, we will tell the player they can gain this with a Coronation - custom_tooltip = { - text = can_only_be_passed_through_coronation - NOT = { has_realm_law = uncrowned } - } - # If you have a better Coronation law, we will tell the player this is pointless for them - custom_tooltip = { - text = already_better_coronation - NOT = { has_realm_law = crowned_emperor } - } - } - potential = { - coronation_trigger = yes - NOT = { - has_game_rule = coronation_laws_off - } - } -} - -crowned_emperor = { - law_group_type = crowned_laws - index = 2 - - can_keep = { - coronation_trigger = yes - NOT = { - has_game_rule = coronation_laws_off - } - } - can_have = { - coronation_trigger = yes - NOT = { - has_game_rule = coronation_laws_off - } - } - modifier = { - courtly_opinion = 10 - barons_and_minor_landholders_opinion = 10 - zealot_opinion = 5 - } - can_pass = { - # If you have a worse Coronation law, we will tell the player they can gain this with a Coronation - custom_tooltip = { - text = can_only_be_passed_through_coronation - NOR = { - has_realm_law = uncrowned - has_realm_law = crowned_king - } - } - } - should_start_with = { - always = no - } - potential = { - coronation_trigger = yes - NOT = { - has_game_rule = coronation_laws_off - } - } -} diff --git a/common/laws/00_succession_laws.txt b/common/laws/00_succession_laws.txt deleted file mode 100644 index 8f493c9bf..000000000 --- a/common/laws/00_succession_laws.txt +++ /dev/null @@ -1,2490 +0,0 @@ -confederate_partition_succession_law = { - law_group_type = succession_order_laws - index = 0 - - can_keep = { - trigger_if = { - limit = { - government_has_flag = government_is_japan_feudal - tgp_realm_has_ceremonial_liege_trigger = yes - } - is_independent_ruler = no - } - trigger_else = { always = yes } # for readability - } - can_pass = { - can_change_partition_succession_law_trigger = yes - trigger_if = { - limit = { - exists = primary_title - } - is_confederation_member = no - } - } - can_have = { - can_have_confederate_partition_succession_law_trigger = yes - trigger_if = { - limit = { - exists = primary_title - } - is_confederation_member = no - } - } - should_start_with = { - NOR = { - historical_succession_access_single_heir_succession_law_trigger = yes - historical_succession_access_single_heir_succession_law_youngest_trigger = yes - historical_succession_access_single_heir_dynasty_house_trigger = yes - } - OR = { - AND = { - government_has_flag = government_is_feudal - culture = { - NOR = { - has_innovation = innovation_hereditary_rule - has_innovation = innovation_heraldry - } - } - } - government_has_flag = government_is_tribal - } - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - create_primary_tier_titles = yes - } - flag = partition_succession_law - modifier = { - glory_hound_opinion = 10 - parochial_opinion = 5 - belligerent_opinion = -10 - dynasty_house_opinion = 5 - eligible_child_opinion = 10 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - - potential = { - NOR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_clan - government_has_flag = government_is_administrative - government_has_flag = government_is_mandala - government_has_flag = government_is_celestial - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - } -} - -partition_succession_law = { - law_group_type = succession_order_laws - index = 1 - - can_keep = { - OR = { - can_keep_partition_succession_law_trigger = yes - trigger_if = { - limit = { - exists = primary_title - } - is_confederation_member = yes - } - } - } - can_pass = { - # it's failure only block, workaround for showing correct toolip. - trigger_if = { - limit = { - exists = primary_title - is_confederation_member = yes - } - is_confederation_member = yes - } - trigger_else = { - can_change_partition_succession_law_trigger = yes - } - } - can_have = { - # it's failure only block, workaround for showing correct toolip. - trigger_if = { - limit = { - exists = primary_title - is_confederation_member = yes - } - is_confederation_member = yes - } - trigger_else = { - can_have_partition_succession_law_trigger = yes - } - } - should_start_with = { - NOR = { - historical_succession_access_single_heir_succession_law_trigger = yes - historical_succession_access_single_heir_succession_law_youngest_trigger = yes - historical_succession_access_single_heir_dynasty_house_trigger = yes - } - government_has_flag = government_is_feudal - culture = { - has_innovation = innovation_hereditary_rule - NOT = { - has_innovation = innovation_heraldry - } - } - NOT = { government_has_mechanic = administrative } - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - } - flag = partition_succession_law - modifier = { - glory_hound_opinion = 10 - parochial_opinion = 5 - belligerent_opinion = -10 - player_heir_opinion = 10 - eligible_child_except_player_heir_opinion = 5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { has_realm_law = confederate_partition_succession_law } - value = 1 - } - } - - potential = { - NOR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_clan - government_has_flag = government_is_administrative - government_has_flag = government_is_mandala - government_has_flag = government_is_celestial - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - } -} - -high_partition_succession_law = { - law_group_type = succession_order_laws - index = 2 - - can_keep = { - can_keep_high_partition_succession_law_trigger = yes - } - can_pass = { - can_change_partition_succession_law_trigger = yes - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_high_partition_succession_law_trigger = yes - } - should_start_with = { - NOR = { - historical_succession_access_single_heir_succession_law_trigger = yes - historical_succession_access_single_heir_succession_law_youngest_trigger = yes - historical_succession_access_single_heir_dynasty_house_trigger = yes - } - government_has_flag = government_is_feudal - culture = { - has_innovation = innovation_heraldry - NOT = { - has_innovation = innovation_primogeniture - } - } - NOT = { government_has_mechanic = administrative } - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - primary_heir_minimum_share = 0.5 - } - flag = partition_succession_law - modifier = { - glory_hound_opinion = 5 - belligerent_opinion = -10 - player_heir_opinion = 15 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - } - } - value = 2 - } - } - - potential = { - NOR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_clan - government_has_flag = government_is_administrative - government_has_flag = government_is_mandala - government_has_flag = government_is_celestial - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - } -} - -single_heir_succession_law = { - law_group_type = succession_order_laws - index = 3 - - can_keep = { - can_keep_single_heir_succession_law_trigger = yes - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - top_liege != this - vassal_contract_has_flag = locked_to_partition - } - } - } - can_title_have = { - # Ceremonial Regent - NOT = { exists = var:administrative_ui_special_title.holder } - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_single_heir_succession_law_trigger = yes - } - can_pass = { - can_change_succession_law_trigger = yes - trigger_if = { - limit = { - government_has_flag = government_is_clan - } - piety_level >= 3 - } - trigger_if = { - limit = { - government_has_mechanic = administrative - } - influence_level >= 4 - has_active_diarchy = no - primary_title = { title_held_years >= 10 } - } - } - should_start_with = { - OR = { - historical_succession_access_single_heir_succession_law_trigger = yes - culture = { - has_innovation = innovation_primogeniture - } - } - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = single_heir - } - flag = advanced_succession_law - modifier = { - glory_hound_opinion = -10 - parochial_opinion = -5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - piety = { - value = 0 - if = { - limit = { - government_has_flag = government_is_clan - } - add = { - desc = "clan_government_cost_tooltip" - value = 1500 - } - } - } - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - value = 3 - } - - potential = { - NOR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_mandala - } - trigger_if = { - limit = { - government_has_mechanic = administrative - } - OR = { - is_independent_ruler = yes - tgp_is_ceremonial_liege_trigger = yes - } - } - } -} - -single_heir_succession_kurultai_law = { - law_group_type = succession_order_laws - index = 4 - - can_keep = { - government_has_flag = government_is_nomadic - } - can_have = { - government_has_flag = government_is_nomadic - } - can_pass = { - government_has_flag = government_is_nomadic - } - should_start_with = { - government_has_flag = government_is_nomadic - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = single_heir - } - flag = advanced_succession_law - flag = can_designate_heirs - modifier = { - belligerent_opinion = 10 - glory_hound_opinion = 5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -20 - } - pass_cost = { - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - value = 3 - } - - potential = { - government_has_flag = government_is_nomadic - } -} - -single_heir_succession_law_youngest = { - law_group_type = succession_order_laws - index = 5 - - can_keep = { - can_keep_single_heir_youngest_succession_law_trigger = yes - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - top_liege != this - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_single_heir_youngest_succession_law_trigger = yes - } - can_pass = { - can_change_succession_law_trigger = yes - trigger_if = { - limit = { - government_has_flag = government_is_clan - } - piety_level >= 3 - } - trigger_if = { - limit = { - government_has_mechanic = administrative - } - influence_level >= 4 - has_active_diarchy = no - primary_title = { title_held_years >= 10 } - } - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = youngest - title_division = single_heir - } - - flag = advanced_succession_law - modifier = { - glory_hound_opinion = -10 - parochial_opinion = -5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - piety = { - value = 0 - if = { - limit = { - government_has_flag = government_is_clan - } - add = { - desc = "clan_government_cost_tooltip" - value = 1500 - } - } - } - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - potential = { - trigger_if = { - limit = { - government_has_flag = government_is_administrative - } - is_independent_ruler = yes - } - NOR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_mandala - } - } -} - -single_heir_dynasty_house = { # LAST CALL - law_group_type = succession_order_laws - index = 6 - - can_keep = { - can_keep_single_heir_dynasty_house_trigger = yes - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - top_liege != this - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_single_heir_dynasty_house_trigger = yes - } - can_pass = { - can_change_single_heir_dynasty_house_succession_law_trigger = yes - trigger_if = { - limit = { - government_has_flag = government_is_clan - } - piety_level >= 3 - } - } - should_start_with = { - historical_succession_access_single_heir_dynasty_house_trigger = yes - NOT = { government_has_mechanic = administrative } - } - succession = { - order_of_succession = inheritance - traversal_order = dynasty_house - rank = oldest - title_division = single_heir - } - - flag = advanced_succession_law - modifier = { - glory_hound_opinion = -5 - eligible_child_except_player_heir_opinion = -15 - dynasty_house_opinion = 5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - piety = { - value = 0 - if = { - limit = { - government_has_flag = government_is_clan - } - add = { - desc = "clan_government_cost_tooltip" - value = 1500 - } - } - } - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - exists = primary_title - primary_title.tier > tier_county - OR = { - #West Slavic - culture = { has_cultural_pillar = heritage_west_slavic } - } - } - value = 2 - } - } - - potential = { - NOR = { - government_has_flag = government_is_administrative - government_has_flag = government_is_nomadic - government_has_flag = government_is_mandala - } - } -} - -acclamation_succession_law = { - law_group_type = succession_order_laws - index = 7 - - can_keep = { - can_keep_acclamation_succession_law_trigger = yes - } - can_pass = { - can_change_acclamation_succession_law_trigger = yes - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_acclamation_succession_law_trigger = yes - } - should_start_with = { - has_ep3_dlc_trigger = yes - has_title = title:e_byzantium - government_has_mechanic = administrative - } - succession = { - order_of_succession = appointment - appointment_type = admin_emperor - } - flag = advanced_succession_law - flag = can_designate_heirs - flag = appointment_type_succession - pass_cost = { - prestige = { - value = change_succession_law_prestige_cost - multiply = { - value = 0.5 # We reduce the cost to ensure that going back to acclamation is easy - desc = "[administrative_government|E]" - } - } - } - ai_will_do = { - if = { - limit = { has_realm_law = confederate_partition_succession_law } - value = 1 - } - } - potential = { - government_has_mechanic = administrative - is_independent_ruler = yes - NOR = { - government_has_flag = government_is_japan_administrative - government_has_flag = government_has_merit - } - } -} - -appointment_succession_law = { - law_group_type = succession_order_laws - index = 8 - - can_keep = { - can_keep_appointment_succession_law_trigger = yes - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - top_liege != this - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_appointment_succession_law_trigger = yes - } - can_pass = { - can_change_appointment_succession_law_trigger = yes - } - should_start_with = { - government_has_mechanic = administrative - NOR = { - government_has_flag = government_is_japan_administrative - government_has_flag = government_has_merit - } - is_independent_ruler = no - } - succession = { - order_of_succession = appointment - appointment_type = admin_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - modifier = { - glory_hound_opinion = -10 - parochial_opinion = -5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_has_mechanic = administrative # Default succession law for all admin types... - NOR = { # ... Unless you have a unique succession available - government_has_flag = government_is_japan_administrative - government_has_flag = government_has_merit - } - is_independent_ruler = no - } -} - -#The prowess succession of LAAMPs is determined in code -landless_adventurer_succession_law = { - law_group_type = succession_order_laws - index = 9 - - can_keep = { - government_has_flag = government_is_landless_adventurer - } - can_have = { - government_has_flag = government_is_landless_adventurer - } - can_pass = { - government_has_flag = government_is_landless_adventurer - } - should_start_with = { - government_has_flag = government_is_landless_adventurer - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - always = no - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = single_heir - exclude_rulers = yes - limit_to_courtiers = yes - } - flag = can_designate_heirs - - potential = { - government_has_flag = government_is_landless_adventurer - } -} - - -theocratic_elective_succession_law = { - law_group_type = succession_order_laws - index = 10 - - can_have = { - should_use_theocratic_elective_succession_law_trigger = yes - } - can_pass = { - always = yes - } - can_title_have = { - always = yes - } - succession = { - order_of_succession = election - election_type = theocratic_elective - faith = same_faith - resign_outside_realm = yes - } - flag = elective_succession_law - title_allegiance_opinion = 10 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } - potential = { - should_use_theocratic_elective_succession_law_trigger = yes - } - - modifier = { - rite_creation_piety_cost_mult = 3 # Steers the Pope toward Bulls and Councils rather than editing rites directly - character_travel_speed = 15 - character_travel_safety = 15 # He has to reach coronations and councils across Europe - enemy_hostile_scheme_success_chance_max_add = -20 - enemy_hostile_scheme_success_chance_growth_add = -2 # The Curia around him makes murder harder - } -} - -clerical_appointment_law = { - law_group_type = succession_order_laws - index = 11 - - can_keep = { - should_use_clerical_appointment_law_trigger = yes - } - can_pass = { - should_use_clerical_appointment_law_trigger = yes - } - can_have = { - should_use_clerical_appointment_law_trigger = yes - } - should_start_with = { - should_use_clerical_appointment_law_trigger = yes - } - succession = { - order_of_succession = appointment - appointment_type = clerical_christian - faith = same_faith - } - flag = appointment_type_succession - pass_cost = { - prestige = { - value = change_succession_law_prestige_cost - } - } - ai_will_do = { - if = { - limit = { has_realm_law = confederate_partition_succession_law } - value = 1 - } - } - potential = { - should_use_clerical_appointment_law_trigger = yes - } -} - -bishop_theocratic_succession_law = { - law_group_type = succession_order_laws - index = 12 - - can_keep = { - can_have_bishop_theocratic_succession_law_trigger = yes # same as can_have - } - can_have = { - can_have_bishop_theocratic_succession_law_trigger = yes - } - should_start_with = { - always = yes - } - succession = { - order_of_succession = theocratic - faith = same_faith - pool_character_config = pool_theocratic_succession - } - - potential = { - can_have_bishop_theocratic_succession_law_trigger = yes - } -} - -holy_order_succession_law = { - law_group_type = succession_order_laws - index = 13 - - can_keep = { - can_have_holy_order_succession_law_trigger = yes # same as can_have - } - can_have = { - can_have_holy_order_succession_law_trigger = yes - } - should_start_with = { - government_has_flag = government_is_military_holy_order - NOT = { - primary_title ?= { - has_variable = order_heritage - } - } - } - succession = { - order_of_succession = theocratic - faith = same_faith - pool_character_config = pool_holy_order_succession - } - - potential = { - can_have_holy_order_succession_law_trigger = yes - } -} -cultural_holy_order_succession_law = { - law_group_type = succession_order_laws - index = 14 - - can_keep = { - can_have_cultural_holy_order_succession_law_trigger = yes # same as can_have - } - can_have = { - can_have_cultural_holy_order_succession_law_trigger = yes - } - should_start_with = { - government_has_flag = government_is_military_holy_order - primary_title ?= { - has_variable = order_heritage - } - } - succession = { - order_of_succession = theocratic - faith = same_faith - pool_character_config = pool_cultural_holy_order_succession - } - - potential = { - can_have_cultural_holy_order_succession_law_trigger = yes - } -} -monastic_holy_order_succession_law = { - law_group_type = succession_order_laws - index = 15 - - can_keep = { - can_have_monastic_holy_order_succession_law_trigger = yes # same as can_have - } - can_have = { - can_have_monastic_holy_order_succession_law_trigger = yes - } - should_start_with = { - government_has_flag = government_is_monastic_holy_order - NOR = { - primary_title ?= { - has_variable = female_order - } - primary_title ?= { - has_variable = male_order - } - } - } - succession = { - order_of_succession = theocratic - faith = same_rite - pool_character_config = pool_monastic_holy_order_succession - } - - potential = { - can_have_monastic_holy_order_succession_law_trigger = yes - } -} -female_monastic_holy_order_succession_law = { - law_group_type = succession_order_laws - index = 16 - - can_keep = { - can_have_female_monastic_holy_order_succession_law_trigger = yes # same as can_have - } - can_have = { - can_have_female_monastic_holy_order_succession_law_trigger = yes - } - should_start_with = { - government_has_flag = government_is_monastic_holy_order - primary_title ?= { - has_variable = female_order - } - } - succession = { - order_of_succession = theocratic - faith = same_rite - pool_character_config = pool_female_monastic_holy_order_succession - } - - potential = { - can_have_female_monastic_holy_order_succession_law_trigger = yes - } -} -male_monastic_holy_order_succession_law = { - law_group_type = succession_order_laws - index = 17 - - can_keep = { - can_have_male_monastic_holy_order_succession_law_trigger = yes # same as can_have - } - can_have = { - can_have_male_monastic_holy_order_succession_law_trigger = yes - } - should_start_with = { - government_has_flag = government_is_monastic_holy_order - primary_title ?= { - has_variable = male_order - } - } - succession = { - order_of_succession = theocratic - faith = same_rite - pool_character_config = pool_male_monastic_holy_order_succession - } - - potential = { - can_have_male_monastic_holy_order_succession_law_trigger = yes - } -} - -mercenary_company_succession_law = { - law_group_type = succession_order_laws - index = 18 - - can_keep = { - can_have_mercenary_succession_law_trigger = yes - } - can_have = { - can_have_mercenary_succession_law_trigger = yes - } - should_start_with = { - government_has_flag = government_is_mercenary - } - succession = { - order_of_succession = company - pool_character_config = pool_mercenary_succession - } - - potential = { - can_have_mercenary_succession_law_trigger = yes - } -} - -city_succession_law = { - law_group_type = succession_order_laws - index = 19 - - can_keep = { - can_have_city_succession_law_trigger = yes - } - can_have = { - can_have_city_succession_law_trigger = yes - } - should_start_with = { - government_has_flag = government_is_republic - } - succession = { - order_of_succession = generate - pool_character_config = pool_city_succession - } - - potential = { - can_have_city_succession_law_trigger = yes - } -} - -clan_antagonistic_partition_succession_law = { - law_group_type = succession_order_laws - index = 20 - - can_keep = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = antagonistic - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = antagonistic - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = antagonistic - } - } - - should_start_with = { - government_has_flag = government_is_clan - house ?= { has_house_unity_stage = antagonistic } - } - - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - } - - flag = same_house_vassals_gain_claim_on_primary_title - flag = house_unity_stage_antagonistic - - modifier = { - dynasty_house_opinion = -10 - glory_hound_opinion = 15 - zealot_opinion = 10 - belligerent_opinion = -10 - player_heir_opinion = 10 - eligible_child_except_player_heir_opinion = 5 - } - - widget_name = "widget_clan_law" -} - -clan_competitive_partition_succession_law = { - law_group_type = succession_order_laws - index = 21 - - can_keep = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = competitive - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = competitive - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = competitive - } - } - should_start_with = { - government_has_flag = government_is_clan - house ?= { has_house_unity_stage = competitive } - } - - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - } - - flag = same_house_vassals_gain_claim_on_primary_title - flag = house_unity_stage_competitive - - modifier = { - glory_hound_opinion = 10 - zealot_opinion = 5 - belligerent_opinion = -5 - player_heir_opinion = 10 - eligible_child_except_player_heir_opinion = 5 - } - - widget_name = "widget_clan_law" -} - -clan_impassive_partition_succession_law = { - law_group_type = succession_order_laws - index = 22 - - can_keep = { - government_has_flag = government_is_clan - house ?= { - OR = { - has_house_unity_stage = impassive - # In case the house is fully unlanded - has_house_unity = no - } - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = impassive - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = impassive - } - } - should_start_with = { - government_has_flag = government_is_clan - house ?= { - OR = { - has_house_unity_stage = impassive - # In case the house is fully unlanded - has_house_unity = no - } - } - } - - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - flag = house_unity_stage_impassive - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - primary_heir_minimum_share = 0.25 - } - modifier = { - glory_hound_opinion = 5 - parochial_opinion = 5 - player_heir_opinion = 15 - } - - widget_name = "widget_clan_law" -} - -clan_friendly_partition_succession_law = { - law_group_type = succession_order_laws - index = 23 - - can_keep = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = friendly - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = friendly - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = friendly - } - } - should_start_with = { - government_has_flag = government_is_clan - house ?= { has_house_unity_stage = friendly } - } - - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - flag = house_unity_stage_friendly - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - primary_heir_minimum_share = 0.5 - } - modifier = { - parochial_opinion = 10 - courtly_opinion = 5 - player_heir_opinion = 25 - } - - widget_name = "widget_clan_law" -} - -clan_harmonious_partition_succession_law = { - law_group_type = succession_order_laws - index = 24 - - can_keep = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = harmonious - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = harmonious - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = harmonious - } - } - should_start_with = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = harmonious - } - } - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - flag = house_unity_stage_harmonious - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - primary_heir_minimum_share = 0.75 - } - modifier = { - parochial_opinion = 15 - courtly_opinion = 10 - player_heir_opinion = 40 - } - - widget_name = "widget_clan_law" -} - -herder_succession_law = { - law_group_type = succession_order_laws - index = 25 - - can_keep = { - can_have_herder_succession_law_trigger = yes - } - can_have = { - can_have_herder_succession_law_trigger = yes - } - should_start_with = { - government_has_flag = government_is_herder - } - can_remove_from_title = { - always = no - } - succession = { - order_of_succession = generate - pool_character_config = pool_herder_succession - } - - potential = { - can_have_herder_succession_law_trigger = yes - } -} - -celestial_appointment_succession_law = { - law_group_type = succession_order_laws - index = 26 - - can_keep = { - government_has_mechanic = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_appointment_allowed_desc - NOT = { vassal_contract_has_flag = celestial_military_appointment } - } - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_has_mechanic = administrative - is_independent_ruler = no - } - can_pass = { - government_has_mechanic = administrative - is_independent_ruler = no - } - should_start_with = { - government_has_flag = government_is_celestial - is_independent_ruler = no - custom_tooltip = { - text = celestial_appointment_allowed_desc - NOT = { vassal_contract_has_flag = celestial_military_appointment } - } - } - succession = { - order_of_succession = appointment - appointment_type = celestial_civic_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - flag = appointment_with_level_requirement - modifier = { - glory_hound_opinion = -10 - courtly_opinion = 5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_has_flag = government_is_celestial - is_independent_ruler = no - } -} - -celestial_military_appointment_succession_law = { - law_group_type = succession_order_laws - index = 27 - - can_keep = { - government_has_mechanic = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = celestial_military_appointment - } - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_has_mechanic = administrative - is_independent_ruler = no - } - can_pass = { - can_change_succession_law_trigger = yes - government_has_mechanic = administrative - is_independent_ruler = no - } - should_start_with = { - government_has_flag = government_is_celestial - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = celestial_military_appointment - } - } - succession = { - order_of_succession = appointment - appointment_type = celestial_military_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - flag = appointment_with_level_requirement - modifier = { - glory_hound_opinion = 5 - courtly_opinion = -10 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_has_flag = government_is_celestial - is_independent_ruler = no - } -} - -japanese_regency_succession_law = { - law_group_type = succession_order_laws - index = 28 - - can_keep = { - can_have_japanese_regency_succession_law_trigger = yes - } - can_pass = { - can_have_japanese_regency_succession_law_trigger = yes - } - can_have = { - can_have_japanese_regency_succession_law_trigger = yes - } - can_title_have = { - exists = var:administrative_ui_special_title - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - always = no - } - should_start_with = { - always = no - } - succession = { - order_of_succession = appointment - appointment_type = japanese_regent - } - flag = advanced_succession_law - flag = can_designate_heirs - flag = appointment_type_succession - pass_cost = { - prestige = change_succession_law_prestige_cost - } - ai_will_do = { - if = { - limit = { has_realm_law = confederate_partition_succession_law } - value = 1 - } - } - potential = { - government_has_flag = government_is_japan_administrative - } -} - -japanese_appointment_succession_law = { - law_group_type = succession_order_laws - index = 29 - - can_keep = { - can_keep_japanese_appointment_succession_law_trigger = yes - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - NOT = { vassal_contract_has_flag = japan_administrative_military_appointment } - } - } - can_pass = { - can_change_japanese_appointment_succession_law_trigger = yes - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - NOT = { vassal_contract_has_flag = japan_administrative_military_appointment } - } - } - can_have = { - can_have_japanese_appointment_succession_law_trigger = yes - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - NOT = { vassal_contract_has_flag = japan_administrative_military_appointment } - } - } - should_start_with = { - government_has_flag = government_is_japan_administrative - is_independent_ruler = no - NOT = { has_title = title:k_royal_household } - NOT = { vassal_contract_has_flag = japan_administrative_military_appointment } - } - succession = { - order_of_succession = appointment - appointment_type = japanese_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - modifier = { - glory_hound_opinion = -10 - parochial_opinion = -5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_has_flag = government_is_japan_administrative - is_independent_ruler = no - } -} - -japanese_military_appointment_succession_law = { - law_group_type = succession_order_laws - index = 30 - - can_keep = { - government_has_mechanic = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = japan_administrative_military_appointment - } - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_has_mechanic = administrative - is_independent_ruler = no - vassal_contract_has_flag = japan_administrative_military_appointment - } - can_pass = { - can_change_succession_law_trigger = yes - government_has_mechanic = administrative - is_independent_ruler = no - vassal_contract_has_flag = japan_administrative_military_appointment - } - should_start_with = { - government_has_flag = government_is_japan_administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = japan_administrative_military_appointment - } - } - succession = { - order_of_succession = appointment - appointment_type = japanese_military_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - modifier = { - glory_hound_opinion = 5 - courtly_opinion = -10 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_has_flag = government_is_japan_administrative - is_independent_ruler = no - } -} - -mandala_succession_law = { - law_group_type = succession_order_laws - index = 31 - - can_keep = { - realm_law_is_mandala = yes - } - can_have = { - realm_law_is_mandala = yes - } - can_pass = { - realm_law_is_mandala = yes - } - should_start_with = { - realm_law_is_mandala = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - always = no - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = single_heir - } - flag = can_designate_heirs - - potential = { - realm_law_is_mandala = yes - } -} - -meritocratic_appointment_succession_law = { - law_group_type = succession_order_laws - index = 32 - - can_keep = { - government_has_mechanic = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_appointment_allowed_desc - NOT = { vassal_contract_has_flag = meritocratic_military_appointment } - } - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_has_mechanic = administrative - is_independent_ruler = no - } - can_pass = { - government_has_mechanic = administrative - is_independent_ruler = no - } - should_start_with = { - OR = { - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - is_independent_ruler = no - custom_tooltip = { - text = celestial_appointment_allowed_desc - NOT = { vassal_contract_has_flag = meritocratic_military_appointment } - } - } - succession = { - order_of_succession = appointment - appointment_type = meritocratic_civic_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - flag = appointment_with_level_requirement - modifier = { - glory_hound_opinion = -10 - courtly_opinion = 5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - OR = { - government_has_flag = government_is_steppe_admin - government_has_flag = government_is_meritocratic - } - is_independent_ruler = no - } -} - -meritocratic_military_appointment_succession_law = { - law_group_type = succession_order_laws - index = 33 - - can_keep = { - government_has_mechanic = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = meritocratic_military_appointment - } - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_has_mechanic = administrative - is_independent_ruler = no - } - can_pass = { - government_has_mechanic = administrative - is_independent_ruler = no - } - should_start_with = { - OR = { - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = meritocratic_military_appointment - } - } - succession = { - order_of_succession = appointment - appointment_type = meritocratic_military_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - flag = appointment_with_level_requirement - modifier = { - glory_hound_opinion = -10 - courtly_opinion = 5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - OR = { - government_has_flag = government_is_steppe_admin - government_has_flag = government_is_meritocratic - } - is_independent_ruler = no - } -} - -meritocratic_regency_succession_law = { - law_group_type = succession_order_laws - index = 34 - - can_keep = { - can_have_meritocratic_regency_succession_law_trigger = yes - } - can_pass = { - can_have_meritocratic_regency_succession_law_trigger = yes - } - can_have = { - can_have_meritocratic_regency_succession_law_trigger = yes - } - can_title_have = { - exists = var:administrative_ui_special_title - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - always = no - } - should_start_with = { - always = no - } - succession = { - order_of_succession = appointment - appointment_type = meritocratic_regent - } - flag = advanced_succession_law - flag = can_designate_heirs - flag = appointment_type_succession - pass_cost = { - prestige = change_succession_law_prestige_cost - } - ai_will_do = { - if = { - limit = { has_realm_law = confederate_partition_succession_law } - value = 1 - } - } - potential = { - government_has_mechanic = administrative - government_allows = merit - tgp_realm_has_ceremonial_liege_trigger = yes - } -} - - -male_only_law = { - law_group_type = succession_gender_laws - index = 0 - - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - can_have_male_monastic_holy_order_succession_law_trigger = yes - } - always = yes - } - trigger_else_if = { - limit = { - government_has_flag = government_is_theocracy - } - rite = { rite_has_parameter = clergy_must_be_male } - } - trigger_else_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = male_only_law } - } - trigger_else = { - custom_tooltip = { - text = culture_not_male_only_tt - rite = { rite_has_parameter = male_dominated_law } - NOT = { - culture = { has_cultural_parameter = female_only_inheritance } - } - } - } - } - can_have = { - trigger_if = { - limit = { - government_has_flag = government_is_theocracy - NOT = { can_have_male_monastic_holy_order_succession_law_trigger = yes } - } - rite = { rite_has_parameter = clergy_must_be_male } - } - } - can_pass = { - can_change_succession_law_trigger = yes - } - should_start_with = { - trigger_if = { - limit = { - can_have_male_monastic_holy_order_succession_law_trigger = yes - } - always = yes - } - trigger_else_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = male_only_law } - } - trigger_else_if = { - limit = { - government_has_flag = government_has_merit - } - rite = { - rite_has_parameter = male_dominated_law - } - } - trigger_else_if = { - limit = { - government_has_flag = government_is_theocracy - } - rite = { - rite_has_parameter = clergy_must_be_male - } - } - trigger_else = { - AND = { - faith = { - religion_tag = islam_religion - } - rite = { - rite_has_parameter = male_dominated_law - } - } - } - } - succession = { - gender_law = male_only - } - flag = men_can_have_multiple_spouses - flag = men_can_have_consorts - flag = no_female_commanders - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } -} - -male_preference_law = { - law_group_type = succession_gender_laws - index = 1 - - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - government_has_flag = government_is_theocracy - } - custom_tooltip = { - text = gender_preference_law_not_for_clergy_tt - always = no - } - } - trigger_else_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = male_preference_law } - } - trigger_else = { - custom_description = { - text = change_law_male_preference_faith_requirement - rite = { - NOT = { rite_has_parameter = female_dominated_law } - } - } - custom_tooltip = { - text = male_preference_law_can_keep_faith_or_culture_trigger - OR = { - rite = { rite_has_parameter = male_dominated_law } - NOT = { - culture = { has_cultural_parameter = female_only_inheritance } - } - } - } - } - } - can_have = { - trigger_if = { - limit = { - government_has_flag = government_is_theocracy - } - custom_tooltip = { - text = gender_preference_law_not_for_clergy_tt - always = no - } - } - } - can_pass = { - can_change_succession_law_trigger = yes - } - should_start_with = { - trigger_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = male_preference_law } - } - trigger_else = { - NOT = { - culture = { has_cultural_parameter = female_preference_inheritance } - } - OR = { - faith = { - NOR = { - religion_tag = islam_religion - AND = { - root = { - government_has_flag = government_has_merit - } - root.rite = { - rite_has_parameter = male_dominated_law - } - } - } - root.rite = { - rite_has_parameter = male_dominated_law - } - } - AND = { - has_realm_law = male_only_law # For when male_only_law ceases to be a legal option - trigger_if = { - limit = { should_synchronize_liege_law = yes } - NOT = { - top_liege = { has_realm_law = male_only_law } - } - } - trigger_else = { - custom_tooltip = { - text = culture_not_female_only_tt - NOR = { - rite = { rite_has_parameter = male_dominated_law } - NOT = { - culture = { has_cultural_parameter = female_only_inheritance } - } - } - } - } - } - } - } - } - succession = { - gender_law = male_preference - } - flag = men_can_have_multiple_spouses - flag = men_can_have_consorts - flag = no_female_commanders - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } -} - -equal_law = { - law_group_type = succession_gender_laws - index = 2 - - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - government_has_flag = government_is_theocracy - } - rite = { rite_has_parameter = clergy_can_be_either_gender } - } - trigger_else_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = equal_law } - } - trigger_else = { - custom_tooltip = { - text = equal_law_culture_faith_or_innovation_trigger - OR = { - culture = { has_cultural_parameter = gender_equal_inheritance } - #culture = { has_innovation = innovation_visigothic_codes } - rite = { rite_has_parameter = gender_equal_law } - AND = { #Culture is female dominated but religion is male dominated - rite = { rite_has_parameter = male_dominated_law } - culture = { has_cultural_parameter = female_only_inheritance } - } - AND = { #Culture is male dominated but faith is female dominated - rite = { rite_has_parameter = female_dominated_law } - NOT = { culture = { has_cultural_parameter = female_only_inheritance } } - } - primary_title.var:can_keep_realm_law ?= flag:equal_law - } - } - } - } - can_have = { - trigger_if = { - limit = { - government_has_flag = government_is_theocracy - } - rite = { rite_has_parameter = clergy_can_be_either_gender } - } - } - can_pass = { - #can_change_to_equal_succession_law_trigger = yes - can_change_succession_law_trigger = yes - } - should_start_with = { - trigger_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = equal_law } - } - trigger_else_if = { - limit = { - government_has_flag = government_is_theocracy - } - rite = { rite_has_parameter = clergy_can_be_either_gender } - } - trigger_else = { - NOR = { - culture = { has_cultural_parameter = female_preference_inheritance } - culture = { has_cultural_tradition = tradition_nubian_warrior_queens } - } - rite = { - rite_has_parameter = gender_equal_law - } - NOT = { has_realm_law = female_only_law } # For when female_only_law ceases to be valid - } - } - succession = { - gender_law = equal - } - flag = men_can_have_multiple_spouses - flag = men_can_have_consorts - flag = women_can_have_multiple_spouses - flag = women_can_have_consorts - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - exists = primary_title - primary_title.tier > tier_county - rite = { - NOT = { - rite_has_dominant_ruling_gender = prev - } - } - } - value = 2 - } - } -} - -female_preference_law = { - law_group_type = succession_gender_laws - index = 3 - - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - government_has_flag = government_is_theocracy - } - custom_tooltip = { - text = gender_preference_law_not_for_clergy_tt - always = no - } - } - trigger_else_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = female_preference_law } - } - trigger_else_if = { - limit = { - culture = { has_cultural_parameter = female_preference_inheritance } - } - culture = { has_cultural_parameter = female_preference_inheritance } - } - trigger_else = { - custom_description = { - text = change_law_female_preference_faith_requirement - OR = { - rite = { - NOT = { rite_has_parameter = male_dominated_law } - } - rite = { - rite_has_parameter = tenet_hyperdulia_female_preference_law - } - } - } - custom_tooltip = { - text = female_preference_law_faith_or_culture_trigger - OR = { - rite = { rite_has_parameter = female_dominated_law } - NOT = { - culture = { has_cultural_parameter = male_only_inheritance } - } - } - } - } - } - can_have = { - trigger_if = { - limit = { - government_has_flag = government_is_theocracy - } - custom_tooltip = { - text = gender_preference_law_not_for_clergy_tt - always = no - } - } - } - should_start_with = { - trigger_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = female_preference_law } - } - trigger_else = { - OR = { - culture = { has_cultural_parameter = female_preference_inheritance } - rite = { - rite_has_parameter = female_dominated_law - } - rite = { - rite_has_parameter = tenet_hyperdulia_female_preference_law - } - has_realm_law = female_only_law # For when male_only_law ceases to be a legal option - } - } - } - can_pass = { - can_change_succession_law_trigger = yes - } - succession = { - gender_law = female_preference - } - flag = women_can_have_multiple_spouses - flag = women_can_have_consorts - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } -} - -female_only_law = { - law_group_type = succession_gender_laws - index = 4 - - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - can_have_female_monastic_holy_order_succession_law_trigger = yes - } - always = yes - } - trigger_else_if = { - limit = { - government_has_flag = government_is_theocracy - } - rite = { rite_has_parameter = clergy_must_be_female } - } - trigger_else_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = female_only_law } - } - trigger_else_if = { - limit = { - culture = { has_cultural_parameter = female_only_inheritance } - } - culture = { has_cultural_parameter = female_only_inheritance } - } - trigger_else = { - custom_tooltip = { - text = female_only_law_can_keep_faith_or_culture_trigger - rite = { rite_has_parameter = female_dominated_law } - NOT = { - culture = { has_cultural_parameter = male_only_inheritance } - } - } - } - } - can_have = { - trigger_if = { - limit = { - government_has_flag = government_is_theocracy - NOT = { can_have_female_monastic_holy_order_succession_law_trigger = yes } - } - rite = { rite_has_parameter = clergy_must_be_female } - } - } - can_pass = { - can_change_succession_law_trigger = yes - } - succession = { - gender_law = female_only - } - flag = women_can_have_multiple_spouses - flag = women_can_have_consorts - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - should_start_with = { - trigger_if = { - limit = { - can_have_female_monastic_holy_order_succession_law_trigger = yes - } - always = yes - } - trigger_else_if = { - limit = { should_synchronize_liege_law = yes } - top_liege = { has_realm_law = female_only_law } - } - trigger_else_if = { - limit = { - government_has_flag = government_is_theocracy - } - rite = { rite_has_parameter = clergy_must_be_female } - } - trigger_else = { - culture = { has_cultural_parameter = female_only_inheritance } - } - } -} - - -same_faith_only_law = { - law_group_type = succession_faith - index = 0 - - can_keep = { - should_have_same_faith_succession_trigger = yes - } - can_pass = { - should_have_same_faith_succession_trigger = yes - } - should_start_with = { - should_have_same_faith_succession_trigger = yes - } - succession = { - faith = same_faith - } -} - - -same_faith_theocratic_succession_law = { - law_group_type = succession_rel_head - index = 0 - - shown_in_encyclopedia = no - can_keep = { - religion != religion:christianity_religion - faith = { - religious_head = root - has_doctrine = doctrine_spiritual_head - } - } - succession = { - faith = same_faith - } -} -same_faith_succession_law = { - law_group_type = succession_rel_head - index = 1 - - shown_in_encyclopedia = no - can_keep = { - faith = { - religious_head = root - has_doctrine = doctrine_temporal_head - } - } - succession = { - faith = same_faith - } -} diff --git a/common/laws/01_title_succession_laws.txt b/common/laws/01_title_succession_laws.txt deleted file mode 100644 index f326177dc..000000000 --- a/common/laws/01_title_succession_laws.txt +++ /dev/null @@ -1,384 +0,0 @@ -# Default Feudal Elective -feudal_elective_succession_law = { - law_group_type = title_succession_laws - index = 0 - - can_have = { - government_has_flag = government_is_feudal - highest_held_title_tier >= tier_duchy - NOR = { #Cultures have their special flavor. - culture = { has_cultural_parameter = witenagemot_succession_enabled } - culture = { has_cultural_parameter = scandinavian_elective_enabled } - culture = { has_cultural_parameter = tribal_elective_enabled } #FP3 addition - } - } - can_pass = { - can_change_title_law_trigger = yes - } - can_title_have = { - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = feudal_elective - } - flag = elective_succession_law - title_allegiance_opinion = 10 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } -} - -# HRE Succession -princely_elective_succession_law = { - law_group_type = title_succession_laws - index = 1 - - can_have = { - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - highest_held_title_tier >= tier_empire - } - can_pass = { - can_change_title_law_trigger = yes - } - can_title_have = { - this = title:e_hre - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = princely_elective - } - flag = elective_succession_law - title_allegiance_opinion = 10 - modifier = { - vassal_limit = 20 - minority_opinion = -15 - } - revoke_cost = { - prestige = change_hre_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } -} - -# Witenagemot -saxon_elective_succession_law = { - law_group_type = title_succession_laws - index = 2 - - can_have = { - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - highest_held_title_tier >= tier_kingdom - } - can_pass = { - can_change_title_law_trigger = yes - culture = { has_cultural_parameter = witenagemot_succession_enabled } - } - can_title_have = { - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = saxon_elective - } - flag = elective_succession_law - title_allegiance_opinion = 5 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } -} - -# Thing -scandinavian_elective_succession_law = { - law_group_type = title_succession_laws - index = 3 - - can_have = { - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - highest_held_title_tier >= tier_duchy - } - can_pass = { - can_change_title_law_trigger = yes - culture = { has_cultural_parameter = scandinavian_elective_enabled } - } - can_title_have = { - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = scandinavian_elective - } - flag = elective_succession_law - title_allegiance_opinion = 5 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } -} - -# Tanistry -gaelic_elective_succession_law = { - law_group_type = title_succession_laws - index = 4 - - can_have = { - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - highest_held_title_tier >= tier_duchy - } - can_pass = { - can_change_title_law_trigger = yes - custom_description = { - OR = { - culture = { has_cultural_pillar = heritage_brythonic } - culture = { has_cultural_pillar = heritage_goidelic } - } - text = succession_laws_must_have_valid_tanistry_culture - } - } - can_title_have = { - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = gaelic_elective - } - flag = elective_succession_law - title_allegiance_opinion = 5 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } -} - -# Jirga elective -tribal_elective_succession_law = { #FOR FP3 - law_group_type = title_succession_laws - index = 5 - - can_have = { - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - highest_held_title_tier >= tier_kingdom - } - can_pass = { - can_change_title_law_trigger = yes - culture = { has_cultural_parameter = tribal_elective_enabled } - } - can_title_have = { - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = tribal_elective - } - flag = elective_succession_law - title_allegiance_opinion = 5 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } -} - -# Player Heir -temporal_head_of_faith_succession_law = { - law_group_type = title_succession_laws - index = 6 - - can_title_have = { - is_temporal_head_of_faith_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - custom_description = { - text = succession_laws_must_not_be_temporal - is_temporal_head_of_faith_trigger = no - } - } - succession = { - order_of_succession = player_heir - } -} - -# Noble Family Succession -noble_family_succession_law = { - law_group_type = title_succession_laws - index = 7 - - can_title_have = { - is_noble_family_title = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - always = no - } - succession = { - order_of_succession = noble_family - title_division = single_heir - } - flag = can_designate_heirs -} - -# Law of the Land Title Succession -# Applied in on_title_gain when a county title's capital province has required heir government types defined and the new holder does not meet the requirement. -law_of_the_land_succession_law = { - law_group_type = title_succession_laws - index = 8 - - can_title_have = { - tier = tier_county - title_province = { - holding_type = { - has_required_heir_governments = yes - NOT = { - any_required_heir_government_type = { - this = root.holder.government_type - } - } - } - } - } - # Never show this in the UI, just apply it through script - should_show_for_title = { always = no } - can_remove_from_title = { always = no } - succession = { - order_of_succession = generate_from_template - } -} -#Confederation elective -confederation_elective_succession_law = { - law_group_type = title_succession_laws - index = 9 - - can_title_have = { - tier >= tier_kingdom - } - should_show_for_title = { - has_variable = confederation_culture - } - succession = { - order_of_succession = election - election_type = confederation_elective - } - flag = elective_succession_law - title_allegiance_opinion = 10 - revoke_cost = { - prestige = { - value = change_title_succession_law_prestige_cost - multiply = 8 - if = { - limit = { - NOR = { - government_has_flag = government_is_tribal - government_has_flag = government_is_nomadic - } - } - multiply = 0.1 - } - } - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } -} - -# Celestial Ministry Succession -celestial_ministry_appointment_succession_law = { - law_group_type = title_succession_laws - index = 10 - - can_have = { - government_has_flag = government_is_celestial - } - can_pass = { - } - can_title_have = { - tgp_is_civilian_minister_title = yes - } - can_realm_have = { - always = no - } - can_remove_from_title = { - custom_tooltip = { - text = celestial_ministry_appointment_cannot_remove_desc - always = no - } - } - succession = { - order_of_succession = appointment - appointment_type = celestial_minister - } - modifier = { - celestial_government_opinion = 5 - } - flag = appointment_type_succession - flag = appointment_with_level_requirement -} - -# Celestial Grand Marshal Succession -celestial_grand_marshal_appointment_succession_law = { - law_group_type = title_succession_laws - index = 11 - - can_have = { - government_has_flag = government_is_celestial - } - can_pass = { - } - can_title_have = { - this = title:e_minister_grand_marshal - } - can_realm_have = { - always = no - } - can_remove_from_title = { - custom_tooltip = { - text = celestial_ministry_appointment_cannot_remove_desc - always = no - } - } - succession = { - order_of_succession = appointment - appointment_type = celestial_military_governor - } - modifier = { - celestial_government_opinion = 5 - } - flag = appointment_type_succession - flag = appointment_with_level_requirement -} diff --git a/common/laws/02_admininistrative_laws.txt b/common/laws/02_admininistrative_laws.txt deleted file mode 100644 index 862ca2bdd..000000000 --- a/common/laws/02_admininistrative_laws.txt +++ /dev/null @@ -1,3523 +0,0 @@ -##################### -# ADMINISTRATIVE LAWS -##################### -@admin_law_cooldown_value = 5 - -# ADMINISTRATIVE GOVERNMENT -province_war_law_0 = { - law_group_type = province_war_law - index = 0 - - modifier = { - } - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = province_war_law_0 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = province_war_law_0 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } -} - -province_war_law_1 = { - law_group_type = province_war_law - index = 1 - - modifier = { - } - flag = admin_vassal_wars_restricted - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = have_bureaucracy_1_or_higher - has_realm_law_flag = authority_level_1 - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = province_war_law_1 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = province_war_law_1 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - if = { - limit = { - ai_has_warlike_personality = yes - } - value = 1 - } - if = { - limit = { - has_realm_law = province_war_law_0 - ai_has_economical_boom_personality = yes - } - value = 1 - } - } -} - -province_war_law_2 = { - law_group_type = province_war_law - index = 2 - - modifier = { - } - flag = admin_vassal_wars_permission_only - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = have_bureaucracy_2_or_higher - has_realm_law_flag = authority_level_2 - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = province_war_law_2 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = province_war_law_2 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - if = { - limit = { - has_realm_law = province_war_law_1 - ai_has_builder_or_pious_builder_personality = yes - } - value = 1 - } - } -} - -province_war_law_3 = { - law_group_type = province_war_law - index = 3 - - modifier = { - } - flag = admin_vassal_wars_banned - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = have_bureaucracy_3 - has_realm_law_flag = authority_level_3 - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = province_war_law_3 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = province_war_law_3 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - if = { - limit = { - has_realm_law = province_war_law_2 - ai_has_pious_builder_personality = yes - } - value = 1 - } - } -} - - -province_border_law_0 = { - law_group_type = province_border_law - index = 0 - - modifier = { - } - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = province_border_law_0 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = province_border_law_0 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 1 - } -} - -province_border_law_1 = { - law_group_type = province_border_law - index = 1 - - modifier = { - administrative_government_vassal_opinion = -5 - } - flag = admin_vassal_border_restricted - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = province_border_law_1 } - } - trigger_else = { - custom_tooltip = { - text = have_bureaucracy_2_or_higher - has_realm_law_flag = authority_level_2 - } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = province_border_law_1 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - if = { - limit = { - OR = { - ai_has_cautious_personality = yes - ai_has_economical_boom_personality = yes - } - } - add = 2 - } - } -} - -province_border_law_2 = { - law_group_type = province_border_law - index = 2 - - modifier = { - administrative_government_vassal_opinion = -10 - } - flag = admin_vassal_border_limit - - can_keep = { - realm_law_use_imperial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = province_border_law_2 } - } - trigger_else = { - custom_tooltip = { - text = have_bureaucracy_3 - has_realm_law_flag = authority_level_3 - } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = province_border_law_2 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - - -# CELESTIAL GOVERNMENT -celestial_army_liege_law_0 = { - law_group_type = celestial_army_liege_law - index = 0 - - modifier = { - celestial_government_tax_contribution_add = -0.05 - } - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - is_independent_ruler = yes - } - - can_pass = { - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - if = { - limit = { - NOR = { # Rulers should keep any higher levels - has_realm_law = celestial_army_liege_law_1 - has_realm_law = celestial_army_liege_law_2 - has_realm_law = celestial_army_liege_law_3 - } - } - add = 1 - } - } -} - -celestial_army_liege_law_1 = { - law_group_type = celestial_army_liege_law - index = 1 - - modifier = { - celestial_government_vassal_opinion = -5 - men_at_arms_title_cap = 1 - } - flag = admin_title_troop_cost_reduction - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - is_independent_ruler = yes - custom_tooltip = { - text = have_celestial_bureaucracy_1_or_higher - has_realm_law_flag = authority_level_1 - } - } - - can_pass = { - is_independent_ruler = yes - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - if = { - limit = { - NOR = { # Rulers should keep any higher levels - has_realm_law = celestial_army_liege_law_2 - has_realm_law = celestial_army_liege_law_3 - } - OR = { - ai_has_cautious_personality = yes - ai_has_warlike_personality = yes - } - } - add = 2 - } - } -} - -celestial_army_liege_law_2 = { - law_group_type = celestial_army_liege_law - index = 2 - - modifier = { - celestial_government_vassal_opinion = -10 - } - flag = admin_title_troop_cost_reduction_high - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - is_independent_ruler = yes - custom_tooltip = { - text = have_celestial_bureaucracy_2_or_higher - has_realm_law_flag = authority_level_2 - } - } - - can_pass = { - is_independent_ruler = yes - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - if = { - limit = { - NOT = { # Rulers should keep any higher levels - has_realm_law = celestial_army_liege_law_3 - } - OR = { # AI should want this if warlike, or if in the expansion phase, regardless of personality - ai_has_warlike_personality = yes - situation:dynastic_cycle ?= { - situation_current_phase = situation_dynastic_cycle_phase_stability_expansion - } - } - } - add = 3 - } - } -} - -celestial_army_liege_law_3 = { - law_group_type = celestial_army_liege_law - index = 3 - - modifier = { - celestial_government_vassal_opinion = -15 - men_at_arms_title_cap = 2 - } - flag = admin_title_troop_cost_reduction_very_high - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - is_independent_ruler = yes - custom_tooltip = { - text = have_celestial_bureaucracy_3 - has_realm_law_flag = authority_level_3 - } - trigger_if = { - limit = { - this = title:h_china.holder - } - situation:dynastic_cycle ?= { - situation_current_phase = situation_dynastic_cycle_phase_stability_expansion - } - } - } - - can_pass = { - is_independent_ruler = yes - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - if = { - limit = { - ai_has_warlike_personality = yes - } - add = 4 - } - } -} - - -celestial_army_vassal_law_0 = { - law_group_type = celestial_army_vassal_law - index = 0 - - modifier = { - celestial_government_tax_contribution_add = -0.05 - men_at_arms_cap = 2 - } - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - is_independent_ruler = no - trigger_if = { - limit = { - liege = { is_independent_ruler = yes } - } - liege = { has_realm_law = celestial_army_liege_law_0 } - } - trigger_else = { - liege = { has_realm_law = celestial_army_vassal_law_0 } - } - } - - can_pass = { - trigger_if = { - limit = { - liege = { - OR = { - has_realm_law = celestial_army_liege_law_0 - has_realm_law = celestial_army_vassal_law_0 - } - } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - -celestial_army_vassal_law_1 = { - law_group_type = celestial_army_vassal_law - index = 1 - - modifier = { - men_at_arms_cap = -2 - men_at_arms_title_cap = 1 - } - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - is_independent_ruler = no - trigger_if = { - limit = { - liege = { is_independent_ruler = yes } - } - liege = { has_realm_law = celestial_army_liege_law_1 } - } - trigger_else = { - liege = { has_realm_law = celestial_army_vassal_law_1 } - } - } - - can_pass = { - trigger_if = { - limit = { - liege = { - OR = { - has_realm_law = celestial_army_liege_law_1 - has_realm_law = celestial_army_vassal_law_1 - } - } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - -celestial_army_vassal_law_2 = { - law_group_type = celestial_army_vassal_law - index = 2 - - modifier = { - men_at_arms_cap = -20 - men_at_arms_title_cap = 2 - } - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - is_independent_ruler = no - trigger_if = { - limit = { - liege = { is_independent_ruler = yes } - } - liege = { has_realm_law = celestial_army_liege_law_2 } - } - trigger_else = { - liege = { has_realm_law = celestial_army_vassal_law_2 } - } - } - - can_pass = { - trigger_if = { - limit = { - liege = { - OR = { - has_realm_law = celestial_army_liege_law_2 - has_realm_law = celestial_army_vassal_law_2 - } - } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - -celestial_army_vassal_law_3 = { - law_group_type = celestial_army_vassal_law - index = 3 - - modifier = { - men_at_arms_cap = -20 - men_at_arms_title_cap = 4 - } - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - is_independent_ruler = no - trigger_if = { - limit = { - liege = { is_independent_ruler = yes } - } - liege = { has_realm_law = celestial_army_liege_law_3 } - } - trigger_else = { - liege = { has_realm_law = celestial_army_vassal_law_3 } - } - } - - can_pass = { - trigger_if = { - limit = { - liege = { - OR = { - has_realm_law = celestial_army_liege_law_3 - has_realm_law = celestial_army_vassal_law_3 - } - } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - - -celestial_retirement_law_0 = { - law_group_type = celestial_retirement_law - index = 0 - - flag = celestial_retirement_age_0 - flag = celestial_retirement_law - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = have_celestial_bureaucracy_1_or_higher - NOT = { realm_law_group_at_minimum_level = celestial_bureaucracy } - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_retirement_law_0 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = province_border_law_1 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - -celestial_retirement_law_1 = { - law_group_type = celestial_retirement_law - index = 1 - - flag = celestial_retirement_age_1 - flag = celestial_retirement_law - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = have_celestial_bureaucracy_1_or_higher - NOT = { realm_law_group_at_minimum_level = celestial_bureaucracy } - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_retirement_law_1 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = celestial_retirement_law_1 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - -celestial_retirement_law_2 = { - law_group_type = celestial_retirement_law - index = 2 - - flag = celestial_retirement_age_2 - flag = celestial_retirement_law - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = have_celestial_bureaucracy_1_or_higher - NOT = { realm_law_group_at_minimum_level = celestial_bureaucracy } - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_retirement_law_2 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = celestial_retirement_law_2 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - -celestial_retirement_law_3 = { - law_group_type = celestial_retirement_law - index = 3 - - flag = celestial_retirement_age_3 - flag = celestial_retirement_law - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = have_celestial_bureaucracy_1_or_higher - NOT = { realm_law_group_at_minimum_level = celestial_bureaucracy } - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_retirement_law_3 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = celestial_retirement_law_3 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - -celestial_retirement_law_4 = { - law_group_type = celestial_retirement_law - index = 4 - - flag = celestial_retirement_age_4 - flag = celestial_retirement_law - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = have_celestial_bureaucracy_1_or_higher - NOT = { realm_law_group_at_minimum_level = celestial_bureaucracy } - } - } - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_retirement_law_4 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = no - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = celestial_retirement_law_4 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - pass_cost = { - prestige = { - add = admin_law_prestige_cost - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - -celestial_retirement_law_5 = { - law_group_type = celestial_retirement_law - index = 5 - - flag = celestial_retirement_age_5 - flag = celestial_retirement_law - - can_keep = { - realm_law_use_celestial_bureaucracy = yes - trigger_if = { - limit = { should_synchronize_liege_law = yes } - liege = { has_realm_law = celestial_retirement_law_5 } - } - } - - can_pass = { - trigger_if = { - limit = { - should_synchronize_liege_law = yes - liege = { has_realm_law = celestial_retirement_law_5 } - } - custom_tooltip = { - text = imperial_bureaucracy_pending_law_change - always = no - } - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 0 - } -} - - -# BORDER WARS -top_liege_redirected_to_border_wars_law = { - law_group_type = border_wars_laws - index = 0 - - flag = top_liege_redirected_to_border_wars_law - - can_keep = { - is_landed = yes - highest_held_title_tier >= tier_duchy - #Empire or lower tier - highest_held_title_tier < tier_hegemony - #Small realm size - sub_realm_size < border_war_sized_realm_value - #Not an antagonitsic house - house ?= { - NOT = { has_house_unity_stage = antagonistic } - } - #Not defending in any civil wars - NOT = { - any_character_war = { - primary_defender = root - using_civil_war_cb_trigger = yes - } - } - } - - modifier = { can_vassals_be_attacked = no } - - ai_will_do = { - value = 0 - } -} - -top_liege_not_redirected_to_border_wars_law = { - law_group_type = border_wars_laws - index = 1 - - flag = top_liege_not_redirected_to_border_wars_law - - can_keep = { - is_independent_ruler = yes - is_landed = yes - highest_held_title_tier >= tier_duchy - custom_description = { - text = border_wars_laws_triggers - value = sub_realm_size - OR = { - #hegemonies - highest_held_title_tier >= tier_hegemony - #any large realm - sub_realm_size >= border_war_sized_realm_value - #antagonistic houses - house ?= { - has_house_unity_stage = antagonistic - } - #defending in a civil war - any_character_war = { - primary_defender = root - using_civil_war_cb_trigger = yes - } - } - } - } - - should_start_with = { - OR = { - #hegemonies - highest_held_title_tier >= tier_hegemony - #any large realm - sub_realm_size >= border_war_sized_realm_value - #antagonistic houses - house ?= { - has_house_unity_stage = antagonistic - } - #defending in a civil war - any_character_war = { - primary_defender = root - using_civil_war_cb_trigger = yes - } - } - } - - modifier = { can_vassals_be_attacked = yes } - - ai_will_do = { - value = 0 - } -} - - -# REGENCY -grand_chancellor_law = { - law_group_type = grand_secretariat_laws - index = 0 - - flag = grand_chancellor_law - can_have = { - has_title = title:h_china - government_has_flag = government_is_celestial - } - can_pass = { - exists = title:e_minister_chancellor.holder - OR = { - situation:dynastic_cycle ?= { - situation_current_phase = situation_dynastic_cycle_phase_stability_advancement - } - is_movement_in_power = { - MOVEMENT = advancement_movement - } - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - - on_pass = { - hidden_effect = { - designate_diarch = title:e_minister_chancellor.holder - diarch = { - depose_diarch = yes - } - } - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = 10 - if = { - limit = { - is_movement_in_power = { - MOVEMENT = advancement_movement - } - } - add = 1 - } - if = { - limit = { - situation:dynastic_cycle ?= { - situation_current_phase = situation_dynastic_cycle_phase_stability_expansion - } - } - add = -10 - } - if = { - limit = { - title:e_minister_grand_marshal.holder = { - is_ai = no - NOT = { has_court_position = favored_minister_court_position } - } - } - add = 20 - } - if = { - limit = { - diarch = { - has_variable = asked_to_be_secretary_director - } - } - add = -1000 - } - } -} - -grand_marshal_law = { - law_group_type = grand_secretariat_laws - index = 1 - - flag = grand_marshal_law - can_have = { - has_title = title:h_china - government_has_flag = government_is_celestial - } - - can_pass = { - exists = title:e_minister_grand_marshal.holder - situation:dynastic_cycle ?= { - NOR = { - situation_current_phase = situation_dynastic_cycle_phase_stability_advancement - situation_current_phase = situation_dynastic_cycle_phase_instability - } - situation_participant_group:expansion_movement ?= { - save_temporary_scope_as = my_movement - - custom_tooltip = { - text = my_movement_is_not_in_power - exists = var:movement_favored - } - } - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - - on_pass = { - hidden_effect = { - designate_diarch = title:e_minister_grand_marshal.holder - diarch = { - depose_diarch = yes - } - } - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = -2 - if = { - limit = { - is_movement_in_power = { - MOVEMENT = expansion_movement - } - } - add = 1 - } - if = { - limit = { - title:e_minister_chancellor.holder ?= { - is_ai = no - NOT = { has_court_position = favored_minister_court_position } - } - } - add = 20 - } - if = { - limit = { - exists = title:e_minister_grand_marshal.holder - title:e_minister_grand_marshal.holder.merit_level >= root.diarch.merit_level - title:e_minister_grand_marshal.holder.merit >= root.diarch.merit - } - add = 1 - } - if = { - limit = { - exists = root.diarch.var:movement_power - exists = var:movement_power - } - if = { - limit = { - var:movement_power >= root.diarch.var:movement_power - } - add = 1 - } - else = { - add = -1 - } - } - if = { - limit = { - diarch = { - has_variable = asked_to_be_secretary_director - } - } - add = -1000 - } - } -} - -grand_censor_law = { - law_group_type = grand_secretariat_laws - index = 2 - - flag = grand_censor_law - can_have = { - has_title = title:h_china - government_has_flag = government_is_celestial - } - - can_pass = { - exists = title:e_minister_censor.holder - situation:dynastic_cycle ?= { - NOR = { - situation_current_phase = situation_dynastic_cycle_phase_stability_expansion - situation_current_phase = situation_dynastic_cycle_phase_stability_advancement - } - } - situation:dynastic_cycle.situation_participant_group:conservative_movement ?= { - save_temporary_scope_as = my_movement - - custom_tooltip = { - text = my_movement_is_not_in_power - exists = var:movement_favored - } - } - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - - on_pass = { - hidden_effect = { - designate_diarch = title:e_minister_censor.holder - diarch = { - depose_diarch = yes - } - } - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { - value = -2 - if = { - limit = { - is_movement_in_power = { - MOVEMENT = conservative_movement - } - } - add = 1 - } - if = { - limit = { - title:e_minister_chancellor.holder = { - is_ai = no - NOT = { has_court_position = favored_minister_court_position } - } - } - add = 20 - } - if = { - limit = { - exists = title:e_minister_censor.holder - title:e_minister_censor.holder.merit_level >= root.diarch.merit_level - title:e_minister_censor.holder.merit >= root.diarch.merit - } - add = 1 - } - if = { - limit = { - exists = root.diarch.var:movement_power - exists = var:movement_power - } - if = { - limit = { - var:movement_power >= root.diarch.var:movement_power - } - add = 1 - } - else = { - add = -1 - } - } - if = { - limit = { - diarch = { - has_variable = asked_to_be_secretary_director - } - } - add = -1000 - } - } -} - - -candidate_score_merit_law = { - law_group_type = candidate_score_laws - index = 0 - - flag = candidate_score_merit_law - can_have = { - has_title = title:h_china - government_has_flag = government_is_celestial - } - can_pass = { - NOT = { - is_movement_in_power = { - MOVEMENT = conservative_movement - } - } - can_pass_candidate_score_merit_law_trigger = yes - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - - pass_cost = { - influence = 1000 - treasury = { - value = realm_size - multiply = 10 - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { #AI can only do it if convinced through Movement Petition - value = 0 - } -} - -candidate_score_prestige_law = { - law_group_type = candidate_score_laws - index = 1 - - flag = candidate_score_prestige_law - can_have = { - has_title = title:h_china - government_has_flag = government_is_celestial - } - - can_pass = { - is_movement_in_power = { - MOVEMENT = conservative_movement - } - can_pass_candidate_score_prestige_law_trigger = yes - custom_tooltip = { - text = admin_law_cooldown_desc - NOT = { has_variable = admin_law_cooldown } - } - } - - pass_cost = { - influence = 1000 - treasury = { - value = realm_size - multiply = 10 - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = admin_law_cooldown - years = @admin_law_cooldown_value - } - } - - ai_will_do = { #AI can only do it if convinced through Movement Petition - value = 0 - } -} - - -budget_allocation_salary_0 = { - law_group_type = budget_allocation_salary_law - index = 0 - - shown_in_encyclopedia = no - - flag = salary_budget_law_major_negative_impact - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.0 - - vassal_opinion = -30 - vassal_tax_mult = -0.3 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 4 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_5 = { - law_group_type = budget_allocation_salary_law - index = 1 - - shown_in_encyclopedia = no - - flag = salary_budget_law_major_negative_impact - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.05 - - vassal_opinion = -25 - vassal_tax_mult = -0.25 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 4 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_10 = { - law_group_type = budget_allocation_salary_law - index = 2 - - shown_in_encyclopedia = no - - flag = salary_budget_law_major_negative_impact - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.10 - - vassal_opinion = -20 - vassal_tax_mult = -0.20 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 3 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_15 = { - law_group_type = budget_allocation_salary_law - index = 3 - - shown_in_encyclopedia = no - - flag = salary_budget_law_major_negative_impact - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.15 - - vassal_opinion = -15 - vassal_tax_mult = -0.15 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 2 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_20 = { - law_group_type = budget_allocation_salary_law - index = 4 - - shown_in_encyclopedia = no - - flag = salary_budget_law_major_negative_impact - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.20 - - vassal_opinion = -10 - vassal_tax_mult = -0.1 - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 1 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_25 = { - law_group_type = budget_allocation_salary_law - index = 5 - - shown_in_encyclopedia = no - - flag = salary_budget_law_minor_negative_impact - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.25 - - vassal_opinion = -5 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_30 = { - law_group_type = budget_allocation_salary_law - index = 6 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - should_start_with = { - always = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.30 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_35 = { - law_group_type = budget_allocation_salary_law - index = 7 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.35 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_40 = { - law_group_type = budget_allocation_salary_law - index = 8 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.40 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_45 = { - law_group_type = budget_allocation_salary_law - index = 9 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.45 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_50 = { - law_group_type = budget_allocation_salary_law - index = 10 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.50 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_55 = { - law_group_type = budget_allocation_salary_law - index = 11 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.55 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_60 = { - law_group_type = budget_allocation_salary_law - index = 12 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.60 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_65 = { - law_group_type = budget_allocation_salary_law - index = 13 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.65 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_70 = { - law_group_type = budget_allocation_salary_law - index = 14 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.70 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_75 = { - law_group_type = budget_allocation_salary_law - index = 15 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.75 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_80 = { - law_group_type = budget_allocation_salary_law - index = 16 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.80 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_85 = { - law_group_type = budget_allocation_salary_law - index = 17 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.85 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_90 = { - law_group_type = budget_allocation_salary_law - index = 18 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.90 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_95 = { - law_group_type = budget_allocation_salary_law - index = 19 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 0.95 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_salary_100 = { - law_group_type = budget_allocation_salary_law - index = 20 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_salary_budget - is_independent_ruler = yes - } - - modifier = { - treasury_salary_budget_allocation = 1.00 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - - -budget_allocation_ministry_0 = { - law_group_type = budget_allocation_ministry_law - index = 0 - - shown_in_encyclopedia = no - - flag = ministry_budget_law_major_negative_impact - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0 - - vassal_tax_mult = -0.2 - monthly_legitimacy_add = -20 - courtly_opinion = -30 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 4 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_5 = { - law_group_type = budget_allocation_ministry_law - index = 1 - - shown_in_encyclopedia = no - - flag = ministry_budget_law_major_negative_impact - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.05 - - vassal_tax_mult = -0.15 - monthly_legitimacy_add = -15 - courtly_opinion = -25 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 4 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_10 = { - law_group_type = budget_allocation_ministry_law - index = 2 - - shown_in_encyclopedia = no - - flag = ministry_budget_law_major_negative_impact - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.10 - - vassal_tax_mult = -0.1 - monthly_legitimacy_add = -10 - courtly_opinion = -20 - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 3 - } - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_15 = { - law_group_type = budget_allocation_ministry_law - index = 3 - - shown_in_encyclopedia = no - - flag = ministry_budget_law_major_negative_impact - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.15 - - vassal_tax_mult = -0.05 - monthly_legitimacy_add = -5 - courtly_opinion = -15 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 1 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_20 = { - law_group_type = budget_allocation_ministry_law - index = 4 - - shown_in_encyclopedia = no - - flag = ministry_budget_law_minor_negative_impact - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.20 - - courtly_opinion = -10 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_25 = { - law_group_type = budget_allocation_ministry_law - index = 5 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.25 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_30 = { - law_group_type = budget_allocation_ministry_law - index = 6 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - ai_will_do = { - value = 0 - } - - should_start_with = { - always = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.30 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_35 = { - law_group_type = budget_allocation_ministry_law - index = 7 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.35 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_40 = { - law_group_type = budget_allocation_ministry_law - index = 8 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.40 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_45 = { - law_group_type = budget_allocation_ministry_law - index = 9 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.45 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_50 = { - law_group_type = budget_allocation_ministry_law - index = 10 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.50 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_55 = { - law_group_type = budget_allocation_ministry_law - index = 11 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.55 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_60 = { - law_group_type = budget_allocation_ministry_law - index = 12 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.60 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_65 = { - law_group_type = budget_allocation_ministry_law - index = 13 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.65 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_70 = { - law_group_type = budget_allocation_ministry_law - index = 14 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.70 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_75 = { - law_group_type = budget_allocation_ministry_law - index = 15 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.75 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_80 = { - law_group_type = budget_allocation_ministry_law - index = 16 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.80 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_85 = { - law_group_type = budget_allocation_ministry_law - index = 17 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.85 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_90 = { - law_group_type = budget_allocation_ministry_law - index = 18 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.9 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_95 = { - law_group_type = budget_allocation_ministry_law - index = 19 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 0.95 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_ministry_100 = { - law_group_type = budget_allocation_ministry_law - index = 20 - - shown_in_encyclopedia = no - - can_keep = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - treasury_ministry_budget_allocation = 1.0 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - - -budget_allocation_military_0 = { - law_group_type = budget_allocation_military_law - index = 0 - - shown_in_encyclopedia = no - - flag = military_budget_law_major_negative_impact - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0 - - glory_hound_opinion = -35 - army_damage_mult = -0.4 - army_toughness_mult = -0.4 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 4 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_5 = { - law_group_type = budget_allocation_military_law - index = 1 - - shown_in_encyclopedia = no - - flag = military_budget_law_major_negative_impact - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.05 - - glory_hound_opinion = -30 - army_damage_mult = -0.3 - army_toughness_mult = -0.3 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 2 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_10 = { - law_group_type = budget_allocation_military_law - index = 2 - - shown_in_encyclopedia = no - - flag = military_budget_law_major_negative_impact - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.10 - - glory_hound_opinion = -25 - army_damage_mult = -0.2 - army_toughness_mult = -0.2 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - on_pass = { - add_legitimacy = { - value = treasury_budget_law_change_legitimacy_loss_base - multiply = 1 - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_15 = { - law_group_type = budget_allocation_military_law - index = 3 - - shown_in_encyclopedia = no - - flag = military_budget_law_major_negative_impact - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.15 - - glory_hound_opinion = -20 - army_damage_mult = -0.1 - army_toughness_mult = -0.1 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_20 = { - law_group_type = budget_allocation_military_law - index = 4 - - shown_in_encyclopedia = no - - flag = military_budget_law_minor_negative_impact - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - should_start_with = { - always = yes - } - - modifier = { - treasury_military_budget_allocation = 0.20 - - glory_hound_opinion = -10 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_25 = { - law_group_type = budget_allocation_military_law - index = 5 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.25 - - glory_hound_opinion = -5 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_30 = { - law_group_type = budget_allocation_military_law - index = 6 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - ai_will_do = { - value = 0 - } - - modifier = { - treasury_military_budget_allocation = 0.30 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_35 = { - law_group_type = budget_allocation_military_law - index = 7 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.35 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_40 = { - law_group_type = budget_allocation_military_law - index = 8 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.40 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_45 = { - law_group_type = budget_allocation_military_law - index = 9 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.45 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_50 = { - law_group_type = budget_allocation_military_law - index = 10 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.50 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_55 = { - law_group_type = budget_allocation_military_law - index = 11 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.55 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_60 = { - law_group_type = budget_allocation_military_law - index = 12 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.60 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_65 = { - law_group_type = budget_allocation_military_law - index = 13 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.65 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_70 = { - law_group_type = budget_allocation_military_law - index = 14 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.70 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_75 = { - law_group_type = budget_allocation_military_law - index = 15 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.75 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_80 = { - law_group_type = budget_allocation_military_law - index = 16 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.8 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_85 = { - law_group_type = budget_allocation_military_law - index = 17 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.85 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_90 = { - law_group_type = budget_allocation_military_law - index = 18 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.9 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_95 = { - law_group_type = budget_allocation_military_law - index = 19 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 0.95 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} - -budget_allocation_military_100 = { - law_group_type = budget_allocation_military_law - index = 20 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_military_budget - is_independent_ruler = yes - } - - modifier = { - treasury_military_budget_allocation = 1.0 - } - - pass_cost = { - prestige = { - add = change_admin_budget_law_prestige_cost - } - } - - ai_will_do = { - value = 0 - } -} diff --git a/common/laws/03_imperial_policies.txt b/common/laws/03_imperial_policies.txt deleted file mode 100644 index d5dbcbfee..000000000 --- a/common/laws/03_imperial_policies.txt +++ /dev/null @@ -1,391 +0,0 @@ -##################### -# IMPERIAL POLICIES # -##################### - -@imperial_policy_laws_cooldown_value = 10 -@imperial_policy_cost_value = 500 - -defense_mobilization_law = { - law_group_type = imperial_policy_laws - index = 0 - - flag = defense_mobilization_law - - can_keep = { - realm_law_use_imperial_policy_trigger = yes - trigger_if = { - limit = { this != top_liege } - liege = { has_realm_law = defense_mobilization_law } - } - } - - can_pass = { - trigger_if = { - limit = { - top_liege = this - } - custom_tooltip = { - text = imperial_policy_laws_cooldown_desc - NOT = { has_variable = imperial_policy_laws_cooldown } - } - tgp_japan_defense_mobilization_valid_trigger = yes - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = imperial_policy_laws_cooldown - years = @imperial_policy_laws_cooldown_value - } - tgp_imperial_policy_event_effect = yes - } - - modifier = { - same_heritage_county_advantage_add = 5 - men_at_arms_maintenance = -0.15 - fort_level = 1 - hostile_raid_time = 0.15 - } - flag = governors_may_recruit_japanese_horse_archers - flag = cheaper_japanese_domicile_military_buildings - - pass_cost = { - prestige = @imperial_policy_cost_value - } - - ai_will_do = { - value = 250 - } -} - -disarmament_law = { - law_group_type = imperial_policy_laws - index = 1 - - flag = disarmament_law - flag = vassal_internal_wars_cost_doubled - flag = japan_administrative_can_build_castles - - can_keep = { - realm_law_use_imperial_policy_trigger = yes - trigger_if = { - limit = { this != top_liege } - liege = { has_realm_law = disarmament_law } - } - } - - can_pass = { - trigger_if = { - limit = { - top_liege = this - } - custom_tooltip = { - text = imperial_policy_laws_cooldown_desc - NOT = { has_variable = imperial_policy_laws_cooldown } - } - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = imperial_policy_laws_cooldown - years = @imperial_policy_laws_cooldown_value - } - tgp_imperial_policy_event_effect = yes - } - - modifier = { - men_at_arms_recruitment_cost = 0.25 - japan_feudal_government_vassal_opinion = -15 - development_growth_factor = 0.15 - } - - pass_cost = { - prestige = @imperial_policy_cost_value - } - - ai_will_do = { - value = 200 - if = { - limit = { - ai_has_warlike_personality = yes - } - value = -50 - } - if = { - limit = { government_has_flag = government_is_japan_feudal } - add = -1000 - } - } -} - -isolation_law = { - law_group_type = imperial_policy_laws - index = 2 - - flag = isolation_law - flag = better_physician_treatments - - can_keep = { - realm_law_use_imperial_policy_trigger = yes - trigger_if = { - limit = { this != top_liege } - liege = { has_realm_law = isolation_law } - } - } - - can_pass = { - trigger_if = { - limit = { - top_liege = this - } - custom_tooltip = { - text = imperial_policy_laws_cooldown_desc - NOT = { has_variable = imperial_policy_laws_cooldown } - } - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = imperial_policy_laws_cooldown - years = @imperial_policy_laws_cooldown_value - } - tgp_imperial_policy_event_effect = yes - } - - modifier = { - development_growth_factor = -0.15 - epidemic_resistance = 15 - diplomatic_range_mult = -0.15 - } - - pass_cost = { - prestige = @imperial_policy_cost_value - } - - ai_will_do = { - value = 0 - if = { - limit = { - top_liege = this - any_realm_county = { - any_county_province_epidemic = { - count >= 1 - outbreak_intensity >= apocalyptic - } - } - } - add = 200 - } - } -} - -imperial_expansion_law = { - law_group_type = imperial_policy_laws - index = 3 - - flag = imperial_expansion_law - flag = cheaper_japanese_domicile_military_buildings - - can_keep = { - realm_law_use_imperial_policy_trigger = yes - trigger_if = { - limit = { this != top_liege } - liege = { has_realm_law = imperial_expansion_law } - } - } - - can_pass = { - trigger_if = { - limit = { - top_liege = this - } - custom_tooltip = { - text = imperial_policy_laws_cooldown_desc - NOT = { has_variable = imperial_policy_laws_cooldown } - } - # Filtered with 'trigger_if' to make nicer tooltips - trigger_if = { - limit = { - NOR = { - has_realm_law = japanese_bureaucracy_2 - has_realm_law = japanese_bureaucracy_3 - } - } - has_realm_law = japanese_bureaucracy_2 - } - trigger_if = { - limit = { - NOR = { - has_realm_law = japanese_bureaucracy_2 - has_realm_law = japanese_bureaucracy_3 - } - } - has_realm_law = japanese_bureaucracy_3 - } - is_at_war = no - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = imperial_policy_laws_cooldown - years = @imperial_policy_laws_cooldown_value - } - tgp_imperial_policy_event_effect = yes - } - - modifier = { - mercenary_hire_cost_mult = -0.15 - men_at_arms_recruitment_cost = -0.15 - japan_administrative_government_vassal_opinion = -35 - travel_danger = 20 - } - - pass_cost = { - prestige = @imperial_policy_cost_value - } - - ai_will_do = { - value = 80 - if = { - limit = { - ai_has_warlike_personality = yes - } - add = 50 - } - if = { - limit = { government_has_flag = government_is_japan_administrative } - add = -1000 - } - } -} - -manor_reform_law = { - law_group_type = imperial_policy_laws - index = 4 - - flag = manor_reform_law - - can_keep = { - realm_law_use_imperial_policy_trigger = yes - trigger_if = { - limit = { this != top_liege } - liege = { has_realm_law = manor_reform_law } - } - } - - can_pass = { - trigger_if = { - limit = { - top_liege = this - } - custom_tooltip = { - text = imperial_policy_laws_cooldown_desc - NOT = { has_variable = imperial_policy_laws_cooldown } - } - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = imperial_policy_laws_cooldown - years = @imperial_policy_laws_cooldown_value - } - tgp_imperial_policy_event_effect = yes - } - - should_start_with = { - realm_law_use_imperial_policy_trigger = yes - } - - modifier = { - domicile_build_gold_cost = 0.25 - domicile_monthly_influence_mult = -0.25 - domicile_build_speed = 0.25 - build_gold_cost = -0.15 - build_speed = -0.15 - japan_administrative_government_vassal_opinion = -15 - } - - pass_cost = { - prestige = @imperial_policy_cost_value - } - - ai_will_do = { - value = 100 - if = { - limit = { - ai_has_builder_or_pious_builder_personality = yes - } - add = 25 - } - if = { - limit = { government_has_flag = government_is_japan_administrative } - add = -100 - } - } -} - -bandit_crackdown_law = { - law_group_type = imperial_policy_laws - index = 5 - - flag = bandit_crackdown_law - - can_keep = { - realm_law_use_imperial_policy_trigger = yes - trigger_if = { - limit = { this != top_liege } - liege = { has_realm_law = bandit_crackdown_law } - } - } - - can_pass = { - trigger_if = { - limit = { - top_liege = this - } - custom_tooltip = { - text = imperial_policy_laws_cooldown_desc - NOT = { has_variable = imperial_policy_laws_cooldown } - } - } - } - - on_pass = { - ## Set cooldown - set_variable = { - name = imperial_policy_laws_cooldown - years = @imperial_policy_laws_cooldown_value - } - tgp_imperial_policy_event_effect = yes - } - - modifier = { - city_holding_build_gold_cost = -0.1 - barons_and_minor_landholders_opinion = 15 - monthly_county_control_growth_factor = 0.05 - monthly_county_control_growth_add = 0.2 - development_growth_factor = -0.15 - travel_danger = -10 - } - - pass_cost = { - prestige = @imperial_policy_cost_value - } - - ai_will_do = { - value = 0 - if = { - limit = { capital_county.county_control <= low_county_control } - add = 150 - } - } -} diff --git a/common/laws/04_pam_ecclesiastical_laws.txt b/common/laws/04_pam_ecclesiastical_laws.txt deleted file mode 100644 index 61b437ba1..000000000 --- a/common/laws/04_pam_ecclesiastical_laws.txt +++ /dev/null @@ -1,48 +0,0 @@ -budget_allocation_cardinal_50 = { - law_group_type = budget_allocation_cardinal_law - index = 0 - - shown_in_encyclopedia = no - - can_keep = { - government_has_flag = government_uses_cardinal_budget - exists = top_superior - top_superior ?= this - } - - modifier = { - treasury_cardinal_budget_allocation = 0.50 - } - - ai_will_do = { - value = 0 - } -} - - -no_benefices = { - law_group_type = church_benefices_law - index = 0 - - # TODO remove this TIT-75491 - can_keep = { - exists = clerical_elector_title - } -} - -cardinal_standard_benefices = { - law_group_type = church_benefices_law - index = 1 - - can_keep = { - exists = clerical_elector_title - } - - modifier = { - monthly_treasury_from_cardinal_budget_base = 1.0 - } - - should_start_with = { - always = yes - } -} diff --git a/common/laws/_laws.info b/common/laws/_laws.info deleted file mode 100644 index cde7b0bd0..000000000 --- a/common/laws/_laws.info +++ /dev/null @@ -1,404 +0,0 @@ -law_name = { - - ### brief: law_group_type (key) - # what law group does this law belongs to. Mandatory. - # - law_group_type = some_group - - ### brief: index (integer) - # in what order should this law appear in the group. - # All indexes must be unique, if two are equal order of definition wins. default is 0. Can be negative - # - index = 0 - - - ### brief: can_keep ( trigger ) - # Requirements for keeping the law. If this invalidates, the law will - # be replaced with the default law (see own section) within a month. - # Also checked after changing faith since doctrinal changes are likely - # to invalidate laws. Always true if not specified. - # Root scope = ruler with the law - # - can_keep = { } - - ### brief: can_have ( trigger ) - # Requirements for adopting the law in the ruler's scope. If this is true, - # the character is allowed to adopt the law and the law will show as - # available (but it can be currently disabled if can_pass is false). - # Always true if not specified. - # Root scope = ruler for whom we are checking the law - # - can_have = { } - - ### brief: can_pass ( trigger ) - # Requirements for adopting the law in the ruler's scope. For more - # temporary conditions, e.g. being at war ("I can have the law, but - # can't pass it right now"). Always true if not specified. - # Root scope = ruler for whom we are checking the law - # - can_pass = { } - - ### brief: potential ( trigger ) - # If false, the law is not listed in the succession law change window. - # Always true if not specified. - # Root scope = ruler for whom we are checking the law - # - potential = { } - - ### brief: requires_approve ( trigger ) - # Whether passing this law is shown as requiring vassal approval in the succession law change window. - # Always true if not specified. - # Root scope = ruler for whom we are checking the law - # - requires_approve = { } - - ### brief: should_start_with ( trigger ) - # If these conditions are true, this is a valid law for a ruler to start - # with. Note that it always includes the can_keep check. - # Root scope = ruler for whom we are checking the law - # - should_start_with = { } - - ### brief: can_title_have ( trigger ) - # Requirements for titles being able to have this law. Always false if - # not specified. - # Root scope = title for which we are checking the law - # - can_title_have = { } - - ### brief: can_realm_have ( trigger ) - # Requirements for characters being able to apply this law at realm level. - # Always false if not specified. - # By default, the following succession orders imply they can be applied to the whole realm: - # * inheritance - # * theocratic - # * company - # * generate - # * appointment - # Root scope = character for which we are checking the law - # - can_realm_have = { } - - ### brief: should_show_for_title ( trigger ) - # Should this law be shown in the UI for titles? - # Root scope = title - # - should_show_for_title = { } - - ### brief: can_remove_from_title ( trigger ) - # Requirements for clearing this law from a title. Always true if not specified. - # Root scope = title - # - can_remove_from_title = { } - - ### brief: pass_cost ( scripted cost ) - # The cost of enacting this law - # Root scope = ruler wanting to pass the law - # - pass_cost = { gold/piety/prestige = ... } - - ### brief: revoke_cost ( scripted cost ) - # The cost of revoking or clearing this law - # Root scope = ruler wanting to revoke the law - # - revoke_cost = { gold/piety/prestige = ... } - - ### brief: modifier ( character modifier ) - # Modifier applied to the ruler when this law is active - # - modifier = { } - - ### brief: flag ( flag ) - # See below for flags treated specially. Can be checked in script - # with has_realm_law_flag = some_arbitrary_flag. - # See below for flags treated specially in code. - # - flag = some_arbitrary_flag - - ### brief: triggered_flag ( flag ) - # Checks and adds flag only if the trigger's condition is met. - # Both trigger and flag *must* be specified within this block. - # - triggered_flag = { - - # Some trigger, root is the ruler character scope - # - trigger = { ... } - - # See below for flags treated specially in code. Can be checked in - # script with has_realm_law_flag = some_arbitrary_flag - # - flag = some_arbitrary_flag - } - - ### brief: shown_in_encyclopedia ( bool, optional ) - # If this law should show up in the Encyclopedia - # default = yes - # - shown_in_encyclopedia = yes - - ### brief: title_allegiance_opinion ( int, optional ) - # Opinion that vassals with title allegiance to a title with this law have of their liege. - # default = 0 - # - title_allegiance_opinion = 0 - - ### brief: widget_name ( string, optional ) - # Name of a GUI widget that is shown for this law in the law GUI (CGuiLaw.IsWidgetVisible). - # - widget_name = some_widget - - ### brief: pass_phrase ( loc key, optional ) - # Loc key for the pass law title. $LAW$ is available. - # default = PASS_LAW_TITLE_DEFAULT - # - pass_phrase = some_loc_key - - ### brief: confirmation_title ( loc key, optional ) - # Loc key for the title of the add law confirmation. $LAW$ is available. - # default = ADD_LAW_CONFIRMATION_TITLE_DEFAULT - # - confirmation_title = some_loc_key - - ### brief: confirmation_button_text ( loc key, optional ) - # Loc key for the accept button of the add law confirmation. $LAW$ is available. - # default = ADD_LAW_CONFIRMATION_ACCEPT_DEFAULT - # - confirmation_button_text = some_loc_key - - ### brief: on_pass ( effect ) - # Effect run just before law change. - # Effect run on the ruler when the law is added. Does *NOT* get run - # when default laws are initialized, nor when inheriting a law from - # someone else. - # Root = ruler in question - # If this is done on a title, the title is accessible as scope:title - # - on_pass = { } - - ### brief: on_after_pass ( effect ) - # Effect run just after law change. - # Effect run on the ruler when the law is added. Does *NOT* get run - # when default laws are initialized, nor when inheriting a law from - # someone else. - # Root = ruler in question - # If this is done on a title, the title is accessible as scope:title - # - on_after_pass = { } - - ### brief: on_revoke ( effect ) - # Effect run on ruler when the law is removed. Does *NOT* get run when - # law is removed due to inheriting a law from someone else. - # Root = ruler in question - # If this is done on a title, the title is accessible as scope:title - # - on_revoke = { } - - ### brief: succession ( struct, optional ) - # Succession rules. Any new law with a rule set will override the - # previous law's rule set. - # Overriding is in law definition order - # - succession = { - - ### brief: order_of_succession ( enum ) - # Which order of succession ( provided by code ) does this law use? - # - # Options: - # inheritance - # election - # appointment ( requires traversal, division and rank be undefined ) - # theocratic - # company - # generate - # generate_from_template - # player_heir - # noble_family - # - order_of_succession = inheritance - - ### brief: title_division ( enum ) - # Used to determine how titles are split during succession - # Requires order_of_succession = inheritance or noble_family - # - # Options: - # partition ( only available when traversal_order = children ) - # single_heir ( only valid for inheritance and noble_family order_of_succession ) - # - title_division = partition - - ### brief: traversal_order ( enum ) - # Determines which set of characters is considered when building - # the line of succession. - # - # Options: - # children( may only be defined if title_division = partition ) - # dynasty - # dynasty_house - # - traversal_order = children/dynasty_house/dynasty - - ### brief: rank ( enum ) - # Determines how characters in the line of succession are sorted - # - # Options: - # oldest - # youngest - # - rank = oldest - - ### brief: pool_character_config ( database key, situational ) - # Entry in common/pool_character_selectors, used when choosing a - # character from the pool or generating a new character. - # Only available for theocratic, company, and generate. - # - pool_character_config = key - - ### brief: election_type ( database key, situational ) - # Entry in common/succession_election, used to determine which type - # of election should be used for succession. - # Only available for election. - # - election_type = key - - ### brief: appointment_type ( database key, situational ) - # Entry in common/succession_appointment, used to determine which type - # of appointment should be used for succession. - # Only available for appointment. - # - appointment_type = key - - - ### Generic Rules - - ### brief: gender_law ( enum, optional ) - # Used to determine which gender(s) are valid for succession. - # - # Options: - # male_only - # male_preference - # equal - # female_preference - # female_only - # - gender_law = equal - - ### brief: faith ( enum, optional ) - # Used to determine which faith(s) are valid for succession. - # If no character fulfilling this requirement is found, the restriction - # is ignored (but titles with the flag destroy_if_invalid_heir = yes - # will be destroyed). - # - # Options: - # same_rite - # same_faith - # same_religion - # same_family - # - faith = same_faith - - ### brief: create_primary_tier_titles ( bool, optional ) - # If set and under partition, titles you can create of your primary tier - # ( up to your number of secondary heirs ) will be created for free, - # resulting in a more split-up realm - # default = no - # - create_primary_tier_titles = no - - ### brief: primary_heir_minimum_share ( fixed point, optional ) - # If defined, the primary heir will get at least this portion of - # titles, which means if there's a lot of heirs the primary still - # gets a guaranteed amount of land - # - primary_heir_minimum_share = 0.5 - - ### brief: exclude_rulers ( bool, optional ) - # If set, the title can not be inherited by rulers (anyone with titles) - # default = no - # - exclude_rulers = no - - ### brief: limit_to_courtiers ( bool, optional ) - # If set, only immediate courtiers and away courtiers of a ruler - # will be allowed to inherit - # default = no - # - limit_to_courtiers = no - - ### brief : resign_outside_realm ( bool, optional ) - # When set to 'yes', existing rulers who become heirs on succession to equal or higher tier title - # and previously were not vassals of former title holder, will pass their former titles to their own heirs - # Main use case - prevent Papal states from growing when existing clergy rulers are elected new popes - # default = no - # - resign_outside_realm = no - - ### brief : required_heir_government_types ( government type key, optional, repeatable ) - # Each entry adds one government type. If any are set, only characters with one of these governments are valid heirs. - # With order_of_succession = generate_from_template, the first government type is used for the generated holder. - # - required_heir_government_types = government_key - } - - ### brief: ai_will_do ( value ) - # Script value in the ruler scope. If above 0, the AI will enact this - # law if able. Law enactment is checked in the RARE_TASK_TICK. If multiple - # laws are possible, the AI will enact the one with the highest score. - # Root scope = ruler in question - # - ai_will_do = { ... } -} - -# Multiple laws can be defined in a single file. -another_law_name = {} - -### NOTES ### - -### Inheritance ### -Any heir that goes up one or more tier due to inheritance gets the laws of the dead ruler. -Note that currently the law conditions are not checked in any way for law inheritance. - -### Default law ### -All rulers have a single law from each group. -If a group has a default set, that law will be checked first. -Otherwise, or if it is invalid, the laws are checked in definition order. -The first checked law where "should_start_with" returns true (or does not exist) gets used. Note that "can_pass" is ignored entirely when determining a default law. -When a default law is set, "on_pass" is *not* executed - -### Title Succession Laws ### -Laws are usually defined for realm. However some succession laws are valid for titles. -This is primary based on order_of_succession: - - Title only: - player_heir - election - noble_family - generate_from_template - Realm only: - inheritance ( title_division = partition ) - theocratic - company - generate - Realm & Title: - inheritance ( title_division = single_heir ) - appointment - -### Associated Localization ### -The key of the law will be used as its name. E.G., law_name: "Law Name" -The key plus "_effects" can optionally be defined to provide custom effects. E.G., law_name_effects: "Does some law thingy" -The key plus "_effects_not_in_prev" can optionally be defined to provide custom effects that should *not* be included when listing effects inherited from earlier laws. E.G., law_name_effects_not_in_prev: "Does some law thingy" - -CHARACTER.GetActiveLawInGroupWithFlag('realm_law') - Will get the character's active law in a group. The group must have the given flag. Note that it does not work for dead characters - -### Hardcoded Flags ### -Some flags have special meaning, and are used by the game code. - -Law Groups: -flag = realm_law - Will show up in My Realm window - -Laws: -flag = titles_cannot_leave_realm_on_succession - Disables titles leaving realm when received on succession by someone outside the realm - the respective heirs will be disqualified from succession -flag = men_can_have_multiple_spouses - Allows multiple spouses (if also allowed by faith) -flag = men_can_have_consorts - Allows consorts (if also allowed by faith) -flag = women_can_have_multiple_spouses - Allows multiple spouses (if also allowed by faith) -flag = women_can_have_consorts - Allows consorts (if also allowed by faith) diff --git a/history/titles/NEOW_other_titles.txt b/history/titles/NEOW_other_titles.txt index d253d78fe..552f28dfe 100644 --- a/history/titles/NEOW_other_titles.txt +++ b/history/titles/NEOW_other_titles.txt @@ -2,7 +2,7 @@ e_britannia = { 2212.1.1={ holder = britannia_arthur_crowtemple # Arthwr Crowtemple - government = british_administrative_government + government = administrative_government change_development_level = 3 } 2236.8.4={ @@ -22,7 +22,7 @@ e_britannia = { } 2530.1.1 = { holder = britannia_cyflymarhyan_frydyryk #Frydyryk Cyflymarhyan - government = british_administrative_government + government = administrative_government effect = { add_title_law = province_war_law_1 if = { @@ -48,32 +48,6 @@ e_britannia = { } } - -k_royal_household = { # Ceremonial Emperor/Ten'nō - 500.1.1 = { - liege = e_britannia - government = british_administrative_government - effect = { - set_variable = { - name = ceremonial_title - value = title:e_britannia - } - add_title_law = single_heir_succession_law # Regency inherited separately - } - } - 2555.1.1 = { - holder = britannia_windsor_george - effect = { - if = { # Chinese influence on bureaucracy and literature - limit = { - exists = holder - has_dlc_feature = royal_court - } - - } - } - } -} e_europa = { 2525.1.1 = { holder = benelux_oranje_nassau_weilburg_leopold #Leopold BONW diff --git a/history/titles/k_england.txt b/history/titles/k_england.txt index a750283e8..e51ce15d9 100644 --- a/history/titles/k_england.txt +++ b/history/titles/k_england.txt @@ -9,7 +9,7 @@ k_england = { } 2530.1.1 = { holder = britannia_cyflymarhyan_frydyryk #Frydyryk Cyflymarhyan - government = british_administrative_government + government = administrative_government } } @@ -22,14 +22,14 @@ d_bedford = { } 2530.1.1 = { holder = britannia_cyflymarhyan_frydyryk #Frydyryk Cyflymarhyan - government = british_administrative_government + government = administrative_government } } d_buckingham = { 2539.1.1 = { holder = britannia_windsor_george #George Windsor - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -38,7 +38,7 @@ d_buckingham = { d_leicester = { 2510.1.1 = { holder = britannia_solomonid_arthur - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -50,7 +50,7 @@ d_black_country = { } 2554.10.22 = { holder = britannia_adam_duleep - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -65,7 +65,7 @@ d_london = { } 2530.1.1 = { holder = britannia_cyflymarhyan_frydyryk #Frydyryk Cyflymarhyan - government = british_administrative_government + government = administrative_government } } @@ -78,7 +78,7 @@ c_london = { d_solent = { 2543.1.1 = { holder = britannia_said_palamedes #Palamedes Al-Said - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -92,7 +92,7 @@ c_isle_of_wight = { d_somerset = { 2550.1.1 = { holder = britannia_wellesley_oliver #Oliver Wellesley - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -109,7 +109,7 @@ c_cornwall = { } 2554.1.1 = { holder = britannia_paleologus_theodore - government = british_administrative_government + government = administrative_government liege = d_cornwall } } @@ -123,7 +123,7 @@ c_devon = { d_nottingham = { 2552.1.1 = { holder = britannia_elgarh_robyrt - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -131,7 +131,7 @@ d_nottingham = { d_canterbury = { 2545.1.1 = { holder = britannia_giray_basenzhabu #Mohamydd Giray - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -139,7 +139,7 @@ d_canterbury = { d_cornwall = { 2553.1.1 = { holder = britannia_flamank_tristan #Tristan Flamank - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -161,7 +161,7 @@ d_channel_islands = { 2551.8.5 = { liege = e_britannia holder = britannia_fitsosbern_horatio #Horatio de Normandy - government = british_administrative_government + government = administrative_government } } @@ -176,7 +176,7 @@ c_cambridgeshire = { d_gibraltar = { 2550.1.1 = { holder = hispania0024 - government = british_administrative_government + government = administrative_government liege = e_britannia change_development_level = 10 } @@ -186,7 +186,7 @@ d_gibraltar = { c_gibraltar = { 2550.1.1 = { holder = hispania0024 - government = british_administrative_government + government = administrative_government } } diff --git a/history/titles/k_northumberland.txt b/history/titles/k_northumberland.txt index e51518383..fb0bae483 100644 --- a/history/titles/k_northumberland.txt +++ b/history/titles/k_northumberland.txt @@ -10,14 +10,14 @@ d_lancaster = { 2499.1.1 = { holder = britannia_starr_cory #Cory Starr - government = british_administrative_government + government = administrative_government liege = e_britannia } } d_cumbria= { 2545.1.1 = { holder = britannia_cartney_hamish - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -65,7 +65,7 @@ c_northumberland = { #c_cumberland = { # 2520.1.1 = { # holder = britannia_cartney_hamish -# government = british_administrative_government +# government = administrative_government # liege = e_britannia # } #} @@ -73,7 +73,7 @@ c_northumberland = { #c_westmorland = { # 2520.1.1 = { # holder = britannia_harriswn_hwyll -# government = british_administrative_government +# government = administrative_government # liege = e_britannia # } #} @@ -131,7 +131,7 @@ c_nottinghamshire = { c_derby = { 2553.1.1 = { # holder = britannia_starr_thwmys -# government = british_administrative_government +# government = administrative_government # liege = e_britannia change_development_level = 11 } diff --git a/history/titles/k_scotland.txt b/history/titles/k_scotland.txt index 0c17b2a3e..9420d653c 100644 --- a/history/titles/k_scotland.txt +++ b/history/titles/k_scotland.txt @@ -4,7 +4,7 @@ k_scotland = { } # 2540.1.1 = { # holder = britannia_wall_williaim # Williaim Wall -# government = british_administrative_government +# government = administrative_government # liege = e_britannia # } } @@ -12,7 +12,7 @@ k_scotland = { d_strathclyde = { 2540.1.1 = { holder = britannia_wall_williaim # Williaim Wall - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -72,7 +72,7 @@ c_buchan = { d_galloway = { 2540.1.1 = { holder = britannia_hendderswn_ddaiwyis # Ddaiwyis Hendderswn - government = british_administrative_government + government = administrative_government liege = e_britannia } } diff --git a/history/titles/k_wales.txt b/history/titles/k_wales.txt index b6d39fb45..1cfd3da52 100644 --- a/history/titles/k_wales.txt +++ b/history/titles/k_wales.txt @@ -2,7 +2,7 @@ d_gwent = { 2539.1.1 = { holder = britannia_rholls_rhoycy_bynjamyn #Bynjamyn Rolls-Rhoycy - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -10,7 +10,7 @@ d_gwent = { d_hereford = { 2554.1.1 = { holder = britannia_tudorh_hynrhy #Hynrhy Tudorh - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -24,7 +24,7 @@ k_wales = { d_gwynedd = { 2540.1.1 = { holder = france_spatstone_mary - government = british_administrative_government + government = administrative_government liege = e_britannia } } @@ -39,7 +39,7 @@ d_powys = { d_deheubarth = { 2554.1.1 = { holder = britannia_juny_bryan - government = british_administrative_government + government = administrative_government liege = e_britannia } }