decisions = {

	restore_hre_ideologies = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = e_communist_roman_union
				has_landed_title = e_european_union
			}
			NOT = { has_landed_title = e_hre }
			e_hre = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			e_hre = {
				grant_title = PREV
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_russian_empire_ideologies = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = e_ussr
			NOT = { has_landed_title = e_russia }
			e_russia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			e_russia = {
				grant_title = PREV
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_byzantin_empire_ideologies = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = e_communist_byzantium
				has_landed_title = e_byzantin_union
			}
			NOT = { has_landed_title = e_byzantium }
			e_byzantium = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			e_byzantium = {
				grant_title = PREV
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_french_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_french_republic
				has_landed_title = k_communist_france
			}
			NOT = { has_landed_title = k_france }
			k_france = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_france = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_french_republic
								de_jure_liege = k_communist_france
							}
												
							NOT = { de_jure_liege_or_above = k_france }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_france
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_french_republic
			}
		}
	}
	
	restore_dutch_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_netherlands
				has_landed_title = k_communist_netherlands
			}
			NOT = { has_landed_title = k_frisia }
			k_frisia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_frisia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_netherlands
								de_jure_liege = k_communist_netherlands
							}
												
							NOT = { de_jure_liege_or_above = k_frisia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_frisia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_netherlands
			}
		}
	}
	
	restore_belgian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_communist_belgium
			NOT = { has_landed_title = k_belgium }
			k_belgium = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_belgium = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_communist_belgium
												
							NOT = { de_jure_liege_or_above = k_belgium }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_belgium
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_lotharingian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_lotharingian_republic
				has_landed_title = k_communist_lotharingia
			}
			NOT = { has_landed_title = k_lotharingia }
			k_lotharingia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_lotharingia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_lotharingian_republic
								de_jure_liege = k_communist_lotharingia
							}
												
							NOT = { de_jure_liege_or_above = k_lotharingia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_lotharingia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_bavarian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_austrian_republic
				has_landed_title = k_communist_austria
			}
			NOT = { has_landed_title = k_bavaria }
			k_bavaria = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_bavaria = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_austrian_republic
								de_jure_liege = k_communist_austria
							}
												
							NOT = { de_jure_liege_or_above = k_bavaria }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_bavaria
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_austrian_republic
			}
		}
	}
	
	restore_german_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_federal_germany
				has_landed_title = k_democratic_germany
			}
			NOT = { has_landed_title = k_germany }
			k_germany = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_germany = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_federal_germany
								de_jure_liege = k_democratic_germany
							}
												
							NOT = { de_jure_liege_or_above = k_germany }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_germany
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_italian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_italian_republic
				has_landed_title = k_communist_italy
			}
			NOT = { has_landed_title = k_italy }
			k_italy = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_italy = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_italian_republic
								de_jure_liege = k_communist_italy
							}
												
							NOT = { de_jure_liege_or_above = k_italy }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_italy
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_italian_republic
			}
		}
	}
	
	restore_castillan_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_spanish_republic
			NOT = { has_landed_title = k_castille }
			k_castille = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_castille = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_spanish_republic
												
							NOT = { de_jure_liege_or_above = k_castille }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_castille
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_spanish_republic
			}
		}
	}
	
	restore_catalan_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_catalonia
				has_landed_title = k_def_council_aragon
			NOT = { has_landed_title = k_aragon }
			k_aragon = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_aragon = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_catalonia
							de_jure_liege = k_def_council_aragon
												
							NOT = { de_jure_liege_or_above = k_aragon }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_aragon
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_bohemian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				AND = {
					has_landed_title = k_czech_republic
					NOT = { culture = czech }
				}
				AND = {
					has_landed_title = k_slovak_republic
					NOT = { culture = slovak }
				}
				has_landed_title = k_czechoslovakia
			}
			NOT = { has_landed_title = k_bohemia }
			k_bohemia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_bohemia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_czech_republic
								de_jure_liege = k_slovak_republic
								de_jure_liege = k_czechoslovakia
							}
												
							NOT = { de_jure_liege_or_above = k_bohemia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_bohemia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_slovak_republic
			}
			modifier = {
				factor = 0.01
				has_landed_title = k_czech_republic
			}
		}
	}
	
	restore_sicilian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_sicily_republic
			NOT = { has_landed_title = k_sicily }
			k_sicily = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_sicily = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_sicily_republic
												
							NOT = { de_jure_liege_or_above = k_sicily }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_sicily
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_cyprus_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			religion_group = christian
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_cyprus_republic
				has_landed_title = k_turkish_cyprus
				has_landed_title = k_communist_cyprus
				has_landed_title = k_communist_turkish_cyprus
			}
			NOT = { has_landed_title = k_cyprus }
			k_cyprus = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_cyprus = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_cyprus_republic
								de_jure_liege = k_turkish_cyprus
								de_jure_liege = k_communist_cyprus
								de_jure_liege = k_communist_turkish_cyprus
							}
												
							NOT = { de_jure_liege_or_above = k_cyprus }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_cyprus
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_greek_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_greek_republic
			NOT = { has_landed_title = k_byzantium }
			k_byzantium = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_byzantium = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_greek_republic
												
							NOT = { de_jure_liege_or_above = k_byzantium }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_byzantium
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_greek_republic
			}
		}
	}
	
	restore_carantanian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_slovenia_republic
				AND = {
					has_landed_title = k_yugoslavia
					culture = carantanian
				}
			}
			NOT = { has_landed_title = k_carinthia }
			k_carinthia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_carinthia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_slovenia_republic
								de_jure_liege = k_yugoslavia
							}
												
							NOT = { de_jure_liege_or_above = k_carinthia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_carinthia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_slovenia_republic
			}
		}
	}
	
	restore_hungarian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_hungarian_republic
				has_landed_title = k_communist_hungary
			}
			NOT = { has_landed_title = k_hungary }
			k_hungary = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_hungary = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_hungarian_republic
								de_jure_liege = k_communist_hungary
							}
												
							NOT = { de_jure_liege_or_above = k_hungary }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_hungary
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_hungarian_republic
			}
		}
	}
	
	restore_croatian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_croatian_republic
				AND = {
					has_landed_title = k_yugoslavia
					culture = croatian
				}
			}
			NOT = { has_landed_title = k_croatia }
			k_croatia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_croatia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_croatian_republic
								de_jure_liege = k_yugoslavia
							}
												
							NOT = { de_jure_liege_or_above = k_croatia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_croatia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_croatian_republic
			}
		}
	}
	
	restore_bosnian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_bosnian_republic
				AND = {
					has_landed_title = k_yugoslavia
					culture = bosnian
				}
			}
			NOT = { has_landed_title = k_bosnia }
			k_bosnia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_bosnia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_bosnian_republic
								de_jure_liege = k_yugoslavia
							}
												
							NOT = { de_jure_liege_or_above = k_bosnia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_bosnia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_bosnian_republic
			}
		}
	}
	
	restore_serbian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_serbian_republic
				AND = {
					has_landed_title = k_yugoslavia
					culture = serbian
				}
			}
			NOT = { has_landed_title = k_serbia }
			k_serbia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_serbia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_serbian_republic
								de_jure_liege = k_yugoslavia
							}
												
							NOT = { de_jure_liege_or_above = k_serbia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_serbia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_serbian_republic
			}
		}
	}
	
	restore_bulgarian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_bulgarian_republic
				has_landed_title = k_communist_bulgaria
			}
			NOT = { has_landed_title = k_bulgaria }
			k_bulgaria = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_bulgaria = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_bulgarian_republic
								de_jure_liege = k_communist_bulgaria
							}
												
							NOT = { de_jure_liege_or_above = k_bulgaria }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_bulgaria
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_bulgarian_republic
			}
		}
	}
	
	restore_polish_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_polish_republic
				has_landed_title = k_communist_poland
			}
			NOT = { has_landed_title = k_poland }
			k_poland = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_poland = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_polish_republic
								de_jure_liege = k_communist_poland
							}
												
							NOT = { de_jure_liege_or_above = k_poland }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_poland
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_polish_republic
			}
		}
	}
	
	restore_lithuanian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_lithuanian_republic
			NOT = { has_landed_title = k_lithuania }
			k_lithuania = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_lithuania = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_lithuanian_republic
												
							NOT = { de_jure_liege_or_above = k_lithuania }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_lithuania
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_lithuanian_republic
			}
		}
	}
	
	restore_estonian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_estonian_republic
			NOT = { has_landed_title = k_estonia }
			k_estonia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_estonia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_estonian_republic
												
							NOT = { de_jure_liege_or_above = k_estonia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_estonia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_estonian_republic
			}
		}
	}
	
	restore_romanian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_romanian_republic
				has_landed_title = k_communist_romania
				AND = {
					has_landed_title = k_moldovan_republic
					culture = romanian
				}
			}
			NOT = { has_landed_title = k_dacia }
			k_dacia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_dacia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_romanian_republic
								de_jure_liege = k_communist_romania
								de_jure_liege = k_moldovan_republic
							}
												
							NOT = { de_jure_liege_or_above = k_dacia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_dacia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_romanian_republic
			}
		}
	}
	
	restore_english_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_english_republic
				has_landed_title = k_communist_england
			}
			NOT = { has_landed_title = k_england }
			k_england = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_england = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_communist_england
								de_jure_liege = k_english_republic
							}
												
							NOT = { de_jure_liege_or_above = k_england }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_england
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_english_republic
			}
		}
	}
	
	restore_scottish_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_scottish_republic
				has_landed_title = k_communist_scotland
			}
			NOT = { has_landed_title = k_scotland }
			k_scotland = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_scotland = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_scottish_republic
								de_jure_liege = k_communist_scotland
							}
												
							NOT = { de_jure_liege_or_above = k_scotland }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_scotland
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_scottish_republic
			}
		}
	}
	
	restore_irish_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_irish_republic
				has_landed_title = k_communist_ireland
			}
			NOT = { has_landed_title = k_ireland }
			k_ireland = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_ireland = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_irish_republic
								de_jure_liege = k_communist_ireland
							}
												
							NOT = { de_jure_liege_or_above = k_ireland }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_ireland
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_irish_republic
			}
		}
	}
	
	restore_welsh_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_welsh_republic
				has_landed_title = k_communist_wales
			}
			NOT = { has_landed_title = k_wales }
			k_wales = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_wales = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_welsh_republic
								de_jure_liege = k_communist_wales
							}
												
							NOT = { de_jure_liege_or_above = k_wales }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_wales
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_welsh_republic
			}
		}
	}
	
	restore_norwegian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_norwegian_republic
				has_landed_title = k_communist_norway
			}
			NOT = { has_landed_title = k_norway }
			k_norway = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_norway = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_norwegian_republic
								de_jure_liege = k_communist_norway
							}
												
							NOT = { de_jure_liege_or_above = k_norway }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_norway
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_norwegian_republic
			}
		}
	}
	
	restore_swedish_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_swedish_republic
				has_landed_title = k_communist_sweden
			}
			NOT = { has_landed_title = k_sweden }
			k_sweden = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_sweden = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_swedish_republic
								de_jure_liege = k_communist_sweden
							}
												
							NOT = { de_jure_liege_or_above = k_sweden }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_sweden
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_swedish_republic
			}
		}
	}
	
	restore_danish_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_danish_republic
				has_landed_title = k_communist_denmark
			}
			NOT = { has_landed_title = k_denmark }
			k_denmark = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_denmark = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_danish_republic
								de_jure_liege = k_communist_denmark
							}
												
							NOT = { de_jure_liege_or_above = k_denmark }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_denmark
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_danish_republic
			}
		}
	}
	
	restore_finnish_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_finnish_republic
				has_landed_title = k_communist_finland
			}
			NOT = { has_landed_title = k_finland }
			k_finland = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_finland = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_finnish_republic
								de_jure_liege = k_communist_finland
							}
												
							NOT = { de_jure_liege_or_above = k_finland }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_finland
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_finnish_republic
			}
		}
	}
	
	restore_russian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_russian_republic
				has_landed_title = k_communist_russia
			}
			NOT = { has_landed_title = k_rus }
			k_rus = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_rus = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_russian_republic
								de_jure_liege = k_communist_russia
							}
												
							NOT = { de_jure_liege_or_above = k_rus }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_rus
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				has_landed_title = k_russian_republic
			}
		}
	}
	
	restore_georgian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_georgian_republic
			NOT = { has_landed_title = k_georgia }
			k_georgia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_georgia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_georgian_republic
												
							NOT = { de_jure_liege_or_above = k_georgia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_georgia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_armenian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_armenian_republic
				has_landed_title = k_communist_armenia
			}
			NOT = { has_landed_title = k_armenia }
			k_armenia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_armenia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_armenian_republic
								de_jure_liege = k_communist_armenia
							}
												
							NOT = { de_jure_liege_or_above = k_armenia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_armenia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_afghan_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				de_jure_liege = k_communist_afghanistan
				de_jure_liege = k_afghan_republic
			}
			NOT = { has_landed_title = k_afghanistan }
			k_afghanistan = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_afghanistan = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_communist_afghanistan
								de_jure_liege = k_afghan_republic
												
							NOT = { de_jure_liege_or_above = k_afghanistan }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_afghanistan
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_mesopotamia = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			AND = {
				has_landed_title = k_kurdistan
				culture = kurdish
			}
			NOT = { has_landed_title = k_mesopotamia }
			k_mesopotamia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_mesopotamia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_kurdistan
												
							NOT = { de_jure_liege_or_above = k_mesopotamia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_mesopotamia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_jerusalem = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			religion_group = christian
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_jordanian_republic
				has_landed_title = k_palestine
			}
			NOT = { has_landed_title = k_jerusalem }
			k_jerusalem = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_jerusalem = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_jordanian_republic
								de_jure_liege = k_palestine
							}
												
							NOT = { de_jure_liege_or_above = k_jerusalem }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_jerusalem
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_nubian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_sudanese_republic
			NOT = { has_landed_title = k_nubia }
			k_nubia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_nubia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_sudanese_republic
												
							NOT = { de_jure_liege_or_above = k_nubia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_nubia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_kamen_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_chad
			NOT = { has_landed_title = k_kanem }
			k_kanem = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_kanem = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_chad
												
							NOT = { de_jure_liege_or_above = k_kanem }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_kanem
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_hausa_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_niger
			NOT = { has_landed_title = k_hausaland }
			k_hausaland = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_hausaland = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_niger
												
							NOT = { de_jure_liege_or_above = k_hausaland }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_hausaland
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_manden_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			culture = manden
			has_landed_title = k_malian_republic
			NOT = { has_landed_title = k_mali }
			k_mali = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_mali = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_malian_republic
												
							NOT = { de_jure_liege_or_above = k_mali }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_mali
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_songhay_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			culture = songhay
			has_landed_title = k_malian_republic
			NOT = { has_landed_title = k_songhay }
			k_songhay = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_songhay = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_malian_republic
												
							NOT = { de_jure_liege_or_above = k_songhay }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_songhay
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_ghana_legacy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_mauritania_republic
			NOT = { has_landed_title = k_ghana }
			k_ghana = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_ghana = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_mauritania_republic
												
							NOT = { de_jure_liege_or_above = k_ghana }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_ghana
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	claim_maghreb_unity = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_morocco
				has_landed_title = k_communist_morocco
			}
			NOT = { has_landed_title = k_mauretania }
			k_mauretania = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_mauretania = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_morocco
								de_jure_liege = k_communist_morocco
							}
												
							NOT = { de_jure_liege_or_above = k_mauretania }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_mauretania
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_balouch_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_pakistan
				has_landed_title = k_communist_pakistan
			}
			NOT = { has_landed_title = k_baluchistan }
			k_baluchistan = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_baluchistan = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_pakistan
								de_jure_liege = k_communist_pakistan
							}
												
							NOT = { de_jure_liege_or_above = k_baluchistan }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_baluchistan
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_nepali_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_nepali_republic
				has_landed_title = k_communist_nepal
			}
			NOT = { has_landed_title = k_nepal }
			k_nepal = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_nepal = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_nepali_republic
								de_jure_liege = k_communist_nepal
							}
												
							NOT = { de_jure_liege_or_above = k_nepal }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_nepal
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_khiva_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_turkmenistan
				has_landed_title = k_communist_turkmenistan
				has_landed_title = k_uzbekistan
				has_landed_title = k_communist_uzbekistan
			}
			NOT = { has_landed_title = k_khiva }
			k_khiva = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_khiva = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_turkmenistan
								de_jure_liege = k_communist_turkmenistan
								de_jure_liege = k_uzbekistan
								de_jure_liege = k_communist_uzbekistan
							}
												
							NOT = { de_jure_liege_or_above = k_khiva }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_khiva
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_turkestan_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_kazakhstan
			OR = {
				culture = turkish
				culture = pecheneg
			}
			NOT = { has_landed_title = k_turkestan }
			k_turkestan = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_turkestan = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_kazakhstan
												
							NOT = { de_jure_liege_or_above = k_turkestan }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_turkestan
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_cuman_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_kazakhstan
			culture = cuman
			NOT = { has_landed_title = k_cuman }
			k_cuman = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_cuman = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_kazakhstan
												
							NOT = { de_jure_liege_or_above = k_cuman }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_cuman
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_zhetysu_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_kazakhstan
			culture = mongol
			NOT = { has_landed_title = k_zhetysu }
			k_zhetysu = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_zhetysu = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_kazakhstan
												
							NOT = { de_jure_liege_or_above = k_zhetysu }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_zhetysu
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_mongolian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_mongolian_republic
				has_landed_title = k_communist_mongolia
			}
			NOT = { has_landed_title = k_mongolia }
			k_mongolia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_mongolia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_mongolian_republic
								de_jure_liege = k_communist_mongolia
							}
												
							NOT = { de_jure_liege_or_above = k_mongolia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_mongolia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_yemeni_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_yemeni_republic
				has_landed_title = k_communist_yemen
			}
			NOT = { has_landed_title = k_yemen }
			k_yemen = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_yemen = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_yemeni_republic
												
							NOT = { de_jure_liege_or_above = k_yemen }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_yemen
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_lappish_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			has_landed_title = k_sapmi_republic
			NOT = { has_landed_title = k_sapmi }
			k_sapmi = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_sapmi = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							de_jure_liege = k_sapmi_republic
												
							NOT = { de_jure_liege_or_above = k_sapmi }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_sapmi
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_nenets_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_nenets_republic
				has_landed_title = k_communist_nenets
			}
			NOT = { has_landed_title = k_nenets }
			k_nenets = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_nenets = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_nenets_republic
								de_jure_liege = k_communist_nenets
							}
												
							NOT = { de_jure_liege_or_above = k_nenets }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_nenets
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_komi_nobilities = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_komi_republic
				has_landed_title = k_communist_komi
			}
			NOT = { has_landed_title = k_perm }
			k_perm = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_perm = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_komi_republic
								de_jure_liege = k_communist_komi
							}
												
							NOT = { de_jure_liege_or_above = k_perm }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_perm
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
	restore_persian_monarchy = {
		only_independent = yes
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			NOR = {
				religion_group = capitalist
				religion_group = communism
				religion_group = totalitarist
			}
			is_playable = yes
			OR = {
				is_republic = yes
				is_feudal = yes
			}
			OR = {
				has_landed_title = k_iranian_republic
				has_landed_title = k_communist_iran
			}
			culture = persian
			NOT = { has_landed_title = k_persia }
			k_persia = {
				has_holder = no
			}
		}
		
		allow = {
			independent = yes
			is_ruler = yes
			prisoner = no
			is_incapable = no
			is_adult = yes
			war = no
			prestige = 100
		}
		
		effect = {
			k_persia = {
				grant_title = PREV
			}
			any_title_under = {
				limit = {
					tier = COUNT
					location = {
						duchy = {
							OR = {
								de_jure_liege = k_iranian_republic
								de_jure_liege = k_communist_iran
							}
												
							NOT = { de_jure_liege_or_above = k_persia }
							ROOT = {
								completely_controls = PREV
							}
						}
					}
				}
				location = {
					duchy = {
						de_jure_liege = k_persia
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
		}
	}
}