# Monarchy:
beylik_government = {
	icon = "noble_muslim"
	allow_normal_conversion = yes
	potential = {
		religion_group = muslim
		OR = {
			primary_culture = turkish
			primary_culture = oghuz_culture # Religions & Cultures Expanded
		}
	}
	valid_for_nation_designer = yes
	nation_designer_cost = 5
	nation_designer_trigger = {
		religion_group = muslim
		OR = {
			primary_culture = turkish
			primary_culture = oghuz_culture # Religions & Cultures Expanded
		}
	}
	modifiers = {
		fabricate_claims_cost = -0.5
		unjustified_demands = -0.1
		core_creation = -0.1
		governing_capacity = 100
	}
	custom_attributes = {
		winning_battles_increases_legitimacy = yes
	}
}

bulgarian_tsardom_reform = {
	icon = "king"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			primary_culture = bulgarian
			primary_culture = bulgarian_new
		}
	}
	trigger = {
		OR = {
			religion = orthodox
			religion = bogomilist # Religions & Cultures Expanded
		}
		if = {
			limit = { has_updated_culture = { culture = slavic } }
			primary_culture = bulgarian_new
		}
		else = {
			primary_culture = bulgarian
		}
	}
	nation_designer_trigger = {
		has_dlc = "Domination"
		OR = {
			religion = orthodox
			religion = bogomilist # Religions & Cultures Expanded
		}
		primary_culture = bulgarian
	}
	valid_for_nation_designer = yes
	nation_designer_cost = 30
	modifiers = {
		governing_capacity = 150
		can_claim_states = yes
		harsh_treatment_cost = -0.25
	}
	fixed_rank = 3
	ai = {
		factor = 100
	}
}

nayankara_reform = {
	icon = "nayankara_system"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Dharma"
		technology_group = indian
		OR = {
			religion_group = dharmic
			religion = buddhism
			religion = vajrayana
			religion = mahayana
			religion = tibetan_buddhism # Religions & Cultures Expanded
		}
		OR = {
			culture_group = dravidian
			primary_culture = oriya
			primary_culture = sinhala
		}
	}
	valid_for_nation_designer = yes
	nation_designer_cost = 10
	legacy_equivalent = feudal_monarchy
	nation_designer_trigger = {
		technology_group = indian
		OR = {
			religion_group = dharmic
			religion = buddhism
			religion = vajrayana
			religion = mahayana
			religion = tibetan_buddhism # Religions & Cultures Expanded
		}
		OR = {
			culture_group = dravidian
			primary_culture = oriya
			primary_culture = sinhala
		}
	}
	modifiers = {
		vassal_forcelimit_bonus = 1
		global_manpower_modifier = 0.15
	}
}

# Common:
head_of_the_reformed_church_reform = {
	icon = "regionally_elected_commanders"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		NOT = { religion = catholic }
		NOT = { religion = coptic }
		NOT = { religion = orthodox }
		NOT = { religion = nestorian } # Religions & Cultures Expanded
		religion_group = christian
	}
	modifiers = {
		church_influence_modifier = -0.05
		global_tax_modifier = 0.15
		church_power_modifier = 0.1
		monthly_fervor_increase = 0.25
	}
	effect = {
		hidden_effect = {
			if = {
				limit = { is_defender_of_faith = yes }
				add_country_modifier = {
					name = gov_improved_defender_of_faith_mod
					duration = -1
				}
			}
		}
	}
	post_removed_effect = {
		remove_country_modifier = gov_improved_defender_of_faith_mod
	}
	custom_attributes = {
		improved_defender_of_faith = yes	#Being Defender of Faith increases Dip Rep, Tolerance and Morale
	}

	ai = {
		factor = 1
	}
}

empower_buddhist_temples_reform = {
	icon = "religious_harmony_reform"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		OR = {
			religion = buddhism
			religion = vajrayana
			religion = mahayana
			religion = tibetan_buddhism # Religions & Cultures Expanded
		}
	}
	modifiers = {
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.1
		yearly_karma_decay = 0.05
		stability_cost_modifier = -0.1
	}
	conditional = {
		allow = { has_dlc = "Common Sense" }
		custom_attributes = {
			#clergy_estate_agendas_gives_karma = yes	#Adds Karma by 10
			#seizing_land_takes_karma = yes	#Reduces Karma by 10
			buffed_monastic_temples = yes
			enable_karma_decision = yes	#Allows decision every 20 years to add or remove 10 Karma
		}
	}

	ai = {
		factor = 1
	}
}