#T4 Theocracy

holy_orthodoxy_reform = {
	icon = "holy_orthodoxy"
	allow_normal_conversion = yes
	modifiers = {
		yearly_corruption = -0.10
		devotion = 0.5
	}
	ai = {
		factor = 1
	}
}

inquisition_reform = {
	icon = "inquisition"
	allow_normal_conversion = yes
	modifiers = {
		global_missionary_strength = 0.01
		global_heretic_missionary_strength = 0.02
		prestige_per_development_from_conversion = 0.2
	}
	ai = {
		factor = 1
	}
}

religious_pragmatism_reform = {
	icon = "religious_pragmatism"
	allow_normal_conversion = yes
	modifiers = {
		religious_unity = 0.10
		advisor_cost = -0.10
	}
	ai = {
		factor = 1
	}
}

papal_curia_reform = {
	icon = "roman_law"
	allow_normal_conversion = yes
	potential = {
		tag = PAP
	}
	trigger = {
		OR ={
			AND = {
				tag = PAP
				has_reform = kingdom_of_god_reform
			}
			has_reform = papal_curia_reform
		}
	}
	modifiers = {
		advisor_cost = -0.15
		prestige = 1
		diplomatic_upkeep = 1
	}
	ai = {
		factor = 100
	}
}

#T6

holy_war_reform = {
	icon = "holy_war"
	allow_normal_conversion = yes
	modifiers = {
		manpower_recovery_speed = 0.10
		cb_on_religious_enemies = yes
	}
	ai = {
		factor = 1
	}
}

militarized_monasteries_reform = {
	icon = "militarized_monasteries"
	allow_normal_conversion = yes
	modifiers = {
		army_tradition = 0.5
		defensiveness = 0.10
	}
	ai = {
		factor = 1
	}
}

brothers_in_arms_reform = {
	icon = "brothers_in_arms"
	allow_normal_conversion = yes

	rulers_can_be_generals = yes
	heirs_can_be_generals = yes

	modifiers = {
		mercenary_discipline = 0.025
		mercenary_manpower = 0.25
	}
	ai = {
		factor = 1
	}
}

mamluk_soldiers_reform = {
	icon = feudal_theocracy
	allow_normal_conversion = yes
	potential = {
		culture_group = cushitic
	}
	trigger = {
		primary_culture = somali
	}
	modifiers = {
		discipline = 0.025
		drill_gain_modifier = 0.25
		yearly_army_professionalism = 0.002
		land_maintenance_modifier = 0.1
	}
	ai = {
		factor = 100
	}
}

tradition_of_masada_and_bar_kochba_reform = {
	icon = fort
	allow_normal_conversion = yes
	potential = {
		religion = jewish
	}
	trigger = {
		religion = jewish
	}
	modifiers = {
		defensiveness = 0.25
		hostile_attrition = 1
	}
	ai = {
		factor = 100
	}
}

the_bishops_army_reform = {
	icon = "bishops_army"
	allow_normal_conversion = yes
	modifiers = {
		free_mil_policy = 1
		max_absolutism = 5
	}
	ai = {
		factor = 1
	}
}

#T7 Diplomacy

unrestricted_diplomacy_reform = {
	icon = "unrestricted_diplomacy"
	allow_normal_conversion = yes
	modifiers = {
		diplomatic_reputation = 1
	}
	custom_attributes = {
		enables_unrestricted_diplomats = yes
	}
	effect = {
		hidden_effect = {
			every_known_country = {
				add_opinion = { who = ROOT modifier = opinion_unrestricted_diplomacy }
			}
		}
	}
	removed_effect = {
		hidden_effect = {
			every_country = {
				remove_opinion = { who = ROOT modifier = opinion_unrestricted_diplomacy }
			}
		}
	}
	ai = {
		factor = 1
	}
}

holy_claims_reform = {
	icon = "holy_claims"
	allow_normal_conversion = yes
	modifiers = {
		ae_impact = -0.10
	}
	conditional = {
		allow = { has_dlc = "Third Rome" }
		claim_states = yes
	}
	ai = {
		factor = 1
	}
}

network_of_faithful_allies_reform = {
	icon = "network_of_faithful_allies"
	allow_normal_conversion = yes
	modifiers = {
		vassal_income = 0.2
		vassal_forcelimit_bonus = 0.50
		reduced_liberty_desire = 10
	}
	ai = {
		factor = 1
	}
}

yeshiva_scholarship_reform = {
	icon = constitution
	allow_normal_conversion = yes
	potential = {
		religion = jewish
	}
	trigger = {
		religion = jewish
	}
	modifiers = {
		technology_cost = -0.05
		tolerance_own = 1
	}
	ai = {
		factor = 100
	}
}

the_bishops_diplomacy_reform = {
	icon = "bishops_diplomacy"
	allow_normal_conversion = yes
	modifiers = {
		free_dip_policy = 1
		max_absolutism = 5
	}
	ai = {
		factor = 1
	}
}

#T8 Mobilize the faithful

secular_law_reform = {
	icon = "secular_law"
	allow_normal_conversion = yes
	modifiers = {
		global_unrest = -1
		tolerance_heretic = 1
	}
	ai = {
		factor = 1
	}
}

theocratic_law_reform = {
	icon = "theocratic_law"
	allow_normal_conversion = yes
	modifiers = {
		stability_cost_modifier = -0.15
		devotion = 0.5
	}
	ai = {
		factor = 1
	}
}

the_bishops_law_reform = {
	icon = "bishop's_law"
	allow_normal_conversion = yes
	modifiers = {
		free_adm_policy = 1
		max_absolutism = 5
	}
	ai = {
		factor = 1
	}
}

roman_law_reform = {
	icon = "roman_law"
	allow_normal_conversion = yes
	potential = {
		religion = catholic
		NOT = { tag = PAP }
	}
	trigger = {
		religion = catholic
	}
	modifiers = {
		papal_influence = 1
	}
	ai = {
		factor = 10
	}
}

jizja_tax_reform = {
	icon = "jizja_law"
	allow_normal_conversion = yes
	potential = {
		religion_group = muslim
	}
	trigger = {
		religion_group = muslim
	}
	modifiers = {
		global_tax_modifier = 0.20
	}
	ai = {
		factor = 10
	}
}

harmonious_law_reform = {
	icon = "harmonious_law"
	allow_normal_conversion = yes
	potential = {
		religion = confucianism
	}
	trigger = {
		religion = confucianism
	}
	modifiers = {
		harmonization_speed = 0.1
		yearly_harmony = 0.5
	}
	ai = {
		factor = 10
	}
}

pagan_law_reform = {
	icon = "pagan_law"
	allow_normal_conversion = yes
	potential = {
		religion_group = pagan
	}
	trigger = {
		religion_group = pagan
	}
	modifiers = {
		core_creation = -0.1
	}
	ai = {
		factor = 10
	}
}

papal_law_reform = {
	icon = "papal_law"
	allow_normal_conversion = yes
	potential = {
		tag = PAP
	}
	trigger = {
		tag = PAP
	}
	modifiers = {
		tolerance_own = 1
		improve_relation_modifier = 0.15
		monarch_diplomatic_power = 1
	}
	ai = {
		factor = 100
	}
}

#T10
mission_to_crusade_reform = {
	icon = "holy_state_reform"
	allow_normal_conversion = yes
	potential = {
	}
	trigger = {
		custom_trigger_tooltip = {
			tooltip = mission_to_crusade_reform_tt
			NOT = { has_government_attribute = has_term_election }
		}
	}

	modifiers = {
		tolerance_own = 2
	}

	government_abilities = {
		crusade_power_mechanic
	}
}

ajuraan_theocracy_reform = {
	icon = muslim_highlighted
	allow_normal_conversion = yes

	queen = yes
	heir = yes
	royal_marriage = yes

	potential = {
		primary_culture = somali
	}
	modifiers = {
		global_trade_power = 0.10
		trade_range_modifier = 0.25
	}
	custom_attributes = {
		enables_hereditary_theocracy = yes
	}
	ai = {
		factor = 100
	}
}

dynastic_theocracy_reform = {
	allow_normal_conversion = yes
	icon = "feudal_theocracy"
	valid_for_nation_designer = yes
	nation_designer_cost = 0
	queen = yes
	heir = yes
	royal_marriage = yes
	maintain_dynasty = yes
	effect = {
		hidden_effect = {
			country_event = {
				id = reform_me_events.83
			}
		}
	}
	modifiers = {
		devotion = 0.25
	}
	custom_attributes = {
		enables_hereditary_theocracy = yes
	}
	ai = {
		factor = 1
	}
}

fighting_for_israel_reform = {
	icon = landscape
	allow_normal_conversion = yes
	potential = {
		religion = jewish
	}
	trigger = {
		religion = jewish
	}
	modifiers = {
		land_morale = 0.15
	}
	ai = {
		factor = 100
	}
}

restore_the_davidic_line_reform = {
	icon = crown
	allow_normal_conversion = yes
	potential = {
		religion = jewish
	}
	trigger = {
		religion = jewish
	}
	modifiers = {
		max_absolutism = 25
	}
	custom_attributes = {
		enables_davidic_line = yes
	}
	ai = {
		factor = 100
	}
}