country_decisions = {

	africa_kingdom_christian_nation = {
		major = yes
		potential = {
			was_never_end_game_tag_trigger = yes
			NOT = { has_country_flag = formed_africa_kingdom_christian_flag }
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			OR = {
				ai = no
				NOT = { exists = AF0 }
			}
			NOT = { tag = PAP }
			NOT = { tag = ITA }
			NOT = { tag = SPA }
			NOT = { tag = HLR }
			NOT = { tag = ROM }
			NOT = { tag = ROW }
			NOT = { tag = BYZ }
			OR = {
				technology_group = western
				tag = SIC		#Norman Sicily
				primary_culture = normand
				primary_culture = sicilian
				AND = {
					religion_group = christian
					government = monarchy
				}
			}
			OR = {
				tag = SIC
				any_owned_province = {
					region = maghreb_region
				}
			}
			OR = {
				tag = SIC
				NOT = { religion_group = muslim }
			}
			is_colonial_nation = no
			OR = {
				is_former_colonial_nation = no
				AND = {
					is_former_colonial_nation = yes
					ai = no
				}
			}
		}
		provinces_to_highlight = {
			OR = {
				AND = {
					province_id = 341 		#Tunis
					OR = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
				}
				AND = {
					OR = {
						area = tunisia_area
						province_id = 353
						province_id = 2453
						province_id = 2954
						province_id = 354
						province_id = 2452
					}
					NOT = {
						country_or_vassal_holds = ROOT
					}
				}
			}
			has_discovered = ROOT
		}
		allow = {
			government = monarchy
			is_at_war = no
			NOT = { exists = AF0 }
			owns_core_province = 341 		# Tunis
			tunisia_area = {
				country_or_vassal_holds = ROOT
			}
			owns_or_subject_of = 353
			owns_or_subject_of = 2453
			owns_or_subject_of = 2954
			owns_or_subject_of = 354
			owns_or_subject_of = 2452
		}
		effect = {
			change_tag = AF0
			if = {
				limit = {
					NOT = { government_rank = 2 }
				}
				set_government_rank = 2
			}
			tripolitania_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			kabylia_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			add_prestige = 10
			set_country_flag = formed_africa_kingdom_christian_flag
			
			#Removed until add own mod ideas
			#if = {
			#	limit = { has_custom_ideas = no }
			#	country_event = { id = ideagroups.1 } #Swap Ideas
			#}
		}
		ai_will_do = {
			factor = 0
		}
		ai_importance = 100
	}
	
	
}
