﻿title_succession_laws = {
	imperial_elective_succession_law = {
		can_have = {
			has_government = imperial_government
		}
		can_pass = {
			can_change_title_law_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 = imperial_government
		}
		succession = {
			order_of_succession = election
			election_type = imperial_elective
		}
		flag = elective_succession_law
		modifier = {
			direct_vassal_opinion = 10
		}
		revoke_cost = {
			prestige = 3000
		}
		pass_cost = {
			prestige = change_title_succession_law_prestige_cost
		}
	}

	# military_appointment_succession_law = {
		# can_have = {
			# has_government = military_command
			# is_independent_ruler = no		
			# #highest_held_title_tier >= tier_duchy
		# }
		# can_pass = {
			# can_change_title_law_trigger = yes
		# }
		# can_title_have = {
			# this = holder.primary_title
			# # NAND = { #not baronies
				# # tier = tier_barony
				# # holder = { highest_held_title_tier > 1 }
			# # }
		# }
		# 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 = military_command
		# }
		
		# succession = {
			# order_of_succession = election
			# election_type = military_appointment
		# }
		# flag = military_appointment_succession_law
		# flag = titles_cannot_leave_realm_on_succession #protect inheritance
		# modifier = {
			# #liege_opinion = 10
		# }
		# revoke_cost = {
			# prestige = 99999
		# }
		# pass_cost = {
			# prestige = 0
		# }
	# }
}