country_decisions = {

	form_kingdom_of_prussia = {
		major = yes
		potential = {
			tag = BRA
			normal_or_historical_nations = yes
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			NOT = { exists = PRU }
			OR = {
				ai = no
				is_religion_enabled = protestant
				is_religion_enabled = reformed
			}
		}
		allow = {
			adm_tech = 55
			OR = {
				religion = protestant
				religion = reformed
			}
			owns = 41			# Ostpreussen
			OR = {
				owns = 43		# Danzig
				owns = 48		# Stolp
			}
			is_at_war = no
		}
		effect = {
			change_tag = PRU
			if = {
				limit = {
					is_part_of_hre = yes
					is_elector = no
				}
				every_owned_province = {
					limit = {
						is_part_of_hre = yes
					}
					set_in_empire = no
				}
			}
			if = {
				limit = { government = margraviate }
				change_government = feudal_monarchy
			}
			if = {
				limit = { government_rank = 1 }
				set_government_rank = 2
			}
			random_owned_province = {
				limit = {
					OR = {
						culture = pommeranian
						culture = saxon
						culture = prussian
					}
				}
				add_base_tax = 1
			}
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 3650
			}
			add_prestige = 5
			change_primary_culture = prussian
			PRU = {
				random_owned_province = {
					limit = { 
						is_capital = no 
						OR = {
							culture = saxon
							culture = pommeranian
						}
					} 
					change_culture = prussian
				}
			}
			prussian_region = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_claim = PRU
			}
			capital_scope = {
				change_culture = prussian
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	prussian_nation = {
		major = yes
		potential = {
			normal_or_historical_nations = yes
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			tag = TEU
			NOT = { exists = PRU }
			OR = {
				ai = no
				is_religion_enabled = protestant
				is_religion_enabled = reformed
			}
			is_colonial_nation = no
			OR = {
				is_former_colonial_nation = no
				AND = {
					is_former_colonial_nation = yes
					ai = no
				}
			}
		}
		allow = {
			adm_tech = 55
			is_subject = no
			is_at_war = no
			OR = {
				religion = reformed
				religion = protestant
			}
			owns_core_province = 41			# Ostpreussen
		}
		effect = {
			change_tag = PRU
			prussian_region = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_claim = PRU
			}
			add_prestige = 25
			if = {
				limit = {
					OR = {
						government = margraviate
						government = theocratic_government
						government = monastic_order_government
					}
				}
				change_government = feudal_monarchy
			}
			if = {
				limit = {
					is_part_of_hre = yes
					is_elector = no
				}
				every_owned_province = {
					limit = {
						is_part_of_hre = yes
					}
					set_in_empire = no
				}
			}
			every_neighbor_country = {
				limit = { government = monarchy }
				add_opinion = { who = ROOT modifier = secularized_monastic_order }
			}
			set_capital = 41		# Ostpreussen
			swap_free_idea_group = yes		#keep progress
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 3650
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	prussian_nation_general = {
		major = yes
		potential = {
			normal_or_historical_nations = yes
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			OR = {
				ai = no
				is_religion_enabled = protestant
				is_religion_enabled = reformed
			}
			OR = {
				primary_culture = pommeranian
				primary_culture = saxon
				primary_culture = prussian
			}
			NOT = { exists = PRU }
			NOT = { tag = GER }
			NOT = { tag = HLR }
			NOT = { tag = BRA }
			NOT = { tag = EUR }
			NOT = {
				tag = TEU
				government = monastic_order_government
			}
		}
		allow = {
			adm_tech = 55
			is_subject = no
			is_at_war = no
			OR = {
				religion = reformed
				religion = protestant
			}
			owns_core_province = 41			# Ostpreussen
			owns_core_province = 42			# Warmia
			owns_core_province = 43			# Danzig
		}
		effect = {
			change_tag = PRU
			if = {
				limit = {
					is_part_of_hre = yes
					is_elector = no
				}
				every_owned_province = {
					limit = {
						is_part_of_hre = yes
					}
					set_in_empire = no
				}
			}
			if = {
				limit = { government = margraviate }
				change_government = feudal_monarchy
			}
			if = {
				limit = {
					government_rank = 1
					government = monarchy
				}
				set_government_rank = 2
			}
			prussian_region = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_claim = PRU
			}
			add_prestige = 25
			change_primary_culture = prussian
			capital_scope = {
				change_culture = prussian
			}
			random_owned_province = {
				limit = { 
					is_capital = no 
					OR = {
						culture = saxon
						culture = pommeranian
					}
				} 
				change_culture = prussian
			}
			swap_free_idea_group = yes		#keep progress
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 3650
			}
		}
		ai_will_do = {
			factor = 1
		}
	}

}
