political_decisions = {
    danube_federation = {
	    potential = { 
		    tag = KUK
			NOT = { 
			has_country_flag = imperio_del_danubio
		    }
		}
		
		allow = { 
			NOT = { 
				government = fascist_dictatorship
			}
		    	is_greater_power = yes
			phenomenology_n_hermeneutic = 1
		}
		
		effect = { 
		    set_country_flag = imperio_del_danubio
			all_core = {
			    add_core = DNB }
			all_core = {
				remove_core = KUK }
			change_tag = DNB
			prestige = 10
			badboy = -5
            		add_accepted_culture = slovak
            		add_accepted_culture = czech
            		add_accepted_culture = croat
            		add_accepted_culture = friulian_venetian
            		add_accepted_culture = dalmatian
		}
	}
#Austrian cores back
    Austrian_soil_back = {
	    potential = { 
			tag = AUS
			has_country_flag = hungary_wants_independence

		NOT = { has_country_flag = yay_austria }
			owns = 641
		}
		
		allow = { 
			year = 1852
			war = no
		}
	    
		effect = {
		    624 = { remove_core = HUN }
		    778 = { remove_core = HUN }
		    624 = { add_core = AUS }
		    2699 = { add_core = AUS }
			CRO = { all_core = { remove_core = HUN } }
		set_country_flag = yay_austria 
		}
	}
    Austrian_soil_back2 = {
	    potential = { 
			tag = AUS
			has_country_flag = hungary_wants_independence
		NOT = { has_country_flag = yay_austria2 }
		}
		
		allow = { 
			year = 1852
			war = no
			NOT = { owns = 641 }
		}
	    
		effect = {
		    624 = { remove_core = HUN }
		    624 = { add_core = AUS }
		    2699 = { add_core = AUS }
		set_country_flag = yay_austria2 
		}
	}
    Austrian_federation = {
	picture = austriabohemia
	    potential = { 
			tag = AUS
			has_country_flag = hungary_wants_independence
			exists = HUN
			NOT = { has_country_flag = yay_austria3  }
			NOT = { owns = 641 }
		}
		
		allow = { 
			year = 1850
			NOT = { year = 1855 }
			war = no
			NOT = { owns = 641 }
		}
	    
		effect = {
		    add_accepted_culture = czech
		    add_accepted_culture = slovene
		    add_accepted_culture = croat
		    add_accepted_culture = lombard
		    add_accepted_culture = friulian_venetian
		    add_accepted_culture = dalmatian
		    add_accepted_culture = north_german
		set_country_flag = yay_austria3 
		}
	}	
	Austria_forms_part_of_the_south_german_confederation = {
		potential = {
			is_greater_power = yes
			has_country_flag = yay_austria3
			NOT = { has_country_flag = yay_austria4 }
			tag = AUS
			nationalism_n_imperialism = yes
			NOT = { 
				exists = GER
			}
		}	
		allow = {
			war = no
		}
		
		effect = {
			prestige = 15
			set_country_flag = yay_austria4
			any_country = {
				limit = {
					OR = {
						primary_culture = south_german 
					}
					in_sphere = THIS
					NOT = {
						tag = THIS
					}
				}
				annex_to = THIS
			}			
		}
		ai_will_do = {
			factor = 1
		}
	}
    Saint_Stephen's_land = {
	picture = spl
	    potential = { 
			tag = AUS
			NOT = { has_country_flag = yay_austria3  }
			has_country_flag = hungary_wants_independence
			ai = no
		}
		
		allow = { 
			OR = { HUN = { in_sphere = AUS } 
			HUN = { vassal_of = AUS } } 
			year = 1849
		}
	    
		effect = {
		    inherit = HUN
			add_accepted_culture = hungarian
			change_tag = KUK
			GLO = { all_core = { add_core = KUK } }
			HUN = { all_core = { add_core = KUK } }
			CRO = { all_core = { add_core = KUK } }
			set_country_flag = spl
		}
	}
	accept_Pol_or_Ukie = {
		potential = {
				tag = DNB
				date = 1910
		}	
		allow = {
			war = no
			NOT = { OR = { government = presidential_dictatorship 
			government = bourgeois_dictatorship
			government = fascist_dictatorship 
			has_country_flag = accept_Pol_or_Ukie } }
		}
		
		effect = {
			prestige = 5
			country_event = 116010
			set_country_flag = accept_Pol_or_Ukie
		}
		ai_will_do = {
			factor = 1
		}
	}
	Accept_croat = {
	picture = Triunion
		potential = {
			tag = KUK
				NOT = { has_country_flag = accept_minority }
				owns = 771
			CRO = { exists = no }
		}
		
		allow = {
			revolution_n_counterrevolution = 1
			ruling_party_ideology = liberal 
			war = no 
		}
		
		effect = {
			add_accepted_culture = croat
			set_country_flag = accept_minority
		}
	}
	Austrian_claims_on_the_balkans = {
	picture = austriaserbia
	    potential = { 
			tag = AUS
			NOT = { has_country_flag = austrian_balkans
			has_country_flag = spl }
			owns = 794
		}
		
		allow = { 
			war = no
			owns = 794
		}
	    
		effect = {
		    MON = { all_core = { add_core = AUS } }
		    BOS = { all_core = { add_core = AUS } }
			SER_794 = { add_core = AUS } 
			AUS_777 = { add_core = AUS } 
			804 = { add_core = AUS }  
		set_country_flag = austrian_balkans 
		}
	}
	Reform_Austria_Hungary = {
		potential = {
			tag = AUS
			nationalism_n_imperialism = 1
			war = no
			OR = {
				government = absolute_monarchy
				government = hms_government
				government = prussian_constitutionalism
			}
			any_owned_province = {
				is_core = HUN
			}
			has_country_flag = dual_monarchy_done
			year = 1860
			NOT = { has_country_flag = dual_monarchy_done2 }
		}
	
		allow = {
			greater_power = yes
			owns = 641
			has_country_flag = hungarian_revolution_has_happened
		}
	
		effect = {
			all_core = {
				add_core = KUK
			}
			all_core = {
				limit = {
					NOT = {
						culture = south_german
					}
				}
				remove_core = AUS
			}
		    	HUN = { all_core = { add_core = KUK } }
			GLO = { all_core = { add_core = KUK } }
			CRO = { all_core = { add_core = KUK } }
			KRA = { 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 } }
		    	ROM = { all_core = { remove_core = AUS } }
		    	WAL = { 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
			inherit = HUN
			set_country_flag = dual_monarchy_done2
		}
		ai_will_do = {
			factor = 1
		}
	}
	Purcharse_of_Rio_de_oro = {
	picture = africanland
		potential = {
			tag = KUK
			NOT = { has_country_flag = treaty_of_río_de_oro }
		}

		allow = {
		year = 1875
	        money = 20000
		OR = { 
		SPA = { owns = 1774 }
		IBE = { owns = 1774 } }
		}

		effect = {
			set_country_flag = treaty_of_río_de_oro
			any_country = { limit = { owns = 1774 } country_event = 814020 }
		}

		ai_will_do = {
			factor = 1
		}
	}
    Austrian_intervention_in_italy = {
        potential = {
		tag = AUS
			is_greater_power = yes
			NOT = { has_country_flag = austrian_italy }
			NOT = { OR = { SVY = { has_country_flag = plombieres } SAR = { has_country_flag = plombieres } } }
			state_n_government = 1
			ITA = {
				all_core = {
					OR = {
						OR = {
							owned_by = THIS
							owner = {
								in_sphere = THIS
							}
						}
					}
				}
			}
			ITA = { exists = no }
        }

        allow = {
			ITA = {
				all_core = {
					OR = {
						OR = {
							owned_by = THIS
							owner = {
								in_sphere = THIS
							}
						}
					}
				}
			}
        }

        effect = {
            set_country_flag = austrian_italy
			prestige = 30
			badboy = 10
            create_vassal = SIC 
            create_vassal = SYC  
            create_vassal = PAP 
			SAR = { 722 = { secede_province = THIS } }
			766 = { secede_province = SRD }
			765 = { secede_province = SRD }
			SAR = { change_tag = SVY }
            create_vassal = SVY
			any_country = { leave_alliance = SIC }
			any_country = { leave_alliance = SYC }
			any_country = { leave_alliance = MOD }
			any_country = { leave_alliance = TUS }
			any_country = { leave_alliance = PAP }
			any_country = { leave_alliance = LUC }
            create_vassal = TUS
            create_vassal = MOD
            create_vassal = SVY
            create_vassal = LUC
			PAP = { 741 = { secede_province = THIS }
			742 = { secede_province = THIS }
			743 = { secede_province = THIS } }
            create_vassal = CEI 
			FRA = { casus_belli = { target = THIS type = release_puppet months = 60 } }
			RUS = { casus_belli = { target = THIS type = release_puppet months = 60 } }
			ENG = { casus_belli = { target = THIS type = release_puppet months = 60 } }
			SRD = { casus_belli = { target = THIS type = release_puppet months = 60 } }
			SPA = { casus_belli = { target = THIS type = release_puppet months = 60 } }
			PRU = { casus_belli = { target = THIS type = release_puppet months = 60 } }
		}
        ai_will_do = {
            factor = 1
        }
    }
}