country_decisions = {

	restore_byzantine_empire = {
		major = yes
		potential = {
			OR = {
				was_never_end_game_tag_trigger = yes
				AND = {
					was_tag = BYZ
					tag = MOE
					has_country_flag = BYZ_accepted_ottoman_threat
				}
			}
			normal_or_historical_nations = yes
			NOT = { has_country_flag = formed_byzantium_flag }
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			OR = {
				is_free_or_tributary_trigger = yes
				ai = no
			}
			NOT = { exists = BYZ }
			NOT = { exists = GRE }
			NOT = { tag = HLR }
			NOT = { tag = ROM }
			NOT = { tag = TUR }
			OR = {
				culture_group = byzantine
				AND = {
					has_idea = MFA_byzantine_claimants
					dynasty = "000000"
				}
			}
			OR = {
				religion = orthodox
				has_idea = MFA_byzantine_claimants
			}
		}
		provinces_to_highlight = {
			OR = {
				province_id = 151 # Constantinople
				province_id = 149	# Edirne
				province_id = 144  # Epiros
				province_id = 147	# Salonica
				province_id = 148	# Macedonia
				province_id = 146	# Athens
				province_id = 145	# Morea
				province_id = 1773	# Achea
				province_id = 316	# Bithynia
				province_id = 317	# Bursa
				province_id = 318	# Smyrna
				province_id = 1853	# Kozani
				province_id = 2296	# Biga
			}
			NOT = { owned_by = ROOT }
		}
		allow = {
			owns = 149	# Edirne
			owns = 144  # Epiros
			owns = 147	# Salonica
			owns = 148	# Macedonia
			owns = 146	# Athens
			owns = 145	# Morea
			owns = 1773	# Achea
			owns = 316	# Bithynia
			owns = 317	# Bursa
			owns = 318	# Smyrna
			owns = 1853	# Kozani
			owns = 2296	# Biga
			owns = 151  # Constantinople
			151 = {		# Constantinople
				is_state = yes
			}
			is_at_war = no
			is_free_or_tributary_trigger = yes
			is_nomad = no
		}
		effect = {
			151 = {
				move_capital_effect = yes
			}
			change_tag = BYZ
			if = {
				limit = {
					NOT = { culture_group = byzantine }
					NOT = { accepted_culture = greek }
				}
				add_accepted_culture = greek
			}
			swap_non_generic_missions = yes
			on_change_tag_effect = yes
			give_area_claims = { group = anatolia_region tag = BYZ }
			give_area_claims = { group = bulgaria_area tag = BYZ }
			give_area_claims = { group = silistria_area tag = BYZ }
			give_area_claims = { group = albania_area tag = BYZ }
			give_area_claims = { group = thrace_area tag = BYZ }
			give_area_claims = { group = macedonia_area tag = BYZ }
			give_area_claims = { group = northern_greece_area tag = BYZ }
			give_area_claims = { group = morea_area tag = BYZ }
			give_province_claims = { id = 2410 tag = BYZ }
			give_province_claims = { id = 285 tag = BYZ }
			random_owned_province = {
				limit = { culture = greek }
				add_base_tax = 1
			}
			random_owned_province = {
				limit = { culture = greek }
				add_base_tax = 1
			}
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 7300
			}
			add_prestige = 10
			BYZ = {
				add_core = 151 # Constantinople
			}
			if = {
				limit = {
					is_part_of_hre = yes
				}
				every_owned_province = {
					limit = {
						is_part_of_hre = yes
					}
					set_in_empire = no
				}
			}
			if = {
				limit = { has_global_flag = hagia_sophia_now_mosque }
				clr_global_flag = hagia_sophia_now_mosque
				show_ambient_object = hagia_sophia
				hide_ambient_object = hagia_sophia_minarets
			}
			if = {
				limit = { NOT = { government = monarchy } }
				change_government = monarchy
			}
			if = {
				limit = { has_not_locked_first_tier_reform = yes }
				add_government_reform = byzantine_autocracy_reform
			}
			set_government_rank = 3
			if = {
				limit = { has_custom_ideas = no }
				country_event = { id = ideagroups.1 } #Swap Ideas
			}
			set_country_flag = formed_byzantium_flag
			if = {
				limit = { has_country_flag = feo_byzantium_formation_stats_flag }
				change_ruler_stat = {
					type = adm
					amount = 1
				}
				change_ruler_stat = {
					type = dip
					amount = 1
				}
				change_ruler_stat = {
					type = mil
					amount = 1
				}
			}
			if = {
				limit = {
					has_country_flag = BYZ_accepted_ottoman_threat
				}
				clr_country_flag = BYZ_accepted_ottoman_threat 
			}
			if = {
				limit = {
					has_country_flag = tre_byzantium_forming_bonus_mana
				}
				add_adm_power = 100
				add_dip_power = 100
				add_mil_power = 100
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	
}
