united_cantons_reform = {
	icon = "united_cantons_reform"
	allow_normal_conversion = yes
	modifiers = {
		governing_capacity = -500
		free_policy = 10
		mercenary_manpower = 5
	}
	valid_for_nation_designer = yes
	nation_designer_cost = 40
	legacy_equivalent = united_cantons_legacy
	potential = {
		NOT = { map_setup = map_setup_random }
		OR = {
			primary_culture = swiss
			have_had_reform = united_cantons_reform
		}
	}
	ai = {
		factor = 10 #unique
		
		modifier = {
			factor = 2
			NOT = {
				num_of_cities = 11
			}
		}
		
		modifier = {
			factor = 0
			is_subject = yes
		}
	}

	custom_attributes = {
		mercs_do_not_cost_army_professionalism = yes
	}
}

parliamentary_reform = {
	icon = "judge"
	modifiers = {
		global_unrest = -10
	}
	potential = {
		is_revolutionary = no
		NOT = { has_government_attribute = is_pirate_republic_reform }
		NOT = { has_government_attribute = english_parliament }
	}
	
	trigger = {		
		if = {
			limit = { has_dlc = "Common Sense" }
			OR = {
				NOT = { has_estate = estate_nobles }
				crown_stronger_than_estate = { estate = estate_nobles }
				has_reform = parliamentary_reform
			}
		}	
		NOT = { has_reform = elective_monarchy }
		NOT = { has_reform = polish_great_sejm }
		NOT = { has_reform = polish_elective_monarchy }
		if = {
			limit = { NOT = { has_dlc = "Mandate of Heaven" } }
			NOT = { has_reform = celestial_empire }
			NOT = { is_revolutionary_republic_trigger = yes }
		}
	}

	conditional = {
		allow = {
			OR = {
				has_dlc = "Common Sense"
				has_dlc = "Domination"
			}
		}
		has_parliament = yes
		custom_attributes = {
			disables_estate_nobles = yes
			blocked_call_diet = yes
		}
	}
	ai = {
		factor = 1
		modifier = {
			factor = 0.5
			NOT = { technology_group = western }
		}
		modifier = {
			factor = 0.5
			NOT = { technology_group = western }
			NOT = {
				any_neighbor_country = {
					technology_group = western
				}
			}
		}
		modifier = {
			factor = 0
			OR = {
				has_reform = mughal_government
				has_reform = celestial_empire
				religion = confucianism
			}
		}
	}
	post_removed_effect = {
		give_estate_land_share_init = { estate = estate_nobles }
	}
}

# Upgraded Indian estate reforms

permanent_marathas_council_reform = {
	icon = "noble_indian"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Dharma"
		has_estate = estate_maratha
		technology_group = indian
	}
	modifiers = {
		leader_land_shock = 10
		maratha_influence_modifier = 0.1
		maratha_loyalty_modifier = 0.05
		nobles_influence_modifier = -0.1
		nobles_loyalty_modifier = -0.05
	}
	custom_attributes = {
		maratha_general_interaction = yes
	}
	ai = {
		factor = 3
		modifier = {
			factor = 0.1
			estate_influence = {
				estate = estate_maratha
				influence = 90
			}			
		}
	}
}

governmental_purbias_register_reform = {
	icon = "rajput_kingdom"
	potential = {
		has_dlc = "Dharma"
		has_estate = estate_rajput
		technology_group = indian
	}
	modifiers = {
		recover_army_morale_speed = 0.5
		rajput_influence_modifier = 0.1
		rajput_loyalty_modifier = 0.05
		nobles_influence_modifier = -0.1
		nobles_loyalty_modifier = -0.05
	}
	custom_attributes = {
		better_purbias_interaction = yes
	}
	effect = {
		if = {
			limit = {
				has_country_modifier = look_up_purbias
			}
			remove_country_modifier = look_up_purbias
			add_country_modifier = {
				name = look_up_purbias_upgraded
				duration = -1
			}
		}
	}
	removed_effect = {
		if = {
			limit = {
				has_country_modifier = look_up_purbias_upgraded
			}
			remove_country_modifier = look_up_purbias_upgraded
			add_country_modifier = {
				name = look_up_purbias
				duration = -1
			}
		}
	}
	ai = {
		factor = 3
		modifier = {
			factor = 0.1
			estate_influence = {
				estate = estate_rajput
				influence = 90
			}			
		}
	}
}

# for Spain

council_of_the_indies_reform = {
	icon = "paper_money_map"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Golden Century"
		culture_group = iberian
		capital_scope = {
			region = iberia_region
		}
	}
	trigger = {
		num_of_colonists = 1
		culture_group = iberian
		capital_scope = {
			region = iberia_region
		}
	}
	modifiers = {
		reduced_liberty_desire_on_other_continent = 50
		treasure_fleet_income = 2.5
		global_trade_power = 0.5
	}
	ai = {
		factor = 2
	}
}

penal_colonies_reform = {
	icon = "colonial_companies"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Golden Century"
		capital_scope = {
			NOT = {
				OR = {
					continent = north_america
					continent = south_america
					continent = new_world
					continent = oceania
				}
			}
		}
	}
	trigger = {
		has_idea_group = exploration_ideas
	}
	modifiers = {
		expel_minorities_cost = -10
		colonist_placement_chance = 0.5
	}
	ai = {
		factor = 0.1
	}
}

# for Russia (and for Ruthenia)
tysyatsky_reform = {
	icon = "soldiers_2"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			has_unlocked_government_reform = {
				government_reform = tysyatsky_reform
			}
			AND = {
				NOT = { tag = RUS }
				OR = {
					primary_culture = ruthenian
					primary_culture = ruthenian_new
				}
			}
			AND = {
				OR = {
					culture_group = east_slavic
					culture_group = slavic
				}
				government = republic
			}
		}
	}
	modifiers = {
		republican_tradition = 3
		leader_cost = -1
		nobles_influence_modifier = 0.05
		nobles_loyalty_modifier = 0.1
	}
	custom_attributes = {
		recruiting_generals_increases_nobles_loyalty = yes
	}
	ai = {
		factor = 1
	}
}

namestnik_reform = {
	icon = "provincial_government"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		has_unlocked_government_reform = {
			government_reform = namestnik_reform
		}
	}
	modifiers = {
		global_autonomy = -0.3
		autonomy_change_time = -2.5
		min_autonomy_in_territories = -0.5
		trade_company_investment_cost = -1
	}
	ai = {
		factor = 1
	}
}

oprichnina_reform = {
	icon = "spy"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		has_unlocked_government_reform = {
			government_reform = oprichnina_reform
		}
	}
	modifiers = {
		global_rebel_suppression_efficiency = 10
		years_of_nationalism = -50
		all_estate_influence_modifier = -0.1
		harsh_treatment_cost = -2.5
		monthly_russian_dip_power = 1.5
	}
	custom_attributes = {
		seizing_land_no_rebels = yes
	}
	ai = {
		factor = 1
	}
}

vodka_of_the_crown_reform = {
	icon = vodka_monopoly
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			culture_group = east_slavic
			culture_group = slavic
		}
	}
	modifiers = {
		global_unrest = -10
		idea_cost = 0.5
		global_trade_goods_size_modifier = 1
	}
	effect = {
		hidden_effect = {
			every_owned_province = {
				if = {
					limit = {
						trade_goods = grain
					}
					add_province_modifier = { 
						name = grain_vodka_bonus_prod
						duration = -1
						hidden = yes
					}
				}
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			every_owned_province = {
				limit = {
					has_province_modifier = grain_vodka_bonus_prod
				}
				remove_province_modifier = grain_vodka_bonus_prod
			}
		}
	}
	custom_attributes = {
		extra_trade_goods_from_grain = yes
	}

	ai = {
		factor = 1
	}
}


governing_senate_reform = {
	icon = governing_senate
	potential = {
		has_dlc = "Domination"
		is_revolutionary = no
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			have_had_reform = governing_senate_reform
			has_unlocked_government_reform = {
				government_reform = governing_senate_reform
			}
			has_reform = ruthenian_tsardom
		}
	}
	
	trigger = {	
		if = {
			limit = { has_dlc = "Res Publica" }
			NOT = { has_reform = elective_monarchy }
		}
		if = {
			limit = { has_dlc = "Lions of the North" }
			NOT = { has_reform = polish_elective_monarchy }
		}
		if = {
			limit = { NOT = { has_dlc = "Mandate of Heaven" } }
			NOT = { has_reform = celestial_empire }
			NOT = { is_revolutionary_republic_trigger = yes }
		}
	}
	modifiers = {
		all_estate_loyalty_equilibrium = 0.1
		all_estate_influence_modifier = -0.1
		all_estate_possible_privileges = 1
	}

	conditional = {
		allow = {
			OR = {
				has_dlc = "Common Sense"
				has_dlc = "Domination"
			}
		}
		has_parliament = yes
	}
	custom_attributes = {
		diet_increases_not_influence = yes
	}
	ai = {
		factor = 1
	}
}

enforced_autocracy_reform = {
	icon = russian_queen
	potential = {
		has_dlc = "Domination"
		is_revolutionary = no
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			have_had_reform = enforced_autocracy_reform
			has_unlocked_government_reform = {
				government_reform = enforced_autocracy_reform
			}
			has_reform = ruthenian_tsardom
		}
	}
	modifiers = {
		culture_conversion_time = -2
		yearly_government_power = 5
	}
	custom_attributes = {
		can_sell_crownland_to_single_estates = yes
		can_seize_crownland_of_single_estates = yes
	}
	ai = {
		factor = 1
	}
}

# Holy State for Jerusalem
holy_state_reform = {
	allow_normal_conversion = no
	legacy_equivalent = holy_state_legacy
	icon = "holy_state_reform"
	valid_for_nation_designer = yes
	nation_designer_trigger = {
		religion = catholic
	}
	potential = {
		OR = {
			AND = {
				OR = {
					tag = KOJ
					tag = LAE
					has_country_modifier = sisters_takeover
				}
				NOT = { map_setup = map_setup_random }
			}
			AND = {
				is_playing_custom_nation = yes
				have_had_reform = holy_state_reform
			}
		}
	}
	trigger = {
		religion = catholic
	}
	nation_designer_cost = 50
	modifiers = {
		cb_on_religious_enemies = yes
		manpower_recovery_speed = 1.5
	}
	rulers_can_be_generals = yes
	heirs_can_be_generals = yes
	custom_attributes = {
		monastic_order = yes
	}
	ai = {
		factor = 10
	}
}

# Sisterhood of Jeanne d'Arc
sisterhood_of_jeanne_darc_reform = {
	allow_normal_conversion = no
	icon = "sisterhood"
	valid_for_nation_designer = yes
	nation_designer_trigger = {
		religion_group = christian
	}
	potential = {
		OR = {
			has_reform = sisterhood_of_jeanne_darc_reform
			have_had_reform = sisterhood_of_jeanne_darc_reform
			has_country_modifier = sisters_takeover
		}
	}
	trigger = {
		religion_group = christian
	}
	nation_designer_cost = 100
	modifiers = {
		cb_on_religious_enemies = yes
		monarch_military_power = 10
		may_recruit_female_generals = yes
		female_advisor_chance = 1.0
		fire_damage = 1
		discipline = 0.5
	}
	rulers_can_be_generals = yes
	heirs_can_be_generals = yes
	custom_attributes = {
		monastic_order = yes
	}
	ai = {
		factor = 10
	}
}

# State and Religion
papal_embassy_reform = {
	icon = "pope"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = catholic
		NOT = { tag = PAP }
	}
	trigger = {
		NOT = {
			has_country_modifier = the_statue_in_restraint_of_appeals
		}
	}
	modifiers = {
		papal_influence_from_cardinals = 3.3
		curia_treasury_contribution = 3.3
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.05
		curia_powers_cost = -1
	}
	effect = {
		hidden_effect = {
			add_opinion = {
				who = PAP
				modifier = papal_embassy
			}
			reverse_add_opinion = {
				who = PAP
				modifier = papal_embassy
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_opinion = {
				who = PAP
				modifier = papal_embassy
			}
			reverse_remove_opinion = {
				who = PAP
				modifier = papal_embassy
			}
		}
	}
	custom_attributes = {
		improved_opinion_of_pope = yes	#Popesman has +25 opinion of you
	}
	
	ai = {
		factor = 1
	}
}

i_am_the_church_reform = {
	icon = "pope"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = catholic
		tag = PAP
	}
	modifiers = {
		devotion = 5
		max_absolutism = 100
		appoint_cardinal_cost = -1
	}
	effect = {
		hidden_effect = {
			if = {
				limit = { is_defender_of_faith = yes }
				add_country_modifier = {
					name = gov_improved_defender_of_faith_mod
					duration = -1
				}
			}
		}
	}
	post_removed_effect = {
		remove_country_modifier = gov_improved_defender_of_faith_mod
	}
	custom_attributes = {
		improved_defender_of_faith = yes	#Being Defender of Faith increases Dip Rep, Tolerance and Morale
	}
	
	ai = {
		factor = 1
	}
}

focus_of_the_patriarchy_reform = {
	icon = "pope"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = coptic
	}
	modifiers = {
		institution_spread_from_true_faith = 2.5
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.1
	}
	custom_attributes = {
		active_holy_sites_improve_clergy_loyalty = yes
		clerical_ministers_tech_buff = yes
	}
	
	ai = {
		factor = 1
	}
}

lands_for_the_monasteries_reform = {
	icon = "pope"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = orthodox
	}
	modifiers = {
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.15
		yearly_patriarch_authority = 0.02
	}
	custom_attributes = {
		free_religious_culture = yes
		on_church_built_clergy_loyalty = yes
	}
	conditional = {
		allow = { has_dlc = "Third Rome" }
		custom_attributes = {
			selling_titles_increases_pa = yes
		}
	}
	
	ai = {
		factor = 1
	}
}

zoroastrian_focus_reform = {
	icon = "articles_of_agreement"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = zoroastrian
	}
	modifiers = {
		no_religion_penalty = yes
		global_unrest = -10
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.1
	}
	
	ai = {
		factor = 1
	}
}

power_to_the_synagogoues_reform = {
	icon = "rabbi"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion_group = jewish_group
	}
	modifiers = {
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.1
		idea_cost = -0.5
		church_power_modifier = 1
	}
	conditional = {
		allow = { has_dlc = "Origins" }
		custom_attributes = {
			loyalty_from_celebration = yes	#Celebrating will now give +20 Loyalty
		}
	}
	
	ai = {
		factor = 1
	}
}

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

confucian_governing_reform = {
	icon = "asian_scripture"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = confucianism
	}
	modifiers = {
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.1
		harmonization_speed = 1
		governing_capacity_modifier = 0.5
	}
	conditional = {
		allow = { has_dlc = "Mandate of Heaven" }
		custom_attributes = {
			full_loyalty_on_harmonization = yes	#Add +100 Loyalty when harmonizing something
		}
	}
	
	ai = {
		factor = 1
	}
}

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

public_hindu_practices_reform = {
	icon = "indian_crown"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = hinduism
	}
	modifiers = {
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.1
		brahmins_hindu_influence_modifier = 0.1
		brahmins_hindu_loyalty_modifier = 0.1
		tolerance_own = 10
	}
	conditional = {
		allow = { has_dlc = "Wealth of Nations" }
		custom_attributes = {
			reduce_new_deity_decision_cd = yes	#Reduce it by 15 years
		}
	}
	
	ai = {
		factor = 1
	}
}

strengthen_shaman_privileges_reform = {
	icon = "tribal_martial_society"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = shamanism
	}
	modifiers = {
		church_loyalty_modifier = 0.1
		global_missionary_strength = 0.1
	}
	conditional = {
		allow = { has_dlc = "Rights of Man" }
		custom_attributes = {
			no_influence_from_fetishist_privileges = yes
		}
	}
	
	ai = {
		factor = 1
	}
}

abolished_caste_system_reform = {
	icon = "indian_sultanate"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = sikhism
	}
	modifiers = {
		all_estate_influence_modifier = -0.15
		stability_cost_modifier = -2
	}
	custom_attributes = {
		seizing_land_no_rebels = yes
	}
	
	ai = {
		factor = 1
	}
}

strengthen_the_ulema_reform = {
	icon = "mamluk_government"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion_group = muslim
	}
	modifiers = {
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.1
		dhimmi_influence_modifier = -0.1
		dhimmi_loyalty_modifier = -0.1
		global_missionary_strength = 0.15
	}
	conditional = {
		allow = { has_dlc = "Cradle of Civilization" }
		custom_attributes = {
			allow_piety_switch_decision = yes	#Enables a decision which gives 1 stabhit, but turns your piety 180
		}
	}
	
	ai = {
		factor = 1
	}
}

strengthen_the_dhimmi_reform = {
	icon = "noble_muslim"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion_group = muslim
		has_estate = estate_dhimmi
	}
	modifiers = {
		dhimmi_influence_modifier = 0.1
		dhimmi_loyalty_modifier = 0.1
		church_influence_modifier = -0.1
		church_loyalty_modifier = -0.1
		tolerance_of_heathens_capacity = 10
	}
	custom_attributes = {
		free_guarantee_dhimmi_autonomy = yes
	}
	
	ai = {
		factor = 1
	}
}

legacy_of_the_steppes_reform = {
	icon = "horde_riding"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = tengri_pagan_reformed
	}
	modifiers = {
		monarch_military_power = 10
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.1
	}
	custom_attributes = {
		winning_battles_increases_legitimacy = yes	#Every single won battle adds +2 Legitimacy and +0.25 Absolutism
	}
	
	ai = {
		factor = 1
	}
}

state_and_shrines_intertwined_reform = {
	icon = "shogunate"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = shinto
	}
	modifiers = {
		church_loyalty_modifier = 0.15
		religious_unity = 2.5
	}
	custom_attributes = {
		enables_divine_idea_group = yes
	}
	
	ai = {
		factor = 1
	}
}

embedded_norse_government_reform = {
	icon = "all_under_tengri_reform"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		religion = norse_pagan_reformed
	}
	modifiers = {
		may_perform_slave_raid = yes
		church_influence_modifier = 0.1
		army_tradition_from_battle = 5
		naval_tradition_from_battle = 5
	}
	custom_attributes = {
		winning_war_increases_legitimacy = yes
	}
	
	ai = {
		factor = 1
	}
}

strengthen_clergy_reform = {
	icon = "church"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
		has_no_religion_specific_government_available = yes	#This way modders don't have to change this reform explicitly
	}
	modifiers = {
		church_influence_modifier = 0.1
		church_loyalty_modifier = 0.1
		war_exhaustion = -0.3
	}
	
	ai = {
		factor = 1
	}
}

curtail_clergy_power_reform = {
	icon = "monks"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
	}
	modifiers = {
		adm_tech_cost_modifier = -1
		religious_unity = 1
		church_influence_modifier = -0.1
	}
	custom_attributes = {
		seizing_land_no_rebels_from_estate_church = yes
	}
	
	ai = {
		factor = 1
	}
}

secure_clergy_power_reform = {
	icon = "warrior_monks_reform"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
	}
	modifiers = {
		church_influence_modifier = 0.05
		adm_advisor_cost = -1
	}
	effect = {
		hidden_effect = {
			every_owned_province = {
				limit = {
					has_tax_building_trigger = yes
				}
				add_province_modifier = {
					name = gov_expanded_temple_rights_mod
					duration = -1
				}
			}
		}
	}
	post_removed_effect = {
		hidden_effect = {
			every_owned_province = {
				limit = {
					has_province_modifier = gov_expanded_temple_rights_mod
				}
				remove_province_modifier = gov_expanded_temple_rights_mod
			}
		}
	}
	custom_attributes = {
		temples_modifier = yes
	}
	
	ai = {
		factor = 1
	}
}

maintain_clergy_balance_of_power_reform = {
	icon = "consolidate_power_in_cities_reform"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
	}
	modifiers = {
		all_estate_loyalty_equilibrium = 0.05
		diplomats = 10
	}
	
	ai = {
		factor = 1
	}
}

separate_clergy_from_state_affairs_reform = {
	icon = "partial_secularisation_reform"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
	}
	trigger = {
		OR = {
			full_idea_group = innovativeness_ideas
			full_idea_group = humanist_ideas
		}
		NOT = { has_idea_group = religious_ideas }
		NOT = { has_idea_group = theocracy_ideas }
	}
	modifiers = {
		tolerance_of_heathens_capacity = 10
		tolerance_of_heretics_capacity = 10
		innovativeness_gain = 2.5
	}
	custom_attributes = {
		disables_estate_church = yes
		disables_estate_brahmins = yes
	}
	
	ai = {
		factor = 1
	}
}

#Revolutionary
cult_of_reason_reform = {
	icon = "cult_of_reason"
	allow_normal_conversion = yes
	potential = {
		is_revolutionary = yes
		has_dlc = "Emperor"
	}
	trigger = {
		has_country_modifier = cult_of_reason
		if = {
			limit = {
				has_government_attribute = enables_estate_church
			}
			can_swap_out_of_estate_granting_reform = {
				estate = estate_church
			}
		}
	}
	modifiers = {
		rr_jacobins_influence = 0.1
		idea_cost = -2
		possible_policy = 10
		free_policy = 10
	}
	
	ai = {
		factor = 1
	}
}

conserve_the_religion_reform = {
	icon = "cult_of_supreme_being"
	allow_normal_conversion = yes
	potential = {
		is_revolutionary = yes
		has_dlc = "Emperor"
	}
	modifiers = {
		rr_royalists_influence = 0.1
		papal_influence = 1000
		tolerance_own = 20
		idea_cost = -0.5
	}
	effect = {
		if = {
			limit = { has_country_modifier = cult_of_reason }
			add_stability = -1
			remove_country_modifier = cult_of_reason
		}
	}
	
	ai = {
		factor = 1
	}
}

secularization_of_the_state_reform = {
	icon = "partial_secularisation_reform"
	allow_normal_conversion = yes
	potential = {
		is_revolutionary = yes
		has_dlc = "Emperor"
	}
	trigger = {
		if = {
			limit = {
				has_government_attribute = enables_estate_church
			}
			can_swap_out_of_estate_granting_reform = {
				estate = estate_church
			}
		}
	}
	modifiers = {
		rr_girondists_influence = 0.1
		no_religion_penalty = yes
	}
	
	ai = {
		factor = 1
	}
}

#Russia
holy_synod_reform = {
	icon = "patriarch"
	potential = {
		has_dlc = "Domination"
		is_revolutionary = no
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			have_had_reform = holy_synod_reform
			has_unlocked_government_reform = {
				government_reform = holy_synod_reform
			}
			has_reform = ruthenian_tsardom
		}
	}
	trigger = {
		religion = orthodox
	}
	modifiers = {
		manpower_in_true_faith_provinces = 0.5
		missionaries = 10
		church_loyalty_modifier = 0.1
	}
	custom_attributes = {
		seizing_land_no_rebels_from_estate_church = yes
		temples_modifier = yes
	}
	effect = {
		hidden_effect = {
			every_owned_province = {
				limit = {
					has_tax_building_trigger = yes
				}
				add_province_modifier = {
					name = gov_expanded_temple_rights_mod
					duration = -1
				}
			}
		}
	}
	post_removed_effect = {
		hidden_effect = {
			every_owned_province = {
				limit = {
					has_province_modifier = gov_expanded_temple_rights_mod
				}
				remove_province_modifier = gov_expanded_temple_rights_mod
			}
		}
	}
	ai = {
		factor = 1
	}
}

strengthened_the_patriarchy_reform = {
	icon = "patriarch"
	potential = {
		has_dlc = "Domination"
		is_revolutionary = no
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			have_had_reform = strengthened_the_patriarchy_reform
			has_unlocked_government_reform = {
				government_reform = strengthened_the_patriarchy_reform
			}
			has_reform = ruthenian_tsardom
		}
	}
	trigger = {
		religion = orthodox
	}
	modifiers = {
		church_privilege_slots = 10
		church_influence_modifier = -0.15
		church_loyalty_modifier = 0.2
		tolerance_own = 10
		yearly_patriarch_authority = 0.05
	}
	custom_attributes = {
		free_religious_culture = yes
	}
	ai = {
		factor = 1
	}
}

head_of_the_patriarchy_reform = {
	icon = "patriarch"
	potential = {
		has_dlc = "Domination"
		is_revolutionary = no
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			have_had_reform = head_of_the_patriarchy_reform
			has_unlocked_government_reform = {
				government_reform = head_of_the_patriarchy_reform
			}
		}
	}
	trigger = {
		religion = orthodox
	}
	modifiers = {
		max_absolutism = 100
		church_loyalty_modifier = 0.2
		tolerance_own = 10
		yearly_patriarch_authority = 0.05
	}
	custom_attributes = {
		free_religious_culture = yes
		improved_defender_of_faith = yes
		temples_modifier = yes
		seizing_land_no_rebels_from_estate_church = yes
	}
	effect = {
		hidden_effect = {
			every_owned_province = {
				limit = {
					has_tax_building_trigger = yes
				}
				add_province_modifier = {
					name = gov_expanded_temple_rights_mod
					duration = -1
				}
			}
		}
	}
	post_removed_effect = {
		hidden_effect = {
			every_owned_province = {
				limit = {
					has_province_modifier = gov_expanded_temple_rights_mod
				}
				remove_province_modifier = gov_expanded_temple_rights_mod
			}
		}
	}
	ai = {
		factor = 1
	}
}

peters_government_reform = {
	icon = "imperial_russia"
	potential = {
		has_dlc = "Domination"
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			have_had_reform = peters_government_reform
			has_unlocked_government_reform = {
				government_reform = peters_government_reform
			}
		}
	}
	modifiers = {
		administrative_efficiency = 0.25
		free_policy = 10
	}
	conditional = {
		allow = { has_dlc = "Domination" }
		government_abilities = {
			table_of_ranks_mechanic
		}
	}
	ai = {
		factor = 10
	}
}

#Ottomans
fiqh_laws_reform = {
	icon = "fiqh_laws"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		is_revolutionary = no
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			have_had_reform = fiqh_laws_reform
			has_unlocked_government_reform = {
				government_reform = fiqh_laws_reform
			}
			has_reform = sultanate_of_rum_reform
		}
	}
	trigger = {
		religion_group = muslim
	}
	modifiers = {
		global_missionary_strength = 0.2
		church_loyalty_modifier = 0.1
	}

	custom_attributes = {
		same_religion_subject_bonus = yes
		allow_piety_switch_decision = yes
	}
	
	ai = {
		factor = 1
	}
}

sufism_decree_reform = {
	icon = "sufism_decree"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		is_revolutionary = no
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			have_had_reform = sufism_decree_reform
			has_unlocked_government_reform = {
				government_reform = sufism_decree_reform
			}
			has_reform = sultanate_of_rum_reform
		}
	}
	trigger = {
		religion_group = muslim
	}
	modifiers = {
		diplomats = 10
		dhimmi_loyalty_modifier = 0.1
	}
	
	conditional = {
		allow = { has_dlc = "Golden Century" }
		custom_attributes = {
			free_guarantee_dhimmi_autonomy = yes
			unlock_ottoman_holy_orders = yes
		}
	}
	conditional = {
		allow = { NOT = { has_dlc = "Golden Century" } }
		custom_attributes = {
			free_guarantee_dhimmi_autonomy = yes
		}
	}
	
	ai = {
		factor = 1
	}
}

#Korea
#ways_of_perfectionism_reform = {
#	icon = "asian_scripture"
#	allow_normal_conversion = yes
#	potential = {
#		has_dlc = "Domination"
#		NOT = { has_government_attribute = is_pirate_republic_reform }
#		OR = {
#			is_revolutionary = no
#			NOT = { has_dlc = "Emperor" }
#		}
#		OR = {
#			culture_group = korean_g
#			primary_culture = korean_new
#		}
#	}
#	trigger = {
#		religion = confucianism
#	}
#	modifiers = {
#		church_loyalty_modifier = 0.1
#		harmonization_speed = 0.1
#		yearly_harmony = 0.25
#		state_governing_cost = -0.05
#	}
#	conditional = {
#		allow = { has_dlc = "Mandate of Heaven" }
#		custom_attributes = {
#			full_loyalty_on_harmonization = yes	#Add +100 Loyalty when harmonizing something
#		}
#	}
#	
#	ai = {
#		factor = 1
#	}
#}

#England
anglican_state_church_reform = {
	icon = "anglican_state_church"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		has_unlocked_government_reform = {
			government_reform = anglican_state_church_reform
		}
	}
	trigger = {
		OR = {
			religion = protestant
			religion = reformed
			religion = anglican
			religion = hussite
		}
	}
	modifiers = {
		tolerance_own = 10
		church_power_modifier = 2
		monthly_fervor_increase = 1
		max_absolutism = 100
	}
	
	ai = {
		factor = 1
	}
}
english_conciliarism_reform = {
	icon = "english_conciliarism"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		has_unlocked_government_reform = {
			government_reform = english_conciliarism_reform
		}
	}
	trigger = {
		religion_group = christian
	}
	modifiers = {
		diplomats = 10
		tolerance_heretic = 30
		diplomatic_reputation = 10
	}
	
	ai = {
		factor = 1
	}
}

#Military Doctrines
organized_military_staff_reform = {
	icon = "organized_military_staff"
	allow_normal_conversion = yes
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = organized_military_staff_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		reinforce_cost_modifier = -2
		reinforce_speed = 2.5
		global_supply_limit_modifier = 2
	}
	
	ai = {
		factor = 1
	}
}

military_engineering_reform = {
	icon = "military_engineers"
	allow_normal_conversion = yes
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = military_engineering_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		artillery_barrage_cost = -2.5
		artillery_cost = -1
	}
	
	ai = {
		factor = 1
	}
}

defensive_stance_reform = {
	icon = "castle"
	allow_normal_conversion = yes
	potential = {
		OR = {
			NOT = { has_dlc = "Domination" }
			NOT = { culture_group = caucasian }
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = defensive_stance_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
		NOT = { is_subject_of_type = march }
		NOT = { is_subject_of_type = client_march }
	}
	modifiers = {
		defensiveness = 1.5
		garrison_size = 2
		max_hostile_attrition = 10
	}
	
	ai = {
		factor = 1
	}
}

sustained_discipline_reform = {
	icon = "line_infantry"
	allow_normal_conversion = yes
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = sustained_discipline_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		land_attrition = -1.5
		drill_decay_modifier = -3.3
		drill_gain_modifier = 3.3
	}
	
	ai = {
		factor = 1
	}
}

cavalry_warfare_reform = {
	icon = "cavalry"
	allow_normal_conversion = yes
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = cavalry_warfare_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		cav_to_inf_ratio = 1
		cavalry_cost = -1.5
	}
	
	ai = {
		factor = 1
	}
}

amphibious_specialization_reform = {
	icon = "marine"
	allow_normal_conversion = yes
	potential = {
		OR = {
			NOT = { has_dlc = "Domination" }
			AND = { 
				NOT = { primary_culture = english }
				NOT = { primary_culture = anglois }
			}
		}
	}
	trigger = {
		num_of_ports = 1
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = amphibious_specialization_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		regiment_disembark_speed = 2.55
		transport_attrition = -2.5
		allowed_marine_fraction = 1
	}
	effect = {
		hidden_effect = {
			add_country_modifier = {
				name = amphibious_specialization_reform_modifier
				duration = -1
				hidden = yes
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = amphibious_specialization_reform_modifier
		}
	}
	conditional = {
		allow = {
			OR = {
				has_dlc = "Domination"
				has_dlc = "Golden Century"
				has_dlc = "Rule Britannia"
				has_dlc = "Lions of the North"
			}
		}
		custom_attributes = {
			marine_buff = yes	#Marines -20% Manpower Usage
		}
	}
	
	ai = {
		factor = 1
		modifier = {
			factor = 0
			NOT = { max_sailors = 50000 }
		}
	}
}

mercenary_leadership_reform = {
	icon = "war_economy"
	allow_normal_conversion = yes
	potential = {
		OR = {
			NOT = { has_dlc = "Domination" }
			NOT = { full_idea_group = mercenary_ideas }
			NOT = { primary_culture = swiss }
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = mercenary_leadership_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		mercenary_cost = -2.5
		possible_condottieri = 5
	}
	
	ai = {
		factor = 1
		modifier = {
			factor = 0
			NOT = {
				has_global_modifier_value = {
					which = mercenary_discipline
					value = 0.05
				}
			}
		}
	}
}

doppelsoldner_reform = {
	icon = "mercenaries"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		NOT = { primary_culture = swiss }
	}
	trigger = {
		full_idea_group = mercenary_ideas
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = doppelsoldner_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		mercenary_cost = -2.5
		possible_condottieri = 5
		merc_leader_army_tradition = 2.5
	}
	conditional = {
		allow = { has_dlc = "Domination" }
		government_abilities = {
			hessian_militarization_mechanic
		}
	}
	custom_attributes = {
		mercs_do_not_cost_army_professionalism = yes
	}
	
	ai = {
		factor = 1
	}
}

maritime_military_reform = {
	icon = "war_ship"
	allow_normal_conversion = yes
	potential = {
		NOT = {
			has_unlocked_government_reform = {
				government_reform = professional_navy_reform
			}
		}
	}
	trigger = {
		num_of_ports = 1
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = maritime_military_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		navy_tradition_decay = -0.1
		naval_morale = 1
		global_ship_cost = -0.5
	}
	
	ai = {
		factor = 1
		modifier = {
			factor = 0
			capital_scope = {
				is_island = no
			}
		}
	}
}

#Ottomans
expanded_devshirme_system_reform = {
	icon = "devshirme_system"
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_unlocked_government_reform = {
				government_reform = expanded_devshirme_system_reform
			}
			have_had_reform = expanded_devshirme_system_reform
		}
		NOT = { has_unlocked_government_reform = { government_reform = mansure_army_reform } }
		NOT = { has_unlocked_government_reform = { government_reform = janissary_military_reform } }
	}
	trigger = {
		religion_group = muslim
		custom_trigger_tooltip = {
			tooltip = tur_not_has_abolished_devshirme_system_tt
			NOT = { has_country_flag = tur_abolished_devshirme_for_good }
		}
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = expanded_devshirme_system_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		special_unit_forcelimit = 1
		vassal_forcelimit_bonus = 1.5
		vassal_manpower_bonus = 1
	}
	effect = {
		add_country_modifier = {
			name = tur_devshirme_recruitment
			duration = -1
		}
	}
	removed_effect = {
		remove_country_modifier = tur_devshirme_recruitment
	}
	
	ai = {
		factor = 1000
	}
}

reformed_ottoman_conscription_reform = {
	icon = "sekban"
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_unlocked_government_reform = {
				government_reform = reformed_ottoman_conscription_reform
			}
			have_had_reform = reformed_ottoman_conscription_reform
		}
		NOT = { has_unlocked_government_reform = { government_reform = mansure_army_reform } }
		NOT = { has_unlocked_government_reform = { government_reform = janissary_military_reform } }
	}
	trigger = {
		religion_group = muslim
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = expanded_devshirme_system_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		regiment_recruit_speed = 2.5
		reinforce_speed = 2.5
	}
	
	ai = {
		factor = 1000
	}
}

mansure_army_reform = {
	icon = "mansure_army"
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_unlocked_government_reform = {
				government_reform = mansure_army_reform
			}
			have_had_reform = mansure_army_reform
		}
	}
	trigger = {
		OR = {
			NOT = { has_estate = estate_janissaries }
			AND = {
				crown_stronger_than_estate = { estate = estate_janissaries }
				NOT = {
					num_of_estate_privileges = {
						estate = estate_janissaries
						value = 1
					}
				}
			}
			has_reform = mansure_army_reform
		}
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = mansure_army_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		drill_decay_modifier = -5
		drill_gain_modifier = 5
		infantry_power = 1
		army_tradition_decay = -0.1
	}

	custom_attributes = {
		disables_estate_janissaries = yes
		has_janissaries = no
	}
	
	ai = {
		factor = 1000
	}
}

janissary_military_reform = {
	icon = "janissary_government"
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_unlocked_government_reform = {
				government_reform = janissary_military_reform
			}
			have_had_reform = janissary_military_reform
		}
	}
	trigger = {
		OR = {
			num_of_estate_privileges = {
				estate = estate_janissaries
				value = 3
			}
			has_reform = janissary_military_reform
		}
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = janissary_military_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		janissaries_loyalty_modifier = 0.2
		janissaries_privilege_slots = 1
		special_unit_forcelimit = 1
		janissary_cost_modifier = -3.3
	}
	effect = {
		add_country_modifier = {
			name = tur_devshirme_recruitment
			duration = -1
		}
	}
	removed_effect = {
		remove_country_modifier = tur_devshirme_recruitment
	}

	custom_attributes = {
		enables_estate_janissaries = yes
		has_janissaries = yes
		can_revoke_janissary_privileges = yes
	}
	
	ai = {
		factor = 1000
	}
}

#Chinese (not Manchu, Korean or Altaic)
wei_suo_system_reform = {
	icon = "chinese_soldier"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = east_asian
		NOT = { primary_culture = korean_new }
		NOT = { primary_culture = altaic_new }
		NOT = { primary_culture = manchu_new }
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = wei_suo_system_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		global_regiment_cost = -1.5
	}
	custom_attributes = {
		improved_military_buildings = yes	#Barracks, Regimental Camps and Soldier Househols are buffed 
	}
	effect = {
		hidden_effect = {
			every_owned_province = {
				if = {
					limit = { has_building = barracks }
					add_province_modifier = {
						name = wei_suo_system_reform_barracks_modifier
						duration = -1
					}
				}
				if = {
					limit = { has_building = training_fields }
					add_province_modifier = {
						name = wei_suo_system_reform_training_fields_modifier
						duration = -1
					}
				}
				if = {
					limit = { has_building = regimental_camp }
					add_province_modifier = {
						name = wei_suo_system_reform_regimental_camp_modifier
						duration = -1
					}
				}
				if = {
					limit = { has_building = conscription_center }
					add_province_modifier = {
						name = wei_suo_system_reform_conscription_center_modifier
						duration = -1
					}
				}
				if = {
					limit = { has_building = soldier_households }
					add_province_modifier = {
						name = wei_suo_system_reform_soldier_households_modifier
						duration = -1
					}
				}
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			every_owned_province = {
				limit = {
					OR = {
						has_province_modifier = wei_suo_system_reform_barracks_modifier
						has_province_modifier = wei_suo_system_reform_training_fields_modifier
						has_province_modifier = wei_suo_system_reform_regimental_camp_modifier
						has_province_modifier = wei_suo_system_reform_conscription_center_modifier
						has_province_modifier = wei_suo_system_reform_soldier_households_modifier
					}
				}
				remove_province_modifier = wei_suo_system_reform_barracks_modifier
				remove_province_modifier = wei_suo_system_reform_training_fields_modifier
				remove_province_modifier = wei_suo_system_reform_regimental_camp_modifier
				remove_province_modifier = wei_suo_system_reform_conscription_center_modifier
				remove_province_modifier = wei_suo_system_reform_soldier_households_modifier
			}
		}
	}
	
	ai = {
		factor = 1000
	}
}

#Jurchen / Manchu
eight_banners_reform = {
	icon = "manchu_warrior"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			primary_culture = manchu_new
			primary_culture = manchu
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = eight_banners_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		amount_of_banners = 2.5
		army_tradition_decay = -0.05
		movement_speed = 1
	}
	custom_attributes = {
		eight_banners_buff = yes
	}
	effect = {
		hidden_effect = {
			add_country_modifier = {
				name = eight_banners_reform_modifier
				duration = -1
				hidden = yes
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = eight_banners_reform_modifier
		}
	}
	
	ai = {
		factor = 1000
	}
}

green_standard_army_reform = {
	icon = "chinese_soldier"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			primary_culture = manchu_new
			primary_culture = manchu
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = green_standard_army_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		manpower_recovery_speed = 2
	}
	custom_attributes = {
		manpower_from_defeating_armies = yes		#10% of the defeated troops join the Green Standard Army
	}
	
	ai = {
		factor = 1000
	}
}

#Japanese
ashigaru_reform = {
	icon = "ashigaru"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = japanese_g
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = ashigaru_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		army_tradition_from_battle = 5
		infantry_cost = -1
	}
	
	ai = {
		factor = 500
	}
}

early_bushido_code_reform = {
	icon = "samurai"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = japanese_g
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = early_bushido_code_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		allowed_samurai_fraction = 1
		army_tradition_decay = -0.1
	}
	
	ai = {
		factor = 1000
	}
}

#Korean
the_righteous_army_reform = {
	icon = "righteous_army"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			culture_group = korean_g
			culture = korean_new
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = the_righteous_army_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		recover_army_morale_speed = 1.5
		defensiveness = 2.5
	}
	custom_attributes = {
		has_righteous_army = yes	#Can enact the righteous army
	}
	
	ai = {
		factor = 1000
	}
}

#Venice / Genoa
merchant_arsenal_reform = {
	icon = "merchant_ship"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			culture = venetian
			culture = ligurian
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = merchant_arsenal_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		recover_navy_morale_speed = 2
		global_ship_recruit_speed = -2.5
		has_galleass = yes
	}
	
	ai = {
		factor = 1000
	}
}

#Mughals
mansabdari_reform = {
	icon = "noble_muslim"
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_dlc = "Dharma"
			has_dlc = "Domination"
		}
		OR = {
			tag = MUG
			culture_group = hindusthani
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = mansabdari_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		war_taxes_cost_modifier = -5
		nobles_loyalty_modifier = 0.1
		nobles_influence_modifier = -0.1
		nobles_privilege_slots = 1
	}
	custom_attributes = {
		enables_estate_nobles = yes	#This one is active because of the trait below
		enable_mansabdar_privileges = yes
	}
	ai = {
		factor = 1000
	}
}

#Rajputs
rajput_military_leadership_reform = {
	icon = "rajput_soldiers"
	allow_normal_conversion = yes
	potential = {
		has_estate = estate_rajput
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = rajput_military_leadership_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		can_recruit_rajputs = yes
		rajput_loyalty_modifier = 0.1
		rajput_influence_modifier = 0.1
		rajput_privilege_slots = 1
		special_unit_forcelimit = 1
	}
	
	ai = {
		factor = 1000
	}
}

#Marathas
the_maratha_army_reform = {
	icon = "maratha_rider"
	allow_normal_conversion = yes
	potential = {
		has_estate = estate_maratha
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = the_maratha_army_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		maratha_loyalty_modifier = 0.1
		maratha_privilege_slots = 10
		reinforce_speed = 2
	}
	custom_attributes = {
		seizing_land_no_rebels_from_estate_maratha = yes
	}
	
	ai = {
		factor = 1000
	}
}

#Altaic
subutais_strategies_reform = {
	icon = "siege"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			culture_group = altaic
			culture_group = tartar
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = subutais_strategies_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		leader_siege = 10
		artillery_cost = -1
	}
	
	ai = {
		factor = 1000
	}
}

#Persian
qollar_aghasi_regiments_reform = {
	icon = "feudal_theocracy"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = iranian
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = qollar_aghasi_regiments_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		reinforce_cost_modifier = -2.5
		leader_land_shock = 20
		mil_tech_cost_modifier = -1
		global_autonomy = -0.3
	}

	ai = {
		factor = 1000
	}
}

#Burmese
ahmudan_system_reform = {
	icon = "burmese_flag"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = burman
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = ahmudan_system_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		reinforce_cost_modifier = -2
	}
	custom_attributes = {
		ahmudan_system = yes
	}
	
	ai = {
		factor = 1000
	}
}

#Arabian
ghazi_reform = {
	icon = "horde_riding"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = turko_semitic
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = ghazi_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		cavalry_cost = -1
		land_attrition = -1
		loot_amount = 5
		available_province_loot = 5
	}
	
	ai = {
		factor = 1000
	}
}

#Ethiopian
the_cawa_regiments_reform = {
	icon = "cawa"
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_dlc = "Domination"
			has_dlc = "Origins"
		}
		primary_culture = amhara
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = the_cawa_regiments_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		reserves_organisation = 2.5
		stability_cost_modifier = -0.5
		global_regiment_cost = -1
		war_exhaustion = -0.5
	}
	conditional = {
		allow = {
			has_dlc = "Origins"
		}
		allow_cawa = yes
		custom_attributes = {
			buff_cawa = yes
			#enables_estate_cawa = yes
		}
	}
	effect = {
		hidden_effect = {
			if = {
				limit = {
					has_dlc = "Origins"
				}
				add_country_modifier = {
					name = the_cawa_regiments_reform_modifier
					duration = -1
				}
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			if = {
				limit = { has_country_modifier = the_cawa_regiments_reform_modifier }
				remove_country_modifier = the_cawa_regiments_reform_modifier
			}
		}
	}
	
	ai = {
		factor = 1000
	}
}

#Iberian (not Portuguese / Brazillian)
tercio_reform = {
	icon = "tercios_reform"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = iberian
		NOT = { religion_group = muslim }
		NOT = { primary_culture = portugese }
		NOT = { primary_culture = brazilian }
		NOT = { tag = CAS }
		NOT = { tag = SPA }
		NOT = { tag = ARA }
		is_colonial_nation = no
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = tercio_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		has_tercio = yes
		allowed_tercio_fraction = 1
		army_tradition = 5
		yearly_army_professionalism = 0.025
	}
	
	ai = {
		factor = 1000
	}
}

fuero_militar_reform = {
	icon = "tercios_reform"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = iberian
		NOT = { primary_culture = portugese }
		NOT = { primary_culture = brazilian }
		is_colonial_nation = yes
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = fuero_militar_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		manpower_recovery_speed = 1.5
		global_unrest = -10
	}

	ai = {
		factor = 1000
	}
}

#Portuguese/Brazillian
ordennancas_reform = {
	icon = "ordenancas"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		NOT = { religion_group = muslim }
		OR = {
			primary_culture = portugese
			primary_culture = brazilian
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = ordennancas_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		leader_land_shock = 10
		army_tradition_decay = -0.005
	}
	custom_attributes = {
		can_raise_manpower_from_home_region = yes
	}
	
	ai = {
		factor = 1000
	}
}

#Aragonese
revive_the_almogavars_reform = {
	icon = "soldiers_6"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		NOT = { religion_group = muslim }
		OR = {
			primary_culture = catalan
			primary_culture = aragonese
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = revive_the_almogavars_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		manpower_in_true_faith_provinces = 0.5
		movement_speed = 1
		infantry_cost = -1
	}
	custom_attributes = {
		has_improved_almogavars = yes
	}
	
	ai = {
		factor = 1000
	}
}

#Muslim Iberian
volunteers_of_the_faith_reform = {
	icon = "feudal_theocracy"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = iberian
		religion_group = muslim
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = volunteers_of_the_faith_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		tolerance_own = 20
		defensiveness = 2
	}
	custom_attributes = {
		can_rally_volunteers_from_allies = yes
	}
	
	ai = {
		factor = 1000
	}
}

#Italian
condottieri_contracts_reform = {
	icon = "soldiers_7"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = latin
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = condottieri_contracts_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		mercenary_cost = -3.3
		possible_condottieri = 10
		mercenary_discipline = 0.5
	}
	custom_attributes = {
		mercs_do_not_cost_army_professionalism = yes
	}
	
	ai = {
		factor = 1000
	}
}

#French
compagnie_dordonnance_reform = {
	icon = "soldiers_2"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = french
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = compagnie_dordonnance_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		drill_decay_modifier = -3.3
		army_tradition_decay = -0.05
		cav_to_inf_ratio = 1
		global_regiment_cost = -0.5
	}
	
	ai = {
		factor = 500
		modifier = {
			factor = -1000
			mission_completed = fra_musketeers
		}
	}
}

musketeers_reform = {
	icon = "musketeers_reform"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		tag = FRA 
	}
	trigger = {
		NOT = { current_age = age_of_discovery }
		NOT = { current_age = age_of_reformation }
		mission_completed = fra_musketeers
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = musketeers_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		has_musketeer = yes
		allowed_musketeer_fraction = 2
		nobles_influence_modifier = -0.1
	}
	
	ai = {
		factor = 1000
	}
}

gendarmes_reform = {
	icon = "gendarmes_reform"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination" 
		culture_group = french 
	}
	trigger = {
		OR = {
			has_reform = gendarmes_reform 
			custom_trigger_tooltip = {
				tooltip = has_unlocked_this_reform_tt
				has_country_flag = fra_unlock_gendarmes
			}
		}
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = gendarmes_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		cavalry_power = 1
		nobles_loyalty_modifier = 0.05
		morale_damage = 0.5
	}
	ai = {
		factor = 1
	}
}

#Saxon/Prussian
general_war_commissariat_reform = {
	icon = war_map
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			primary_culture = saxon
			primary_culture = prussian
			primary_culture = pommeranian
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = general_war_commissariat_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		mil_tech_cost_modifier = -1
		army_tradition = 5
		monthly_militarized_society = 0.5
		monthly_prussian_militarized_society_1 = 0.5
		monthly_prussian_militarized_society_2 = 1
		monthly_prussian_militarized_society_3 = 1.25
	}
	
	ai = {
		factor = 1000
	}
}

#Swiss
swiss_mercenary_reform = {
	icon = "infantry"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		primary_culture = swiss
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = swiss_mercenary_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		mercenary_cost = -2.5
		possible_condottieri = 5
		merc_leader_army_tradition = 3.3
		mercenary_discipline = 0.5
	}
	conditional = {
		allow = { has_dlc = "Domination" }
		government_abilities = {
			hessian_militarization_mechanic
		}
	}
	custom_attributes = {
		mercs_do_not_cost_army_professionalism = yes
	}
	
	ai = {
		factor = 1000
	}
}

# Hungarian
expanded_black_army_reform = {
	icon = "black_army"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		primary_culture = hungarian
	}
	modifiers = {
		mercenary_manpower = 10
		war_taxes_cost_modifier = -5
		army_tradition_from_battle = 10
		allow_mercenary_drill = yes
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = expanded_black_army_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	custom_attributes = {
		mercs_do_not_cost_army_professionalism = yes
	}
	ai = {
		factor = 1000
	}
}

#English
royal_marines_reform = {
	icon = "infantry"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			primary_culture = english
			primary_culture = anglois
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = royal_marines_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		regiment_disembark_speed = 2.5
		transport_attrition = -2.5
		allowed_marine_fraction = 1
		sailor_maintenance_modifer = -1
		global_sailors_modifier = 2.5
	}
	effect = {
		hidden_effect = {
			add_country_modifier = {
				name = amphibious_specialization_reform_modifier
				duration = -1
				hidden = yes
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			remove_country_modifier = amphibious_specialization_reform_modifier
		}
	}
	conditional = {
		allow = {
			OR = {
				has_dlc = "Domination"
				has_dlc = "Golden Century"
				has_dlc = "Rule Britannia"
				has_dlc = "Lions of the North"
			}
		}
		custom_attributes = {
			marine_buff = yes	#Marines -20% Manpower Usage
		}
	}
	
	ai = {
		factor = 1000
	}
}

professional_navy_reform = {
	icon = "war_ship"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		has_unlocked_government_reform = {
			government_reform = professional_navy_reform
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = professional_navy_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		navy_tradition_decay = -0.1
		max_flagships = 20
		siege_blockade_progress = 20
		naval_morale = 1
		sailor_maintenance_modifer = -1
		global_sailors_modifier = 2.5
	}
	
	ai = {
		factor = 1
	}
}

#Scotish
manrent_reform = {
	icon = "feudal_levies"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		primary_culture = scottish
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = manrent_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		nobles_loyalty_modifier = 0.05
		nobles_influence_modifier = 0.1
		global_manpower_modifier = 1
		vassal_forcelimit_bonus = 3.3
	}
	
	ai = {
		factor = 1000
	}
}

#Dutch/Flemish
staatse_leger_reform = {
	icon = "infantry"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			primary_culture = dutch
			primary_culture = flemish
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = staatse_leger_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		movement_speed = 1
		drill_gain_modifier = 5
		reinforce_speed = 2.5
	}
	custom_attributes = {
		mercs_do_not_cost_army_professionalism = yes
	}
	
	ai = {
		factor = 1000
	}
}

#Dutch/Flemish
watergeuzen_reform = {
	icon = "landing_marines"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			primary_culture = dutch
			primary_culture = flemish
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = watergeuzen_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		capture_ship_chance = 2
		allowed_marine_fraction = 1
		sea_repair = yes
	}
	
	ai = {
		factor = 1000
	}
}

#Swedish
allotment_system = {
	icon = "allotment_system"
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_unlocked_government_reform = { government_reform = allotment_system }
			has_reform = allotment_system
			have_had_reform = allotment_system
		}
		OR = {
			primary_culture = swedish
			primary_culture = finnish
			primary_culture = norse
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = allotment_system
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	conditional = {
		allow = {
			has_dlc = "Lions of the North"
		}
		allow_carolean = yes
	}
	modifiers = {
		#has_carolean = yes
		manpower_in_own_culture_provinces = 1.5
		manpower_in_accepted_culture_provinces = 1
		#amount_of_carolean = 0.25
	}

	ai = {
		factor = 1000
	}
}

##Caucasian
sygnakhs_system_reform = {
	icon = "mountain_fort"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		culture_group = caucasian
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = sygnakhs_system_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		defensiveness = 1.5
		garrison_size = 2
		max_hostile_attrition = 10
		fort_maintenance_modifier = -2.5
		hostile_attrition = 10
		global_regiment_recruit_speed = -2
	}
	
	ai = {
		factor = 1000
	}
}

##Polish
cossacks_registry_reform = {
	icon = "cossacks"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			primary_culture = polish
			primary_culture = lithuanian
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = cossacks_registry_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		special_unit_forcelimit = 1
		cossacks_loyalty_modifier = 0.15
		cossacks_influence_modifier = 0.1
		cossacks_privilege_slots = 10
	}
	
	ai = {
		factor = 1000
	}
}

##Czech / Sorbian / Silesian
lessons_of_the_hussite_wars_reform = {
	icon = "war_map"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			primary_culture = czech
			primary_culture = sorbian
			primary_culture = schlesian
			primary_culture = czech_new
			primary_culture = sorbian_new
			primary_culture = schlesian_new
		}
		religion = hussite
		NOT = { tag = PRU }
		NOT = { tag = POL }
		NOT = { tag = PLC }
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = lessons_of_the_hussite_wars_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		global_defender_dice_roll_bonus = 10 
	}
	
	ai = {
		factor = 1000
	}
}

#Russian
boyars_army_reform = {
	icon = "boyar"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		OR = {
			culture_group = east_slavic
			culture_group = slavic
		}
	}
	trigger = {
		has_estate = estate_nobles
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = lessons_of_the_hussite_wars_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		land_maintenance_modifier = -0.5
		nobles_influence_modifier = 0.1
		nobles_privilege_slots = 10
	}
	custom_attributes = {
		unlock_boyars_military_privileges = yes
	}
	
	ai = {
		factor = 1
	}
}

streltsy_reform = {
	icon = "streltsy"
	allow_normal_conversion = yes
	potential = {
		OR = {
			has_dlc = "Domination"
			has_dlc = "Third Rome"
		}
		OR = {
			has_reform = principality
			has_reform = veche_republic
			has_reform = tsardom
			has_reform = ruthenian_tsardom
			has_reform = great_veche_republic
			has_reform = russian_empire_reform
			has_reform = great_russian_republic_reform
		}
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = streltsy_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		infantry_cost = -0.5
		has_streltsy = yes
		allowed_streltsy_fraction = 2
	}
	conditional = {
		allow = {
			NOT = { has_dlc = "Domination" }
		}
		custom_attributes = {
			buffed_streltsy_button = yes
		}
	}
	conditional = {
		allow = {
			has_dlc = "Domination"
		}
		custom_attributes = {
			cheaper_streltsy = yes
			buffed_streltsy_button = yes
		}
	}
	
	ai = {
		factor = 1000
	}
}

new_order_regiments_reform = {
	icon = "new_order_regiments"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		has_government_mechanic = russian_rule_mechanic
	}
	trigger = {
		if = {
			limit = { has_modifier_locking_military_tier = yes }
			OR = {
				has_reform = new_order_regiments_reform
				has_not_modifier_locking_military_tier = yes
			}
		}
	}
	modifiers = {
		yearly_army_professionalism = 0.025
		drill_gain_modifier = 5
		army_tradition = 5
	}

	conditional = {
		allow = {
			has_dlc = "Domination"
		}
		custom_attributes = {
			new_order_regiment_buff = yes
		}
	}
	
	ai = {
		factor = 1000
	}
}

#Economical Matters

empower_the_burghers_reform = {
	icon = "prussian_monarchy_2"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
	}
	modifiers = {
		global_trade_power = 0.5
		trade_efficiency = 0.5
		burghers_loyalty_modifier = 0.05
		burghers_influence_modifier = 0.1
		vaisyas_loyalty_modifier = 0.05
		vaisyas_influence_modifier = 0.1
		jains_loyalty_modifier = 0.05
		jains_influence_modifier = 0.1
	}
	ai = {
		factor = 1
	}
}

curtail_the_burghers_reform = {
	icon = "assembly_hall"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		OR = {
			is_revolutionary = no
			NOT = { has_dlc = "Emperor" }
		}
	}
	modifiers = {
		trade_company_governing_cost = -1
		trade_steering = 1.5
		burghers_influence_modifier = -0.1
	}
	custom_attributes = {
		seizing_land_no_rebels_from_estate_burghers = yes
	}
	ai = {
		factor = 1
	}
}

reestablish_the_burgeoisie_reform = {
	icon = "dutch_republic"
	allow_normal_conversion = yes
	potential = {
		is_revolutionary = yes
		has_dlc = "Emperor"
	}
	modifiers = {
		global_trade_goods_size_modifier = 1
		max_revolutionary_zeal = -100
	}
	custom_attributes = {
		enables_estate_burghers = yes
	}
	ai = {
		factor = 1
	}
}

new_world_exploitation_reform = {
	icon = "compass"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
		capital_scope = {
			NOT = { continent = north_america }
			NOT = { continent = south_america }
			NOT = { continent = new_world }
			NOT = { colonial_region = colonial_australia }
		}
	}
	trigger = {
		OR = {
			full_idea_group = expansion_ideas
			full_idea_group = exploration_ideas
		}
		if = {
			limit = {
				is_revolutionary = yes
				has_dlc = "Emperor"
				has_government_attribute = enables_estate_burghers
			}
			can_swap_out_of_estate_granting_reform = {
				estate = estate_burghers
			}
		}
	}
	modifiers = {
		colonists = 10
	}
	custom_attributes = {
		extra_trade_goods_for_colonial_subjects = yes
	}
	ai = {
		factor = 1
	}
}

mercantilistic_approach_reform = {
	icon = "paper_with_seal"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
	}
	trigger = {
		if = {
			limit = {
				is_revolutionary = yes
				has_dlc = "Emperor"
				has_government_attribute = enables_estate_burghers
			}
			can_swap_out_of_estate_granting_reform = {
				estate = estate_burghers
			}
		}
	}
	modifiers = {
		mercantilism_cost = -1
		global_own_trade_power = 1.5
		placed_merchant_power = 50
	}
	custom_attributes = {
		no_mercantilism_loss_from_privilege = yes
	}
	ai = {
		factor = 1
	}
}

free_trade_reform = {
	icon = "merchant"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
	}
	trigger = {
		if = {
			limit = {
				is_revolutionary = yes
				has_dlc = "Emperor"
				has_government_attribute = enables_estate_burghers
			}
			can_swap_out_of_estate_granting_reform = {
				estate = estate_burghers
			}
		}
	}
	modifiers = {
		global_institution_spread = 2.5
		global_foreign_trade_power = 2
	}
	custom_attributes = {
		monarch_power_on_institutions = yes
	}
	conditional = {
		allow = { has_dlc = "Cradle of Civilization" }
		custom_attributes = {
			free_improve_inland_routes = yes
		}
	}
	ai = {
		factor = 1
	}
}

lockean_proviso_reform = {
	icon = "paper_money_map"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
	}
	trigger = {
		OR = { 
			full_idea_group = economic_ideas
			full_idea_group = infrastructure_ideas 
		}
		if = {
			limit = {
				is_revolutionary = yes
				has_dlc = "Emperor"
				has_government_attribute = enables_estate_burghers
			}
			can_swap_out_of_estate_granting_reform = {
				estate = estate_burghers
			}
		}
	}
	modifiers = {
		development_cost = -0.5
		global_trade_goods_size_modifier = 0.5
	}
	ai = {
		factor = 1
	}
}

embrace_the_economic_theory_reform = {
	icon = "dutch_flag"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
	}
	trigger = {
		if = {
			limit = {
				is_revolutionary = yes
				has_dlc = "Emperor"
				has_government_attribute = enables_estate_burghers
			}
			can_swap_out_of_estate_granting_reform = {
				estate = estate_burghers
			}
		}
	}
	modifiers = {
		interest = -5
		inflation_reduction = 2
	}
	ai = {
		factor = 1
	}
}

war_economy_reform = {
	icon = "war_economy"
	allow_normal_conversion = yes
	potential = {
		NOT = { has_government_attribute = is_pirate_republic_reform }
	}
	trigger = {
	}
	modifiers = {
		war_taxes_cost_modifier = -5
		global_regiment_cost = -1
		global_ship_cost = -1
	}
	ai = {
		factor = 1
	}
}

thalassocracy_reform = {
	icon = "admiralty"
	allow_normal_conversion = yes
	potential = {
		has_unlocked_government_reform = {
			government_reform = thalassocracy_reform
		}
	}
	trigger = {
	}
	modifiers = {
		center_of_trade_upgrade_cost = -1
		trade_company_investment_cost = -1
		naval_forcelimit_modifier = 2.5
		global_trade_power = 1.5
	}
	custom_attributes = {
		can_establish_trade_protectorates = yes
	}
	ai = {
		factor = 1
	}
}

royal_charters_reform = {
	icon = "paper_with_seal_3"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		has_unlocked_government_reform = {
			government_reform = royal_charters_reform
		}
	}
	trigger = {
	}
	modifiers = {
		yearly_corruption = -1
		global_unrest = -10
		stability_cost_modifier = -1.5
	}
	conditional = {
		allow = {
			has_dlc = "Domination"
		}
		custom_attributes = {
			can_establish_trade_protectorates = yes
		}
	}
	ai = {
		factor = 1
	}
}

commercial_trade_empire_reform = {
	icon = "trading_city"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination"
		has_unlocked_government_reform = {
			government_reform = commercial_trade_empire_reform
		}
	}
	trigger = {
	}
	modifiers = {
		trade_company_investment_cost = -1
		global_ship_trade_power = 2.5
		mercantilism_cost = -3.3
	}
	conditional = {
		allow = {
			has_dlc = "Domination"
		}
		custom_attributes = {
			can_establish_trade_protectorates = yes
		}
	}
	ai = {
		factor = 1
	}
}

jap_gokaido_reform = {
	icon = "jap_gokaido_reform"
	allow_normal_conversion = no
	potential = {
		culture_group = japanese 
	}
	trigger = {
		OR = {
			have_had_reform = jap_gokaido_reform
			has_reform = jap_gokaido_reform
			mission_completed = jap_expand_gokaido
		}
	}
	modifiers = {
		merchants = 10
	}
	effect = {
		every_owned_province = {
			limit = { 
				region = japan_region 
				NOT = { has_province_modifier = jap_gokaido_modifier }
			}
			add_province_modifier = {
				name = jap_gokaido_modifier
				duration = -1 
				hidden = yes
			}
		}
	}
	removed_effect = {
		every_owned_province = {
			limit = { 
				region = japan_region 
				has_province_modifier = jap_gokaido_modifier
			}	
			remove_province_modifier = jap_gokaido_modifier
		}
	}
	custom_attributes = { benefits_for_japan = yes } 
	ai = {
		factor = 100
	}
}

reform_the_samurai_reform = {
	icon = "reform_the_samurai_reform"
	allow_normal_conversion = yes
	potential = {
		culture_group = japanese 
		tag = JAP 
		OR = {
			have_had_reform = reform_the_samurai_reform
			has_reform = reform_the_samurai_reform
		}
		NOT = { has_country_modifier = jap_domineering_naval_focus_modifier }
		NOT = { has_country_modifier = jap_naval_academy_of_japan_modifier }
	}
	modifiers = {
		drill_gain_modifier = 5
		army_tradition = 5
		allowed_samurai_fraction = 0.5
	}
	effect = {
		custom_tooltip = jap_samurai_get_fire_damage_tt
		hidden_effect = {
			add_country_modifier = {
				name = jap_reformed_samurai_modifier
				duration = -1 
				hidden = yes 
			}
		}
	}
	removed_effect = {
		remove_country_modifier = jap_reformed_samurai_modifier
	}
	ai = {
		factor = 1.5
	}
}

tercios_reform = {
	icon = "tercios_reform"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination" 
		OR = {
			AND = {
				is_or_was_tag = { tag = ARA }
				OR = {
					total_development = 500 
					is_great_power = yes 
				}
			}
			mission_completed = spa_tercios_system
			custom_trigger_tooltip = {
				tooltip = has_unlocked_this_reform_tt
				has_country_flag = enable_tercios_reform_flag
			}
		}
		NOT = { religion_group = muslim } 
	}
	modifiers = {
		has_tercio = yes
		allowed_tercio_fraction = 1.5
		army_tradition = 5
		yearly_army_professionalism = 0.025
	}
	
	ai = {
		factor = 1
	}
}

consulate_of_the_sea = {
	icon = "consulate_of_the_sea"
	allow_normal_conversion = yes
	potential = {
		has_dlc = "Domination" 
		OR = {
			tag = ARA
			was_tag = ARA 
			has_reform = consulate_of_the_sea 
		}
	}
	trigger = {
		OR = {
			mission_completed = gc_ara_consultate_of_the_sea2
			has_reform = consulate_of_the_sea 
		}
	}
	modifiers = {
		trade_efficiency = 1
		global_trade_power = 1
		burghers_loyalty_modifier = 0.05
		
	}
	
	conditional = {
		allow = {
			has_dlc = "Res Publica"
			has_dlc = "Mare Nostrum"
		}
		can_use_trade_post = yes
	}
	
	ai = {
		factor = 10
	}
}