﻿##############################################
#
# CULTURE
#
##############################################
	

##############################################
#
# BRITAIN VANILLA CULTURES - FIXES
#
##############################################
ce_britain_867_setup_effect = {	

	# Scopes
	culture:old_brythonic = { save_scope_as = old_brythonic }
	
	#Innovations
	culture:welsh = {
		get_all_innovations_from = scope:old_brythonic
	}
	culture:cumbrian = {
		get_all_innovations_from = scope:old_brythonic
	}
	culture:dumnonian = {
		get_all_innovations_from = scope:old_brythonic
	}
	culture:cornish = {
		get_all_innovations_from = scope:old_brythonic
	}

	# County Culture Shifts
	title:c_moray = {
		set_county_culture = culture:pictish
	}		
	title:c_atholl = {
		set_county_culture = culture:pictish
	}
	title:c_strathearn = {
		set_county_culture = culture:pictish
	}	
	title:c_westmorland = {
		set_county_culture = culture:cumbrian
	}
	title:c_linlithgowshire = {
		set_county_culture = culture:cumbrian
	}
	title:c_hereford = {
		set_county_culture = culture:welsh
	}
	title:c_shropshire = {
		set_county_culture = culture:welsh
	}
	title:c_huntingdonshire = {
		set_county_culture = culture:wylish
	}
	title:c_cambridgeshire = {
		set_county_culture = culture:wylish
	}
	title:c_bedford = {
		set_county_culture = culture:wylish
	}
	
	# Modifiers
	title:c_huntingdonshire = {
		change_development_level = -3
		add_county_modifier = {
			modifier = ce_wylish_marauders
			days = 50
		}
	}
	title:c_cambridgeshire = {
		change_development_level = -2
		add_county_modifier = {
			modifier = ce_wylish_marauders
			years = 50
		}
	}
	title:c_bedford = {
		change_development_level = -2
		add_county_modifier = {
			modifier = ce_wylish_marauders
			years = 50
		}
	}
	
	# Culture Name Changes
	culture:welsh = {
		set_culture_name = {
            noun = "cambrian"
            collective_noun = "cambrian_collective_noun"
            prefix = "cambrian_prefix"
		}
	}
	
	#Title name changes
	title:d_galloway = {
		set_title_name = d_galloway_alt_clut
	}

	# #Namelists Changes
	# culture:breton = {
	# 	set_name_list = name_list_breton1
	# }
	
	#Language Fixes
	culture:pictish = {
		set_culture_pillar = language_pictish
	}
	culture:welsh = {
		set_culture_pillar = language_kymraeg
	}
	culture:cumbrian = {
		set_culture_pillar = language_kymraeg
	}
	culture:wylish = {
		set_culture_pillar = language_kymraeg
	}
	culture:cornish = {
		set_culture_pillar = language_brythonek
	}
	culture:breton = {
		set_culture_pillar = language_brythonek
	}

	#Tradition Changes
	culture:irish = {
		add_culture_tradition = tradition_wetlanders
	}
	culture:irish = {
		remove_culture_tradition = tradition_maritime_mercantilism
	}
	
}

ce_britain_1066_setup_effect = {	

	# Scopes
	culture:old_brythonic = { save_scope_as = old_brythonic }
	
	#Innovations
	culture:welsh = {
		get_all_innovations_from = scope:old_brythonic
	}
	culture:cumbrian = {
		get_all_innovations_from = scope:old_brythonic
	}
	culture:dumnonian = {
		get_all_innovations_from = scope:old_brythonic
	}
	culture:cornish = {
		get_all_innovations_from = scope:old_brythonic
	}

	# County Culture Shifts
	title:c_hereford = {
		set_county_culture = culture:welsh
	}
	title:c_huntingdonshire = {
		set_county_culture = culture:wylish
	}
	title:c_devon = {
		set_county_culture = culture:anglo_saxon
	}
	
	#Variables
	set_global_variable = {
		name = fall_of_dumbarton_rock
		value = yes
	}
	
	#Coat of Arms Update
	title:d_galloway = {
		update_dynamic_coa = yes 
	}
	
	# Culture Name Changes
	culture:welsh = {
		set_culture_name = {
            noun = "cambrian"
            collective_noun = "cambrian_collective_noun"
            prefix = "cambrian_prefix"
		}
	}

	#Tradition Changes
	culture:irish = {
		add_culture_tradition = tradition_wetlanders
	}
	culture:irish = {
		remove_culture_tradition = tradition_maritime_mercantilism
	}

	#Namelists Changes
	# culture:breton = {
	# 	set_name_list = name_list_breton1
	# }

	#Language Fixes
	culture:pictish = {
		set_culture_pillar = language_pictish
	}
	culture:welsh = {
		set_culture_pillar = language_kymraeg
	}
	culture:cumbrian = {
		set_culture_pillar = language_kymraeg
	}
	culture:wylish = {
		set_culture_pillar = language_kymraeg
	}
	culture:cornish = {
		set_culture_pillar = language_brythonek
	}
	culture:breton = {
		set_culture_pillar = language_brythonek
	}
}
