hab_reform_austria = {
	slot = 1 #upper left column
	generic = no #if a mission without generic = yes wants this slot then it overrides this.
	ai = no
	potential = {
		OR = {
			tag = TIR
			tag = STY
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	unite_austria = {
		icon = mission_have_two_subjects
		required_missions = {  } #None
		trigger = {
			OR = {
				num_of_cities = HAB
				NOT = { exists = HAB }
			}
		}
		effect = {
			inner_austria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			austria_proper_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = {
					government = monarchy
					NOT = { dynasty = "0000000000" }
				}
				define_heir = {
					dynasty = "0000000000"
					change_dip = 5
					claim = 100
				}
			}
		}
	}
	head_of_the_habsburgs = {
		icon = mission_unite_home_region
		required_missions = { unite_austria }
		provinces_to_highlight = {
			OR = {
				area = inner_austria_area
				area = austria_proper_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			austria_proper_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			inner_austria_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "austria_reunited"
				duration = 5475 #15 years
			}
		}
	}
}
