recover_greece = {
	
	type = country

	allow = {
		tag = BYZ
		is_subject = no
		is_lesser_in_union = no
		owns = 151		# Thrace
		or = {
			not = { owns = 145 }	# Morea
			not = { owns = 146 }	# Athens
			not = { owns = 147 }	# Salonica
			not = { owns = 1773 }	# Achaea
		}
	}
	abort = {
		or = {
			is_subject = yes
			is_lesser_in_union = yes
		}
	}
	success = {
		owns = 144
		owns = 145
		owns = 146
		owns = 147
		owns = 1773
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			mil = 9
		}
	}
	immediate = {
		add_temp_claim = 144
		add_temp_claim = 145
		add_temp_claim = 146
		add_temp_claim = 147
		add_temp_claim = 1773
	}
	abort_effect = {
		remove_temp_claim = 144
		remove_temp_claim = 145
		remove_temp_claim = 146
		remove_temp_claim = 147
		remove_temp_claim = 1773
	}
	effect = {
		prestige = 0.1
		treasury = 100
	}
}

recover_the_coast_of_asia_minor = {
	
	type = country

	allow = {
		tag = BYZ
		is_subject = no
		is_lesser_in_union = no
		owns = 151		# Thrace
		or = {
			not = { owns = 316 }	# Bithynia
			not = { owns = 317 }	# Bursa
			not = { owns = 318 }	# Smyrna
		}
	}
	abort = {
		or = {
			is_subject = yes
			is_lesser_in_union = yes
		}	
	}
	success = {
		owns = 316
		owns = 317
		owns = 318
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			mil = 9
		}
	}
	immediate = {
		add_temp_claim = 316
		add_temp_claim = 317
		add_temp_claim = 318
	}
	abort_effect = {
		remove_temp_claim = 316
		remove_temp_claim = 317
		remove_temp_claim = 318
	}
	effect = {
		prestige = 0.1
		army_tradition = 0.5
		stability = 1
	}
}

recover_the_balkans = {
	
	type = country

	allow = {
		tag = BYZ
		is_subject = no
		is_lesser_in_union = no
		not = { eastern_balkans = { owned_by = this } }
	}
	abort = {
		or = {
			is_subject = yes
			is_lesser_in_union = yes
		}	
	}
	success = {
		eastern_balkans = { owned_by = this }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			mil = 9
		}
	}
	immediate = {
		eastern_balkans = {
			add_temp_claim = THIS
		}
	}
	abort_effect = {
		eastern_balkans = {
			remove_temp_claim = THIS
		}
	}
	effect = {
		prestige = 0.1
	}
}

convert_asia_minor = {
	
	type = country

	allow = {
		tag = BYZ
		religion = orthodox
		war = no
		asia_minor = {
			owned_by = this
			not = { religion = orthodox }
		}
		owns = 316	# Bithynia
	}
	abort = {
		not = { religion = orthodox }
	}
	success = {
		not = {
			asia_minor = {
				owned_by = this
				not = { religion = orthodox }
			}
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			adm = 6
		}
		modifier = {
			factor = 2
			advisor = theologian
		}
	}
	effect = {
		stability = 3
	}
}

recover_south_italy = {
	
	type = country

	allow = {
		tag = BYZ
		war = no
		owns = 144	# Janina
		owns = 145	# Morea
		owns = 146	# Athens
		owns = 147	# Salonica
		owns = 1773	# Achaea
		not = { owns = 121 }	# Napoli
		not = { owns = 122 }	# Apulia
		not = { owns = 123 }	# Calabria
		is_subject = no
		is_lesser_in_union = no
	}
	abort = {
		or = {
			is_subject = yes
			is_lesser_in_union = yes
		}	
	}
	success = {
		owns = 121
		owns = 122
		owns = 123
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			mil = 9
		}
	}
	immediate = {
		add_temp_claim = 121
		add_temp_claim = 122
		add_temp_claim = 123
	}
	abort_effect = {
		remove_temp_claim = 121
		remove_temp_claim = 122
		remove_temp_claim = 123
	}
	effect = {
		add_core = 121
		add_core = 122
		add_core = 123
	}
}
