decisions = {

	form_silesia = {
		is_high_prio = yes
		
		potential = {
			is_playable = yes
			OR = {
				has_landed_title = d_zagan
				has_landed_title = d_glogow
				has_landed_title = d_olesnica
				has_landed_title = d_ziebice
				has_landed_title = d_brzeg
				has_landed_title = d_lubin
				has_landed_title = d_olawa
				has_landed_title = d_opole
				has_landed_title = d_cieszyn
				has_landed_title = d_oswiecim
				has_landed_title = d_legnica
				has_landed_title = d_jawor
				has_landed_title = d_swidnica
				has_landed_title = d_wroclaw
				has_landed_title = d_raciborz
				has_landed_title = d_opava
				has_landed_title = d_bytom
				has_landed_title = d_nysa
				has_landed_title = d_siewierz
			}
			#OR = {
			#	culture = bohemian
			#	culture = polish
			#	culture = laussitz-silesian
			#}
			d_silesia = {
				has_holder = no
			}
		}
		allow = {
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			prestige = 1000
			completely_controls = c_sagan
			completely_controls = c_glogau
			completely_controls = c_oels
			completely_controls = c_steinau
			completely_controls = c_brieg
			completely_controls = c_namslau
			completely_controls = c_breslau
			completely_controls = c_liegnitz
			completely_controls = c_teschen
			completely_controls = c_auschwitz
			completely_controls = c_jauer
			completely_controls = c_frankenstein
			completely_controls = c_schweidnitz
			completely_controls = c_munsterberg
			completely_controls = c_oppeln
			completely_controls = c_beutheln
			completely_controls = c_opawa
			completely_controls = c_rastibor
			completely_controls = c_sewerien
			wealth = 200
		}
		effect = {
			activate_title = { title = d_silesia status = yes }
			wealth = -200
			if = {
				limit = { has_nickname = no }
				give_nickname = nick_the_great
			}
			primary_title = {
				d_silesia = {
					grant_title = ROOT
					copy_title_laws = PREV
				}
			}
			custom_tooltip = {
				text = form_silesia_tooltip
				hidden_tooltip = {
					if = {
						limit = { limit = { has_landed_title = d_zagan } }
						d_zagan = {
							destroy_landed_title = THIS
							activate_title = { title = d_zagan status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_glogow }
						d_glogow = {
							destroy_landed_title = THIS
							activate_title = { title = d_glogow status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_olesnica }
						d_olesnica = {
							destroy_landed_title = THIS
							activate_title = { title = d_olesnica status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_ziebice }
						d_ziebice = {
							destroy_landed_title = THIS
							activate_title = { title = d_ziebice status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_brzeg }
						d_brzeg = {
							destroy_landed_title = THIS
							activate_title = { title = d_brzeg status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_lubin }
						d_lubin = {
							destroy_landed_title = THIS
							activate_title = { title = d_lubin status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_olawa }
						d_olawa = {
							destroy_landed_title = THIS
							activate_title = { title = d_olawa status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_opole }
						d_opole = {
							destroy_landed_title = THIS
							activate_title = { title = d_opole status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_cieszyn }
						d_cieszyn = {
							destroy_landed_title = THIS
							activate_title = { title = d_cieszyn status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_oswiecim }
						d_oswiecim = {
							destroy_landed_title = THIS
							activate_title = { title = d_oswiecim status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_legnica }
						d_legnica = {
							destroy_landed_title = THIS
							activate_title = { title = d_legnica status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_jawor }
						d_jawor = {
							destroy_landed_title = THIS
							activate_title = { title = d_jawor status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_swidnica }
						d_swidnica = {
							destroy_landed_title = THIS
							activate_title = { title = d_swidnica status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_wroclaw }
						d_wroclaw = {
							destroy_landed_title = THIS
							activate_title = { title = d_wroclaw status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_raciborz }
						d_raciborz = {
							destroy_landed_title = THIS
							activate_title = { title = d_raciborz status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_opava }
						d_opava = {
							destroy_landed_title = THIS
							activate_title = { title = d_opava status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_bytom }
						d_bytom = {
							destroy_landed_title = THIS
							activate_title = { title = d_bytom status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_nysa }
						d_nysa = {
							destroy_landed_title = THIS
							activate_title = { title = d_nysa status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_siewierz }
						d_nysa = {
							destroy_landed_title = THIS
							activate_title = { title = d_siewierz status = no }
						}
					}
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}
	form_bavaria_duchy = {
		is_high_prio = yes
		
		potential = {
			is_playable = yes
			OR = {
				has_landed_title = d_bayern-straubing
				has_landed_title = d_bayern-munchen
				has_landed_title = d_bayern-ingolstadt
				has_landed_title = d_bayern-landshut
				has_landed_title = d_pfalz
			}
			#OR = {
			#	culture = middle-bavarian
			#}
			d_bavaria = {
				has_holder = no
			}
		}
		allow = {
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			prestige = 1000
			completely_controls = c_straubing
			completely_controls = c_burghausen
			completely_controls = c_wasserburg
			completely_controls = c_munchen
			completely_controls = c_landshut
			completely_controls = c_mainburg
			completely_controls = c_ingolstadt
			wealth = 200
		}
		effect = {
			activate_title = { title = d_bavaria status = yes }
			wealth = -200
			if = {
				limit = { has_nickname = no }
				give_nickname = nick_the_bavarian
			}
			primary_title = {
				d_bavaria = {
					grant_title = ROOT
					copy_title_laws = PREV
				}
			}
			custom_tooltip = {
				text = form_bavaria_tooltip
				hidden_tooltip = {
					if = {
						limit = { has_landed_title = d_bayern-straubing }
						d_bayern-straubing = {
							destroy_landed_title = THIS
							activate_title = { title = d_bayern-straubing status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_bayern-munchen }
						d_bayern-munchen = {
							destroy_landed_title = THIS
							activate_title = { title = d_bayern-munchen status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_bayern-ingolstadt }
						d_bayern-ingolstadt = {
							destroy_landed_title = THIS
							activate_title = { title = d_bayern-ingolstadt status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_bayern-landshut }
						d_bayern-landshut = {
							destroy_landed_title = THIS
							activate_title = { title = d_bayern-landshut status = no }
						}
					}
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}
	form_brunswick_duchy = {
		is_high_prio = yes
		
		potential = {
			is_playable = yes
			OR = {
				has_landed_title = d_calenberg
				has_landed_title = d_luneburg
				has_landed_title = d_brunswick_wolfenbuttel
				has_landed_title = d_gottingen
			}
			#OR = {
			#	culture = lower_saxon
			#}
			d_bavaria = {
				has_holder = no
			}
		}
		allow = {
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			prestige = 1000
			has_landed_title = d_calenberg
			has_landed_title = d_luneburg
			has_landed_title = d_brunswick_wolfenbuttel
			has_landed_title = d_gottingen
			wealth = 200
		}
		effect = {
			activate_title = { title = d_brunswick status = yes }
			wealth = -200
			if = {
				limit = { has_nickname = no }
				give_nickname = nick_the_lion
			}
			primary_title = {
				d_brunswick = {
					grant_title = ROOT
					copy_title_laws = PREV
				}
			}
			custom_tooltip = {
				text = form_brunswick_tooltip
				hidden_tooltip = {
					if = {
						limit = { has_landed_title = d_calenberg }
						d_calenberg = {
							destroy_landed_title = THIS
							activate_title = { title = d_calenberg status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_luneburg }
						d_luneburg = {
							destroy_landed_title = THIS
							activate_title = { title = d_luneburg status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_brunswick_wolfenbuttel }
						d_brunswick_wolfenbuttel = {
							destroy_landed_title = THIS
							activate_title = { title = d_brunswick_wolfenbuttel status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_gottingen }
						d_gottingen = {
							destroy_landed_title = THIS
							activate_title = { title = d_gottingen status = no }
						}
					}
				}
			}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}
	form_pommerania_duchy = {
		is_high_prio = yes
		
		potential = {
			is_playable = yes
			OR = {
				has_landed_title = d_pommern_wolgast
				has_landed_title = d_pommern_stettin
				has_landed_title = d_pommern_stolp
			}
			#OR = {
			#	culture = pomeranian
			#}
			d_pomerania = {
				has_holder = no
			}
		}
		allow = {
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			prestige = 1000
			has_landed_title = d_pommern_wolgast
			has_landed_title = d_pommern_stettin
			has_landed_title = d_pommern_stolp
			wealth = 200
		}
		effect = {
			activate_title = { title = d_pomerania status = yes }
			wealth = -200
			if = {
				limit = { has_nickname = no }
				give_nickname = nick_the_griffin
			}
			primary_title = {
				d_pomerania = {
					grant_title = ROOT
					copy_title_laws = PREV
				}
			}
			custom_tooltip = {
				text = form_pomerania_tooltip
				hidden_tooltip = {
					if = {
						limit = { has_landed_title = d_pommern_wolgast }
						d_pommern_wolgast = {
							destroy_landed_title = THIS
							activate_title = { title = d_pommern_wolgast status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_pommern_stettin }
						d_pommern_stettin = {
							destroy_landed_title = THIS
							activate_title = { title = d_pommern_stettin status = no }
						}
					}
					if = {
						limit = { has_landed_title = d_pommern_stolp }
						d_pommern_stolp = {
							destroy_landed_title = THIS
							activate_title = { title = d_pommern_stolp status = no }
						}
					}
				}
			}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}
}