timariot_domains_reform = {
	icon = horde_riding
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = turkish
			AND = {
				accepted_culture = turkish
				num_of_owned_provinces_with = {
					value = 1
					culture = turkish
				}
			}
			has_reform = timariot_domains_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = turkish
			AND = {
				accepted_culture = turkish
				num_of_owned_provinces_with = {
					value = 5
					culture = turkish
				}
			}
			has_reform = timariot_domains_reform
		}
	}
	modifiers = {
		cavalry_cost = -0.15
	}
	custom_attributes = {
		enables_timariots = yes #Unlocks the 'Timariot Governance' Noble Estate Privilege.
	}
	ai = {
		factor = 100
	}
}

qadi_authority_reform = {
	icon = muslim
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_qadi_authority_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Qadi_Authority
			}
		}
	}
	potential = {
		OR = {
			primary_culture = turkish
			has_reform = qadi_authority_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = turkish
			has_reform = qadi_authority_reform
		}
	}
	modifiers = {
		tolerance_own = 1
		church_loyalty_modifier = 0.05
	}
	custom_attributes = {
		enables_qadi_authority = yes #-15% state maintenance in islamic provinces
	}
	ai = {
		factor = 100
	}
}

millet_reform = {
	icon = millet_system
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_millet_system_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Millet_System
			}
		}
	}
	potential = {
		OR = {
			primary_culture = turkish
			AND = {
				accepted_culture = turkish
				num_of_owned_provinces_with = {
					value = 1
					culture = turkish
				}
			}
			has_reform = millet_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = turkish
			AND = {
				accepted_culture = turkish
				num_of_owned_provinces_with = {
					value = 5
					culture = turkish
				}
			}
			has_reform = millet_reform
		}
	}
	modifiers = {
		promote_culture_cost = -0.25
	}
	custom_attributes = {
		enables_millet_system = yes #-1 Unrest and 15% tax in Accepted Cultures
	}
	ai = {
		factor = 100
	}
}

kaza_system_reform = {
	icon = hejaz_sayyid
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.153
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
	}
	potential = {
		OR = {
			primary_culture = turkish
			has_reform = kaza_system_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = turkish
			has_reform = kaza_system_reform
		}
	}
	modifiers = {
		governing_capacity = 100
	}
	custom_attributes = {
		enables_kaza_system = yes #1% Trade Efficiency per 10% Sunni provinces
	}
	ai = {
		factor = 100
	}
}

nizam_i_jedid_reform = {
	icon = selim_3
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = TUR
			tag = RUM
			primary_culture = turkish
			has_reform = nizam_i_jedid_reform
		}
	}
	trigger = {
		OR = {
			tag = TUR
			tag = RUM
			primary_culture = turkish
			has_reform = nizam_i_jedid_reform
		}
	}
	modifiers = {
		max_absolutism = 10
		free_adm_policy = 1
	}
	ai = {
		factor = 100
	}
}

koprulu_dynasty_reform = {
	icon = koprulu_dynasty
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.156
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Koprulu_Defence_Local
				remove_province_modifier = GE_Koprulu_Economy_Local
			}
			remove_country_modifier = GE_Koprulu_Court
		}
	}
	potential = {
		OR = {
			primary_culture = turkish
			has_reform = koprulu_dynasty_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = turkish
			has_reform = koprulu_dynasty_reform
		}
	}
	modifiers = {
		same_culture_advisor_cost = -0.10
		advisor_pool = 1
	}
	custom_attributes = {
		enables_koprulu_dynasty = yes #allows your vizier to focus on a specific task every 25 years.
	}
	ai = {
		factor = 100
	}
}

sultanate_of_women_reform = {
	icon = turks_sultanate_of_women
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_public_works_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Public_Works
			}
		}
	}
	potential = {
		OR = {
			primary_culture = turkish
			has_reform = sultanate_of_women_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = turkish
			has_reform = sultanate_of_women_reform
		}
	}
	modifiers = {
		female_advisor_chance = 0.25
		prestige = 0.5
	}
	custom_attributes = {
		enables_public_works = yes #-10% development cost and -2 unrest in provinces with a courthouse.
	}
	ai = {
		factor = 100
	}
}

tanzimat_reforms_reform = {
	icon = arabic_scripture
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = turkish
			has_reform = tanzimat_reforms_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = turkish
			has_reform = tanzimat_reforms_reform
		}
	}
	modifiers = {
		global_institution_spread = 0.25
		global_unrest = -2
		manpower_in_own_culture_provinces = 0.25
		max_absolutism = -5
	}
	ai = {
		factor = 100
	}
}

expanded_devshirme_reform = {
	icon = Turkish_iqta
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_devshirme_province_update = yes
			}
			country_event = { 
				id = reform_me_events.155
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Devshirme
			}
			remove_country_modifier = GE_Janissary_Guards
		}
	}
	potential = {
		OR = {
			primary_culture = turkish
			has_reform = expanded_devshirme_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = turkish
			has_reform = expanded_devshirme_reform
		}
	}
	modifiers = {
		manpower_recovery_speed = 0.10
	}
	custom_attributes = {
		enables_devshirme = yes #25% Manpower in Orthodox Provinces
		enables_janissary_guards = yes #5% Janissary Discipline if under 20% Janissaries
	}
	ai = {
		factor = 10
	}
}

caravanserai_reform = {
	icon = paper_money_map
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = turkish
			has_reform = caravanserai_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = turkish
			has_reform = caravanserai_reform
		}
	}
	modifiers = {
		caravan_power = 0.25
		merchants = 1
		trade_deals_slots = 1
	}
	custom_attributes = {
		enables_caravanserai = yes #+5 Trade Power in provinces with centers of trade and a fort
	}
	ai = {
		factor = 100
	}
}