#Venga el gran imperio
political_decisions = {
    Control_over_north_africa = {
        picture = constantinople1
        potential = {
		    tag = TUR
			has_country_flag = annexation_of_Egypt
			TUR = {
			    owns = 1747
				owns = 1761
				}
		    NOT = {
			    has_country_flag = viva_el_gran_imperio
			}
        }

		allow = {
		    TUR = {
				owns = 1748
				owns = 1759
				}
		}
		
		effect = { 
		    set_country_flag = viva_el_gran_imperio
			
			TUN_1726 = { add_core = TUR }#tunis
			TRI_1743 = { add_core = TUR }#tripoli
			EGY_1754 = { add_core = TUR }#egypt
			EGY_1753 = { add_core = TUR }
			EGY_1758 = { add_core = TUR }
			EGY_1762 = { add_core = TUR }
			EGY_1755 = { add_core = TUR }
			EGY_1771 = { add_core = TUR }
			prestige = 10
			badboy = -5
		}
    }
	
	
    Control_over_magreb = {
        picture = constantinople1
        potential = {
		    tag = TUR
			has_country_flag = viva_el_gran_imperio
		    NOT = {
			    has_country_flag = viva_el_gran_imperio2
			}
        }

		allow = {
        	1705 = { owned_by = THIS }
		}
		effect = { 
		    set_country_flag = viva_el_gran_imperio2
        	MOR = {all_core = { add_core = THIS }}
        	ALD = {all_core = { add_core = THIS }} 
			}
		}
#Viva el gran imperio otomano
    long_live_the_great_empire = {
        picture = constantinople1
	    potential = {
		    tag = TUR 
			has_country_flag = viva_el_gran_imperio
			NOT = { 
			    has_country_flag = por_el_imperio				
		    }
        }
		
        allow = {
			    NOT = { RUS = { has_country_modifier = protector_of_eastern_christendom } }
		AND = {
		    OR = { SER = { 
			in_sphere = TUR
			}
			owns = 794 }
		    OR = { MON = { 
			in_sphere = TUR 
			}
			owns = 2583 }
		    OR = {
            GRE = {
			in_sphere = TUR 
			}
			owns = 834 }
        is_greater_power = yes }
		}
		
		effect = { 
		    set_country_flag = por_el_imperio
        	GRE = { all_core = { add_core = TUR } }
		CRO = { all_core = { add_core = TUR } }
		HUN = { all_core = { add_core = TUR } }
		SER = { all_core = { add_core = TUR } }
		MON = { all_core = { add_core = TUR } }
		ROM = { all_core = { add_core = TUR } }
		TUR = { all_core = { add_core = OTO } }
		OTO = { all_core = { remove_core = TUR } }
			change_tag = OTO

		inherit = SER
		inherit = MON
		inherit = GRE
		inherit = WAL
		inherit = MOL
		prestige = 11
		badboy = -5
		}
	}
#El Mar negro es otomano
    to_the_black_sea = {
        picture = constantinople1
	    potential = { 
		    tag = OTO 
			has_country_flag = por_el_imperio
            NOT = { 
                has_country_flag = ganamos_el_mar_negro
			    has_country_flag = ganamos_el_caucaso
			}
	    }
		
		allow = {
		    is_greater_power = yes
			revolution_n_counterrevolution = 1
		} 
		
		effect = { 
		    RUS_676 = { add_core = OTO }
		    RUS_965 = { add_core = OTO }
		    RUS_964 = { add_core = OTO }
		    RUS_980 = { add_core = OTO }
		    RUS_1048 = { add_core = OTO }
		    RUS_979 = { add_core = OTO }
		    set_country_flag = ganamos_el_mar_negro
			prestige = 11
			badboy = -5
		}
	}
#El caucaso es otomano
    the_caucasus_was_always_ours = {
        picture = constantinople1
	    potential = {
	        tag = OTO 
		    has_country_flag = por_el_imperio
		    NOT = { 
                has_country_flag = ganamos_el_mar_negro
	            has_country_flag = ganamos_el_caucaso
	        }  
	    }
		
		allow = {
		    is_greater_power = yes
			revolution_n_counterrevolution = 1
	    }
		
		effect = { 
		    set_country_flag = ganamos_el_caucaso
		    RUS_1090 = { add_core = OTO }
			RUS_1102 = { add_core = OTO }
			RUS_1098  = { add_core = OTO }
			prestige = 11
			badboy = -5
		}
	}
	Rename_Constantinople = {
        picture = constantinople1
		potential = {
			OR = { tag = TUR
				tag = OTO }
			owns = 860
			NOT = {
				has_country_flag = istanbul_renamed
			}
		}
		
		allow = {
			mass_culture_n_the_avant_garde = 1
		}
		
		effect = {
			prestige = 5
			860 = {
				change_province_name = "Istanbul"
			}
			set_country_flag = istanbul_renamed
		}
	}
#AUSTRIA
	enact_dual_monarchy_2 = {
		potential = {
			tag = AUS
			war = no
			OR = {
				government = absolute_monarchy
				government = hms_government
				government = prussian_constitutionalism
			}
			any_owned_province = {
				is_core = HUN
			}
			NOT = {
				has_country_flag = dual_monarchy_done
			}
		}
	
		allow = {
			OR = { AND = { 
			has_global_flag = hungary_wants_independence
			is_greater_power = no }
			AND = { prestige = 200
					is_greater_power = yes	
					has_country_flag = hungarian_revolution_has_happened} }
			NOT = {
				OR = {
					exists = HUN
					exists = KUK
					average_militancy = 5
				}
			}
		}
	
		effect = {
		    	HUN = { all_core = { add_core = KUK } }
			GLO = { all_core = { add_core = KUK } }
			CRO = { all_core = { add_core = KUK } }
			KRA = { all_core = { add_core = KUK } }
			BOH = { all_core = { add_core = KUK } }
		    	SER = { all_core = { remove_core = AUS } }
		    	CRO = { all_core = { remove_core = AUS } }
		    	BOS = { all_core = { remove_core = AUS } }
		    	BOH = { all_core = { remove_core = AUS } }
			any_pop = {
				limit = {
					culture = hungarian
				}
				militancy = -2
			}
			any_pop = {
				limit = {
					NOT = {
						OR = {
							culture = hungarian
							culture = south_german
						}
					}
				}
				militancy = 2
			}
						
			add_accepted_culture = hungarian
			change_tag = KUK
			set_country_flag = dual_monarchy_done
		}
		ai_will_do = {
			factor = 1
		}
	}

	Accept_arabs = {
		potential = {
			tag = TUR
				NOT = { has_country_flag = alonosi }
				owns = 913
		}
		
		allow = {
			ideological_thought = 1
		}
		
		effect = {
			add_accepted_culture = mashriqi
			set_country_flag = alonosi
		}
	}
	Accept_arabs_2 = {
		potential = {
			tag = TUR
				NOT = { has_country_flag = alonosi2 }
				owns = 913
				owns = 1748
		}
		
		allow = {
			nationalism_n_imperialism = 1
		}
		
		effect = {
			add_accepted_culture = bedouin	
			set_country_flag = alonosi2
		}
	}
}
