title_succession_laws = {
	everpreg_imperial_elective_succession_law = {
		can_have = {
			OR = {
				has_government = feudal_government
				has_government = everpreg_imperial_government
			}
		}
		can_pass = {
			can_change_title_law_trigger = yes
		}

		can_title_have = {
			this = title:e_everpreg_atalantea_empire
			can_title_have_law_general_trigger = yes
		}



		#can_title_have = {	
		#	tier >= tier_duchy
		#	OR = {
		#		tier = tier_empire
		#		AND = {
		#			holder = { highest_held_title_tier = tier_kingdom }
		#			tier = tier_kingdom
		#		}
		#	}
		#}
		should_start_with = { # If these conditions are true, this is a valid law to start with. Note that it always includes the can_keep check.
			has_government = everpreg_imperial_government
		}
		succession = {
			order_of_succession = election
			election_type = everpreg_imperial_elective
		}
		flag = elective_succession_law
		modifier = {
			direct_vassal_opinion = 15
			holy_order_hire_cost_mult = -0.1			
		}
		revoke_cost = {
			prestige = 3000
		}
		pass_cost = {
			prestige = change_title_succession_law_prestige_cost
		}
	}
}