namespace = BtPLegacyHellasAnatolia
#Written by Draiocht 16-12-8

# Constantinople recovers under Byzantines 
province_event = {
	id = BtPLegacyHellasAnatolia.1
	title = "BtPLegacyHellasAnatolia.EVTNAME1"
	desc = "BtPLegacyHellasAnatolia.EVTDESC1"
	picture = CITY_VIEW_eventPicture
	
	major = yes
	fire_only_once = yes
	
	trigger = {
		province_id = 151
		religion = ROOT #orthodox 
		culture = greek
		owner = {
			tag = BYZ
			religion = ROOT #orthodox
			
			owns = 149			#Edirne
			owns = 316			#Kocaeli
			owns = 3170			#Kirkkilise
			stability = 1
		}
	}

	mean_time_to_happen = {
		months = 120 #10 year
		
		modifier = {
			factor = 0.1
			owner = { stability = 2 }
		}	#1 year for stability 2
		modifier = {
			factor = 0.1
			owner = { stability = 3 }
		}	#Few months for stability 3
	}

	option = { # Huzzah
		name = "BtPLegacyHellasAnatolia.EVTOPTA1"
		owner = { add_legitimacy = 10 } # Brian fixed
		owner = { add_prestige = 10 } # Brian fixed
		if = {
			limit = {
				NOT = { has_global_flag = constantinople_restored }
			}
			151 = {
				add_base_tax = 2
				add_base_production = 2
				#add_base_manpower = 1
				add_base_manpower = 5
			}
			set_global_flag = constantinople_restored
		}
		else = {
			151 = {
				add_base_manpower = 4
			}
		}
		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
		}
	}
}
