embrace_everpreg_atalantian_culture_effect = {
	# Scopes saves for localization
	root = {
		save_scope_as = embracer
	}

	# Prestige Bonus
	add_prestige = medium_prestige_gain

	#Convert your, and your whole family's, culture; change to atalantian culture when it exists
	set_culture = culture:everpreg_atalantian
	if = {
		limit = { any_spouse = { is_landed = no } }
		every_spouse = {
			set_culture = culture:everpreg_atalantean
		}
	}
	if = {
		limit = {
			any_close_family_member = {
				is_landed = no
				NOT = { is_spouse_of = root }
			}
		}
		every_close_family_member = {
			custom = all_family_members
			limit = {
				NOT = { is_spouse_of = root }
			}
			set_culture = culture:everpreg_atalantean
		}
	}

	#Convert appropriate vassals, and their family
	#if = {
	#	limit = {
	#		any_vassal = {
	#			is_ai = yes
	#			culture = root.culture
	#			primary_title = {
	#				OR = {
	#					de_jure_liege = title:k_italy
	#					de_jure_liege.de_jure_liege = title:k_italy
	#					de_jure_liege.de_jure_liege.de_jure_liege = title:k_italy
	#				}
	#			}
	#		}
	#	}
	#	every_vassal = {
	#		custom = embrace_roman_culture_vassals_custom
	#		limit = {
	#			is_ai = yes
	#			culture = root.culture
	#			primary_title = {
	#				OR = {
	#					de_jure_liege = title:k_italy
	#					de_jure_liege.de_jure_liege = title:k_italy
	#					de_jure_liege.de_jure_liege.de_jure_liege = title:k_italy
	#				}
	#			}
	#		}
	#		set_culture = culture:roman
	#		hidden_effect = {
	#			if = {
	#				limit = { any_spouse = { is_landed = no } }
	#				every_spouse = {
	#					set_culture = culture:roman
	#				}
	#			}
	#			if = {
	#				limit = {
	#					any_close_family_member = {
	#						is_landed = no
	#						NOT = { is_spouse_of = prev }
	#					}
	#				}
	#				every_close_family_member = {
	#					limit = {
	#						is_landed = no
	#						NOT = { is_spouse_of = prev }
	#					}
	#					set_culture = culture:roman
	#				}
	#			}
	#		}
	#	}
	#}

	####figure out this bit###
	#Flip Counties
	#every_county_in_region = {
	#	region = custom_italy
	#	custom = embrace_roman_culture_counties_custom
	#	limit = {
	#		target_is_de_facto_liege_or_above = root.primary_title
	#	}
	#	random = {
	#		chance = 40
	#		set_county_culture = culture:roman
	#	}
	#}
	
	capital_county = { set_county_culture = culture:everpreg_atalantean }
	
	###change this to be the previous culture as well as greek culture
	culture:everpreg_atalantean = {
		custom_tooltip = decision_embrace_everpregatalantian_culture_get_innovations
		hidden_effect = {
			get_all_innovations_from = culture:greek
		}
	}
}