﻿##MODIFIED VANILLA FILE##

#Special succession types
#If adding new types to the decision, use a trigger, otherwise they may break if the culture is split.

special_succession_witengamot_trigger = {
	culture = { has_cultural_parameter = witenagemot_succession_enabled }
}

special_succession_thing_trigger = {
	culture = { has_cultural_parameter = scandinavian_elective_enabled }
}

special_succession_tanistry_trigger = {
	culture = {
		OR = {
			has_cultural_pillar = heritage_brythonic
			has_cultural_pillar = heritage_goidelic
		}
	}
}

special_succession_jirga_trigger = {
	culture = { has_cultural_parameter = tribal_elective_enabled }
}
historical_succession_access_single_heir_succession_law_trigger = {
	OR = {
		#government_has_flag = government_should_be_primo
		has_government = holy_order_county_government
		AND = {
			has_title = title:e_france
			is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:flag_reformed_carolingian_empire
			}
		}
		AND = {
			game_start_date = 1337.5.24
			has_government = feudal_government
			NOT = {
				has_title = title:k_lithuania
			}
			culture = {
				has_innovation = innovation_primogeniture
			}
		}	
		#Titles that have more set dates for Primo
		AND = {
			game_start_date >= 1286.1.1 
			has_title = title:d_osterreich
		}
		AND = {
			game_start_date >= 987.1.1 #Start of Capetians
			has_title = title:k_france
		}
		AND = {
			game_start_date >= 1066.10.14 #William the Conquerer
			has_title = title:k_england
		}
		AND = {
			game_start_date >= 1101.1.1 #Union of the crowns of Hungary and Croatia 
			has_title = title:k_hungary
			has_title = title:k_croatia
		}
		##additional titles that have this law in history. Needs done or the game auto removes primogeniture. Someone usurping the title resets the primogeniture back to what that persons laws are (usually partition) so can't be gamed
		
		has_title = title:e_byzantium					 
		has_title = title:e_roman_empire
		has_title = title:e_latin_empire
		#has_title = title:e_persia
		has_title = title:k_austria
		has_title = title:k_navarra
		#has_title = title:k_france
		has_title = title:k_cilician
		has_title = title:k_georgia
		has_title = title:k_cyprus
		has_title = title:k_epirus
		has_title = title:k_nikaea
		#has_title = title:k_england
		has_title = title:d_navarra
		has_title = title:d_barcelona
		has_title = title:d_beja
		has_title = title:d_sevilla
		has_title = title:d_upper_burgundy
		has_title = title:d_carinthia
		has_title = title:d_bohemians
		has_title = title:c_beziers
		has_title = title:c_alava
		has_title = title:c_viscaya
		has_title = title:c_ipuskoa
		has_title = title:c_montargis
		has_title = title:c_narbonne
		has_title = title:c_geneva
		has_title = title:c_chablais
		has_title = title:c_neuchatel
		
	}
	NOT = { government_allows = administrative }
}

historical_succession_access_single_heir_succession_law_youngest_trigger = {
	NOT = { government_allows = administrative }
	OR = {
		#has_title = title:e_byzantium
		##add any subsequent exceptions here.
	}
}

historical_succession_access_single_heir_dynasty_house_trigger = {
	NOT = { government_allows = administrative }
	OR = {
		AND = {
			has_title = title:d_bohemia
			culture = { has_innovation = innovation_table_of_princes }
		}
		#AND = {
		#	culture = culture:russian
		#	game_start_date  >= 900.1.1
		#}
		#MFM
		AND = {
			can_have_city_succession_law_trigger = yes
			highest_held_title_tier > tier_barony
		}
		#/MFM
		has_title = title:d_verona
	}
}
