estate_exarches_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 1 } }
	loyalty = 0.05
	influence = 0.10
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 10 # Harb's Autonomy Overhaul
		governing_capacity_modifier = 0.05 # Harb's Autonomy Overhaul
		global_autonomy = 0.02 # Harb's Autonomy Overhaul
		expand_administration_cost = -0.25 # Harb's Autonomy Overhaul, BR changed from -0.05 to -0.25 because better governors. Good adjustment according to Harbivore
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_exarches
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_exarches_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_exarches_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_exarches_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_exarches_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_exarches_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
		modifier = { #BTIP Added
			factor = 0.75
			has_estate_privilege = estate_peasants_land_rights
		}
		modifier = { #BR Added
			factor = 0.75
			has_estate_privilege = estate_generals_land_rights
		}
		modifier = { #BR Added
			factor = 0.75
			has_estate_privilege = estate_knightly_orders_land_rights
		}
	}
}

estate_exarches_integrated_viceroys = {
	icon = privilege_integrated_viceroys
	land_share = 5
	max_absolutism = -10
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 2 } }
	loyalty = -0.05
	influence = 0.1
	is_valid = {
	}
	can_select = {
		estate_influence = {
			estate = estate_exarches
			influence = 40
		}
	}
	on_granted = {
	}
	modifier_by_land_ownership = { 
		governing_capacity_modifier = 0.2
	}
	penalties = {
	}
	benefits = {
	}
	is_valid = {
	}
	can_select = {
	}
	ai_will_do = {
		factor = 0
	}	
}

estate_exarches_establish_new_viceroy_seat = {
	icon = privilege_establish_new_viceroy_seat
	land_share = 5
	is_valid = {
		NOT = { has_estate_privilege = estate_exarches_establish_new_viceroy_seat }
	}
	can_select = {
		crown_land_share = 5
	}
	on_granted = {
		add_estate_loyalty = {
			estate = estate_exarches
			loyalty = 10
		}
		custom_tooltip = estate_exarches_establish_new_viceroy_seat_effect_tooltip
		# hidden_effect = {
			# remove_estate_privilege = estate_exarches_establish_new_viceroy_seat
		# }
	}
	on_revoked = {
	}
	on_invalid = {
	}
	modifier_by_land_ownership = {
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}	
}

estate_exarches_dynastic_exarches = {
	icon = privilege_dynastic_exarches
	land_share = 0
	max_absolutism = -5
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 1 } }
	loyalty = 0.05
	influence = 0.1
	is_valid = {
	}
	can_select = {
		estate_influence = {
			estate = estate_exarches
			influence = 40
		}
	}
	on_granted = {
		custom_tooltip = estate_exarches_dynastic_exarches_effect_tooltip
	}
	on_revoked = {
		custom_tooltip = estate_exarches_dynastic_exarches_revoke_effect_tooltip
	}
	on_invalid = {
		custom_tooltip = estate_exarches_dynastic_exarches_revoke_effect_tooltip
	}
	modifier_by_land_ownership = {
	}
	penalties = {
		yearly_corruption = 0.1
	}
	benefits = {
		heir_chance = 0.5
	}
	ai_will_do = {
		factor = 0
	}	
}

estate_exarches_autonomous_exarches = {
	icon = privilege_autonomous_exarches
	land_share = 0
	max_absolutism = -5
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 1 } }
	loyalty = 0.1
	influence = 0.1
	is_valid = {
	}
	can_select = {
		estate_influence = {
			estate = estate_exarches
			influence = 40
		}
	}
	on_granted = {
	}
	on_revoked = {
	}
	on_invalid = {
	}
	modifier_by_land_ownership = {
	}
	penalties = {
		global_autonomy = 0.2
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}	
	
}

estate_exarches_court_advisors = {
	icon = privilege_bring_to_court
	land_share = 0
	max_absolutism = -5
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 1 } }
	loyalty = 0.1
	influence = 0.1
	is_valid = {
	}
	can_select = {
		estate_influence = {
			estate = estate_exarches
			influence = 40
		}
	}
	on_granted = {
		custom_tooltip = estate_exarches_court_advisors_effect_tooltip
	}
	on_revoked = {
		custom_tooltip = estate_exarches_court_advisors_revoke_effect_tooltip
	}
	on_invalid = {
		custom_tooltip = estate_exarches_court_advisors_revoke_effect_tooltip
	}
	modifier_by_land_ownership = {
	}
	penalties = {
	}
	benefits = {
		nobles_influence_modifier = -0.05
	}
	ai_will_do = {
		factor = 0
	}
}
