#Tier 1 
arch_monarchy_reform = {
	icon = "king"
	allow_normal_conversion = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 10
	trigger = {
		OR = {
			vassal = 1
			personal_union = 1
			march = 1
		}
	}
	modifiers = {
		prestige = 0.5
		vassal_tax_modifier = 0.15
	}
	custom_attributes = {
		enables_blood_tax = yes #5% manpower per non-colonial subject
	}
}

lithuania_warlord_duke = {
	icon = "crown_highlighted"
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_reform = lithuania_warlord_duke
			tag = LIT
		}
	}
	trigger = {
		has_reform = lithuania_warlord_duke
	}
	valid_for_nation_designer = yes
	nation_designer_cost = 30
	modifiers = {
		years_of_nationalism = -5
		promote_culture_cost = -0.5
		governing_capacity = 100
	}
}



ge_margrave_reform = {
	icon = march
	allow_normal_conversion = yes
	potential = {
		NOT = { has_dlc = "Domination"}
		is_part_of_hre = yes
		NOT = { total_development = 200 }
	}
	trigger = {
		is_part_of_hre = yes
		NOT = { total_development = 100 }
	}
	valid_for_nation_designer = yes
	nation_designer_cost = 10
	modifiers = {
		defensiveness = 0.10
		global_manpower_modifier = 0.15
		nobles_influence_modifier = 0.10
	}
}

theocratic_autocracy = {
	icon = "pope_highlighted"
	allow_normal_conversion = no
	potential = {
		OR = {
			has_reform = theocratic_autocracy
			tag = BYZ
			tag = ROM
		}
	}
	trigger = {
		OR = {
			has_reform = theocratic_autocracy
			tag = BYZ
			tag = ROM
		}
	}
	valid_for_nation_designer = yes
	nation_designer_cost = 100
	modifiers = {
		administrative_efficiency = 0.05
		governing_capacity = 100
	}
	custom_attributes = {
		enables_roman_empire = yes #Co-Emperor Mechanic
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.165
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = GE_Roman_Empire_Corruption
			remove_country_modifier = GE_Roman_Empire_Administration
			remove_country_modifier = GE_Roman_Empire_Drill
		}
	}
}

beylik = {
	icon = beylik
	allow_normal_conversion = yes
	potential = {
		primary_culture = turkish
		NOT = { tag = TUR }
		NOT = { tag = RUM }
	}
	trigger = {
		primary_culture = turkish
	}
	valid_for_nation_designer = yes
	nation_designer_cost = 0
	nation_designer_cost = 0
	modifiers = {
		army_tradition = 0.25
		unjustified_demands = -0.15
	}
}

arch_duchy_reform = {
	icon = archduchy
	allow_normal_conversion = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 10
	potential = {
		OR = {
			primary_culture = austrian
			has_reform = arch_duchy_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = austrian
			has_reform = arch_duchy_reform
		}
	}
	modifiers = {
		prestige = 0.5
		papal_influence = 0.5
	}
	ai = {
		factor = 100
	}
}

habsburg_monarchy_reform = {
	icon = habsburg_monarchy
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		OR = {
			primary_culture = austrian
			has_reform = arch_duchy_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				OR = {
					senior_union_with = BOH
					owns = 266
				}
				OR = {
					senior_union_with = HUN
					owns = 153
				}
			}
			has_reform = habsburg_monarchy_reform
		}
	}
	effect = {
		hidden_effect = {
			every_subject_country = {
				limit = {
					religion = catholic
				}
				add_country_modifier = {
					name = Religious_Domination
					duration = -1
				}
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			every_subject_country = {
				remove_country_modifier = Religious_Domination
			}
		}
	}
	modifiers = {
		tolerance_own = 1
		mil_advisor_cost = -0.15
		governing_capacity = 100
	}
	custom_attributes = {
		enables_religious_domination = yes #+1 tolerance of the true faith in catholic subjects
	}
	ai = {
		factor = 101
	}
}

austrian_empire_reform = {
	icon = austrian_empire
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		OR = {
			primary_culture = austrian
			has_reform = habsburg_monarchy_reform
			has_reform = arch_duchy_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				absolutism = 50
				owns = 266
				owns = 153
				total_development = 500
			}
			has_reform = austrian_empire_reform
		}
	}
	modifiers = {
		harsh_treatment_cost = -0.15
		monarch_diplomatic_power = 1
		governing_capacity = 150
	}
	custom_attributes = {
		enables_germanization = yes
	}
	ai = {
		factor = 102
	}
}


granadan_iqta_reform = {
	icon = granada_iqta
	allow_normal_conversion = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 50
	queen = no
	potential = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = granadan_iqta_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = granadan_iqta_reform
		}
	}
	modifiers = {
		trade_efficiency = 0.10
		global_trade_goods_size_modifier = 0.05
		trade_deals_slots = 1
	}
	custom_attributes = {
		enables_religious_supremacy = yes
	}
	conditional = {
		allow = { has_dlc = "Cradle of Civilization" }
		government_abilities = {
			iqta_mechanic
		}
	}
	ai = {
		factor = 100
	}
}

emirate_of_andalusia_reform = {
	icon = muslim_highlighted
	allow_normal_conversion = yes
	queen = no
	maintain_dynasty = yes
	potential = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
		}
	}
	trigger = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = emirate_of_andalusia_reform
			OR = {
				development = 300
				tag = ADU
			}
		}
	}
	modifiers = {
		governing_capacity = 150
		global_unrest = -1
		heir_chance = -2
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = GE_Iberian_Harem_Andalucian
			remove_country_modifier = GE_Iberian_Harem_Portugese
			remove_country_modifier = GE_Iberian_Harem_Castillian
			remove_country_modifier = GE_Iberian_Harem_Catalan
		}
	}
	custom_attributes = {
		enables_iberian_harem = yes
	}
	conditional = {
		allow = { has_dlc = "Cradle of Civilization" }
		government_abilities = {
			feudal_theocracy_mechanic
		}
	}
	ai = {
		factor = 101
	}
}



achaemenid_empire_reform = {
	icon = king
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	maintain_dynasty = yes
	potential = {
		OR = {
			AND = {
				religion_group = zoroastrian_group
				culture_group = iranian
			}
		}
	}
	trigger = {
		AND = {
			religion_group = zoroastrian_group
			culture_group = iranian
		}
	}
	modifiers = {
		prestige = 1
	}
	custom_attributes = {
		enables_religious_supremacy = yes
	}
	assimilation_cultures = {
		altaic = {
		}
		baltic = {
		}
		british = {
		}
		burman = {
		}
		byzantine = {
		}
		carpathian = {
		}
		caucasian = {
		}
		gaelic = {
		}
		central_indic = {
		}
		east_asian = {
		}
		kongo_group = {
		}
		cushitic = {
		}
		dravidian = {
		}
		african = {
		}
		east_slavic = {
		}
		eastern_aryan = {
		}
		evenks = {
		}
		french = {
		}
		germanic = {
		}
		great_lakes_group = {
		}
		hindusthani = {
		}
		iberian = {
		}
		iranian = {
		}
		japanese_g = {
		}
		korean_g = {
		}
		latin = {
		}
		lost_cultures_group = {
		}
		turko_semitic = {
		}
		maghrebi = {
		}
		malay = {
		}
		mande = {
		}
#		mon_khmer = {
#			build_cost = -0.05
#		}
		pacific = {
		}
		sahelian = {
		}
		scandinavian = {
		}
		south_slavic = {
		}
		southern_african = {
		}
		sudanese = {
		}
		tartar = {
		}
		southeastasian_group = {
		}
		tibetan_group = {
		}
		finno_ugric = {
		}
		west_african = {
		}
		west_slavic = {
		}
		western_aryan = {
		}
	}
	ai = {
		factor = 100
	}
}

edo_empire_reform = {
	icon = crown
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		OR = {
			has_reform = edo_empire_reform
			tag = BEN
		}
	}
	modifiers = {
		global_unrest = -2
		max_absolutism = 5
		governing_capacity = 150
	}
	ai = {
		factor = 100
	}
	#Add -5 Noble Influence
}

maharajadhiraja_reform = {
	icon = crown
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		OR = {
			has_reform = maharajadhiraja_reform
			tag = NPL
		}
	}
	modifiers = {
		legitimacy = 0.25
		global_autonomy = -0.025
		yearly_absolutism = 0.1
		max_absolutism = 10
	}
	ai = {
		factor = 100
	}
	#Add -5 Noble Influence
}

empire_of_japan_reform = {
	icon = shogunate
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		OR = {
			tag = JAP
			has_reform = empire_of_japan_reform
		}
	}
	trigger = {
		OR = {
			tag = JAP
			has_reform = empire_of_japan_reform
		}
	}
	modifiers = {
		prestige_decay = -0.01
	}
	conditional = {
		allow = { has_dlc = "Res Publica" }
		queen = no
		heir = no
		duration = 100
		has_term_election = yes
		states_general_mechanic = {
			GE_shogun = {
				free_leader_pool = 1
				army_tradition_decay = -0.005
				legitimacy = -1
			}

			GE_imperials = {
				yearly_absolutism = 0.1
				global_autonomy = -0.05
				legitimacy = 1
			}
		}
	}
	ai = {
		factor = 100
	}
}

kingdom_of_jerusalem_reform = {
	icon = holy_war
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	has_devotion = yes
	effect = {
		add_devotion = 100
	}
	potential = {
		OR = {
			tag = KOJ
			has_reform = kingdom_of_jerusalem_reform
		}
		NOT = { has_reform = celestial_empire }
	}
	modifiers = {
		tolerance_own = 1
	}
	custom_attributes = {
		enables_crusader_order = yes
		enables_divine_blood = yes
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.67
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
	}
	conditional = {
		allow = { has_dlc = "Cradle of Civilization" }
		government_abilities = {
			feudal_theocracy_mechanic
		}
	}
	ai = {
		factor = 100
	}
}

despotate_of_caucasia_reform = {
	icon = crown
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		OR = {
			culture_group = caucasian
			has_reform = despotate_of_caucasia_reform
		}
	}
	modifiers = {
		land_morale = 0.05
		tolerance_heretic = 1
		culture_conversion_cost = -0.20
	}
	custom_attributes = {
		enables_royal_council = yes
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.52
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			ge_country_royal_council_remove = yes
		}
	}
	factions = {
		GE_orthodox
		GE_coptic
		GE_sunni
	}
	ai = {
		factor = 100
	}
}

rum_eagle_reform = {
	icon = mamluk_government
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	maintain_dynasty = yes
	potential = {
		has_reform = rum_eagle_reform
	}
	trigger = {
		has_reform = rum_eagle_reform
	}
	modifiers = {
		monarch_admin_power = 2
		max_absolutism = 5
		diplomatic_upkeep = 1
	}
	custom_attributes = {

	}
	conditional = {
		allow = { has_dlc = "Cradle of Civilization" }
		government_abilities = {
			iqta_mechanic
		}
		heir = no
		has_pashas = yes
		foreign_slave_rulers = yes
	}
	ai = {
		factor = 100
	}
}

consulate_of_the_malay = {
	icon = asian_scripture
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		has_reform = consulate_of_the_malay
	}
	modifiers = {
		tolerance_own = 1
		naval_morale = 0.1
		merchants = 1
		trade_deals_slots = 1
	}
	custom_attributes = {
		enables_unite_the_malay = yes #5% Naval Force Limit and Sailors for each Accepted Malay Culture.
	}
	effect = {
		hidden_effect = {
			ge_country_unite_the_malay_update = yes
		}
	}
	removed_effect = {
		hidden_effect = {
			ge_country_unite_the_malay_update = yes
		}
	}
	ai = {
		factor = 100
	}
}

basic_reformed_mandala_reform = {
	icon = "mandala_system"
	allow_normal_conversion = no
	potential = {
		OR = {
			AND = {
				NOT = { religion = shinto }
				NOT = { religion = confucianism }
				OR = {
					religion_group = eastern
					religion_group = dharmic
					religion_group = muslim
					religion = animism
				}
				technology_group = chinese
			}
			has_reform = basic_reformed_mandala_reform
		}
	}
	valid_for_nation_designer = yes
	nation_designer_cost = 10
	nation_designer_trigger = {
		NOT = { religion = shinto }
		NOT = { religion = confucianism }
		OR = {
			religion_group = eastern
			religion_group = dharmic
			religion_group = muslim
		}
		technology_group = chinese
	}
	trigger = {
		has_reform = basic_reformed_mandala_reform
	}
	modifiers = {
		vassal_forcelimit_bonus = 1
		governing_capacity = 50
		reduced_liberty_desire_on_same_continent = 5
	}
	effect = {
		hidden_effect = {
			every_subject_country = { ge_country_mandala_peripher_update = yes }
		}
	}
	removed_effect = {
		hidden_effect = {
			every_subject_country = { remove_country_modifier = GE_Mandala_Periphery }
		}
	}
	custom_attributes = {
		enables_mandala_periphery = yes #15% tax in subjects
	}
	free_concentrate_development = yes
	ai = {
		factor = 101
	}
}

solar_kingdom_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		NOT = { religion = shinto }
		NOT = { religion = confucianism }
		OR = {
			religion_group = eastern
			religion_group = dharmic
			religion_group = muslim
			religion = animism
		}
		technology_group = chinese
	}
	trigger = {
		has_reform = solar_kingdom_reform
	}
	modifiers = {
		vassal_forcelimit_bonus = 2
		governing_capacity = 150
		diplomatic_upkeep = 1
	}
	effect = {
		hidden_effect = {
			every_subject_country = { ge_country_solar_periphery_update = yes }
		}
	}
	removed_effect = {
		hidden_effect = {
			every_subject_country = { remove_country_modifier = GE_Solar_Periphery }
		}
	}
	custom_attributes = {
		enables_blood_tax = yes #5% Manpower Per vassal up to 25% Manpower
		enables_solar_periphery = yes #Vassals Gain 15% Tax AND 15% Manpower
	}
	free_concentrate_development = yes
	ai = {
		factor = 102
	}
}



tsardom_of_bulgaria_reform = {
	icon = russian_principality
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		NOT = { has_dlc = "Domination"}
		OR = {
			primary_culture = bulgarian
			has_reform = tsardom_of_bulgaria_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = bulgarian
			has_reform = tsardom_of_bulgaria_reform
		}
	}
	modifiers = {
		max_absolutism = 10
		yearly_absolutism = 0.5
		diplomatic_upkeep = 1
		global_manpower_modifier = 0.10
	}
	ai = {
		factor = 100
	}
}

united_holy_roman_empire_reform = {
	icon = crown_highlighted #GE_HRE
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		NOT = { has_dlc = "Domination"}
		OR = {
			tag = HLR
			has_reform = united_holy_roman_empire_reform
		}
	}
	trigger = {
		OR = {
			tag = HLR
			has_reform = united_holy_roman_empire_reform
		}
	}
	modifiers = {
		governing_capacity = 250
		accept_vassalization_reasons = 50
		max_absolutism = 10

	}
	custom_attributes = {
		enables_royal_council = yes
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.52
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			ge_country_royal_council_remove = yes
		}
	}
	ai = {
		factor = 100
	}
}

duchy_of_luxembourg_reform = {
	icon = "crown"
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		OR = {
			primary_culture = wallonian
			has_reform = duchy_of_luxembourg_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = wallonian
			has_reform = duchy_of_luxembourg_reform
		}
	}
	modifiers = {
		prestige = 0.5
		imperial_authority_value = 0.10
	}
	ai = {
		factor = 101
	}
}
klever_union_reform = {
	icon = crown
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	potential = {
		primary_culture = hessian
	}
	trigger = {
		AND = {
			primary_culture = hessian
			total_development = 100
		}
	}
	modifiers = {
		diplomatic_reputation = 1
	}
	custom_attributes = {
		enables_royal_council = yes
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.52
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			ge_country_royal_council_remove = yes
		}
	}
	ai = {
		factor = 1
	}
}
#}
#############################
#######Tier2/Religious#######
#############################

generic_nobles_priests_reform = {
	icon = church
	allow_normal_conversion = yes
	potential = {
		NOT = {
			OR = {
				religion = catholic
				religion = orthodox
				religion = reformed
				religion = anglican
				religion = hussite
				religion = protestant
				religion_group = muslim
				religion = confucianism
			}
		}
	}
	trigger = {

	}
	modifiers = {
		church_influence_modifier = 0.05
		prestige_per_development_from_conversion = 0.2
		missionary_maintenance_cost = -0.20
	}
	#
		effect = {
			change_variable = {
				which = Clergy_Influence
				value = 1
			}
		}
		removed_effect = {
			change_variable = {
				which = Clergy_Influence
				value = -1
			}
		}
		ai = {
			factor = 1
		}
	#
}

papal_embassy_GE_reform = {
	icon = papal_embassy
	allow_normal_conversion = yes
	potential = {
		religion = catholic
	}
	trigger = {
		religion = catholic
	}
	modifiers = {
		papal_influence = 1.5
		church_influence_modifier = 0.05
	}
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			PAP = {
				add_opinion = { who = ROOT modifier = opinion_papal_delegation }
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			PAP = {
				remove_opinion = { who = ROOT modifier = opinion_papal_delegation }
			}
		}
	}
	custom_attributes = {
		enables_papal_delegation = yes #25 opinion with the pope
	}
	ai = {
		factor = 1
	}
}

metropolian_bishop_reform = {
	icon = church
	allow_normal_conversion = yes
	potential = {
		religion = orthodox
	}
	trigger = {
		religion = orthodox
	}
	modifiers = {
		yearly_patriarch_authority = 0.005
		church_influence_modifier = 0.05
	}
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}

	ai = {
		factor = 10
	}
}

state_church_reform = {
	icon = church
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			religion = reformed
			religion = protestant
			religion = anglican
			religion = hussite
		}
	}
	trigger = {
		OR = {
			religion = reformed
			religion = protestant
			religion = anglican
			religion = hussite
		}
	}
	modifiers = {
		tolerance_own = 0.5
		monthly_fervor_increase = 0.5
		church_power_modifier = 0.25
		church_influence_modifier = 0.05
	}
	ai = {
		factor = 10
	}
}

elevated_landed_gentry_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			religion = confucianism
			has_reform = elevated_landed_gentry_reform
		}
	}
	trigger = {
		OR = {
			religion = confucianism
			has_reform = elevated_landed_gentry_reform
		}
	}
	modifiers = {
		idea_cost = -0.05
		global_unrest = -1
		production_efficiency = 0.10
		church_influence_modifier = 0.05
	}
	ai = {
		factor = 10
	}
}

dhimmi_nobles_reform = {
	icon = peasants
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		religion_group = muslim
		has_estate = estate_dhimmi
	}
	trigger = {
		religion_group = muslim
	}
	modifiers = {
		idea_cost = -0.05
		dhimmi_loyalty_modifier = 0.05
		dhimmi_influence_modifier = 0.10
	}
	ai = {
		factor = 10
	}
}

hussite_reform = {
	icon = szlachta
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			religion = hussite
			has_reform = hussite_reform
		}
	}
	trigger = {
		OR = {
			religion = hussite
			has_reform = hussite_reform
		}
	}
	modifiers = {
		missionaries = 1
	}
	custom_attributes = {
		enables_four_articles = yes
	}
	ai = {
		factor = 100
	}
}
#}
#############################
###########Tier2#############
#############################
#Tier 2 {
city_privileges_reform = {
	icon = free_city
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	modifiers = {
		urban_goods_produced_modifier = 0.15
	}
	custom_attributes = {
		enables_burgher_autonomy = yes #+1 development and +25% min autonomy in each province with an urban trade good every 25 years.
	}
	ai = {
		factor = 1
		modifier = {
			factor = 0
			NOT = {
				any_owned_province = {
					has_urban_goods = yes
				}
			}
		}
		modifier = {
			factor = 5
			culture_group = germanic
		}
	}
}

diplomatic_positions_reform = {
	icon = noble_diplomat
	allow_normal_conversion = yes

	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		#has_reform = diplomatic_positions_reform
	}
	modifiers = {
		diplomatic_reputation = 1
	}
	custom_attributes = {
		enables_noble_diplomats = yes #privileges for 25 opinion//10% improve relation
	}
	ai = {
		factor = 1
	}
}

lithuania_law_reform = {
	icon = casimirs_code
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = lithuania_law_reform
			tag = LIT
		}
	}
	trigger = {
		OR = {
			has_reform = lithuania_law_reform
			tag = LIT
		}
	}
	modifiers = {
		global_unrest = -1
		yearly_corruption = -0.05
		nobles_influence_modifier = -0.10
	}
	ai = {
		factor = 100
	}
}

guild_dominance_reform = {
	icon = dutch_guilds
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = dutch
			primary_culture = flemish
			has_reform = guild_dominance_reform
		}
		NOT = { mission_completed = ME_HOL_Mother_Of_All_Trade }
	}
	trigger = {
		OR = {
			primary_culture = dutch
			primary_culture = flemish
			has_reform = guild_dominance_reform
		}
	}
	modifiers = {
		global_prov_trade_power_modifier = 0.2
		#navy_tradition = 0.5
		burghers_influence_modifier = 0.10
		trade_deals_slots = 1
	}
	ai = {
		factor = 100
	}
}

guild_dominance_reform_upgrade = {
	icon = dutch_guilds
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.2360
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_baltic_sea_trade_1
			remove_country_modifier = GE_baltic_sea_trade_2
			remove_country_modifier = GE_baltic_sea_trade_3
			remove_country_modifier = GE_baltic_sea_trade_4
		}
	}
	potential = {
		OR = {
			primary_culture = dutch
			primary_culture = flemish
			primary_culture = Frisian
			has_reform = guild_dominance_reform_upgrade
		}
	}
	trigger = {
		OR = {
			mission_completed = ned_spice_australia
			mission_completed = ME_HOL_Mother_Of_All_Trade
			mission_completed = emp_ned_dutch_east_indies
		}
	}
	modifiers = {
		global_prov_trade_power_modifier = 0.2
		burghers_influence_modifier = 0.10
		trade_deals_slots = 1
	}
	custom_attributes = {
		enables_baltic_sea_trade = yes
	}
	ai = {
		factor = 101
	}
}

akritai_privileges_reform = {
	icon = "soldiers_2"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_fortified_settlements_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				ge_fortified_settlements_province_update = yes
			}
		}
	}
	potential = {
		OR = {
			has_reform = akritai_privileges_reform
			culture_group = byzantine
		}
	}
	trigger = {
		OR = {
			has_reform = akritai_privileges_reform
			culture_group = byzantine
		}
	}
	modifiers = {
		defensiveness = 0.15
		nobles_influence_modifier = 0.05
	}
	custom_attributes = {
		enables_fortified_settlements = yes #-10% dev cost in states with a fort
	}
	ai = {
		factor = 100
	}
}

council_of_sheikhs_reform = {
	icon = mamluk_government
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		religion_group = muslim
		OR = {
			culture_group = maghrebi
			has_reform = council_of_sheikhs_reform
			accepted_culture = moroccan
			accepted_culture = tunisian
			accepted_culture = algerian
			accepted_culture = berber
		}
	}
	trigger = {
		religion_group = muslim
		OR = {
			culture_group = maghrebi
			has_reform = council_of_sheikhs_reform
			accepted_culture = moroccan
			accepted_culture = tunisian
			accepted_culture = algerian
			accepted_culture = berber
		}
	}
	modifiers = {
		legitimacy = 0.5
		manpower_recovery_speed = 0.20
	}
	ai = {
		factor = 10
	}
}

muscovite_manorialism_reform = {
	icon = russian_noble
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			tag = MOS
			tag = RUS
			primary_culture = russian
			has_reform = muscovite_manorialism_reform
		}
	}
	trigger = {
		OR = {
			tag = MOS
			tag = RUS
			primary_culture = russian
			has_reform = muscovite_manorialism_reform
		}
	}
	modifiers = {
		development_cost = -0.05
		infantry_cost = -0.05
		nobles_influence_modifier = -0.05
	}
	ai = {
		factor = 100
	}
}





constitutio_valdemariana_reform = {
	icon = nobleman
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = danish
			has_reform = constitutio_valdemariana_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = danish
			has_reform = constitutio_valdemariana_reform
		}
	}
	modifiers = {
		diplomatic_upkeep = 1
		global_manpower_modifier = 0.10
	}
	ai = {
		factor = 100
	}
}

riksradet_norway_reform = {
	icon = nobleman
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = riksradet_norway_reform
			primary_culture = norwegian
		}
	}
	trigger = {
		OR = {
			has_reform = riksradet_norway_reform
			primary_culture = norwegian
		}
	}
	modifiers = {
		papal_influence = 1
		church_power_modifier = 0.10
		fort_maintenance_modifier = -0.10
		legitimacy = 0.5
	}
	ai = {
		factor = 100
	}
}

albertine_line_reform = {
	icon = ladislaus_posthumous
	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 = austrian
			has_reform = albertine_line_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = austrian
			has_reform = albertine_line_reform
		}
	}
	modifiers = {
		legitimacy = 0.5
		global_manpower_modifier = 0.10
	}
	ai = {
		factor = 100
	}
}

magnate_law_reform = {
	icon = magnates
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			technology_group = eastern
			has_reform = magnate_law_reform
		}
	}
	trigger = {
		OR = {
			technology_group = eastern
			has_reform = magnate_law_reform
		}
	}
	modifiers = {
		global_manpower_modifier = 0.10
	}
	custom_attributes = {
		enables_magnate_law = yes #Unlocks privilege to reduce scaled unrest
	}
	ai = {
		factor = 10
	}
}

imperial_knights_reform = {
	icon = reichsritter
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		is_part_of_hre = yes
		NOT = { total_development = 200 }
	}
	trigger = {
		NOT = { total_development = 150 }
	}
	modifiers = {
		leader_land_shock = 1
	}
	custom_attributes = {
		enables_imperial_knights = yes #Unlocks Imperial Knights Mercenary Company
	}
	ai = {
		factor = 10
	}
}

mamluk_privileges_reform = {
	icon = mamluk_noble_2
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = mamluk_privileges_reform
			primary_culture = al_misr_arabic
			AND = {
				accepted_culture = al_misr_arabic
				num_of_owned_provinces_with = {
					value = 1
					culture = al_misr_arabic
				}
			}
		}
	}
	trigger = {
		OR = {
			has_reform = mamluk_privileges_reform
			primary_culture = al_misr_arabic
			AND = {
				accepted_culture = al_misr_arabic
				num_of_owned_provinces_with = {
					value = 1
					culture = al_misr_arabic
				}
			}
		}
	}
	modifiers = {
		global_unrest = -1
		production_efficiency = 0.10
		trade_deals_slots = 1
	}
	ai = {
		factor = 10
	}
}





taha_divisions_reform = {
	icon = granada_taha
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_morisca_band_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = Morisca_Band
			}
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = taha_divisions_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = taha_divisions_reform
		}
	}
	modifiers = {
		global_tax_modifier = 0.10
		development_cost = -0.05
	}
	custom_attributes = {
		enables_morisca_band = yes #15% Fort Defence on Border with Christians
	}
	ai = {
		factor = 100
	}
}

words_of_cyrus_reform = {
	icon = king
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = zoroastrian_group
				culture_group = iranian
			}
		}
	}
	trigger = {
		AND = {
			religion_group = zoroastrian_group
			culture_group = iranian
		}
	}
	modifiers = {
		tolerance_own = 1
		tolerance_heretic = 1
		tolerance_heretic = 1
		global_unrest = 1
		female_advisor_chance = 0.25

	}
	ai = {
		factor = 100
	}
}

crusader_orders_reform = {
	icon = "holy_war"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			ge_country_militant_orders_update = yes
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			ge_country_militant_orders_update = yes
		}
	}
	potential = {
		OR = {
			has_reform = kingdom_of_castille_and_leon
			has_reform = crown_of_castille
		}
	}
	trigger = {
		OR = {
			has_reform = kingdom_of_castille_and_leon
			has_reform = crown_of_castille
		}
	}
	modifiers = {
		unjustified_demands = -0.10
	}
	custom_attributes = {
		enables_militant_orders = yes #25% Manpower Recovery and 1 AT while at war with heathens or heretics
	}
	ai = {
		factor = 10
	}
}

old_world_privileges_reform = {
	icon = "szlachta"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = hispanic_kingdom
			has_reform = iberian_enlightened_despotism_reform
		}
	}
	trigger = {
		OR = {
			has_reform = hispanic_kingdom
			has_reform = iberian_enlightened_despotism_reform
		}
	}
	modifiers = {
		global_manpower_modifier = 0.10
		reduced_liberty_desire = 5
	}
	ai = {
		factor = 10
	}
}

franconian_salic_law_reform = {
	icon = king
	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 = franconian
			AND = {
				accepted_culture = franconian
				num_of_owned_provinces_with = {
					value = 1
					culture = franconian
				}
			}
			has_reform = franconian_salic_law_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = franconian
			AND = {
				accepted_culture = franconian
				num_of_owned_provinces_with = {
					value = 5
					culture = franconian
				}
			}
			has_reform = franconian_salic_law_reform
		}
	}
	modifiers = {
		legitimacy = -0.5
		global_manpower_modifier = 0.20
		cavalry_cost = -0.10
	}
	ai = {
		factor = 50
	}
}

arch_marshal_reform = {
	icon = king
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				NOT = { tag = BRA }
				NOT = { tag = PRU }
				primary_culture = saxon
			}
			has_reform = arch_marshal_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = saxon
			has_reform = arch_marshal_reform
		}
	}
	modifiers = {
		leader_land_shock = 1
		prestige_from_land = 1
	}
	ai = {
		factor = 50
	}
}

support_samurai_reform = {
	icon = "samurai"
	allow_normal_conversion = yes
	potential = {
		OR = {
			culture_group = japanese_g
			has_reform = support_samurai_reform
		}
	}
	trigger = {
		OR = {
			culture_group = japanese_g
			has_reform = support_samurai_reform
		}
	}
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	modifiers = {
		drill_gain_modifier = 0.25
		army_tradition = 0.5
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	ai = {
		factor = 1
	}
}



sayyid_privileges_reform = {
	icon = hejaz_sayyid
	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 = hejazi_culture
			has_reform = sayyid_privileges_reform
			AND = {
				accepted_culture = hejazi_culture
				num_of_owned_provinces_with = {
					value = 1
					culture = hejazi_culture
				}
			}
		}
	}
	trigger = {
		OR = {
			primary_culture = hejazi_culture
			has_reform = sayyid_privileges_reform
			AND = {
				accepted_culture = hejazi_culture
				num_of_owned_provinces_with = {
					value = 5
					culture = hejazi_culture
				}
			}
		}
	}
	modifiers = {
		vassal_income = 0.33
		tolerance_own = 1
	}
	ai = {
		factor = 100
	}
}



clans_of_ireland_reform = {
	icon = clans_of_ireland
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = clans_of_ireland_reform
			primary_culture = irish
		}
	}
	trigger = {
		OR = {
			has_reform = clans_of_ireland_reform
			primary_culture = irish
		}
	}
	modifiers = {
		global_unrest = -2
	}
	ai = {
		factor = 100
	}
}

mint_towns_reform = {
	icon = paper_money_map
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_mint_towns_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = Mint_Towns
			}
		}
	}
	potential = {
		OR = {
			has_reform = mint_towns_reform
			primary_culture = bengali
			accepted_culture = bengali
		}
	}
	trigger = {
		OR = {
			has_reform = mint_towns_reform
			primary_culture = bengali
			accepted_culture = bengali
		}
	}
	modifiers = {
		global_tax_modifier = 0.15
	}
	custom_attributes = {
		enables_mint_towns = yes # -25% state maintenance in 20+ dev provinces
	}
	ai = {
		factor = 100
	}
}

order_of_the_dragon_reform = {
	icon = hungarian_order_of_the_dragon
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			ge_country_militant_orders_update = yes
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			ge_country_militant_orders_update = yes
		}
	}
	potential = {
		OR = {
			has_reform = order_of_the_dragon_reform
			primary_culture = hungarian
			primary_culture = romanian
			primary_culture = serbian
			accepted_culture = hungarian
		}
	}
	trigger = {
		OR = {
			has_reform = order_of_the_dragon_reform
			primary_culture = hungarian
			primary_culture = romanian
			primary_culture = serbian
			accepted_culture = hungarian
		}
	}
	modifiers = {
		prestige = 0.5
	}
	custom_attributes = {
		enables_militant_orders = yes
	}
	ai = {
		factor = 100
	}
}

buddhist_nation_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.185
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_Religious_Fervor
		}
	}
	potential = {
		emf_religion_is_buddhist = yes
		OR = {
			culture_group = burman
			culture_group = southeastasian_group
			has_reform = buddhist_nation_reform
		}
	}
	trigger = {
		emf_religion_is_buddhist = yes
		OR = {
			culture_group = burman
			culture_group = southeastasian_group
			has_reform = buddhist_nation_reform
		}
	}
	modifiers = {
		tolerance_heathen = -1
		manpower_recovery_speed = 0.10
	}
	custom_attributes = {
		enables_Religious_Fervor = yes #+20% Manpower if you have 90% Religious Unity
	}
	ai = {
		factor = 10
	}
}

nationalized_cetas_reform = {
	icon = szlachta
	allow_normal_conversion = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 0
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = bulgarian
			has_reform = nationalized_cetas_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = bulgarian
			has_reform = nationalized_cetas_reform
		}
	}
	modifiers = {
		hostile_attrition = 1
		global_manpower_modifier = 0.10
	}
	ai = {
		factor = 100
	}
}

gibraltar_of_the_north_reform = {
	icon = "castle"
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_fortified_settlements_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				ge_fortified_settlements_province_update = yes
			}
		}
	}
	potential = {
		OR = {
			primary_culture = wallonian
			has_reform = gibraltar_of_the_north_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = wallonian
			has_reform = gibraltar_of_the_north_reform
		}
	}
	modifiers = {
		hostile_attrition = 1
		garrison_size = 0.25
	}
	custom_attributes = {
		enables_fortified_settlements = yes #-10% dev cost in fortified states
	}
	ai = {
		factor = 101
	}
}
wattasid_viziers_reform = {
	icon = Wattasid_Dynasty
	allow_normal_conversion = yes
	valid_for_nation_designer = no
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = moroccan
			has_reform = wattasid_viziers_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = moroccan
			has_reform = wattasid_viziers_reform
		}
		custom_trigger_tooltip = {
			tooltip = GE_Killed_The_Wattasids_Tooltip
			NOT = { has_country_flag = Killed_the_Wattasids }
		}
	}
	modifiers = {
		adm_advisor_cost = -0.15
	}
	custom_attributes = {
		enables_berber_guides = yes #privilege to give get -15% land attrition and -10 cav cost
	}
	ai = {
		factor = 101
	}
}

#}
#############################
###########Tier3#############
#############################
#Tier 3 {
regional_forts_reform = {
	icon = fort
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_administrative_forts_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = Administrative_Forts
			}
		}
	}
	potential = {
		NOT = { technology_group = eastern }
		NOT = { culture_group = maghrebi }
	}
	modifiers = {
		garrison_size = 0.15
		fort_maintenance_modifier = -0.1
	}
	custom_attributes = {
		enables_administrative_forts = yes #-25% State Maintenance in states with forts
	}
	ai = {
		factor = 1
		modifier = {
			factor = 5
			calc_true_if = {
				all_subject_country = {
					OR = {
						is_march = yes
						is_vassal = yes
						is_lesser_in_union = yes
					}
				}
				amount = 1
			}
		}
	}
}

regional_kasbah_reform = {
	icon = Kasbah
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_caravanserai_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Caravanserai
			}
		}
	}
	potential = {
		OR = {
			culture_group = maghrebi
			has_reform = regional_kasbah_reform
		}
	}
	trigger = {
		OR = {
			culture_group = maghrebi
			has_reform = regional_kasbah_reform
		}
	}
	modifiers = {
		defensiveness = 0.10
		plantage_goods_produced_modifier = 0.10
	}
	custom_attributes = {
		enables_caravanserai = yes #+5 Trade Power in Centers of Trade with Forts
	}
	ai = {
		factor = 10
	}
}

magnate_govenors_reform = {
	icon = magnates_2
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			technology_group = eastern
			has_reform = magnate_govenors_reform
		}
	}
	trigger = {
		OR = {
			technology_group = eastern
			has_reform = magnate_govenors_reform
		}
	}
	modifiers = {
		state_maintenance_modifier = -0.25
		nobles_influence_modifier = 0.10
	}
	custom_attributes = {
		enables_serfdom = yes
	}
	ai = {
		factor = 10
	}
}

theocratic_bureacrats_reform = {
	icon = bishop
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.33
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = Holy_Tithe_1
			remove_country_modifier = Holy_Tithe_2
			remove_country_modifier = Holy_Tithe_3
			remove_country_modifier = Holy_Tithe_4
			remove_country_modifier = Holy_Tithe_5
		}
	}
	potential = {
		religion_group = christian
	}
	trigger = {
		religion_group = christian
	}
	modifiers = {
		tolerance_own = 1
		church_influence_modifier = 0.05
	}
	custom_attributes = {
		enables_holy_tithe = yes #5% Tax per TOTF over 4
	}
	ai = {
		factor = 1
	}
}

ulema_guidance_reform = {
	icon = noble_muslim
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		religion_group = muslim
	}
	trigger = {
		religion_group = muslim
	}
	modifiers = {
		tolerance_own = 1
		global_missionary_strength = 0.01
		church_influence_modifier = 0.10
	}
	ai = {
		factor = 1
	}
}


faith_in_ancestors_spirits_reform = {
	icon = tribal_religious_society
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			religion = shamanism
			religion = totemism
		}

	}
	trigger = {
		OR = {
			religion = shamanism
			religion = totemism
		}

	}
	modifiers = {
		tolerance_own = 1
		global_missionary_strength = 0.01
		church_influence_modifier = 0.10
	}
	ai = {
		factor = 1
	}
}

histories_of_the_sky_god_reform = {
	icon = horde_riding
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_religious_adherence_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Religious_Adherence
			}
		}
	}
	potential = {
		religion = tengri_pagan_reformed
	}
	trigger = {
		OR = {
			religion = tengri_pagan_reformed
		}

	}
	modifiers = {
		global_missionary_strength = 0.01
		church_influence_modifier = 0.10
	}
	custom_attributes = {
		enables_people_under_tengri = yes #500 manpower and -2 unrest for steppe provinces
	}
	ai = {
		factor = 1
	}
}

enforced_caste_system_reform = {
	icon = indian_sultanate
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		religion = hinduism
	}
	trigger = {
		OR = {
			religion = hinduism
		}

	}
	modifiers = {
		global_missionary_strength = 0.01
		tolerance_own = 1
	}
	ai = {
		factor = 1
	}
}

teaching_of_guru_Sahib_reform = {
	icon = noble_muslim
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		religion = sikhism
	}
	trigger = {
		OR = {
			religion = sikhism
			has_reform = teaching_of_guru_Sahib_reform
		}

	}
	modifiers = {
		global_missionary_strength = 0.01
		religious_unity = 0.25
		stability_cost_modifier = -0.1
		church_influence_modifier = 0.10
	}
	ai = {
		factor = 1
	}
}

guidance_of_the_dalai_llama_reform = {
	icon = people_walking
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		religion = vajrayana
	}
	trigger = {
		OR = {
			religion = vajrayana
		}
	}
	modifiers = {
		global_missionary_strength = 0.01
		tolerance_own = 1
		religious_unity = 0.15
		church_influence_modifier = 0.10
	}
	custom_attributes = {
		enables_holy_lhasa = yes #Provide a malus that if Lhasa province is not Vajrayana, gain +2 unrest
	}
	ai = {
		factor = 1
	}
}

enlightened_ethical_teachings_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		religion = confucianism
	}
	trigger = {
		OR = {
			religion = confucianism
		}

	}
	modifiers = {
		yearly_harmony = 0.15
		tolerance_own = 1
		church_influence_modifier = 0.10
	}
	ai = {
		factor = 1
	}
}

state_temple_harmonization_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_religious_adherence_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Religious_Adherence
			}
		}
	}
	potential = {
		emf_religion_is_buddhist = yes
	}
	trigger = {
		emf_religion_is_buddhist = yes

	}
	modifiers = {
		global_missionary_strength = 0.01
		tolerance_own = 1
		church_influence_modifier = 0.10
	}
	custom_attributes = {
		enables_religious_adherence = yes #250 manpower in true faith provinces with temples
	}
	ai = {
		factor = 1
	}
}

nahuatl_blood_sacrifices_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			religion = nahuatl
		}
	}
	trigger = {
		OR = {
			religion = nahuatl
		}
	}
	modifiers = {
		tolerance_own = 1
		state_maintenance_modifier = -0.15
		church_influence_modifier = 0.10
		legitimacy = -1
		devotion = -1
	}
	custom_attributes = {
		enables_blood_sacrifice = yes #Sacrifice a subject ruler to get 10 legitimacy/10 devotion.
	}
	ai = {
		factor = 1
	}
}

inti_sun_god_centralization_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_religious_adherence_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Religious_Adherence
			}
		}
	}
	potential = {
		OR = {
			religion = inti
		}
	}
	trigger = {
		OR = {
			religion = inti
		}
	}
	modifiers = {
		global_missionary_strength = 0.01
		tolerance_own = 1
	}
	custom_attributes = {
		enables_religious_adherence = yes #250 manpower in true faith provinces with temples
	}
	ai = {
		factor = 1
	}
}

inti_huaca_regionalism_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_huaca_cults_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = GE_Huaca_Cults
			}
		}
	}
	potential = {
		OR = {
			religion = inti
			religion = mesoamerican_religion
		}
	}
	trigger = {
		OR = {
			religion = inti
			religion = mesoamerican_religion
		}
	}
	modifiers = {
		tolerance_heathen = 0.5
		tolerance_heretic = 0.5
	}
	custom_attributes = {
		enables_huaca_cults = yes #+10% tax in non-believer provinces.
	}
	ai = {
		factor = 1
	}
}

diocletian_reforms_reform = {
	icon = diocletian
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.168
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}			
		hidden_effect = {
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_9
			remove_country_modifier = Jurisprudence_10
		}
	}
	potential = {
		OR = {
			culture_group = byzantine
			has_reform = diocletian_reforms_reform
		}
	}
	trigger = {
		OR = {
			culture_group = byzantine
			has_reform = diocletian_reforms_reform
		}
	}
	modifiers = {
		legitimacy = 0.25
	}
	custom_attributes = {
		enables_jurisprudence = yes #-1% Idea Cost and -2% Admin Tech Cost for each 10% Min Autonomy
	}
	ai = {
		factor = 100
	}
}

kyoho_reforms_reform = {
	icon = "peasants"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			culture_group = japanese_g
			accepted_culture = japanese
			accepted_culture = kyushuan
			accepted_culture = togoku
			has_reform = kyoho_reforms_reform
		}
	}
	trigger = {
		OR = {
			culture_group = japanese_g
			accepted_culture = japanese
			accepted_culture = kyushuan
			accepted_culture = togoku
			has_reform = kyoho_reforms_reform
		}
	}
	modifiers = {
		global_tax_modifier = 0.10
		trade_efficiency = 0.05
		burghers_influence_modifier = 0.05
	}
	ai = {
		factor = 10
	}
}





oprichnina_reform_GE = {
	icon = oprichnina
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = russian
			has_reform = oprichnina_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = russian
			has_reform = oprichnina_reform
		}
	}
	modifiers = {
		global_unrest = -1
		unjustified_demands = -0.25
	}
	ai = {
		factor = 100
	}
}







commoner_officials_reform = {
	icon = peasants
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = danish
			has_reform = commoner_officials_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = danish
			has_reform = commoner_officials_reform
		}
	}
	modifiers = {
		ship_power_propagation = 0.25
		dip_advisor_cost = -0.25
		burghers_influence_modifier = 0.05
		nobles_influence_modifier = -0.10
	}
	ai = {
		factor = 100
	}
}

imperial_inquisition_reform = {
	icon = imperial_inquisition
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = imperial_inquisition_reform
			primary_culture = austrian
		}
	}
	trigger = {
		OR = {
			has_reform = imperial_inquisition_reform
			primary_culture = austrian
		}
	}
	modifiers = {
		missionary_maintenance_cost = -0.1
		papal_influence = 1
		prestige_per_development_from_conversion = 0.1
		church_influence_modifier = 0.10
	}
	ai = {
		factor = 100
	}
}

revive_the_hisbah_reform = {
	icon = mamluk_noble
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = revive_the_hisbah_reform
			primary_culture = al_misr_arabic
		}
	}
	trigger = {
		OR = {
			has_reform = revive_the_hisbah_reform
			primary_culture = al_misr_arabic
		}
	}
	modifiers = {
		global_autonomy = -0.025
		yearly_corruption = -0.05
		nobles_influence_modifier = -0.05
	}
	ai = {
		factor = 100
	}
}

re_enforce_magdeburg_rights_reform = {
	icon = magdeburg_rights
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = polish
			AND = {
				accepted_culture = polish
				num_of_owned_provinces_with = {
					value = 1
					culture = polish
				}
			}
			has_reform = re_enforce_magdeburg_rights_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = polish
			AND = {
				accepted_culture = polish
				num_of_owned_provinces_with = {
					value = 5
					culture = polish
				}
			}
			has_reform = re_enforce_magdeburg_rights_reform
		}
	}
	modifiers = {
		trade_efficiency = 0.10
	}
	custom_attributes = {
		enables_town_rights = yes #Unlock Burgher Privilege 'Town Rights', +10% Goods Produced and -20% development cost depending on lands.
	}
	ai = {
		factor = 100
	}
}



integrate_tatars_reform = {
	icon = Tatar_raid
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.81
				days = 1
			}
		}
	}
	potential = {
		num_of_owned_provinces_with = {
			value = 1
			culture_group = tartar
		}
		OR = {
			NOT = { total_development = 1500 }
			has_reform = integrate_tatars_reform
		}
	}
	trigger = {
		num_of_owned_provinces_with = {
			value = 10
			culture_group = tartar
		}
		OR = {
			NOT = { total_development = 1500 }
			has_reform = integrate_tatars_reform
		}
	}
	modifiers = {
		cavalry_cost = -0.10
		cav_to_inf_ratio = 0.10
		num_accepted_cultures = 1
	}
	custom_attributes = {
		enables_settling_tribes = yes #+7 development in tatar provinces
	}
	ai = {
		factor = 10
	}
}

taifa_governors_reform = {
	icon = granada_taifa
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = taha_divisions_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = taha_divisions_reform
		}
	}
	modifiers = {
		diplomatic_upkeep = 1
		nobles_influence_modifier = 0.10
	}
	custom_attributes = {
		enables_legacy_of_independence = yes #+25% Force limit, +10% Tax in vassals
	}
	ai = {
		factor = 100
	}
}


persian_satrapies_reform = {
	icon = king
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_Satrapy_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = Satrapy
			}
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = zoroastrian_group
				culture_group = iranian
			}
		}
	}
	trigger = {
		AND = {
			religion_group = zoroastrian_group
			culture_group = iranian
		}
	}
	modifiers = {
		state_maintenance_modifier = -0.25
	}
	custom_attributes = {
		enables_satrapies = yes
	}
	ai = {
		factor = 100
	}
}

office_of_vitztum_reform = {
	icon = king
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = bavarian
			has_reform = office_of_vitztum_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = bavarian
			has_reform = office_of_vitztum_reform
		}
	}
	modifiers = {
		global_autonomy = -0.025
		years_of_nationalism = -5
		governing_capacity = 100
		nobles_influence_modifier = -0.10
	}
	ai = {
		factor = 50
	}
}

oberhofgericht_reform = {
	icon = judge
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				NOT = { tag = BRA }
				NOT = { tag = PRU }
				primary_culture = saxon
			}
			has_reform = oberhofgericht_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = saxon
			has_reform = oberhofgericht_reform
		}
	}
	modifiers = {
		global_autonomy = -0.025
		global_unrest = -1
		nobles_influence_modifier = -0.10
	}
	ai = {
		factor = 50
	}
}

imperial_examination_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			religion = confucianism
			has_reform = imperial_examination_reform
		}
	}
	trigger = {
		OR = {
			religion = confucianism
			has_reform = imperial_examination_reform
		}
	}
	modifiers = {
		advisor_pool = 1
		yearly_corruption = -0.1
	}
	ai = {
		factor = 10
	}
}

metsuke_system_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = metsuke_system_reform
			has_reform = shogunate
		}
	}
	trigger = {
		OR = {
			has_reform = metsuke_system_reform
			has_reform = shogunate
		}
	}
	modifiers = {
		spy_offence = 0.33
		reduced_liberty_desire = 5
	}
	ai = {
		factor = 10
	}
}

dual_city_administration_reform = {
	icon = hejaz_custodian
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = muslim
				accepted_culture = hejazi_culture
				num_of_owned_provinces_with = {
					value = 1
					culture = hejazi_culture
				}
			}
			primary_culture = hejazi_culture
			has_reform = dual_city_administration_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				religion_group = muslim
				accepted_culture = hejazi_culture
				num_of_owned_provinces_with = {
					value = 5
					culture = hejazi_culture
				}
			}
			primary_culture = hejazi_culture
			has_reform = dual_city_administration_reform
		}
	}
	modifiers = {
		monarch_admin_power = 1
		global_autonomy = -0.025
	}
	ai = {
		factor = 100
	}
}

levy_the_thirthieth_reform = {
	icon = economy_tax
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_salt_monopoly_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = Salt_Monopoly
			}
		}
	}
	potential = {
		OR = {
			has_reform = levy_the_thirthieth_reform
			primary_culture = hungarian
		}
	}
	trigger = {
		OR = {
			has_reform = levy_the_thirthieth_reform
			primary_culture = hungarian
		}
	}
	modifiers = {
		global_unrest = 2
		global_tax_modifier = 0.25
	}
	custom_attributes = {
		enables_salt_monopoly = yes #25% Trade Value and Goods produced on salt and naval supplies
	}
	ai = {
		factor = 100
	}
}

krums_code_reform = {
	icon = constitution
	allow_normal_conversion = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 0
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = bulgarian
			has_reform = krums_code_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = bulgarian
			has_reform = krums_code_reform
		}
	}
	modifiers = {
		legitimacy = 0.25
		stability_cost_modifier = -0.10
	}
	custom_attributes = {
		enables_codified_law = yes
	}
	ai = {
		factor = 100
	}
}

vladislavs_provincial_establishment_reform = {
	icon = szlachta
	allow_normal_conversion = yes
	valid_for_nation_designer = yes
	nation_designer_cost = 0
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = czech
			has_reform = vladislavs_provincial_establishment_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = czech
			has_reform = vladislavs_provincial_establishment_reform
		}
	}
	modifiers = {
		state_maintenance_modifier = -0.25
		global_unrest = -1
		nobles_influence_modifier = 0.10
		burghers_influence_modifier = -0.10
	}
	ai = {
		factor = 100
	}
}

crossroads_of_cultures_reform = {
	icon = "map"
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = wallonian
			has_reform = crossroads_of_cultures_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = wallonian
			has_reform = crossroads_of_cultures_reform
		}
	}
	modifiers = {
		num_accepted_cultures = 1
		promote_culture_cost = -0.25
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.212
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = GE_Cultural_Inspiration_1
			remove_country_modifier = GE_Cultural_Inspiration_2
			remove_country_modifier = GE_Cultural_Inspiration_3
			remove_country_modifier = GE_Cultural_Inspiration_4
			remove_country_modifier = GE_Cultural_Inspiration_5
		}
	}
	custom_attributes = {
		enables_cultural_inspiration = yes #+5% production efficiency and -2% tech cost per accepted culture.
	}
	ai = {
		factor = 101
	}
}

kingdom_of_cities_reform = {
	icon = arabic_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = mahri_culture
			primary_culture = omani_culture
			primary_culture = gulf_arabic
			has_reform = kingdom_of_cities_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = mahri_culture
			primary_culture = omani_culture
			primary_culture = gulf_arabic
			has_reform = kingdom_of_cities_reform
		}
	}
	modifiers = {
		global_autonomy = -0.025
		global_prov_trade_power_modifier = 0.10
	}
	can_use_trade_post = yes
	ai = {
		factor = 101
	}
}
inca_mountain_farms = {
	icon = "native_land_tradition_reform"
	allow_normal_conversion = yes
	potential = {
		OR = {
			culture_group = andean_group
			has_reform = inca_mountain_farms
		}
	}
	trigger = {
		OR = {
			culture_group = andean_group
			has_reform = inca_mountain_farms
		}
	}
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	modifiers = {
		global_trade_goods_size_modifier = 0.15
		state_maintenance_modifier = 0.50
		build_cost = 0.10
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	custom_attributes = {
		enables_mountain_towns = yes #-25% development cost in hills and mountains
	}
	ai = {
		factor = 100
	}
}
renaissance_forts_reform = {
	icon = crown
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_fortified_settlements_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				ge_fortified_settlements_province_update = yes
			}
		}
	}
	potential = {
		OR = {
			primary_culture = hessian
		}
	}
	trigger = {
		OR = {
			primary_culture = hessian
		}
	}
	modifiers = {
		prestige = 0.5
		fort_maintenance_modifier = 0.15
	}
	custom_attributes = {
		enables_fortified_settlements = yes
	}
	ai = {
		factor = 1
	}
}
#}
#############################
###########Tier4#############
#############################
#Tier 4 {
#######
#Ottoman Reforms By Clavin, NOT PROPERTY OF GE
#######
tur_reform_beylerbeys = {
	icon = "parliament_hall"
	allow_normal_conversion = yes
	modifiers = {
		governing_capacity = 250
	}
	trigger = {
		mission_completed = TUR_beylerbeys
	}
	potential = {
		tag = TUR
		mission_completed = TUR_beylerbeys
		NOT = { mission_completed = TUR_eyalets }
	}
}

tur_reform_eyalets = {
	icon = "parliament_hall"
	allow_normal_conversion = yes
	modifiers = {
		governing_capacity = 350
		state_maintenance_modifier = -0.05
	}
	trigger = {
		mission_completed = TUR_beylerbeys
	}
	potential = {
		tag = TUR
		mission_completed = TUR_eyalets
	}
}
#######
#######

integrate_moneyloaners_reform = {
	icon = banker
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		NOT = { culture_group = latin }
	}
	modifiers = {
		interest = -0.5
		inflation_reduction = 0.05
		trade_deals_slots = 1
	}
	# custom_attributes = {
		# enables_merchant_privileges = yes #+1 merchantilism when you ask for contribution from the burghers.
	# }
	ai = {
		factor = 1
	}
}

empowered_clergy_in_administration_reform = {
	icon = "bishop's_law"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	potential = {
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
	}
	trigger = {
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
	}
	modifiers = {
		free_adm_policy = 1
		warscore_cost_vs_other_religion = -0.15
		church_loyalty_modifier = 0.05
		church_influence_modifier = 0.10
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	ai = {
		factor = 10
	}
}

szlachta_recruits_reform = {
	icon = szlachta
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				OR = {
					culture_group = west_slavic
					culture_group = baltic
				}
			}
			has_reform = szlachta_recruits_reform
		}
		has_estate = estate_nobles
	}
	trigger = {
		OR = {
			culture_group = west_slavic
			culture_group = baltic
		}
	}
	modifiers = {
		army_tradition_decay = -0.005
		nobles_influence_modifier = 0.05
	}
	custom_attributes = {
		enables_veteran_general = yes
	}
	ai = {
		factor = 10
	}
}

voivode_captains_reform = {
	icon = szlachta
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			OR = {
				culture_group = carpathian
				culture_group = south_slavic
			}
			has_reform = voivode_captains_reform
		}
		has_estate = estate_nobles
	}
	trigger = {
		OR = {
			culture_group = carpathian
			culture_group = south_slavic
		}
	}
	modifiers = {
		prestige = 0.5
		nobles_influence_modifier = 0.05
	}
	custom_attributes = {
		enables_veteran_general = yes
	}
	ai = {
		factor = 10
	}
}

boyar_scions_reform = {
	icon = szlachta
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			OR = {
				culture_group = east_slavic
			}
			has_reform = boyar_scions_reform
		}
		has_estate = estate_nobles
	}
	trigger = {
		culture_group = east_slavic
	}
	modifiers = {
		stability_cost_modifier = -0.15
		nobles_influence_modifier = 0.05
	}
	custom_attributes = {
		enables_veteran_general = yes
	}
	ai = {
		factor = 10
	}
}


imperial_circles_administration_reform = {
	icon = "administer_imperial_circle"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		is_part_of_hre = yes
		NOT = { culture_group = latin }
		NOT = { primary_culture = swiss }
		NOT = { tag = DTT }
		NOT = { tag = SIL }
	}
	trigger = {
		total_development = 75
		is_part_of_hre = yes
	}
	modifiers = {
		global_unrest = -1
		accept_vassalization_reasons = 10
	}
	custom_attributes = {
		enables_town_rights = yes #Unlock Burgher Privilege 'Town Rights', +10% Goods Produced and -20% development cost depending on lands.
	}
	ai = {
		factor = 10
	}
}

colonial_govenors_reform = {
	icon = colonial_rule
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_idea = colonial_ventures
			has_reform = colonial_govenors_reform
			num_of_colonists = 1
		}
	}
	trigger = {
		calc_true_if = {
			all_subject_country = {
				is_colonial_nation = yes
			}
			amount = 2
		}
	}
	modifiers = {
		global_tariffs = 0.25
		reduced_liberty_desire = 5
	}
	custom_attributes = {
		enables_colonial_plantations = yes #+15% plantation goods produced in colonies
	}
	ai = {
		factor = 10
	}
}

sulu_administration_reform = {
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	icon = muslim
	allow_normal_conversion = yes
	potential = {
		tag = SUL
	}
	trigger = {
		tag = SUL
	}
	modifiers = {
		advisor_cost = -0.20
		advisor_pool = 1
		trade_deals_slots = 1
	}
	ai = {
		factor = 100
	}
}

academy_of_science_reform = {
	icon = paper_with_seal
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			tag = RUS
			tag = MOS
			primary_culture = russian
			accepted_culture = russian
			has_reform = academy_of_science_reform
		}
	}
	trigger = {
		OR = {
			tag = RUS
			tag = MOS
			primary_culture = russian
			accepted_culture = russian
			has_reform = academy_of_science_reform
		}
	}
	modifiers = {
		technology_cost = -0.05
		prestige = 0.25
	}
	ai = {
		factor = 100
	}
}





table_of_ranks_reform = {
	icon = table_of_ranks
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			tag = RUS
			tag = MOS
			primary_culture = russian
			has_reform = table_of_ranks_reform
		}
	}
	trigger = {
		OR = {
			tag = RUS
			tag = MOS
			primary_culture = russian
			has_reform = table_of_ranks_reform
		}
	}
	modifiers = {
		army_tradition_from_battle = 0.5
		naval_tradition_from_battle = 0.5
		governing_capacity_modifier = 0.05
	}
	ai = {
		factor = 100
	}
}



christian_four_merchantile_reform = {
	icon = merchant_ship
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = christian_four_merchantile_reform
			primary_culture = danish
		}
	}
	trigger = {
		OR = {
			has_reform = christian_four_merchantile_reform
			primary_culture = danish
		}
	}
	modifiers = {
		range = 0.25
		global_prov_trade_power_modifier = 0.25
	}
	# effect = { #stopabusingthis
		# add_mercantilism = 5
	# }
	ai = {
		factor = 100
	}
}

declario_ferdinandei_reform = {
	icon = ferdinants_declaration
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = austrian
			has_reform = declario_ferdinandei_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = austrian
			has_reform = declario_ferdinandei_reform
		}
	}
	modifiers = {
		religious_unity = 0.20
		imperial_authority = 0.05
	}
	ai = {
		factor = 100
	}
}

turkicized_elite_reform = {
	icon = mamluk_veteran
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = turkicized_elite_reform
			primary_culture = al_misr_arabic
		}
	}
	trigger = {
		OR = {
			has_reform = turkicized_elite_reform
			primary_culture = al_misr_arabic
		}
	}
	modifiers = {
		diplomatic_upkeep = 1
		governing_capacity = 50
	}
	ai = {
		factor = 10
	}
}



cultural_investment_reform = {
	icon = granada_trader
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.59
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = cultural_investment_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = cultural_investment_reform
		}
	}
	modifiers = {
		global_trade_power = 0.10
		trade_deals_slots = 1
	}
	custom_attributes = {
		enables_foreign_artists = yes #0.1 Prestige per Merchant.
	}
	ai = {
		factor = 100
	}
}

empowered_of_noble_bearing_reform = {
	icon = "bourbon_reform"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.35
				days = 1
			}
			country_event = { 
				id = reform_me_events.37
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = General_Connections_1
			remove_country_modifier = General_Connections_2
			remove_country_modifier = General_Connections_3
			remove_country_modifier = General_Connections_4
			remove_country_modifier = General_Connections_5
			remove_country_modifier = General_Connections_6
			remove_country_modifier = General_Connections_7
			remove_country_modifier = General_Connections_8
			remove_country_modifier = General_Connections_9
			remove_country_modifier = General_Connections_10
		}
	}
	potential = {
		check_variable = {
			which = Noble_Influence
			value = 2
		}
		NOT = { technology_group = eastern }
		NOT = {
			has_estate = estate_maratha
			technology_group = indian
			NOT = { has_estate = estate_nobles }
		}
		NOT = {
			has_estate = estate_rajput
			technology_group = indian
			NOT = { has_estate = estate_nobles }
		}
	}
	trigger = {
		check_variable = {
			which = Noble_Influence
			value = 2
		}
	}
	modifiers = {
		leader_cost = -0.1
		nobles_influence_modifier = 0.10
	}
	custom_attributes = {
		enables_general_connections = yes # 0.1 Army Tradition per General, 0.1 Naval Tradition per Admiral
		enables_veteran_general = yes #60 AT General instead of 40 AT General
	}
	ai = {
		factor = 10
	}
}

justice_and_truth_reform = {
	icon = king
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = zoroastrian_group
				culture_group = iranian
			}
		}
	}
	trigger = {
		AND = {
			religion_group = zoroastrian_group
			culture_group = iranian
		}
	}
	modifiers = {
		yearly_corruption = -0.10
	}
	ai = {
		factor = 100
	}
}

ottonian_handfeste_reform = {
	icon = king
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		if = {
			limit = {
				NOT = {
					has_country_flag = GE_ottonain_handfeste
				}
			}
			set_country_flag = GE_ottonain_handfeste
			add_years_of_income = 2.5
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = bavarian
			has_reform = ottonian_handfeste_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = bavarian
			has_reform = ottonian_handfeste_reform
		}
	}
	modifiers = {
		global_tax_modifier = 0.10
		max_absolutism = -5
		nobles_influence_modifier = 0.10
		burghers_influence_modifier = 0.10
		church_influence_modifier = 0.10
	}
	ai = {
		factor = 50
	}
	#add 5 influence of each influence
}

reestablish_the_kuge_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			religion = shinto
			has_reform = reestablish_the_kuge_reform
		}
	}
	trigger = {
		OR = {
			religion = shinto
			has_reform = reestablish_the_kuge_reform
		}
	}
	modifiers = {
		prestige = 0.5
		global_unrest = -1
	}
	ai = {
		factor = 10
	}
}



eunich_administration_reform = {
	icon = "asian_scripture"
	allow_normal_conversion = yes
	potential = {
		tag = MNG
	}
	trigger = {
		tag = MNG
	}
	modifiers = {
		free_dip_policy = 1
		num_accepted_cultures = 1
		legitimacy = 0.5
	}
	custom_attributes = {
		enables_eastern_courts = yes
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.148
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = GE_eastern_courts_incorruptible
			remove_country_modifier = GE_eastern_courts_corruptible
		}
	}
	ai = {
		factor = 100
	}
}

civil_servant_reform = {
	icon = "asian_scripture"
	allow_normal_conversion = yes
	potential = {
		OR = {
			AND = {
				religion = confucianism
				NOT = { tag = MNG }
			}
		}
	}
	trigger = {
		OR = {
			AND = {
				religion = confucianism
				NOT = { tag = MNG }
			}
		}
	}
	modifiers = {
		governing_capacity = 150
	}
	custom_attributes = {
		enables_eastern_courts = yes
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.148
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = GE_eastern_courts_incorruptible
			remove_country_modifier = GE_eastern_courts_corruptible
		}
	}
	ai = {
		factor = 100
	}
}

highborn_ministers_reform = {
	icon = hejaz_ministers
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = muslim
				primary_culture = hejazi_culture
			}
			has_reform = highborn_ministers_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				religion_group = muslim
				primary_culture = hejazi_culture
			}
			has_reform = highborn_ministers_reform
		}
	}
	modifiers = {
		free_adm_policy = 1
		governing_capacity = 100
		global_tax_modifier = 0.05
	}
	ai = {
		factor = 100
	}
}

kiwi_support_reform = {
	icon = merchant_ship
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.159
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_9
			remove_country_modifier = Kiwi_Rights_10
		}
	}
	potential = {
		OR = {
			culture_group = malay
			has_reform = kiwi_support_reform
		}
	}
	trigger = {
		OR = {
			culture_group = malay
			has_reform = kiwi_support_reform
		}
	}
	modifiers = {
		global_trade_power = 0.10
		trade_deals_slots = 1
	}
	custom_attributes = {
		enables_kiwi_support = yes #5% ship trade power per merchant.
	}
	ai = {
		factor = 100
	}
}

roman_senate_reform = {
	icon = parliament
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			culture_group = byzantine
			has_reform = roman_senate_reform
		}
	}
	trigger = {
		OR = {
			culture_group = byzantine
			has_reform = roman_senate_reform
		}
	}
	modifiers = {
		stability_cost_modifier = -0.10
	}
	factions = {
		GE_Senate
		GE_Pentarchy
		GE_Army
	}
	ai = {
		factor = 100
	}
}

decretum_maius_reform = {
	icon = hungarian_decretum_maius
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.59
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = Masked_Monarch
		}
	}
	potential = {
		OR = {
			has_reform = decretum_maius_reform
			primary_culture = hungarian
		}
	}
	trigger = {
		OR = {
			has_reform = decretum_maius_reform
			primary_culture = hungarian
		}
	}
	modifiers = {
		global_autonomy = -0.025
		advisor_pool = 1
		nobles_influence_modifier = -0.10
	}
	custom_attributes = {
		enables_masked_monarch = yes #-0.10 corruption while at peace
	}
	ai = {
		factor = 100
	}
}



drastic_control_of_the_boyars_reform = {
	icon = szlachta_noble_2
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = bulgarian
			has_reform = drastic_control_of_the_boyars_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = bulgarian
			has_reform = drastic_control_of_the_boyars_reform
		}
	}
	modifiers = {
		global_unrest = -1
		global_manpower_modifier = 0.10
		nobles_influence_modifier = -0.10
	}
	ai = {
		factor = 100
	}
}

german_aristocracy_reform = {
	icon = szlachta
	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 = czech
			has_reform = german_aristocracy_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = czech
			has_reform = german_aristocracy_reform
		}
	}
	modifiers = {
		free_mil_policy = 1
		ae_impact = -0.10
		nobles_influence_modifier = 0.10
	}
	ai = {
		factor = 100
	}
}

hof_van_brabant_reform = {
	icon = szlachta
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = wallonian
			has_reform = hof_van_brabant_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = wallonian
			has_reform = hof_van_brabant_reform
		}
	}
	modifiers = {
		monthly_splendor = 1
	}
	effect = {
		hidden_effect = {
			ge_country_union_of_arras_update = yes
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = GE_Union_of_Arras
		}
	}
	custom_attributes = {
		enables_union_of_arras = yes #+2 Papal Influence if you have 3 catholic advisors
	}
	ai = {
		factor = 101
	}
}
doctrines_of_al_jazuli_reform = {
	icon = al_jazuli
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = moroccan
			has_reform = doctrines_of_al_jazuli_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = moroccan
			has_reform = doctrines_of_al_jazuli_reform
		}
	}
	modifiers = {
		tolerance_own = 1
		legitimacy = 0.5
	}
	ai = {
		factor = 100
	}
}

via_media_reform = {
	icon = crown
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = hessian
			accepted_culture = hessian
		}
	}
	trigger = {
		OR = {
			primary_culture = hessian
			accepted_culture = hessian
		}
	}
	modifiers = {
		tolerance_heretic = 1
		same_culture_advisor_cost = -0.10
	}
	ai = {
		factor = 1
	}
}
#}
#############################
###########Tier5#############
#############################
#Tier 5 {
empowered_royal_decree_reform = {
	icon = "austrian_empire"
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Royal_Influence
			value = 3
		}
	}
	trigger = {
		check_variable = {
			which = Royal_Influence
			value = 3
		}
	}
	modifiers = {
		max_absolutism = 10
		yearly_absolutism = 0.1
		nobles_influence_modifier = -0.10
		burghers_influence_modifier = -0.10
		church_influence_modifier = -0.10
	}
	custom_attributes = {
		enables_royal_council = yes
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.52
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			ge_country_royal_council_remove = yes
		}
	}
	ai = {
		factor = 10
	}
	#-10% All estate Influence
}

empowered_divine_blood_reform = {
	icon = "theocratic_law"
	allow_normal_conversion = yes
	has_devotion = yes
	effect = {
		add_devotion = 50
	}
	potential = {
		check_variable = {
			which = Royal_Influence
			value = 2
		}
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
		NOT = { has_reform = celestial_empire }
	}
	trigger = {
		check_variable = {
			which = Royal_Influence
			value = 2
		}
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
	}
	modifiers = {
		tolerance_own = 1
		diplomatic_reputation = 1
		max_absolutism = 5
		devotion = 0.5
	}
	custom_attributes = {
		enables_divine_blood = yes
		enables_divine_idea_group = yes
		enables_aristocratic_idea_group = no
	}
	ai = {
		factor = 10
	}
}

empowered_monastic_militarism_reform = {
	icon = "brothers_in_arms"
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Noble_Influence
			value = 2
		}
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
	}
	trigger = {
		check_variable = {
			which = Noble_Influence
			value = 2
		}
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
	}
	modifiers = {
		free_mil_policy = 1
		max_absolutism = -5
	}
	custom_attributes = {
		enables_militant_orders = yes #25% manpower recovery and 1AT during war with heretics n heathens
	}
	effect = {
		hidden_effect = {
			ge_country_militant_orders_update = yes
		}
	}
	removed_effect = {
		hidden_effect = {
			ge_country_militant_orders_update = yes
		}
	}
	ai = {
		factor = 10
	}
}

empowered_german_aristocratic_court_reform = {
	icon = "szlachta_noble_2"
	allow_normal_conversion = yes
	potential = {
		culture_group = germanic
		check_variable = {
			which = Noble_Influence
			value = 3
		}
	}
	trigger = {
		culture_group = germanic
		check_variable = {
			which = Noble_Influence
			value = 3
		}
	}
	modifiers = {
		free_leader_pool = 1
		army_tradition_decay = -0.005
	}
	# custom_attributes = {
		# enables_junker_estate = yes
	# }
	ai = {
		factor = 0
	}
}

empowered_aristocratic_court_reform = {
	icon = "szlachta_noble_2"
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Noble_Influence
			value = 3
		}
		NOT = { culture_group = germanic }
	}
	trigger = {
		check_variable = {
			which = Noble_Influence
			value = 3
		}
	}
	modifiers = {
		army_tradition_decay = -0.005
	}
	# custom_attributes = {
		# enables_shocking_general = yes #+1 Shock on General
	# }#fixdis
	ai = {
		factor = 10
	}
	#+15% Noble Loyalty
}

empowered_general_estates_reform = {
	icon = "poland_sejm"
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Burgher_Influence
			value = 3
		}
	}
	trigger = {
		check_variable = {
			which = Burgher_Influence
			value = 3
		}
	}
	modifiers = {
		monthly_reform_progress_modifier = 0.2
		all_estate_influence_modifier = 0.05
		all_estate_loyalty_equilibrium = 0.1
	}
	custom_attributes = {
		diet_increases_not_influence = yes
		enables_burgher_council = yes
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.88
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = Autarky
			remove_country_modifier = Balanced_Policy
			remove_country_modifier = Open_Doors
		}
	}
	ai = {
		factor = 0
	}
}

empowered_church_councils_reform = {
	icon = "bishop"
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Clergy_Influence
			value = 3
		}
	}
	trigger = {
		check_variable = {
			which = Clergy_Influence
			value = 3
		}
	}
	modifiers = {
		tolerance_own = 1
		global_missionary_strength = 0.02
	}
	effect = {
		hidden_effect = {
			every_owned_province = {
				ge_Church_Poorhouses_province_update = yes
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = Church_Poorhouses
			}
		}
	}
	custom_attributes = {
		enables_church_poorhouses = yes
	}
	ai = {
		factor = 1
	}
}

empowered_imperial_circles_political_reform = {
	icon = "king"
	allow_normal_conversion = yes
	potential = {
		is_part_of_hre = yes
		OR = {
			has_reform = imperial_circles_administration_reform
			has_reform = imperial_circles_reform
			has_reform = empowered_imperial_circles_political_reform
		}
	}
	trigger = {
		has_reform = imperial_circles_administration_reform
		has_reform = imperial_circles_reform
	}
	modifiers = {
		accept_vassalization_reasons = 15
		vassal_tax_modifier = 0.20
	}
	effect = {
		hidden_effect = {
			ge_country_imperial_circle_update = yes
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = GE_Imperial_Circle_1
			remove_country_modifier = GE_Imperial_Circle_2
			remove_country_modifier = GE_Imperial_Circle_3
			remove_country_modifier = GE_Imperial_Circle_4
			remove_country_modifier = GE_Imperial_Circle_5
		}
	}
	custom_attributes = {
		enables_imperial_circle = yes #+0.5 Diprep per subject hre prince, up to 2.5 maximum
	}
	ai = {
		factor = 105
	}
}



king_and_duke_reform = {
	icon = assembly_hall
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = danish
			has_reform = king_and_duke_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = danish
			has_reform = king_and_duke_reform
		}
	}
	modifiers = {
		years_of_nationalism = -5
		reduced_liberty_desire = 10
	}
	ai = {
		factor = 100
	}
}

diverse_estates_reform = {
	icon = diverse_estates
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = austrian
			has_reform = diverse_estates_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = austrian
			has_reform = diverse_estates_reform
		}
	}
	modifiers = {
		diplomats = 1
		burghers_loyalty_modifier = 0.05
		church_loyalty_modifier = 0.05
	}
	ai = {
		factor = 100
	}
	#+10% All Estate loyalty
}

foreign_recruitment_reform = {
	icon = mamluk_army
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_reform = foreign_recruitment_reform
			primary_culture = al_misr_arabic
			AND = {
				religion_group = muslim
				accepted_culture = al_misr_arabic
				num_of_owned_provinces_with = {
					value = 1
					culture = al_misr_arabic
				}
			}
		}
	}
	trigger = {
		OR = {
			has_reform = foreign_recruitment_reform
			primary_culture = al_misr_arabic
			AND = {
				religion_group = muslim
				accepted_culture = al_misr_arabic
				num_of_owned_provinces_with = {
					value = 5
					culture = al_misr_arabic
				}
			}
		}
	}
	modifiers = {
		merchants = 1
		trade_deals_slots = 1
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.23
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_9
			remove_country_modifier = Mercenary_Markets_10
		}
	}
	custom_attributes = {
		enables_mercenary_markets = yes #-1% Infantry Cost and 2% Manpower Recovery per merchant
	}
	ai = {
		factor = 100
	}
}

preeminent_padishah_reform = {
	icon = king
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = zoroastrian_group
				culture_group = iranian
			}
		}
	}
	trigger = {
		AND = {
			religion_group = zoroastrian_group
			culture_group = iranian
		}
	}
	modifiers = {
		max_absolutism = 10
	}
	ai = {
		factor = 100
	}
	#Needtoadd-10influence
}

freie_landtage_reform = {
	icon = king
	allow_normal_conversion = yes
	has_parliament = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				NOT = { tag = BRA }
				NOT = { tag = PRU }
				primary_culture = saxon
			}
			has_reform = freie_landtage_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = saxon
			has_reform = freie_landtage_reform
		}
	}
	modifiers = {
		legitimacy = 0.25
		trade_efficiency = 0.10
	}
	ai = {
		factor = 100
	}
}

grand_secretariat_reform = {
	icon = "asian_scripture"
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = MNG
		}
	}
	trigger = {
		OR = {
			tag = MNG
		}
	}
	modifiers = {
		monarch_diplomatic_power = 1
		yearly_corruption = 0.05
		advisor_pool = 1
	}
	ai = {
		factor = 100
	}
}

grand_council_reform = {
	icon = "asian_scripture"
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = QNG
		}
	}
	trigger = {
		OR = {
			tag = QNG
		}
	}
	modifiers = {
		advisor_cost = -0.10
		advisor_pool = 1
	}
	custom_attributes = {
		enables_qing_court = yes
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.149
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = GE_qing_court_small
			remove_country_modifier = GE_qing_court_medium
			remove_country_modifier = GE_qing_court_large
		}
	}
	ai = {
		factor = 100
	}
}



tripartum_reform = {
	icon = hungarian_tripartum
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.180
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = Noble_Service
		}
	}
	potential = {
		OR = {
			has_reform = tripartum_reform
			primary_culture = hungarian
		}
	}
	trigger = {
		OR = {
			has_reform = tripartum_reform
			primary_culture = hungarian
		}
	}
	modifiers = {
		legitimacy = 0.5
		global_unrest = -1
		max_absolutism = -10
	}
	custom_attributes = {
		enables_noble_service = yes #+50% manpower and morale in defensive wars
	}
	ai = {
		factor = 100
	}
}

restored_land_establishment_reform = {
	icon = szlachta
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = czech
			has_reform = restored_land_establishment_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = czech
			has_reform = restored_land_establishment_reform
		}
	}
	modifiers = {
		max_absolutism = 5
		global_autonomy = -0.025
		church_influence_modifier = 0.05
		nobles_influence_modifier = -0.05
	}
	ai = {
		factor = 100
	}
}

nomad_councils_reform = {
	icon = mamluk_horse
	allow_normal_conversion = yes
	potential = {
		OR = {
			culture_group = maghrebi
			has_reform = nomad_councils_reform
		}
	}
	trigger = {
		OR = {
			culture_group = maghrebi
			has_reform = nomad_councils_reform
		}
	}
	modifiers = {
		stability_cost_modifier = -0.15
		nobles_loyalty_modifier = 0.05
	}
	ai = {
		factor = 100
	}
}
office_of_kanzler_reform = {
	icon = swabia_eberhard
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = swabian
			has_reform = office_of_kanzler_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = swabian
			has_reform = office_of_kanzler_reform
		}
	}
	modifiers = {
		state_maintenance_modifier = -0.15
	}
	custom_attributes = {
		enables_office_of_chancellor = yes #privilege to give +1 monthly admin power while the burghers have over 60% loyalty
	}
	ai = {
		factor = 100
	}
}

diamond_of_the_earth_reform = {
	icon = arabic_scripture
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = mahri_culture
			primary_culture = omani_culture
			primary_culture = gulf_arabic
			has_reform = diamond_of_the_earth_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = mahri_culture
			primary_culture = omani_culture
			primary_culture = gulf_arabic
			has_reform = diamond_of_the_earth_reform
		}
	}
	modifiers = {
		merchants = 1
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.59
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
	}
	custom_attributes = {
		enables_foreign_artists = yes #0.1 Prestige per Merchant.
	}
	ai = {
		factor = 101
	}
}


#############################
###########Tier6#############
#############################

freedom_of_religion_reform = {
	icon = freedom_of_religion
	allow_normal_conversion = yes
	potential = {}
	modifiers = {
		tolerance_heathen = 1
		tolerance_of_heathens_capacity = 1
		tolerance_heretic = 1
		tolerance_of_heretics_capacity = 1
	}
	ai = {
		factor = 1
	}
}

constitutional_equality_reform = {
	icon = constitution
	allow_normal_conversion = yes
	potential = {}
	modifiers = {
		max_absolutism = -10
		global_unrest = -2
		legitimacy = 1
	}
	ai = {
		factor = 1
	}
}

revoke_reichsfreiheit_reform = {
	icon = politician
	allow_normal_conversion = yes
	potential = {
		is_part_of_hre = yes
	}
	trigger = {
		is_part_of_hre = yes
		total_development = 150
	}
	modifiers = {
		diplomatic_annexation_cost = -0.15
		ae_impact = -0.15
	}
	ai = {
		factor = 10
	}
}

nueva_planta_decrees_reform = {
	icon = nueva_planta
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = SPA
			has_reform = nueva_planta_decrees_reform
		}
	}
	trigger = {
		OR = {
			tag = SPA
			has_reform = nueva_planta_decrees_reform
		}
	}
	modifiers = {
		global_autonomy = -0.075
		global_unrest = -1
		governing_capacity = 150
	}
	ai = {
		factor = 0 #lets not kill spain with revolts
	}
}

toleration_of_all_faiths_edict_reform = {
	icon = toleration_edict
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = RUS
			primary_culture = russian
			has_reform = toleration_of_all_faiths_edict_reform
		}
	}
	trigger = {
		OR = {
			tag = RUS
			primary_culture = russian
			has_reform = toleration_of_all_faiths_edict_reform
		}
	}
	modifiers = {
		religious_unity = 0.15
		build_cost = -0.10
		state_maintenance_modifier = -0.20
	}
	ai = {
		factor = 100
	}
}

abolish_the_haandfaestning_reform = {
	icon = paper_with_seal
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = danish
			has_reform = abolish_the_haandfaestning_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = danish
			has_reform = abolish_the_haandfaestning_reform
		}
	}
	modifiers = {
		max_absolutism = 10
		heir_chance = 0.25
		global_unrest = -1
		nobles_influence_modifier = -0.15
	}
	ai = {
		factor = 100
	}
}





absolutist_administration_reform = {
	icon = "asian_scripture"
	allow_normal_conversion = yes
	potential = {
		OR = {
			is_emperor_of_china = yes
		}
	}
	trigger = {
		OR = {
			is_emperor_of_china = yes
		}
	}
	modifiers = {
		max_absolutism = 10
		meritocracy = -1
		production_efficiency = 0.10
	}
	ai = {
		factor = 100
	}
}

permanent_regency_reform = {
	icon = "asian_scripture"
	allow_normal_conversion = yes
	potential = {
		OR = {
			is_emperor_of_china = yes
		}
	}
	trigger = {
		OR = {
			is_emperor_of_china = yes
		}
	}
	modifiers = {
		max_absolutism = -5
		tolerance_own = 2
		yearly_corruption = -0.05
	}
	ai = {
		factor = 100
	}
}


#}
#############################
###########Tier7#############
#############################
#Tier 7 {
abolish_clergy_privileges_reform = {
	icon = bourbon_reform
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = SPA
			has_reform = abolish_clergy_privileges_reform
		}
	}
	trigger = {
		OR = {
			tag = SPA
			has_reform = abolish_clergy_privileges_reform
		}
	}
	modifiers = {
		administrative_efficiency = 0.05
		global_tax_modifier = 0.10
		church_influence_modifier = -0.20
		church_loyalty_modifier = -0.15
	}
	ai = {
		factor = 100
	}
}

peters_council_reform = {
	icon = peter_the_great
	allow_normal_conversion = yes
	potential = {
		OR = {
			tag = RUS
			primary_culture = russian
			has_reform = peters_council_reform
		}
	}
	trigger = {
		OR = {
			tag = RUS
			primary_culture = russian
			has_reform = peters_council_reform
		}
	}
	modifiers = {
		diplomatic_reputation = 1
		global_unrest = -1
	}
	ai = {
		factor = 100
	}
}


#}
#############################
###########Tier3.5###########
#############################
#Tier 3.5 {
feudal_levies_reform = {
	icon = "soldiers_2"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		every_subject_country = {
			hidden_effect = {
				ge_country_marcher_lords_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		every_subject_country = {
			hidden_effect = {
				remove_country_modifier = GE_Marcher_Lords
			}
		}
	}
	potential = {
	}
	trigger = {
	}
	modifiers = {
		war_taxes_cost_modifier = -0.5
		nobles_influence_modifier = 0.05
		nobles_loyalty_modifier = 0.05
		vassal_forcelimit_bonus = 1
	}
	custom_attributes = {
		enables_marcher_lords = yes #25% vassal force limit and manpower
		enables_expansion_of_noble_privileges = yes
	}
	ai = {
		factor = 1
	}
}

empowered_heavy_knights_reform = {
	icon = mamluk_army
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		check_variable = {
			which = Noble_Influence
			value = 2
		}
	}
	trigger = {
		check_variable = {
			which = Noble_Influence
			value = 2
		}
	}
	modifiers = {
		shock_damage = 0.05
		cavalry_power = 0.05
	}
	custom_attributes = {
		enables_white_knights = yes
	}
	ai = {
		factor = 1
	}
}

national_guard_reform = {
	icon = national_guard
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		NOT = { culture_group = latin }
	}
	modifiers = {
		land_morale = 0.05
		army_tradition_decay = 0.003
		manpower_in_own_culture_provinces = 0.25
	}
#	custom_attributes = {
#		enables_patriotism = yes #+25% Manpower in primary culture provinces
#	}
	ai = {
		factor = 1
	}
}

mercenary_corps_reform = {
	icon = landsknecht
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.217
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_Foreign_Experts_1
			remove_country_modifier = GE_Foreign_Experts_2
			remove_country_modifier = GE_Foreign_Experts_3
			remove_country_modifier = GE_Foreign_Experts_4
			remove_country_modifier = GE_Foreign_Experts_5
		}
	}
	potential = {
		NOT = { culture_group = latin }
		NOT = { culture_group = germanic }
	}
	modifiers = {
		mercenary_manpower = 0.25
		reinforce_speed = 0.25
		merc_maintenance_modifier = -0.15
	}
	custom_attributes = {
		#enables_foreign_worship = yes #10% Religious Unity if you employ mercenaries
		enables_foreign_experts = yes #+1% Mercenary Disciple for each ally of a foreign culturegroup you have.
	}
	ai = {
		factor = 1
	}
}

landsknecht_captains_reform = {
	icon = landsknecht
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Burgher_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.229
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Burgher_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_Landsknecht_Sergeants
		}
	}
	potential = {
		OR = {
			accepted_culture = flemish
			primary_culture = flemish
			accepted_culture = swabian
			primary_culture = swabian
		}
	}
	trigger = {
		OR = {
			accepted_culture = flemish
			primary_culture = flemish
			accepted_culture = swabian
			primary_culture = swabian
		}
	}
	modifiers = {
		mercenary_manpower = 0.25
	}
	custom_attributes = {
		#enables_foreign_worship = yes #10% Religious Unity if you employ mercenaries
		#enables_foreign_experts = yes #+1% Mercenary Disciple for each ally of a foreign culturegroup you have.
		enables_landsknecht_sergeants = yes #+10% ICA if you employ mercenaries
	}
	ai = {
		factor = 10
	}
}

empowered_mercenary_corps_reform = {
	icon = "Teuton_2"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Clergy_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.67
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Clergy_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
	}
	potential = {
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
	}
	trigger = {
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
	}
	modifiers = {
		land_attrition = -0.1
		reinforce_speed = 0.25
		merc_maintenance_modifier = -0.25
	}
	custom_attributes = {
		enables_crusader_order = yes #1% ICA per Tolerance
	}
	ai = {
		factor = 1
	}
}

professional_army_reform = {
	icon = "soldiers"
	allow_normal_conversion = yes
	effect = {
		if = {
			limit = { uses_republican_tradition = yes }
			change_variable = {
				which = Oliarch_Influence
				value = 1
			}
		}
		else = {
			change_variable = {
				which = Royal_Influence
				value = 1
			}
		}
		if = {
			limit = {
				ai = yes
			}
			set_estate_privilege = estate_nobles_elite_guards
		}
	}
	removed_effect = {
		if = {
			limit = { uses_republican_tradition = yes }
			change_variable = {
				which = Oliarch_Influence
				value = -1
			}
		}
		else = {
			change_variable = {
				which = Royal_Influence
				value = -1
			}
		}
	}
	potential = { 
		NOT = { has_estate = estate_rajput }
		NOT = { has_estate = estate_ghulams }
	}
	modifiers = {
		drill_gain_modifier = 0.25
		yearly_army_professionalism = 0.001
	}
	custom_attributes = {
		#enables_general_guards = yes #+1.25 AP per General
		enables_elite_regiments = yes #Elite Regiments, +50% Drill gain, -50% reinforcement speed, +10% ICA
	}
	ai = {
		factor = 1
		modifier = {
			factor = 1
			NOT = { has_idea_group = quantity_ideas }
		}
		modifier = {
			factor = 10
			has_idea_group = quantity_ideas
		}
		modifier = {
			factor = 1
			OR = {
				tag = PRU
				tag = BRA
			}
		}
	}
}

empowered_royal_guard_reform = {
	icon = "hesse_jaegers"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		check_variable = {
			which = Royal_Influence
			value = 2
		}
	}
	trigger = {
		check_variable = {
			which = Royal_Influence
			value = 2
		}
	}
	modifiers = {
		land_forcelimit_modifier = -0.15
		drill_gain_modifier = 0.25
		infantry_power = 0.10
	}
	# custom_attributes = {
		# enables_royal_army_garrisons = yes #+100 Base Manpower in Royal State provinces
	# }
	ai = {
		factor = 10
	}
}



imperial_circles_reform = {
	icon = "imperial_army"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			ge_country_unified_drills_update = yes
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_Shared_Drills_1
			remove_country_modifier = GE_Shared_Drills_2
			remove_country_modifier = GE_Shared_Drills_3
			remove_country_modifier = GE_Shared_Drills_4
			remove_country_modifier = GE_Shared_Drills_5
		}
	}
	potential = {
		is_part_of_hre = yes
		NOT = { culture_group = latin }
		NOT = { primary_culture = swiss }
		NOT = { tag = DTT }
		NOT = { tag = SIL }
	}
	trigger = {
		is_part_of_hre = yes
		total_development = 75
	}
	modifiers = {
		vassal_forcelimit_bonus = 0.5
		land_maintenance_modifier = -0.05
	}
	custom_attributes = {
		enables_unified_drills = yes #-2% Regiment cost and +4% Manpower Recovery Speed
	}
	ai = {
		factor = 10
	}
}

tatar_mercenaries_reform = {
	icon = Tatar_raid
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		any_neighbor_country = {
			has_reform = steppe_horde
			culture_group = tartar
		}
	}
	trigger = {
		any_neighbor_country = {
			has_reform = steppe_horde
			culture_group = tartar
		}
	}
	modifiers = {
		cavalry_power = 0.10
		mercenary_discipline = 0.025
	}
	ai = {
		factor = 10
	}
}


south_east_asian_elephants_reform = {
	icon = soldiers_5
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.183
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_Elephant_Cavalry_1
			remove_country_modifier = GE_Elephant_Cavalry_2
			remove_country_modifier = GE_Elephant_Cavalry_3
			remove_country_modifier = GE_Elephant_Cavalry_4
			remove_country_modifier = GE_Elephant_Cavalry_5
		}
	}
	potential = {
		OR = {
			culture_group = burman
			culture_group = southeastasian_group
			has_reform = south_east_asian_elephants_reform
		}
	}
	trigger = {
		OR = {
			culture_group = burman
			culture_group = southeastasian_group
			has_reform = south_east_asian_elephants_reform
		}
	}
	modifiers = {
		cavalry_power = 0.05
		land_morale = 0.05
	}
	custom_attributes = {
		enables_elephant_cavalry = yes #3% siege ability per 5% Cavalry Combat Ability
	}
	ai = {
		factor = 10
	}
}

honor_of_thai_kingdoms_reform = {
	icon = soldiers_6
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.184
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = siamese_national_pride
			remove_country_modifier = siamese_national_shame
		}
	}
	potential = {
		OR = {
			primary_culture = central_thai
			primary_culture = northern_thai
			has_reform = honor_of_thai_kingdoms_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = central_thai
			primary_culture = northern_thai
			has_reform = honor_of_thai_kingdoms_reform
		}
	}
	modifiers = {
		legitimacy = 1
		land_forcelimit_modifier = 0.20
	}
	custom_attributes = {
		enables_siamese_honor = yes #-2 unrest if <50 legitimacy, +5% ICA if >75 legitimacy
	}
	ai = {
		factor = 100
	}
}



abolish_manrent_reform = {
	icon = manrent
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = scottish
			has_reform = abolish_manrent_reform
			AND = {
				accepted_culture = scottish
				num_of_owned_provinces_with = {
					value = 1
					culture = scottish
				}
			}
		}
	}
	trigger = {
		OR = {
			primary_culture = scottish
			has_reform = abolish_manrent_reform
			AND = {
				accepted_culture = scottish
				num_of_owned_provinces_with = {
					value = 5
					culture = scottish
				}
			}
		}
	}
	modifiers = {
		land_morale = 0.10
		global_manpower_modifier = 0.05
	}
	ai = {
		factor = 100
	}
}

foreign_formation_regiments_reform = {
	icon = new_order_regiments
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = russian
			has_reform = foreign_formation_regiments_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = russian
			has_reform = foreign_formation_regiments_reform
		}
	}
	modifiers = {
		yearly_army_professionalism = 0.0020
		drill_gain_modifier = 0.25
		mil_tech_cost_modifier = -0.05
	}
	ai = {
		factor = 100
	}
}

the_black_guard_reform = {
	icon = soldiers
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = danish
			has_reform = the_black_guard_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = danish
			has_reform = the_black_guard_reform
		}
	}
	modifiers = {
		mercenary_discipline = 0.05
		mercenary_manpower = 0.25
	}
	ai = {
		factor = 100
	}
}

snaphaner_reform = {
	icon = hesse_jaegers
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = danish
			has_reform = snaphaner_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = danish
			has_reform = snaphaner_reform
		}
	}
	modifiers = {
		infantry_fire = 0.25
		infantry_power = 0.05
		years_of_nationalism = 5
		manpower_in_own_culture_provinces = 0.25
	}
#	custom_attributes = {
#		enables_patriotism = yes
#	}
	ai = {
		factor = 100
	}
}

strenghten_the_haeren_reform = {
	icon = danish_army
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = danish
			has_reform = strenghten_the_haeren_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = danish
			has_reform = strenghten_the_haeren_reform
		}
	}
	modifiers = {
		manpower_recovery_speed = 0.10
		land_forcelimit_modifier = 0.15
		allowed_marine_fraction = 0.1
	}
	ai = {
		factor = 101
	}
}

reorganize_the_imperial_army = {
	icon = austrian_army
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			primary_culture = austrian
			has_reform = reorganize_the_imperial_army
		}
	}
	trigger = {
		OR = {
			primary_culture = austrian
			has_reform = reorganize_the_imperial_army
		}
	}
	modifiers = {
		global_regiment_cost = -0.15
		global_supply_limit_modifier = 0.25
	}
	ai = {
		factor = 100
	}
}

arabian_horses_reform = {
	icon = mamluk_horse
	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 = al_misr_arabic
			has_reform = arabian_horses_reform
			AND = {
				accepted_culture = al_misr_arabic
				num_of_owned_provinces_with = {
					value = 1
					culture = al_misr_arabic
				}
			}
		}
	}
	trigger = {
		OR = {
			primary_culture = al_misr_arabic
			has_reform = arabian_horses_reform
			AND = {
				accepted_culture = al_misr_arabic
				num_of_owned_provinces_with = {
					value = 5
					culture = al_misr_arabic
				}
			}
		}
	}
	modifiers = {
		cavalry_flanking = 0.5
		shock_damage = 0.05
	}
	custom_attributes = {
		enables_arabian_horses = yes # 3% Cavalry Combat Ability per Arab vassal
	}
	ai = {
		factor = 100
	}
}

berber_cavalry_reform = {
	icon = berber_warrior
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
		hidden_effect = {
			every_owned_province = {
				ge_Berber_Herders_province_update = yes
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = Berber_Herders
			}
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = berber_cavalry_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				religion_group = muslim
				culture_group = iberian
			}
			has_reform = berber_cavalry_reform
		}
	}
	modifiers = {
		cavalry_power = 0.10
		land_morale = 0.05
		monthly_piety = -0.001
	}
	custom_attributes = {
		enables_grazing_herds = yes #-5% Development Cost and Culture Conversion Cost in Iberian Hills and Drylands
	}
	ai = {
		factor = 100
	}
}

expand_the_immortals_reform = {
	icon = king
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = zoroastrian_group
				culture_group = iranian
			}
		}
	}
	trigger = {
		AND = {
			religion_group = zoroastrian_group
			culture_group = iranian
		}
	}
	modifiers = {
		reinforce_speed = 1
		drill_gain_modifier = 0.50
	}
	ai = {
		factor = 100
	}
}

wei_suo_reform = {
	icon = asian_scripture
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			culture_group = east_asian
			has_reform = wei_suo_reform
		}
	}
	trigger = {
		OR = {
			culture_group = east_asian
			has_reform = wei_suo_reform
		}
	}
	modifiers = {
		manpower_recovery_speed = 0.10
		army_tradition = 1
		land_maintenance_modifier = -0.10
		discipline = -0.05
	}
	ai = {
		factor = 10
	}
}

recruit_ronin_reform = {
	icon = samurai
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = recruit_ronin_reform
			culture_group = japanese_g
			accepted_culture = japanese
		}
	}
	trigger = {
		OR = {
			has_reform = recruit_ronin_reform
			culture_group = japanese_g
			accepted_culture = japanese
		}
	}
	modifiers = {
		mercenary_discipline = 0.05
		merc_maintenance_modifier = -0.10
		mercenary_manpower = 0.25

	}
	ai = {
		factor = 10
	}
}

ashigaru_generals_reform = {
	icon = daimyo
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			has_reform = ashigaru_generals_reform
			culture_group = japanese_g
		}
	}
	trigger = {
		OR = {
			has_reform = ashigaru_generals_reform
			culture_group = japanese_g
		}
	}
	modifiers = {
		fire_damage = 0.05
		fire_damage_received = -0.05
		drill_gain_modifier = 0.25
	}
	ai = {
		factor = 10
	}
}



sherifan_levies_reform = {
	icon = hejaz_cavalry
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Noble_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Noble_Influence
			value = -1
		}
	}
	potential = {
		OR = {
			AND = {
				religion_group = muslim
				primary_culture = hejazi_culture
			}
			has_reform = sherifan_levies_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				religion_group = muslim
				primary_culture = hejazi_culture
			}
			has_reform = sherifan_levies_reform
		}
	}
	modifiers = {
		manpower_recovery_speed = 0.15
		reinforce_cost_modifier = -0.20
	}
	custom_attributes = {
		enables_grand_captain = yes
	}#fixdis
	ai = {
		factor = 100
	}
}

restore_the_komnenoid_army_reform = {
	icon = soldiers
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			ge_country_Varangian_Guard_update = yes
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_Varangian_Guard
		}
	}
	potential = {
		OR = {
			AND = {
				culture_group = byzantine
			}
			has_reform = restore_the_komnenoid_army_reform
		}
	}
	trigger = {
		OR = {
			AND = {
				culture_group = byzantine
			}
			has_reform = restore_the_komnenoid_army_reform
		}
	}
	modifiers = {
		army_tradition_decay = -0.01
		mercenary_manpower = 0.15
	}
	custom_attributes = {
		enables_varangian_guard = yes #5% shock if you got a scandinavian ally or subject
	}
	ai = {
		factor = 100
	}
}

army_of_flanders_reform = {
	icon = "commander_king_reform"
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.214
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_Coin_over_Crown
		}
	}
	potential = {
		OR = {
			primary_culture = wallonian
			has_reform = army_of_flanders_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = wallonian
			has_reform = army_of_flanders_reform
		}
	}
	modifiers = {
		land_forcelimit_modifier = 0.15
		mercenary_cost = -0.15
	}
	custom_attributes = {
		enables_coin_over_crown = yes #+5% mercenary discipline while not in debt
	}
	ai = {
		factor = 101
	}
}
jayish_al_malik_reform = {
	icon = al_mansur
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
		hidden_effect = {
			country_event = { 
				id = reform_me_events.231
				days = 1
			}
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
		hidden_effect = {
			remove_country_modifier = GE_Foreign_Drill_Masters_1
			remove_country_modifier = GE_Foreign_Drill_Masters_2
			remove_country_modifier = GE_Foreign_Drill_Masters_3
			remove_country_modifier = GE_Foreign_Drill_Masters_4
			remove_country_modifier = GE_Foreign_Drill_Masters_5
		}
	}
	potential = {
		OR = {
			primary_culture = moroccan
			has_reform = jayish_al_malik_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = moroccan
			has_reform = jayish_al_malik_reform
		}
	}
	modifiers = {
		#land_forcelimit_modifier = 0.10
		fire_damage = 0.05
	}
	custom_attributes = {
		enables_foreign_drill_masters = yes #-5% mil-tech cost and +10% drill gain per ally with more development or discipline.
	}
	ai = {
		factor = 101
	}
}

wacht_am_rhein_reform = {
	icon = national_guard
	allow_normal_conversion = yes
	effect = {
		change_variable = {
			which = Royal_Influence
			value = 1
		}
	}
	removed_effect = {
		change_variable = {
			which = Royal_Influence
			value = -1
		}
	}
	potential = {
		primary_culture = hessian
	}
	trigger = {
		primary_culture = hessian
	}
	modifiers = {
		land_forcelimit_modifier = 0.10
		defensiveness = 0.10
		manpower_in_own_culture_provinces = 0.25
	}
#	custom_attributes = {
#		enables_patriotism = yes #+25% Manpower in primary culture provinces
#	}
	ai = {
		factor = 1
	}
}
#}
#############################
###########Tier5.5###########
#############################
#Tier 5.5 {
strenghten_industry_reform = {
	icon = economy_industry
	allow_normal_conversion = yes
	potential = {
	}
	modifiers = {
		global_tax_modifier = -0.10
		# build_cost = -0.1
	}
	custom_attributes = {
		enables_industrialism = yes #+0.2 Goods produced in workshops
	}
	effect = {
		hidden_effect = {
			every_owned_province = {
				ge_industrialism_province_update = yes
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			every_owned_province = {
				remove_province_modifier = Promoted_Industry
				remove_province_modifier = Promoted_Industry_v2
			}
		}
	}
	ai = {
		factor = 1
	}
}

mercantilism_reform = {
	icon = economy_trade
	allow_normal_conversion = yes
	modifiers = {
		# global_prov_trade_power_modifier = 0.10
		merchants = 1
		trade_deals_slots = 1
	}
	custom_attributes = {
		enables_home_market = yes #1.5% Trade Efficiency per 10% Mercantilism
	}
	effect = {
		hidden_effect = {
			country_event = { 
				id = reform_me_events.118
				days = 1
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
	}
	ai = {
		factor = 1
	}
}

empowered_free_trade_reform = {
	icon = empowered_free_trade
	allow_normal_conversion = yes
	effect = {
		add_mercantilism = -10
	}
	potential = {
		check_variable = {
			which = Burgher_Influence
			value = 3
		}
	}
	trigger = {
		check_variable = {
			which = Burgher_Influence
			value = 3
		}
	}
	modifiers = {
		global_trade_power = -0.10
		global_trade_goods_size_modifier = 0.15
		merchants = 1
		trade_deals_slots = 2
	}
	can_use_trade_post = yes
	ai = {
		factor = 1
	}
}

noble_taxes_reform = {
	icon = economy_tax
	allow_normal_conversion = yes
	potential = {
	}
	modifiers = {
		global_tax_modifier = 0.15
		yearly_corruption = -0.10
		build_cost = -0.10
	}
	ai = {
		factor = 1
	}
}

empowered_aristocratic_estates_reform = {
	icon = empowered_aristocrat_estate
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Burgher_Influence
			value = 1
		}
		check_variable = {
			which = Noble_Influence
			value = 2
		}
	}
	trigger = {
		check_variable = {
			which = Burgher_Influence
			value = 1
		}
		check_variable = {
			which = Noble_Influence
			value = 2
		}
	}
	modifiers = {
		production_efficiency = 0.10
		global_manpower_modifier = 0.10
	}
	# custom_attributes = {
		# enables_rural_development = yes
	# }#fixdis
	ai = {
		factor = 10
	}
}

empowered_monastic_centres_reform = {
	icon = empowered_monastery
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Burgher_Influence
			value = 1
		}
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
	}
	trigger = {
		check_variable = {
			which = Burgher_Influence
			value = 1
		}
		check_variable = {
			which = Clergy_Influence
			value = 2
		}
	}
	modifiers = {
		global_tax_modifier = 0.10
		global_trade_power = 0.10
		trade_deals_slots = 1
	}
	# custom_attributes = {
		# enables_monastic_trade = yes
	# }#fixdis
	ai = {
		factor = 10
	}
}

empowered_expand_corvee_reform = {
	icon = empowered_corvee
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Noble_Influence
			value = 2
		}
		check_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	trigger = {
		check_variable = {
			which = Noble_Influence
			value = 2
		}
		check_variable = {
			which = Clergy_Influence
			value = 1
		}
	}
	modifiers = {
		defensiveness = 0.10
		global_trade_goods_size_modifier = 0.05
		global_manpower_modifier = 0.10
	}
	# custom_attributes = {
		# enables_corvee = yes #10% Manpower and Production Efficiency in Noble and Clergy Provinces
	# }#fixdis
	ai = {
		factor = 10
	}
	#-10% Burgher Loyalty, +10% Noble and Clergy Loyalty
}

empowered_enlarge_royal_estate_reform = {
	icon = empowered_royal_estate
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Royal_Influence
			value = 2
		}
	}
	trigger = {
		check_variable = {
			which = Royal_Influence
			value = 2
		}
	}
	modifiers = {
		governing_capacity = 150
		diplomatic_annexation_cost = -0.10
		diplomatic_upkeep = 1
	}
	# custom_attributes = {
		# enables_royal_domain = yes #10% Tax and Manpower in royal estate provinces
	# }#fixdis
	ai = {
		factor = 10
	}
}

empowered_royal_trading_company_reform = {
	icon = "GE_trader"
	allow_normal_conversion = yes
	potential = {
		check_variable = {
			which = Royal_Influence
			value = 2
		}
		check_variable = {
			which = Burgher_Influence
			value = 2
		}
	}
	trigger = {
		check_variable = {
			which = Royal_Influence
			value = 2
		}
		check_variable = {
			which = Burgher_Influence
			value = 2
		}
	}
	modifiers = {
		trade_efficiency = 0.10
		trade_company_investment_cost = -0.25
		trade_deals_slots = 1
	}
	ai = {
		factor = 10
	}
}

danske_besiddelser_reform = {
	icon = paper_money_map
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = danish
			has_reform = danske_besiddelser_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = danish
			has_reform = danske_besiddelser_reform
		}
	}
	modifiers = {
		global_tariffs = 0.20
		global_foreign_trade_power = 0.15
		trade_company_investment_cost = -0.15
	}
	ai = {
		factor = 100
	}
}
expand_the_trans_saharan_trade_reform = {
	icon = saharan_trade
	allow_normal_conversion = yes
	potential = {
		OR = {
			culture_group = maghrebi
			has_reform = expand_the_trans_saharan_trade_reform
		}
	}
	trigger = {
		OR = {
			culture_group = maghrebi
			has_reform = expand_the_trans_saharan_trade_reform
		}
	}
	modifiers = {
		placed_merchant_power = 10
		trade_deals_slots = 1
		#trade_efficiency = 0.10
		#merchants = 1 #temp
	}
	custom_attributes = {
		enables_saharan_outposts = yes #privilege that gives +1 merchant and +50% scaling trade steering
	}
	can_use_trade_post = yes
	ai = {
		factor = 10
	}
}

customs_duties_reform = {
	icon = arabic_scripture
	allow_normal_conversion = yes
	potential = {
		OR = {
			primary_culture = mahri_culture
			primary_culture = omani_culture
			primary_culture = gulf_arabic
			has_reform = customs_duties_reform
		}
	}
	trigger = {
		OR = {
			primary_culture = mahri_culture
			primary_culture = omani_culture
			primary_culture = gulf_arabic
			has_reform = customs_duties_reform
		}
	}
	modifiers = {
		diplomatic_reputation = 1
		trade_efficiency = 0.10
	}
	ai = {
		factor = 101
	}
}

