country_decisions = {

	german_nation = {
		major = yes
		potential = {
			normal_or_historical_nations = yes
			NOT = { has_country_flag = formed_germany_flag }
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			NOT = { exists = GER }
			NOT = { tag = PAP }
			NOT = { tag = HLR }
			NOT = { tag = FRK }
			NOT = { tag = ENG }
			NOT = { tag = EUR }
			OR = {
				ai = no
				AND = {
					ai = yes
					num_of_cities = 15
					adm_tech = 20
				}
			}
			OR = {
				ai = no
				AND = {
					ai = yes
					NOT = { government = theocracy }
				}
			}
			culture_group = germanic
			NOT = { primary_culture = dutch }
			NOT = { primary_culture = flemish }
			NOT = { primary_culture = anglo_saxon }
			NOT = { primary_culture = austrian }
			is_colonial_nation = no
			OR = {
				is_former_colonial_nation = no
				AND = {
					is_former_colonial_nation = yes
					ai = no
				}
			}
		}
		allow = {
			adm_tech = 20
			is_free_or_tributary_trigger = yes
			is_nomad = no
			is_at_war = no
			is_emperor = no
			owns_core_province = 44	# Hamburg
			owns_core_province = 46	# Rostock
			owns_core_province = 50	# Berlin
			owns_core_province = 57	# Brunswick
			owns_core_province = 61	# Dresden
			owns_core_province = 63	# Thüringen
			owns_core_province = 65	# München
			owns_core_province = 67	# Nürnberg
			owns_core_province = 81	# Hessen
			owns_core_province = 85	# Köln
			owns_core_province = 1761 # Worms
			owns_core_province = 1868 # Augsburg
			owns_core_province = 1876 # Frankfurt
			OR = {
				owns_core_province = 41	# Königsberg
				owns_core_province = 75	# Strassburg
			}
		}
		effect = {
			change_tag = GER
			emperor = {
				add_opinion = {
					who = root
					modifier = opinion_left_empire
				}
			}
			if = {
				limit = { NOT = { has_country_modifier = european_union } }
				set_in_empire = no
			}
			emperor = {
				country_event = { id = hre_event.5 }
			}
			set_government_rank = 3
			north_german_region = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = GER
			}
			south_german_region = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = GER
			}	
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 7300
			}
			add_prestige = 25
			set_country_flag = formed_germany_flag
		}
		ai_will_do = {
			factor = 1
		}
	}

}
