estate_eunuchs_bookkeepers_privilege = {
	icon = estate_eunuchs_bookkeepers_privilege
	max_absolutism = -10
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 2 } }
	is_valid = {
		OR = {
			has_country_modifier = mng_expanded_eunuch_palatial_rights_modifier
			has_estate_privilege = estate_eunuchs_bookkeepers_privilege
		}
	}
	influence = 0.05
	loyalty = 0.05
	benefits = { 
		yearly_corruption = -0.05
		imperial_mandate = 0.03
	}
	penalties = {
	}
	
	ai_will_do = {
		factor = 500
		modifier = {
			factor = 0
			is_subject_of_type = xorme_moh_administrative_district
		}
		modifier = {
			factor = 2
			yearly_corruption_increase = 0.2
		}
		modifier = {
			factor = 0.5
			NOT = { yearly_corruption_increase = 0.1 } 
			imperial_mandate = 80 
		}
		modifier = {
			factor = 2.5
			OR = { 
				yearly_corruption_increase = 0.2
				NOT = { imperial_mandate = 50 } 
			}
		}
	}
}

estate_eunuchs_outwards_perfection_privilege = {
	icon = estate_eunuchs_outwards_perfection_privilege
	max_absolutism = 5
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 1 } }
	is_valid = {
		OR = { 
			has_country_flag = mng_outward_perfection_flag 
			has_estate_privilege = estate_eunuchs_outwards_perfection_privilege 
		}
	}
	can_select = { 
		NOT = { has_estate_privilege = estate_church_inwards_perfection }
	}
	on_granted = {
		if = { 
			limit = { has_estate_privilege = estate_church_inwards_perfection }
			remove_estate_privilege = estate_church_inwards_perfection 
		}
	}
	influence = 0.05
	loyalty = 0
	benefits = { 
		war_exhaustion = -0.03
		army_tradition = 0.5
		core_creation = -0.1
	}
	penalties = {
	}
	
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1000
			is_subject_of_type = xorme_moh_administrative_district
		}
	}
}

estate_eunuchs_palace_bureaucracy_privilege = {
	icon = estate_eunuchs_palace_bureaucracy_privilege
	max_absolutism = -10
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 2 } }
	is_valid = { }
	can_select = { }
	influence = 0.1
	loyalty = 0.05
	benefits = { advisor_cost = -0.1 }
	modifier_by_land_ownership = {
		yearly_corruption = 0.33
		governing_capacity_modifier = 0.25
	}
	penalties = {
	}
	
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 0
			yearly_corruption_increase = 0.35
		}
		modifier = {
			factor = 1.25
			governing_capacity_percentage = 0.95 
		}
	}
}

estate_eunuchs_delegate_provincial_administration_privilege = {
	icon = estate_eunuchs_delegate_provincial_administration_privilege
	max_absolutism = -15
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 3 } }
	is_valid = { }
	can_select = { }
	influence = 0.15
	loyalty = 0.05
	benefits = { 
		min_autonomy = -5
	}
	penalties = {
		burghers_influence_modifier = -0.05
		nobles_influence_modifier = -0.05
		church_influence_modifier = -0.05
	}
	
	modifier_by_land_ownership = {
		development_cost = -0.15
		yearly_corruption = 0.33
	}
	
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 0
			yearly_corruption_increase = 0.35
		}
		modifier = {
			factor = 1000
			is_subject_of_type = xorme_moh_administrative_district
		}
	}
}

estate_eunuchs_imperial_council_privilege = {
	icon = estate_eunuchs_imperial_council_privilege
	max_absolutism = -10
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 2 } }
	is_valid = { }
	can_select = { }
	influence = 0.1
	loyalty = 0.05
	benefits = { advisor_pool = 2 }
	penalties = { } 
	
	modifier_by_land_ownership = { yearly_corruption = 0.1 } 
	loyalty_scaled_conditional_modifier = {
		trigger = { has_country_flag = yua_buff_imperial_council_flag }
		modifier = {
			yearly_corruption = -0.1
		}
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 0
			yearly_corruption_increase = 0.35
		}
	}
}

estate_eunuchs_land_rights_privilege = {
	icon = estate_eunuchs_land_rights_privilege
	max_absolutism = -10
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 2 } }
	land_share = 5
	is_valid = { }
	can_select = { }
	influence = 0.05
	loyalty = 0.05
	benefits = { 
		governing_capacity = 100 
		min_autonomy = -5
	}
	penalties = {
	}
	conditional_modifier = {
		trigger = { has_country_flag = mng_increased_land_rights_flag }
		modifier = {
			stability_cost_modifier = -0.05
		}
	}
	modifier_by_land_ownership = { yearly_corruption = 0.15 } 
	mechanics = { exempt_from_seize_land }
	ai_will_do = {
		factor = 1
		modifier = { 
			factor = 0.25 
			NOT = { crown_land_share = 20 } 
		}
		modifier = {
			factor = 0
			yearly_corruption_increase = 0.35
		}
	}
}

estate_eunuchs_western_bureau_privilege = {
	icon = estate_eunuchs_western_bureau_privilege
	max_absolutism = -5
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 1 } }
	is_valid = { has_country_flag = mng_make_available_western_bureau_privilege_flag }
	can_select = { }
	influence = 0.05
	loyalty = 0.05
	benefits = { 
		imperial_mandate = 0.02
		reform_progress_growth = 0.1
	}
	penalties = {
	}
	
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 2
			NOT = { imperial_mandate = 50 } 
		}
		modifier = {
			factor = 0
			is_subject_of_type = xorme_moh_administrative_district
		}
	}
}

estate_eunuchs_eastern_bureau_privilege = {
	icon = estate_eunuchs_western_bureau_privilege	
	max_absolutism = -15
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 3 } }
	is_valid = { has_country_flag = mng_make_available_eastern_bureau_privilege_flag }
	can_select = { }
	influence = 0.05
	loyalty = 0.05
	benefits = { 
		imperial_mandate = 0.03
		meritocracy = 0.1
	}
	penalties = {
	}
	
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 2
			NOT = { imperial_mandate = 50 } 
		}
		modifier = {
			factor = 0
			is_subject_of_type = xorme_moh_administrative_district
		}
	}
}

estate_eunuchs_royal_intrigue_keepers_privilege = {
	icon = estate_eunuchs_royal_intrigue_keepers_privilege
	max_absolutism = -10
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 2 } }
	is_valid = {
		
	}
	can_select = { 
	
	}
	influence = 0.1
	loyalty = 0.1
	benefits = { 
	}
	penalties = {
	}
	modifier_by_land_ownership = {
		diplomatic_reputation = 3
		global_rebel_suppression_efficiency = 1
		yearly_corruption = 0.33
	}
	ai_will_do = {
		factor = 100
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
		modifier = {
			factor = 0
			is_subject_of_type = xorme_moh_administrative_district
		}
	}
}

estate_eunuchs_promote_eunuch_rights = {
	icon = estate_eunuchs_promote_eunuch_rights
	max_absolutism = -10
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 2 } }
	is_valid = {
		
	}
	can_select = { 
	
	}
	influence = 0.1
	loyalty = 0.1
	benefits = { 
		
	}
	penalties = { }
	modifier_by_land_ownership = { yearly_corruption = 0.05 } 
	
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 0
			NOT = { yearly_corruption_increase = 0.4 } 
		}
	}
}

estate_eunuchs_delegate_subject_diplomacy_privilege = {
	icon = estate_eunuchs_delegate_subject_diplomacy_privilege
	max_absolutism = -15
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 3 } }
	is_valid = { }
	can_select = { 
		NOT = { has_estate_privilege = estate_nobles_strong_duchies }
	}
	influence = 0.1
	loyalty = 0.1
	benefits = { }
	modifier_by_land_ownership = { 
		reduced_liberty_desire = 25
		improve_relation_modifier = 0.5
		yearly_corruption = 0.33
	}
	conditional_modifier = {
		trigger = { has_government_attribute = buffed_strong_duchies }
		modifier = {
			eunuchs_loyalty_modifier = 0.05
		}
	}
	
	ai_will_do = {
		factor = 1000
		modifier = {
			factor = 0
			is_subject_of_type = xorme_moh_administrative_district
		}
	}
}

estate_eunuchs_supremacy_over_crown_privilege = {
	icon = estate_eunuchs_supremacy_over_crown_privilege
	max_absolutism = -5
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 1 } }
	influence = 0.0
	loyalty = 0.0
	is_valid = {
		has_dlc = "Emperor"
		NOT = { has_government_attribute = blocked_call_diet }
	}
	can_select = { 
		NOT = { has_estate_privilege = estate_nobles_supremacy_over_crown }
	}
	penalties = { yearly_corruption = 0.1 }
	benefits = {
		all_estate_loyalty_equilibrium = 0.1
		all_estate_influence_modifier = 0.1
	}
	mechanics = {
		can_give_agendas_without_interaction
	}
	ai_will_do = {
		factor = 0
	}
}

estate_eunuchs_establish_favor_system_privilege = {
	icon = estate_eunuchs_establish_favor_system_privilege
	max_absolutism = -15
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 3 } }
	is_valid = {
		
	}
	can_select = { 
	
	}
	influence = 0.1
	loyalty = 0.1
	benefits = { 
		monthly_favor_modifier = 0.5
		national_focus_years = -5
		power_projection_from_insults = 0.5
	}
	penalties = { yearly_corruption = 0.05 }
	
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 0
			NOT = { yearly_corruption_increase = 0.4 } 
		}
	}
}

estate_eunuchs_allow_personal_fortunes_privilege = {
	icon = estate_eunuchs_allow_personal_fortunes_privilege
	max_absolutism = -5
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 1 } }
	land_share = 5
	is_valid = { }
	can_select = { }
	influence = 0.1
	loyalty = 0.1
	benefits = { 
		
	}
	modifier_by_land_ownership = {
		trade_efficiency = 0.25
		yearly_corruption = 0.25
	}
	penalties = { }
	mechanics = { exempt_from_seize_land }
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 0
			NOT = { yearly_corruption_increase = 0.33 } 
		}
		modifier = {
			factor = 1000
			is_subject_of_type = xorme_moh_administrative_district
		}
	}
}

estate_eunuchs_single_whip_law_privilege = {
	icon = eunuch_single_whip_law_privilege
	max_absolutism = -5
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 1 } }
	is_valid = { }
	can_select = { 

	}
	influence = 0.05
	loyalty = 0.1
	benefits = { 
		
	}
	modifier_by_land_ownership = {
		global_tax_modifier = 1
		inflation_reduction = -0.2
	}
	penalties = { }
	mechanics = { exempt_from_seize_land }
	ai_will_do = {
		factor = 100
		modifier = {
			factor = 0
			OR = {
				inflation = 5
				corruption = 10
			}
		}
		modifier = {
			factor = 10
			is_subject_of_type = xorme_moh_administrative_district
		}
	}
}
estate_eunuchs_ears_and_eyes_of_the_emperor_privilege = {
	icon = estate_eunuchs_establish_favor_system_privilege
	max_absolutism = -10
	influence = 0.1
	loyalty = 0.1
	conditional_modifier = { trigger = { has_absolutism_reduction_for_estate_privileges = yes } modifier = { max_absolutism = 2 } }
	is_valid = {
		has_country_flag = yua_eyes_and_ears_of_the_emperor_flag
	}
	loyalty_scaled_conditional_modifier = {
		trigger = { always = yes }
		modifier = {
			yearly_corruption = -0.1
			global_unrest = -2
		}
	}
	
	ai_will_do = {
		factor = 1
	}
}