teu_hre_protection_mission_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				NOT = { was_tag = DNZ }
				was_tag = TEU
				tag = PRU
			}
			tag = TEU
		}
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = teu_crusader_path }
	}
	has_country_shield = yes
	
	teu_seek_imperial_protection = {
		icon = join_the_empire
		position = 1
		required_missions = {  }
		provinces_to_highlight = {
			is_capital_of = emperor
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			if = {
				limit = { hre_size = 1 }
				reverse_has_opinion = {
					who = emperor
					value = 100
				}
				if = {
					limit = { has_dlc = "Emperor" }
					NOT = { active_imperial_incident = any }
				}
			}
			else = {
				stability = 1
			}
		}
		effect = {
			if = {
				limit = {
					hre_size = 1
					is_part_of_hre = no
					tag = TEU
				}
				country_event = {
					id = flavor_teu.17
				}
			}
			else = {
				add_dip_power = 100
			}
		}
	}
}

teu_livonian_mission_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				NOT = { was_tag = DNZ }
				was_tag = TEU
				tag = PRU
			}
			tag = TEU
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	teu_livonian_alliance = {
		icon = mission_diplomatic_relation
		position = 1
		required_missions = {  }
		provinces_to_highlight = {
			is_capital = yes
			owned_by = LIV
		}
		trigger = {
			if = {
				limit = {
					exists = LIV
				}
				OR = {
					AND = {
						is_rival = LIV
						trade_embargoing = LIV
					}
					AND = {
						alliance_with = LIV
						reverse_has_opinion = {
							who = LIV
							value = 150
						}
					}
					LIV = { is_subject_of = ROOT }
				}
			}
			else = {
				NOT = { exists = LIV }
				stability = 1
			}
		}
		effect = {
			if = {
				limit = { exists = LIV }
				if = {
					limit = {
						alliance_with = LIV
						reverse_has_opinion = {
							who = LIV
							value = 150
						}
					}
					country_event = {
						id = flavor_teu.13
					}
				}
				else_if = {
					limit = {
						is_rival = LIV
						trade_embargoing = LIV
					}
					add_casus_belli = {
						type = cb_vassalize_mission
						target = LIV
						months = 360
					}
				}
				else = {
					custom_tooltip = teu_livonian_alliance_tt
				}
			}
			else = {
				add_mil_power = 100
			}
		}
	}
	
	teu_strengthen_livonia = {
		icon = mission_livonian_knights
		position = 2
		required_missions = { teu_livonian_alliance }
		provinces_to_highlight = {
			OR = {
				area = livonia_area
				area = curonia_area
				area = estonia_ingria_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			if = {
				limit = {
					exists = LIV
				}
				OR = {
					AND = {
						alliance_with = LIV
						LIV = {
							has_opinion = {
								who = ROOT
								value = 190
							}
							if = {
								limit = { has_dlc = "Leviathan" }
								trust = {
									who = ROOT
									value = 80
								}
							}
							else = {
								has_opinion_modifier = {
									who = ROOT 
									modifier = sent_gift
								}
							}
						}
					}
					LIV = {
						is_subject_of = ROOT
						has_opinion = {
							who = ROOT
							value = 190
						}
						NOT = { liberty_desire = 10 }
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = livonia_area
							area = curonia_area
							area = estonia_ingria_area
						}
						value = 8
					}
				}
			}
			else = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					OR = {
						area = livonia_area
						area = curonia_area
						area = estonia_ingria_area
					}
					value = 8
				}
			}
		}
		effect = {
			if = {
				limit = {
					LIV = { is_subject_of = ROOT }
				}
				add_country_modifier = {
					name = teu_unified_orders
					duration = 9125
				}
			}
			else_if = {
				limit = {
					alliance_with = LIV
				}
				add_country_modifier = {
					name = teu_livonian_teutonic_alliance
					duration = 9125
				}
			}
			else_if = {
				limit = {
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = livonia_area
							area = curonia_area
							area = estonia_ingria_area
						}
						value = 8
					}
				}
				add_country_modifier = {
					name = teu_ruler_over_livonia
					duration = 9125
				}
			}
			else = {
				custom_tooltip = teu_strengthen_livonia_tt
			}
		}
	}
}

teu_danzig_and_poland_mission_slot = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				NOT = { was_tag = DNZ }
				was_tag = TEU
				tag = PRU
			}
			tag = TEU
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	teu_handle_the_prussian_confederation = {
		icon = mission_rb_hanseatic_east
		position = 1
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			OR = {
				AND = {
					stability = 1
					NOT = { num_of_rebel_controlled_provinces = 1 }
					NOT = {
						has_spawned_rebels = particularist_rebels
					}
					OR = {
						NOT = { has_estate = estate_burghers }
						crown_land_share = 40
					}
					NOT = { has_estate_privilege = estate_burghers_prussian_confederation }
				}
				AND = {
					NOT = { current_age = age_of_discovery }
					NOT = { has_disaster = prussian_confederation_disaster }
				}
				custom_trigger_tooltip = {
					tooltip = teu_handle_the_prussian_confederation_tt
					has_country_flag = pru_confederation_happened
				}
			}
			NOT = { has_estate_privilege = estate_burghers_prussian_confederation }
		}
		effect = {
			set_country_flag = pru_confederation_curtailed
			custom_tooltip = curtail_prussian_confederation.tooltip
			end_disaster = prussian_confederation_disaster
			add_prestige = 10
			add_country_modifier = {
				name = "pru_confederation_curtailed_modifier"
				duration = 7300
			}
		}
	}
	
	teu_defeat_the_poles = {
		icon = mission_conquer_5_states
		position = 2
		required_missions = {
			teu_livonian_alliance
			teu_build_to_force_limit
		}
		provinces_to_highlight = {
			OR = {
				area = kuyavia_area
				area = wielkopolska_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = kuyavia_area
					area = wielkopolska_area
				}
				value = 4
			}
		}
		effect = {
			custom_tooltip = teu_defeat_the_poles_tt
			add_power_projection = {
				type = mission_rewards_power_projection
				amount = 25
			}
			enable_branching_mission_review = {
				key = TEU
				ai_event_id = flavor_teu.10
			}
		}
	}
}

teu_army_mission_slot = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				NOT = { was_tag = DNZ }
				was_tag = TEU
				tag = PRU
			}
			tag = TEU
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	teu_build_to_force_limit = {
		icon = mission_teutonic_knights
		position = 1
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			army_size_percentage = 1
			has_mil_advisor = yes
		}
		effect = {
			add_country_modifier = {
				name = teu_teutonic_persistance
				duration = 9125
			}
			kuyavia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			wielkopolska_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
}

#Prussian Path
teu_pru_hre_mission_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				NOT = { was_tag = DNZ }
				was_tag = TEU
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	teu_pru_teutonic_order_and_the_empire = {
		icon = glory_to_von_habsburg
		position = 2
		required_missions = { teu_seek_imperial_protection }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			has_adm_advisor = yes
			has_dip_advisor = yes
			has_mil_advisor = yes
			if = {
				limit = {
					has_estate = estate_church
				}
				estate_loyalty = {
					estate = estate_church
					loyalty = 60
				}
			}
			if = {
				limit = {
					has_estate = estate_burghers
				}
				estate_loyalty = {
					estate = estate_burghers
					loyalty = 60
				}
			}
			if = {
				limit = {
					has_estate = estate_nobles
				}
				estate_loyalty = {
					estate = estate_nobles
					loyalty = 60
				}
			}
			is_at_war = no
		}
		effect = {
			if = {
				limit = {
					hre_size = 1
				}
				enable_branching_mission_review = {
					key = TEU_PRU
					ai_event_id = flavor_teu.11
				}
			}
			else = {
				enable_branching_mission_review = {
					key = TEU_PRU
					ai_event_id = flavor_teu.18
				}
			}
		}
	}
}

teu_pru_dummy_hre_mission_slot_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				OR = {
					was_tag = DNZ
					was_tag = TEU
				}
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
			tag = DNZ
		}
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = teu_conquest_hre_path }
		NOT = { has_country_flag = teu_diplomacy_hre_path }
		NOT = { has_country_flag = teu_kingdom_prussia_path }
	}
	has_country_shield = yes
	
	teu_pru_hre_mission_1 = {
		icon = mission_unknown_mission
		position = 3
		required_missions = { }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				if = {
					limit = {
						NOT = { tag = DNZ }
						NOT = { was_tag = DNZ }
					}
					AND = {
						custom_trigger_tooltip = {
							tooltip = teu_diplomacy_hre_path_tt
							always = no
						}
						OR = {
							is_part_of_hre = yes
							NOT = { hre_size = 1 }
						}
						if = {
							limit = {
								exists = BRA
							}
							BRA = {
								is_subject_of = ROOT
							}
						}
						else = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								OR = {
									area = neumark_area
									area = mittelmark_area
								}
								value = 6
							}
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_conquest_hre_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = neumark_area
							area = mittelmark_area
						}
						value = 6
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_kingdom_prussia_path_tt
						always = no
					}
					owns_core_province = 257
					owns_core_province = 262
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { tag = DNZ }
					NOT = { was_tag = DNZ }
				}
				custom_tooltip = teu_diplomacy_hre_path_effects_tt
				add_mil_power = 100
				add_army_tradition = 10
			}
			custom_tooltip = teu_conquest_hre_path_effects_tt
			create_general = {
				tradition = 80
			}
			add_yearly_manpower = 0.5
			silesia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			lusatia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			custom_tooltip = teu_kingdom_prussia_path_effects_tt
			mazovia_area = {
				limit = {
					owned_by = ROOT
				}
				add_devastation = -100
				add_nationalism = -5
				add_local_autonomy = -100
			}
			malopolska_area = {
				limit = {
					owned_by = ROOT
				}
				add_devastation = -100
				add_nationalism = -5
				add_local_autonomy = -100
			}
			sandomierz_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			red_ruthenia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_hre_mission_2 = {
		icon = mission_unknown_mission
		position = 4
		required_missions = { teu_pru_hre_mission_1 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				if = {
					limit = {
						NOT = { tag = DNZ }
						NOT = { was_tag = DNZ }
					}
					AND = {
						custom_trigger_tooltip = {
							tooltip = teu_diplomacy_hre_path_tt
							always = no
						}
						if = {
							limit = {
								hre_size = 1
							}
							OR = {
								AND = {
									is_part_of_hre = yes
									is_elector = yes
								}
								AND = {
									NOT = { hre_size = 1 }
									num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
										region = north_german_region
										value = 20
									}
								}
							}
						}
						else = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								region = north_german_region
								value = 20
							}
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_conquest_hre_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = lusatia_area
							area = silesia_area
						}
						value = 6
					}
					if = {
						limit = { has_updated_culture = { culture = slavic } }
						OR = {
							accepted_culture = schlesian_new
							accepted_culture = sorbian_new
						}
					}
					else = {
						OR = {
							accepted_culture = schlesian
							accepted_culture = sorbian
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_kingdom_prussia_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = sandomierz_area
							area = red_ruthenia_area
						}
						value = 6
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { tag = DNZ }
					NOT = { was_tag = DNZ }
				}
				custom_tooltip = teu_diplomacy_hre_path_effects_tt
				if = {
					limit = {
						NOT = { government_rank = 2 }
						has_reform = monastic_order_reform
					}
					set_government_rank = 2
				}
				add_prestige = 25
				add_legitimacy_equivalent = {
					amount = 20
					republican_tradition = 10
				}
				add_country_modifier = {
					name = teu_prussian_electorship
					duration = 9125
				}
			}
			custom_tooltip = teu_conquest_hre_path_effects_tt
			add_country_modifier = {
				name = "prussian_ambition"
				duration = 7300
			}
			add_dip_power = 100
			south_saxony_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			northern_saxony_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			thuringia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			custom_tooltip = teu_kingdom_prussia_path_effects_tt
			add_dip_power = 100
			if = {
				limit = { has_updated_culture = { culture = slavic } }
				add_accepted_culture_or_dip_power = { culture = polish_new value = 100 }
			}
			else = {
				add_accepted_culture_or_dip_power = { culture = polish free = yes }
			}
			custom_tooltip = teu_pru_conquer_poland_at
			moldavia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_hre_mission_3 = {
		icon = mission_unknown_mission
		position = 5
		required_missions = { teu_pru_hre_mission_2 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				if = {
					limit = {
						NOT = { tag = DNZ }
						NOT = { was_tag = DNZ }
					}
					AND = {
						custom_trigger_tooltip = {
							tooltip = teu_diplomacy_hre_path_tt
							always = no
						}
						if = {
							limit = {
								has_dlc = "Art of War"
								hre_size = 1
							}
							OR = {
								AND = {
									custom_trigger_tooltip = {
										tooltip = obj_religious_league_war_on_winning_side_tooltip
										has_country_flag = religious_league_war_on_winning_side
									}
									hre_religion = ROOT
									hre_religion_locked = yes
								}
								AND = {
									religion = catholic
									custom_trigger_tooltip = {
										tooltip = swe_catholic_30_years_war_ct
										OR = {
											AND = {
												NOT = { has_global_flag = evangelical_union_happened }
												is_year = 1625
											}
											AND = {
												hre_religion_locked = yes
												had_global_flag = {
													flag = evangelical_union_happened
													days = 10950
												}
											}
										}
									}
								}
								AND = {
									NOT = { hre_size = 1 }
									num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
										region = north_german_region
										value = 40
									}
								}
							}
						}
						else_if = {
							limit = {
								NOT = { has_dlc = "Art of War" }
								hre_size = 1
							}
							OR = {
								NOT = { current_age = age_of_discovery }
								NOT = {
									any_known_country = {
										is_part_of_hre = yes
										NOT = { religion = ROOT }
									}
								}
								AND = {
									NOT = { hre_size = 1 }
									num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
										region = north_german_region
										value = 40
									}
								}
							}
						}
						else = {
							NOT = { hre_size = 1 }
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								region = north_german_region
								value = 40
							}
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_conquest_hre_path_tt
						always = no
					}
					accepted_culture = saxon
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = south_saxony_area
							area = northern_saxony_area
							area = thuringia_area
						}
						value = 8
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_kingdom_prussia_path_tt
						always = no
					}
					moldavia_area = {
						country_or_non_sovereign_subject_holds = ROOT
						type = all
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { tag = DNZ }
					NOT = { was_tag = DNZ }
				}
				custom_tooltip = teu_diplomacy_hre_path_effects_tt
				if = {
					limit = { religion = catholic }
					add_papal_influence = 100
				}
				else_if = {
					limit = {
						OR = {
							religion = protestant
							religion = anglican
							religion = hussite
						}
					}
					add_church_power = 100
				}
				else_if = {
					limit = { religion = reformed }
					add_fervor = 50
				}
				add_war_exhaustion = -2
				change_ruler_stat = {
					type = mil
					amount = 2
				}
				if = {
					limit = {
						has_dlc = "Art of War"
						hre_size = 1
						has_country_flag = religious_league_war_on_winning_side
					}
					custom_tooltip = teu_pru_30_years_war_tt
					hidden_effect = {
						every_known_country = {
							limit = {
								is_part_of_hre = yes
								religion = ROOT
							}
							add_opinion = {
								who = ROOT
								modifier = teu_supported_our_side_of_the_war
							}
						}
					}
				}
				else_if = {
					limit = {
						has_dlc = "Art of War"
						hre_size = 1
						NOT = {
							OR = {
								AND = {
									has_country_flag = religious_league_war_on_winning_side
									hre_religion = ROOT
									hre_religion_locked = yes
								}
								AND = {
									NOT = { has_global_flag = evangelical_union_happened }
									is_year = 1625
								}
								AND = {
									hre_religion_locked = yes
									had_global_flag = {
										flag = evangelical_union_happened
										days = 10950
									}
								}
							}
						}
					}
					custom_tooltip = teu_pru_30_years_war_at
				}
				else = {
					change_ruler_stat = {
						type = dip
						amount = 1
					}
				}
			}
			custom_tooltip = teu_conquest_hre_path_effects_tt
			add_country_modifier = {
				name = teu_pru_saxon_productivity
				duration = 9125
			}
			upper_franconia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			franconia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			palatinate_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			custom_tooltip = teu_kingdom_prussia_path_effects_tt
			add_stability_or_adm_power = yes
			moldavia_area = {
				limit = {
					country_or_non_sovereign_subject_holds = ROOT
				}
				add_base_production = 1
				add_province_modifier = {
					name = teu_pru_wine_and_faith
					duration = 9125
				}
			}
		}
	}
	
	teu_pru_hre_mission_4 = {
		icon = mission_unknown_mission
		position = 6
		required_missions = { teu_pru_hre_mission_3 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				if = {
					limit = {
						NOT = { tag = DNZ }
						NOT = { was_tag = DNZ }
					}
					AND = {
						custom_trigger_tooltip = {
							tooltip = teu_diplomacy_hre_path_tt
							always = no
						}
						if = {
							limit = {
								hre_size = 1
							}
							is_emperor = yes
							calc_true_if = {
								desc = secure_the_imperial_crown.tooltip
								all_elector = {
									preferred_emperor = ROOT
									has_opinion = { who = ROOT value = 100 }
								}
								amount = 5
							}
						}
						else = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								region = north_german_region
								value = 60
							}
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_conquest_hre_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = upper_franconia_area
							area = franconia_area
							area = palatinate_area
						}
						value = 8
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_kingdom_prussia_path_tt
						always = no
					}
					wielkopolska_area = {
						country_or_non_sovereign_subject_holds = ROOT
						type = all
					}
					central_poland_area = {
						country_or_non_sovereign_subject_holds = ROOT
						type = all
					}
					malopolska_area = {
						country_or_non_sovereign_subject_holds = ROOT
						type = all
					}
					moldavia_area = {
						country_or_non_sovereign_subject_holds = ROOT
						type = all
					}
					wielkopolska_area = { province_has_current_tech_fort_trigger = yes }
					central_poland_area = { province_has_current_tech_fort_trigger = yes }
					malopolska_area = { province_has_current_tech_fort_trigger = yes }
					moldavia_area = { province_has_current_tech_fort_trigger = yes }
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { tag = DNZ }
					NOT = { was_tag = DNZ }
				}
				custom_tooltip = teu_diplomacy_hre_path_effects_tt
				if = {
					limit = {
						hre_size = 1
					}
					add_country_modifier = {
						name = teu_pru_imperial_crown
						duration = 18250
						desc = UNTIL_NO_MORE_EMPEROR
					}
				}
				else = {
					add_adm_power = 150
				}
			}
			custom_tooltip = teu_conquest_hre_path_effects_tt
			change_government_reform_progress = 100
			alsace_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			upper_rhineland_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			lower_swabia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			upper_swabia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			east_bavaria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			lower_bavaria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			upper_bavaria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			custom_tooltip = teu_kingdom_prussia_path_effects_tt
			add_army_tradition = 15
			custom_tooltip = teu_pru_fortify_the_borders_ct
		}
	}
	
	teu_pru_hre_mission_5 = {
		icon = mission_unknown_mission
		position = 7
		required_missions = { 
			teu_pru_hre_mission_4
			teu_pru_hre_mission_9
		}
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				if = {
					limit = {
						NOT = { tag = DNZ }
						NOT = { was_tag = DNZ }
					}
					AND = {
						custom_trigger_tooltip = {
							tooltip = teu_diplomacy_hre_path_tt
							always = no
						}
						if = {
							limit = {
								hre_size = 1
							}
							is_emperor = yes
							if = {
								limit = {
									has_dlc = "Emperor"
								}
								hre_reform_passed = emperor_privilegia_de_non_appelando
							}
							else = {
								hre_reform_passed = privilegia_de_non_appelando
							}
							custom_trigger_tooltip = {
								tooltip = emp_hab_empire_pass_reforms_trigger_tooltip
								NOT = {
									any_country = {
										is_part_of_hre = yes
										NOT = {
											has_opinion = {
												who = root
												value = 1
											}
										}
									}
								}
							}
							custom_trigger_tooltip = {
								tooltip = no_hre_province_owned_by_non_hre_member_or_overlord_trigger
								europe = {
									type = all
									OR = {
										is_part_of_hre = no
										AND = {
											is_part_of_hre = yes
											owner = {
												is_part_of_hre = yes
												OR = {
													is_subject = no
													AND = {
														is_subject = yes
														overlord = { is_part_of_hre = yes }
													}
												}
											}
										}
									}
								}
							}
						}
						else = {
							num_of_owned_provinces_with = {
								OR = {
									region = north_german_region
									region = south_german_region
								}
								value = 100
							}
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_conquest_hre_path_tt
						always = no
					}
					num_of_owned_provinces_with = {
						custom_trigger_tooltip = {
							tooltip = teu_pru_an_empire_of_blood_and_iron_tt
							OR = {
								area = neumark_area
								area = mittelmark_area
								area = silesia_area
								area = lusatia_area
								area = south_saxony_area
								area = northern_saxony_area
								area = lower_saxony_area
								area = thuringia_area
								area = upper_franconia_area
								area = franconia_area
								area = palatinate_area
								area = alsace_area
								area = upper_rhineland_area
								area = lower_swabia_area
								area = upper_swabia_area
								area = east_bavaria_area
								area = lower_bavaria_area
								area = upper_bavaria_area
								area = vorpommern_area
								area = hinter_pommern_area
								area = mecklenburg_area
								area = holstein_area
								area = braunschweig_area
								area = weser_area
								area = westphalia_area
								area = north_westphalia_area
								area = north_rhine_area
								area = lower_rhineland_area
								area = hesse_area
								province_id = 1931
							}
						}
						value = 100
					}
					adm_tech = 20
					is_free_or_tributary_trigger = yes
					is_nomad = no
					is_at_war = no
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_kingdom_prussia_path_tt
						always = no
					}
					num_of_owned_provinces_with = {
						OR = {
							region = baltic_region
							region = poland_region
							region = ruthenia_region
							area = moldavia_area
							area = zaporizhia_area
							area = yedisan_area
						}
						is_core = ROOT
						has_production_building_trigger = yes
						has_tax_building_trigger = yes
						value = 80
					}
					NOT = { has_reform = monastic_order_reform }
					stability = 3
					has_any_disaster = no
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { tag = DNZ }
					NOT = { was_tag = DNZ }
				}
				custom_tooltip = teu_diplomacy_hre_path_effects_tt
				capital_scope = {
					add_province_triggered_modifier = imperial_prussian_capital
				}
				if = {
					limit = {
						hre_size = 1
					}
					add_country_modifier = {
						name = teu_pru_unifier_of_the_hre
						duration = -1
					}
				}
				else = {
					add_country_modifier = {
						name = teu_pru_blood_and_iron
						duration = -1
					}
					country_event = {
						id = flavor_teu.35
					}
				}
			}
			custom_tooltip = teu_conquest_hre_path_effects_tt
			capital_scope = {
				add_province_triggered_modifier = imperial_prussian_capital
			}
			add_country_modifier = {
				name = teu_pru_blood_and_iron
				duration = -1
			}
			country_event = {
				id = flavor_teu.35
			}
			custom_tooltip = teu_kingdom_prussia_path_effects_tt
			if = {
				limit = { NOT = { government_rank = 3 } }
				set_government_rank = 3
			}
			add_power_projection = {
				type = mission_rewards_power_projection
				amount = 100
			}
			add_country_modifier = {
				name = teu_pru_prussian_empire
				duration = -1
			}
			set_country_flag = pru_imperial_capital
			capital_scope = {
				add_province_triggered_modifier = imperial_prussian_capital
			}
		}
	}
}

teu_pru_dummy_hre_mission_slot_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				OR = {
					was_tag = DNZ
					was_tag = TEU
				}
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
			tag = DNZ
		}
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = teu_conquest_hre_path }
		NOT = { has_country_flag = teu_diplomacy_hre_path }
		NOT = { has_country_flag = teu_kingdom_prussia_path }
	}
	has_country_shield = yes
	
	teu_pru_hre_mission_6 = {
		icon = mission_unknown_mission
		position = 3
		required_missions = { }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				if = {
					limit = {
						NOT = { tag = DNZ }
						NOT = { was_tag = DNZ }
					}
					AND = {
						custom_trigger_tooltip = {
							tooltip = teu_diplomacy_hre_path_tt
							always = no
						}
						diplomatic_reputation = 2
						monthly_dip = 8
						calc_true_if = {
							all_known_country = {
								OR = {
									alliance_with = ROOT
									is_subject_of = ROOT
								}
								has_opinion = {
									who = ROOT
									value = 150
								}
							}
							amount = 5
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_conquest_hre_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = vorpommern_area
							area = hinter_pommern_area
							area = mecklenburg_area
						}
						value = 8
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_kingdom_prussia_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = samogitia_area
							area = lithuania_area
						}
						value = 6
					}
				}
			}
		}
		effect = {
			add_accepted_culture_or_dip_power = { culture = lithuanian free = yes }
			if = {
				limit = {
					NOT = { tag = DNZ }
					NOT = { was_tag = DNZ }
				}
				custom_tooltip = teu_diplomacy_hre_path_effects_tt
				change_government_reform_progress = 100
				add_dip_power = 150
				custom_tooltip = teu_pru_improve_diplomatic_skills_tt
			}
			custom_tooltip = teu_conquest_hre_path_effects_tt
			vorpommern_area = {
				limit = {
					owned_by = ROOT
				}
				add_nationalism = -10
			}
			hinter_pommern_area = {
				limit = {
					owned_by = ROOT
				}
				add_nationalism = -10
			}
			mecklenburg_area = {
				limit = {
					owned_by = ROOT
				}
				add_nationalism = -10
			}
			lower_saxony_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			holstein_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			braunschweig_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			weser_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			custom_tooltip = teu_kingdom_prussia_path_effects_tt
			custom_tooltip = teu_pru_conquer_lithuania_at
			minsk_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			pripyat_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			podlasie_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			volhynia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			west_dniepr_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			podolia_volhynia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_hre_mission_7 = {
		icon = mission_unknown_mission
		position = 4
		required_missions = { teu_pru_hre_mission_6 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_conquest_hre_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = lower_saxony_area
							area = holstein_area
							area = braunschweig_area
							area = weser_area
						}
						value = 10
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_kingdom_prussia_path_tt
						always = no
					}
					owns_or_non_sovereign_subject_of = 280
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = minsk_area
							area = pripyat_area
							area = podlasie_area
							area = volhynia_area
							area = west_dniepr_area
							area = podolia_volhynia_area
						}
						value = 16
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_conquest_hre_path_effects_tt
			45 = {
				add_trade_modifier = {
					who = ROOT
					duration = 10950
					power = 20
					key = pru_merchants_of_the_hansa
				}
			}
			61 = {
				add_trade_modifier = {
					who = ROOT
					duration = 10950
					power = 20
					key = pru_merchants_of_the_hansa
				}
			}
			add_years_of_trade_income = {
				custom_tooltip = teu_pru_annex_the_lower_saxons_tt
				years = 2
			}
			westphalia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			north_westphalia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = {
					1931 = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
				}
				add_permanent_claim = 1931
			}
			custom_tooltip = teu_kingdom_prussia_path_effects_tt
			country_event = {
				id = flavor_teu.36
			}
			yedisan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			zaporizhia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			ruthenia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_hre_mission_8 = {
		icon = mission_unknown_mission
		position = 5
		required_missions = { teu_pru_hre_mission_7 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				if = {
					limit = {
						NOT = { tag = DNZ }
						NOT = { was_tag = DNZ }
					}
					AND = {
						custom_trigger_tooltip = {
							tooltip = teu_diplomacy_hre_path_tt
							always = no
						}
						west_prussia_area = {
							owned_by = ROOT
							is_core = ROOT
							type = all
						}
						east_prussia_area = {
							owned_by = ROOT
							is_core = ROOT
							type = all
						}
						adm_tech = 10
						reform_level = 4
						stability = 2
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_conquest_hre_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = westphalia_area
							area = north_westphalia_area
							province_id = 1931
						}
						value = 6
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_kingdom_prussia_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							region = ruthenia_region
							area = yedisan_area
							area = zaporizhia_area
						}
						value = 35
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { tag = DNZ }
					NOT = { was_tag = DNZ }
				}
				custom_tooltip = teu_diplomacy_hre_path_effects_tt
				if = {
					limit = { NOT = { government = monarchy } }
					country_event = {
						id = flavor_teu.26
					}
				}
				add_stability_or_adm_power = yes
				disable_rebels_from_seize_land_for_estate = {
					estate = estate_church
				}
			}
			custom_tooltip = teu_conquest_hre_path_effects_tt
			add_country_modifier = {
				name = teu_pru_westphalian_uniforms
				duration = 9125
			}
			if = {
				limit = { has_country_modifier = poor_uniforms }
				remove_country_modifier = poor_uniforms
			}
			add_years_of_owned_provinces_production_income = {
				years = 8
				trigger = {
					OR = {
						area = westphalia_area
						area = north_westphalia_area
						province_id = 1931
					}
				}
				custom_tooltip = teu_pru_annex_western_germany_tt
			}
			north_rhine_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			lower_rhineland_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			hesse_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			custom_tooltip = teu_kingdom_prussia_path_effects_tt
			country_event = {
				id = flavor_teu.45
			}
			if = {
				limit = { has_updated_culture = { culture = slavic } }
				add_accepted_culture_or_dip_power = { culture = ruthenian free = yes }
			}
			custom_tooltip = teu_pru_conquer_poland_bt
		}
	}
	
	teu_pru_hre_mission_9 = {
		icon = mission_unknown_mission
		position = 6
		required_missions = { teu_pru_hre_mission_8 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_conquest_hre_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = north_rhine_area
							area = lower_rhineland_area
							area = hesse_area
						}
						value = 10
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_kingdom_prussia_path_tt
						always = no
					}
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						custom_trigger_tooltip = {
							tooltip = teu_pru_fortify_dnieper_tt
							OR = {
								province_id = 293
								province_id = 4246
								province_id = 771
								province_id = 292
								province_id = 4115
								province_id = 280
								province_id = 1944
								province_id = 283
								province_id = 2406
							}
							province_has_current_tech_fort_trigger = yes
						}
						value = 3
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_conquest_hre_path_effects_tt
			add_adm_power = 200
			add_country_modifier = {
				name = "prussian_rhine"
				duration = 7300
			}
			custom_tooltip = teu_kingdom_prussia_path_effects_tt
			define_advisor = {
				type = fortification_expert
				skill = 3
				cost_multiplier = 0.25
			}
			custom_tooltip = teu_pru_fortify_dnieper_ct
		}
	}
}

#HRE Diplomatic Path
teu_pru_diplomatic_hre_mission_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				was_tag = TEU
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
		}
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_diplomacy_hre_path
	}
	has_country_shield = yes
	
	teu_pru_vassalize_brandenburg = {
		icon = electorate_of_brandenburg
		position = 3
		required_missions = { }
		provinces_to_highlight = {
			is_capital_of = BRA
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			OR = {
				is_part_of_hre = yes
				NOT = { hre_size = 1 }
			}
			if = {
				limit = {
					exists = BRA
				}
				BRA = {
					is_subject_of = ROOT
				}
			}
			else = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					OR = {
						area = neumark_area
						area = mittelmark_area
					}
					value = 6
				}
			}
		}
		effect = {
			add_mil_power = 100
			add_army_tradition = 10
		}
	}
	
	teu_pru_become_an_elector = {
		icon = invest_in_the_provinces
		position = 4
		required_missions = { 
			teu_pru_vassalize_brandenburg
			teu_pru_improve_diplomatic_skills
		}
		provinces_to_highlight = {
			if = {
				limit = { hre_size = 1 }
				owned_by = emperor
			}
			else = {
				region = north_german_region
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			if = {
				limit = {
					hre_size = 1
				}
				OR = {
					AND = {
						is_part_of_hre = yes
						is_elector = yes
					}
					AND = {
						NOT = { hre_size = 1 }
						num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
							region = north_german_region
							value = 20
						}
					}
				}
			}
			else = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = north_german_region
					value = 20
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { government_rank = 2 }
					has_reform = monastic_order_reform
				}
				set_government_rank = 2
			}
			add_prestige = 25
			add_legitimacy_equivalent = {
				amount = 20
				republican_tradition = 10
			}
			add_country_modifier = {
				name = teu_prussian_electorship
				duration = 9125
			}
		}
	}
	
	teu_pru_the_religious_war = {
		icon = back_the_league
		position = 5
		required_missions = { teu_pru_become_an_elector }
		provinces_to_highlight = {
			if = {
				limit = { hre_size = 1 }
				if = {
					limit = {
						has_dlc = "Art of War"
					}
					owned_by = emperor
				}
				else = {
					owner = {
						NOT = { religion = ROOT }
						is_part_of_hre = yes
					}
				}
			}
			else = {
				region = north_german_region
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			if = {
				limit = {
					has_dlc = "Art of War"
					hre_size = 1
				}
				OR = {
					AND = {
						custom_trigger_tooltip = {
							tooltip = obj_religious_league_war_on_winning_side_tooltip
							has_country_flag = religious_league_war_on_winning_side
						}
						hre_religion = ROOT
						hre_religion_locked = yes
					}
					AND = {
						religion = catholic
						custom_trigger_tooltip = {
							tooltip = swe_catholic_30_years_war_ct
							OR = {
								AND = {
									NOT = { has_global_flag = evangelical_union_happened }
									is_year = 1625
								}
								AND = {
									hre_religion_locked = yes
									had_global_flag = {
										flag = evangelical_union_happened
										days = 10950
									}
								}
							}
						}
					}
					AND = {
						NOT = { hre_size = 1 }
						num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
							region = north_german_region
							value = 40
						}
					}
				}
			}
			else_if = {
				limit = {
					NOT = { has_dlc = "Art of War" }
					hre_size = 1
				}
				OR = {
					NOT = { current_age = age_of_discovery }
					NOT = {
						any_known_country = {
							is_part_of_hre = yes
							NOT = { religion = ROOT }
						}
					}
					AND = {
						NOT = { hre_size = 1 }
						num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
							region = north_german_region
							value = 40
						}
					}
				}
			}
			else = {
				NOT = { hre_size = 1 }
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = north_german_region
					value = 40
				}
			}
		}
		effect = {
			if = {
				limit = { religion = catholic }
				add_papal_influence = 100
			}
			else_if = {
				limit = {
					OR = {
						religion = protestant
						religion = anglican
						religion = hussite
					}
				}
				add_church_power = 100
			}
			else_if = {
				limit = { religion = reformed }
				add_fervor = 50
			}
			add_war_exhaustion = -2
			change_ruler_stat = {
				type = mil
				amount = 2
			}
			if = {
				limit = {
					has_dlc = "Art of War"
					hre_size = 1
					has_country_flag = religious_league_war_on_winning_side
				}
				custom_tooltip = teu_pru_30_years_war_tt
				hidden_effect = {
					every_known_country = {
						limit = {
							is_part_of_hre = yes
							religion = ROOT
						}
						add_opinion = {
							who = ROOT
							modifier = teu_supported_our_side_of_the_war
						}
					}
				}
			}
			else_if = {
				limit = {
					has_dlc = "Art of War"
					hre_size = 1
					NOT = {
						OR = {
							AND = {
								has_country_flag = religious_league_war_on_winning_side
								hre_religion = ROOT
								hre_religion_locked = yes
							}
							AND = {
								NOT = { has_global_flag = evangelical_union_happened }
								is_year = 1625
							}
							AND = {
								hre_religion_locked = yes
								had_global_flag = {
									flag = evangelical_union_happened
									days = 10950
								}
							}
						}
					}
				}
				custom_tooltip = teu_pru_30_years_war_at
			}
			else = {
				change_ruler_stat = {
					type = dip
					amount = 1
				}
			}
		}
	}
	
	teu_pru_become_emperor = {
		icon = mission_empire
		position = 6
		required_missions = { 
			teu_pru_the_religious_war
			teu_pru_secularize_the_state
		}		
		provinces_to_highlight = {
			if = {
				limit = { hre_size = 1 }
				OR = {
					AND = {
						owner = { is_emperor = yes }
						root = { is_emperor = no }
					}
					AND = {
						owner = {
							is_elector = yes
							OR = {
								NOT = { preferred_emperor = ROOT }
								NOT = { has_opinion = { who = ROOT value = 100 } }
							}
						}
						NOT = {
							ROOT = {
								calc_true_if = {
									all_elector = {
										preferred_emperor = ROOT
										has_opinion = { who = ROOT value = 100 }
									}
									amount = 5
								}
							}
						}
					}
				}
			}
			else = {
				region = north_german_region
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			if = {
				limit = {
					hre_size = 1
				}
				is_emperor = yes
				calc_true_if = {
					desc = secure_the_imperial_crown.tooltip
					all_elector = {
						preferred_emperor = ROOT
						has_opinion = { who = ROOT value = 100 }
					}
					amount = 5
				}
			}
			else = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = north_german_region
					value = 60
				}
			}
		}
		effect = {
			if = {
				limit = {
					hre_size = 1
				}
				add_country_modifier = {
					name = teu_pru_imperial_crown
					duration = 18250
					desc = UNTIL_NO_MORE_EMPEROR
				}
			}
			else = {
				add_adm_power = 150
			}
		}
	}
	
	teu_pru_unite_the_empire = {
		icon = imperial_ascendancy
		position = 7
		required_missions = { teu_pru_become_emperor }
		provinces_to_highlight = {
			if = {
				limit = { NOT = { hre_size = 1 } }
				OR = {
					region = north_german_region
					region = south_german_region
				}
				NOT = { owned_by = ROOT }
			}
			else = {
				owner = {
					is_part_of_hre = yes
					NOT = {
						has_opinion = {
							who = root
							value = 1
						}
					}
				}
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			if = {
				limit = {
					hre_size = 1
				}
				is_emperor = yes
				if = {
					limit = {
						has_dlc = "Emperor"
					}
					hre_reform_passed = emperor_privilegia_de_non_appelando
				}
				else = {
					hre_reform_passed = privilegia_de_non_appelando
				}
				custom_trigger_tooltip = {
					tooltip = emp_hab_empire_pass_reforms_trigger_tooltip
					NOT = {
						any_country = {
							is_part_of_hre = yes
							NOT = {
								has_opinion = {
									who = root
									value = 1
								}
							}
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = no_hre_province_owned_by_non_hre_member_or_overlord_trigger
					europe = {
						type = all
						OR = {
							is_part_of_hre = no
							AND = {
								is_part_of_hre = yes
								owner = {
									is_part_of_hre = yes
									OR = {
										is_subject = no
										AND = {
											is_subject = yes
											overlord = { is_part_of_hre = yes }
										}
									}
								}
							}
						}
					}
				}
			}
			else = {
				num_of_owned_provinces_with = {
					OR = {
						region = north_german_region
						region = south_german_region
					}
					value = 100
				}
			}
		}
		effect = {
			set_country_flag = pru_imperial_capital
			capital_scope = {
				add_province_triggered_modifier = imperial_prussian_capital
			}
			if = {
				limit = {
					hre_size = 1
				}
				add_country_modifier = {
					name = teu_pru_unifier_of_the_hre
					duration = -1
				}
			}
			else = {
				add_country_modifier = {
					name = teu_pru_blood_and_iron
					duration = -1
				}
				country_event = {
					id = flavor_teu.35
				}
			}
		}
	}
}

teu_pru_diplomatic_seculization_mission_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				was_tag = TEU
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
		}
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_diplomacy_hre_path
	}
	has_country_shield = yes
	
	teu_pru_improve_diplomatic_skills = {
		icon = mission_religious
		position = 3
		required_missions = { }
		provinces_to_highlight = {
			owner = {
				OR = {
					alliance_with = ROOT
					is_subject_of = ROOT
				}
				NOT = {
					has_opinion = {
						who = ROOT
						value = 150
					}
				}
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			diplomatic_reputation = 2
			monthly_dip = 8
			calc_true_if = {
				all_known_country = {
					OR = {
						alliance_with = ROOT
						is_subject_of = ROOT
					}
					has_opinion = {
						who = ROOT
						value = 150
					}
				}
				amount = 5
			}
		}
		effect = {
			change_government_reform_progress = 100
			add_dip_power = 150
			custom_tooltip = teu_pru_improve_diplomatic_skills_tt
			hidden_effect = {
				every_ally = {
					limit = {
						has_opinion = {
							who = ROOT
							value = 150
						}
					}
					add_trust = {
						who = ROOT
						value = 10
						mutual = yes
					}
				}
				every_subject_country = {
					limit = {
						has_opinion = {
							who = ROOT
							value = 150
						}
					}
					add_trust = {
						who = ROOT
						value = 10
						mutual = yes
					}
				}
			}
		}
	}
	
	teu_pru_secularize_the_state = {
		icon = holy_state
		position = 5
		required_missions = { 
			teu_pru_improve_diplomatic_skills
			teu_pru_become_an_elector
		}
		provinces_to_highlight = {
			OR = {
				area = west_prussia_area
				area = east_prussia_area
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			west_prussia_area = {
				owned_by = ROOT
				is_core = ROOT
				type = all
			}
			east_prussia_area = {
				owned_by = ROOT
				is_core = ROOT
				type = all
			}
			adm_tech = 10
			reform_level = 4
			stability = 2
		}
		effect = {
			if = {
				limit = { NOT = { government = monarchy } }
				country_event = {
					id = flavor_teu.26
				}
			}
			add_stability_or_adm_power = yes
			disable_rebels_from_seize_land_for_estate = {
				estate = estate_church
			}
		}
	}
}

#HRE Conquest Path
teu_pru_conquest_hre_mission_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				OR = {
					was_tag = DNZ
					was_tag = TEU
				}
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
			tag = DNZ
		}
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_conquest_hre_path
	}
	has_country_shield = yes
	
	teu_pru_conquer_brandenburg = {
		icon = electorate_of_brandenburg
		position = 3
		required_missions = { }
		provinces_to_highlight = {
			OR = {
				area = neumark_area
				area = mittelmark_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT } 
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = neumark_area
					area = mittelmark_area
				}
				value = 6
			}
		}
		effect = {
			create_general = {
				tradition = 80
			}
			add_yearly_manpower = 0.5
			silesia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			lusatia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_conquer_silesia = {
		icon = mission_unite_home_region
		position = 4
		required_missions = { teu_pru_conquer_brandenburg }
		provinces_to_highlight = {
			OR = {
				area = lusatia_area
				area = silesia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = lusatia_area
					area = silesia_area
				}
				value = 6
			}
			OR = {
				if = {
					limit = { has_updated_culture = { culture = slavic } }
					accepted_culture = schlesian_new
				}
				else = {
					accepted_culture = schlesian
				}
				custom_trigger_tooltip = {
					tooltip = teu_pru_conquer_silesia_at
					NOT = {
						north_german_region = {
							culture = schlesian
							culture = schlesian_new
						}
					}
					NOT = {
						poland_region = {
							culture = schlesian
							culture = schlesian_new
						}
					}
				}
				accepted_culture = sorbian
				custom_trigger_tooltip = {
					tooltip = teu_pru_conquer_silesia_bt
					NOT = {
						north_german_region = {
							culture = sorbian
						}
					}
					NOT = {
						poland_region = {
							culture = sorbian
						}
					}
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "prussian_ambition"
				duration = 7300
			}
			add_dip_power = 100
			south_saxony_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			northern_saxony_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			thuringia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_unite_the_saxons = {
		icon = electorate_of_saxony
		position = 5
		required_missions = { teu_pru_conquer_silesia }
		provinces_to_highlight = {
			OR = {
				area = south_saxony_area
				area = northern_saxony_area
				area = thuringia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			accepted_culture = saxon
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = south_saxony_area
					area = northern_saxony_area
					area = thuringia_area
				}
				value = 8
			}
		}
		effect = {
			add_country_modifier = {
				name = teu_pru_saxon_productivity
				duration = 9125
			}
			upper_franconia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			franconia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			palatinate_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_push_into_southern_germany = {
		icon = claim_tirol
		position = 6
		required_missions = { teu_pru_unite_the_saxons }
		provinces_to_highlight = {
			OR = {
				area = upper_franconia_area
				area = franconia_area
				area = palatinate_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = upper_franconia_area
					area = franconia_area
					area = palatinate_area
				}
				value = 8
			}
		}
		effect = {
			change_government_reform_progress = 100
			alsace_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			upper_rhineland_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			lower_swabia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			upper_swabia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			east_bavaria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			lower_bavaria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			upper_bavaria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_an_empire_of_blood_and_iron = {
		icon = Blood_Iron
		position = 7
		required_missions = { 
			teu_pru_take_over_northern_germany
			teu_pru_push_into_southern_germany
		}
		provinces_to_highlight = {
			OR = {
				area = neumark_area
				area = mittelmark_area
				area = silesia_area
				area = lusatia_area
				area = south_saxony_area
				area = northern_saxony_area
				area = lower_saxony_area
				area = thuringia_area
				area = upper_franconia_area
				area = franconia_area
				area = palatinate_area
				area = alsace_area
				area = upper_rhineland_area
				area = lower_swabia_area
				area = upper_swabia_area
				area = east_bavaria_area
				area = lower_bavaria_area
				area = upper_bavaria_area
				area = vorpommern_area
				area = hinter_pommern_area
				area = mecklenburg_area
				area = holstein_area
				area = braunschweig_area
				area = weser_area
				area = westphalia_area
				area = north_westphalia_area
				area = north_rhine_area
				area = lower_rhineland_area
				area = hesse_area
				province_id = 1931
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_owned_provinces_with = {
				custom_trigger_tooltip = {
					tooltip = teu_pru_an_empire_of_blood_and_iron_tt
					OR = {
						area = neumark_area
						area = mittelmark_area
						area = silesia_area
						area = lusatia_area
						area = south_saxony_area
						area = northern_saxony_area
						area = lower_saxony_area
						area = thuringia_area
						area = upper_franconia_area
						area = franconia_area
						area = palatinate_area
						area = alsace_area
						area = upper_rhineland_area
						area = lower_swabia_area
						area = upper_swabia_area
						area = east_bavaria_area
						area = lower_bavaria_area
						area = upper_bavaria_area
						area = vorpommern_area
						area = hinter_pommern_area
						area = mecklenburg_area
						area = holstein_area
						area = braunschweig_area
						area = weser_area
						area = westphalia_area
						area = north_westphalia_area
						area = north_rhine_area
						area = lower_rhineland_area
						area = hesse_area
						province_id = 1931
					}
				}
				value = 100
			}
			adm_tech = 20
			is_free_or_tributary_trigger = yes
			is_nomad = no
			is_at_war = no
		}
		effect = {
			set_country_flag = pru_imperial_capital
			capital_scope = {
				add_province_triggered_modifier = imperial_prussian_capital
			}
			add_country_modifier = {
				name = teu_pru_blood_and_iron
				duration = -1
			}
			country_event = {
				id = flavor_teu.35
			}
		}
	}
}

teu_pru_secondary_conquest_hre_mission_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				OR = {
					was_tag = DNZ
					was_tag = TEU
				}
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
			tag = DNZ
		}
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_conquest_hre_path
	}
	has_country_shield = yes
	
	teu_pru_push_into_pomarania = {
		icon = mission_hanseatic_city
		position = 3
		required_missions = { }
		provinces_to_highlight = {
			OR = {
				area = vorpommern_area
				area = hinter_pommern_area
				area = mecklenburg_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = vorpommern_area
					area = hinter_pommern_area
					area = mecklenburg_area
				}
				value = 8
			}
		}
		effect = {
			vorpommern_area = {
				limit = {
					owned_by = ROOT
				}
				add_nationalism = -10
			}
			hinter_pommern_area = {
				limit = {
					owned_by = ROOT
				}
				add_nationalism = -10
			}
			mecklenburg_area = {
				limit = {
					owned_by = ROOT
				}
				add_nationalism = -10
			}
			lower_saxony_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			holstein_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			braunschweig_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			weser_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_annex_the_lower_saxons = {
		icon = conquer_lower_saxony
		position = 4
		required_missions = { teu_pru_push_into_pomarania }
		provinces_to_highlight = {
			OR = {
				area = lower_saxony_area
				area = holstein_area
				area = braunschweig_area
				area = weser_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = lower_saxony_area
					area = holstein_area
					area = braunschweig_area
					area = weser_area
				}
				value = 10
			}
		}
		effect = {
			45 = {
				add_trade_modifier = {
					who = ROOT
					duration = 10950
					power = 20
					key = pru_merchants_of_the_hansa
				}
			}
			61 = {
				add_trade_modifier = {
					who = ROOT
					duration = 10950
					power = 20
					key = pru_merchants_of_the_hansa
				}
			}
			add_years_of_trade_income = {
				custom_tooltip = teu_pru_annex_the_lower_saxons_tt
				years = 2
			}
			westphalia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			north_westphalia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = {
					1931 = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
				}
				add_permanent_claim = 1931
			}
		}
	}
	
	teu_pru_annex_western_germany = {
		icon = westphalian_conquest
		position = 5
		required_missions = { 
			teu_pru_annex_the_lower_saxons
		}
		provinces_to_highlight = {
			OR = {
				area = westphalia_area
				area = north_westphalia_area
				province_id = 1931
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = westphalia_area
					area = north_westphalia_area
					province_id = 1931
				}
				value = 6
			}
		}
		effect = {
			add_country_modifier = {
				name = teu_pru_westphalian_uniforms
				duration = 9125
			}
			if = {
				limit = { has_country_modifier = poor_uniforms }
				remove_country_modifier = poor_uniforms
			}
			add_years_of_owned_provinces_production_income = {
				years = 8
				trigger = {
					OR = {
						area = westphalia_area
						area = north_westphalia_area
						province_id = 1931
					}
				}
				custom_tooltip = teu_pru_annex_western_germany_tt
			}
			north_rhine_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			lower_rhineland_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			hesse_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_take_over_northern_germany = {
		icon = ger_kaiserreich
		position = 6
		required_missions = { teu_pru_annex_western_germany }
		provinces_to_highlight = {
			OR = {
				area = north_rhine_area
				area = lower_rhineland_area
				area = hesse_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = north_rhine_area
					area = lower_rhineland_area
					area = hesse_area
				}
				value = 10
			}
		}
		effect = {
			add_adm_power = 200
			add_country_modifier = {
				name = "prussian_rhine"
				duration = 7300
			}
		}
	}
}

#Prussian Kingdom Path (leave the HRE immediately)
teu_pru_kingdom_of_prussia_mission_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				OR = {
					was_tag = DNZ
					was_tag = TEU
				}
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
			tag = DNZ
		}
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_kingdom_prussia_path
	}
	has_country_shield = yes
	
	teu_pru_warsaw_and_krakow = {
		icon = invade_poland
		position = 3
		required_missions = { }
		provinces_to_highlight = {
			OR = {
				province_id = 257
				province_id = 262
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			owns_core_province = 257
			owns_core_province = 262
		}
		effect = {
			mazovia_area = {
				limit = {
					owned_by = ROOT
				}
				add_devastation = -100
				add_nationalism = -5
				add_local_autonomy = -100
			}
			malopolska_area = {
				limit = {
					owned_by = ROOT
				}
				add_devastation = -100
				add_nationalism = -5
				add_local_autonomy = -100
			}
			sandomierz_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			red_ruthenia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_conquer_poland = {
		icon = king_of_poland
		position = 4
		required_missions = { teu_pru_warsaw_and_krakow }
		provinces_to_highlight = {
			OR = {
				area = sandomierz_area
				area = red_ruthenia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = sandomierz_area
					area = red_ruthenia_area
				}
				value = 6
			}
		}
		effect = {
			add_dip_power = 100
			if = {
				limit = { has_updated_culture = { culture = slavic } }
				add_accepted_culture_or_dip_power = { culture = polish_new free = yes }
			}
			else = {
				add_accepted_culture_or_dip_power = { culture = polish free = yes }
			}
			custom_tooltip = teu_pru_conquer_poland_at
			moldavia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_take_over_moldavia = {
		icon = mission_have_two_subjects
		position = 5
		required_missions = { teu_pru_conquer_poland }
		provinces_to_highlight = {
			area = moldavia_area
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			moldavia_area = {
				country_or_non_sovereign_subject_holds = ROOT
				type = all
			}
		}
		effect = {
			add_stability_or_adm_power = yes
			moldavia_area = {
				limit = {
					country_or_non_sovereign_subject_holds = ROOT
				}
				add_base_production = 1
				add_province_modifier = {
					name = teu_pru_wine_and_faith
					duration = 9125
				}
			}
		}
	}
	
	teu_pru_fortify_the_borders = {
		icon = mission_marienburg
		position = 6
		required_missions = { teu_pru_take_over_moldavia }
		provinces_to_highlight = {
			OR = {
				area = wielkopolska_area
				area = central_poland_area
				area = malopolska_area
				area = moldavia_area
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { province_has_current_tech_fort_trigger = yes }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			wielkopolska_area = {
				country_or_non_sovereign_subject_holds = ROOT
				type = all
			}
			central_poland_area = {
				country_or_non_sovereign_subject_holds = ROOT
				type = all
			}
			malopolska_area = {
				country_or_non_sovereign_subject_holds = ROOT
				type = all
			}
			moldavia_area = {
				country_or_non_sovereign_subject_holds = ROOT
				type = all
			}
			wielkopolska_area = { province_has_current_tech_fort_trigger = yes }
			central_poland_area = { province_has_current_tech_fort_trigger = yes }
			malopolska_area = { province_has_current_tech_fort_trigger = yes }
			moldavia_area = { province_has_current_tech_fort_trigger = yes }
		}
		effect = {
			add_army_tradition = 15
			custom_tooltip = teu_pru_fortify_the_borders_ct
			hidden_effect = {
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						province_has_current_tech_fort_trigger = yes
						area = wielkopolska_area
					}
					add_province_modifier = {
						name = teu_pru_fortified_border
						duration = -1
					}
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						province_has_current_tech_fort_trigger = yes
						area = central_poland_area
					}
					add_province_modifier = {
						name = teu_pru_fortified_border
						duration = -1
					}
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						province_has_current_tech_fort_trigger = yes
						area = malopolska_area
					}
					add_province_modifier = {
						name = teu_pru_fortified_border
						duration = -1
					}
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						province_has_current_tech_fort_trigger = yes
						area = moldavia_area
					}
					add_province_modifier = {
						name = teu_pru_fortified_border
						duration = -1
					}
				}
			}
		}
	}
	
	teu_pru_empire_of_the_east = {
		icon = mission_prussian_kaiserreich
		position = 7
		required_missions = { 
			teu_pru_fortify_dnieper
			teu_pru_fortify_the_borders
		}
		provinces_to_highlight = {
			OR = {
				region = baltic_region
				region = poland_region
				region = ruthenia_region
				area = moldavia_area
				area = zaporizhia_area
				area = yedisan_area
			}
			OR = {
				NOT = { is_core = ROOT }
				NOT = { owned_by = ROOT }
				NOT = { has_production_building_trigger = yes }
				NOT = { has_tax_building_trigger = yes }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_owned_provinces_with = {
				OR = {
					region = baltic_region
					region = poland_region
					region = ruthenia_region
					area = moldavia_area
					area = zaporizhia_area
					area = yedisan_area
				}
				is_core = ROOT
				has_production_building_trigger = yes
				has_tax_building_trigger = yes
				value = 80
			}
			NOT = { has_reform = monastic_order_reform }
			stability = 3
			has_any_disaster = no
		}
		effect = {
			if = {
				limit = { NOT = { government_rank = 3 } }
				set_government_rank = 3
			}
			add_power_projection = {
				type = mission_rewards_power_projection
				amount = 100
			}
			add_country_modifier = {
				name = teu_pru_prussian_empire
				duration = -1
			}
			set_country_flag = pru_imperial_capital
			capital_scope = {
				add_province_triggered_modifier = imperial_prussian_capital
			}
		}
	}
}

teu_pru_secondary_kingdom_of_prussia_mission_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				OR = {
					was_tag = DNZ
					was_tag = TEU
				}
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
			tag = DNZ
		}
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_kingdom_prussia_path
	}
	has_country_shield = yes
	
	teu_pru_conquer_lithuania = {
		icon = mission_conquer_lithuania
		position = 3
		required_missions = { }
		provinces_to_highlight = {
			OR = {
				area = samogitia_area
				area = lithuania_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = samogitia_area
					area = lithuania_area
				}
				value = 6
			}
		}
		effect = {
			add_accepted_culture_or_dip_power = { culture = lithuanian free = yes }
			custom_tooltip = teu_pru_conquer_lithuania_at
			minsk_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			pripyat_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			podlasie_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			volhynia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			west_dniepr_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			podolia_volhynia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_push_into_ruthenia = {
		icon = mission_cossack_cavalry
		position = 4
		required_missions = { teu_pru_conquer_lithuania }
		provinces_to_highlight = {
			OR = {
				area = minsk_area
				area = pripyat_area
				area = podlasie_area
				area = volhynia_area
				area = west_dniepr_area
				area = podolia_volhynia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			owns_or_non_sovereign_subject_of = 280
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = minsk_area
					area = pripyat_area
					area = podlasie_area
					area = volhynia_area
					area = west_dniepr_area
					area = podolia_volhynia_area
				}
				value = 16
			}
		}
		effect = {
			country_event = {
				id = flavor_teu.36
			}
			yedisan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			zaporizhia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			ruthenia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_pru_teutonic_ruthenia = {
		icon = mission_develop_kiev
		position = 5
		required_missions = { teu_pru_push_into_ruthenia }
		provinces_to_highlight = {
			OR = {
				region = ruthenia_region
				area = yedisan_area
				area = zaporizhia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = ruthenia_region
					area = yedisan_area
					area = zaporizhia_area
				}
				value = 35
			}
		}
		effect = {
			country_event = {
				id = flavor_teu.45
			}
			if = {
				limit = { has_updated_culture = { culture = slavic } }
				add_accepted_culture_or_dip_power = { culture = ruthenian free = yes }
			}
			custom_tooltip = teu_pru_conquer_poland_bt
		}
	}
	
	teu_pru_fortify_dnieper = {
		icon = fight_bosnian_heresies
		position = 6
		required_missions = { teu_pru_teutonic_ruthenia }
		provinces_to_highlight = {
			OR = {
				province_id = 293
				province_id = 4246
				province_id = 771
				province_id = 292
				province_id = 4115
				province_id = 280
				province_id = 1944
				province_id = 283
				province_id = 2406
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { province_has_current_tech_fort_trigger = yes }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU_PRU }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				custom_trigger_tooltip = {
					tooltip = teu_pru_fortify_dnieper_tt
					OR = {
						province_id = 293
						province_id = 4246
						province_id = 771
						province_id = 292
						province_id = 4115
						province_id = 280
						province_id = 1944
						province_id = 283
						province_id = 2406
					}
					province_has_current_tech_fort_trigger = yes
				}
				value = 3
			}
		}
		effect = {
			define_advisor = {
				type = fortification_expert
				skill = 3
				cost_multiplier = 0.25
			}
			custom_tooltip = teu_pru_fortify_dnieper_ct
			hidden_effect = {
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							province_id = 293
							province_id = 4246
							province_id = 771
							province_id = 292
							province_id = 4115
							province_id = 280
							province_id = 1944
							province_id = 283
							province_id = 2406
						}
						province_has_current_tech_fort_trigger = yes 
						NOT = { has_province_modifier = teu_pru_fortified_border } 
					}
					add_province_modifier = { name = teu_pru_fortified_border duration = -1 }
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							province_id = 293
							province_id = 4246
							province_id = 771
							province_id = 292
							province_id = 4115
							province_id = 280
							province_id = 1944
							province_id = 283
							province_id = 2406
						}
						province_has_current_tech_fort_trigger = yes 
						NOT = { has_province_modifier = teu_pru_fortified_border } 
					}
					add_province_modifier = { name = teu_pru_fortified_border duration = -1 }
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							province_id = 293
							province_id = 4246
							province_id = 771
							province_id = 292
							province_id = 4115
							province_id = 280
							province_id = 1944
							province_id = 283
							province_id = 2406
						}
						province_has_current_tech_fort_trigger = yes 
						NOT = { has_province_modifier = teu_pru_fortified_border } 
					}
					add_province_modifier = { name = teu_pru_fortified_border duration = -1 }
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							province_id = 293
							province_id = 4246
							province_id = 771
							province_id = 292
							province_id = 4115
							province_id = 280
							province_id = 1944
							province_id = 283
							province_id = 2406
						}
						province_has_current_tech_fort_trigger = yes 
						NOT = { has_province_modifier = teu_pru_fortified_border } 
					}
					add_province_modifier = { name = teu_pru_fortified_border duration = -1 }
				}
				random_province = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							province_id = 293
							province_id = 4246
							province_id = 771
							province_id = 292
							province_id = 4115
							province_id = 280
							province_id = 1944
							province_id = 283
							province_id = 2406
						}
						province_has_current_tech_fort_trigger = yes 
						NOT = { has_province_modifier = teu_pru_fortified_border } 
					}
					add_province_modifier = { name = teu_pru_fortified_border duration = -1 }
				}
			}
		}
	}
}

#"Normal" Prussian missions
teu_pru_prussia_mission_slot = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				OR = {
					was_tag = DNZ
					was_tag = TEU
				}
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
			tag = DNZ
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	teu_pru_develop_the_country = {
		icon = develop_our_capital
		position = 3
		required_missions = {  }
		provinces_to_highlight = {
			OR = {
				area = west_prussia_area
				area = east_prussia_area
			}
			OR = {
				NOT = { is_core = ROOT }
				NOT = { owned_by = ROOT }
				NOT = { num_of_times_improved_by_owner = 3 }
				NOT = { has_production_building_trigger = yes }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			west_prussia_area = {
				owned_by = ROOT
				is_core = ROOT
				num_of_times_improved = 3
				has_production_building_trigger = yes
				type = all
			}
			east_prussia_area = {
				owned_by = ROOT
				is_core = ROOT
				num_of_times_improved = 3
				has_production_building_trigger = yes
				type = all
			}
		}
		effect = {
			east_prussia_area = {
				add_local_autonomy = -100
				add_prosperity = 100
				add_province_modifier = {
					name = teu_pru_developed_prussia
					duration = 9125
				}
			}
			west_prussia_area = {
				add_local_autonomy = -100
				add_prosperity = 100
				add_province_modifier = {
					name = teu_pru_developed_prussia
					duration = 9125
				}
			}
		}
	}
	
	teu_pru_reform_the_state = {
		icon = reform_the_state
		position = 4
		required_missions = { teu_pru_develop_the_country }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			reform_level = 7
		}
		effect = {
			if = {
				limit = { NOT = { has_country_flag = pru_legal_reforms_flag } }
				set_country_flag = pru_legal_reforms_flag
				country_event = { id = flavor_brapru.27 }
			}
			else = {
				custom_tooltip = jol_centralize_the_state_ct
				hidden_effect = {
					every_owned_province = {
						limit = {
							local_autonomy = 5
						}
						add_local_autonomy = -100
						ROOT = { add_absolutism = 10 }
					}
				}
				add_legitimacy = 50
			}
		}
	}
	
	teu_pru_an_absolute_kingdom = {
		icon = mission_monarch_in_throne_room
		position = 5
		required_missions = { teu_pru_reform_the_state }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			if = {
				limit = { 
					is_revolutionary = yes
					has_dlc = "Emperor"
				}
				revolutionary_zeal = 80
			}
			else = {
				absolutism = 80
			}
			custom_trigger_tooltip = {
				tooltip = teu_pru_an_absolute_kingdom_tt
				OR = {
					has_country_modifier = crushed_local_authority
					has_country_modifier = central_authority_asserted
					AND = {
						NOT = { current_age = age_of_absolutism }
						is_absolutism_active = yes
					}
				}
			}
		}
		effect = {
			change_ruler_stat = {
				type = adm
				amount = 1
			}
			change_ruler_stat = {
				type = dip
				amount = 1
			}
			change_ruler_stat = {
				type = mil
				amount = 1
			}
		}
	}
	
	teu_pru_prussian_enlightenment = {
		icon = enlightened_absolutism
		position = 6
		required_missions = { teu_pru_an_absolute_kingdom }
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_building = university }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			has_institution = enlightenment
			university = 20
		}
		effect = {
			add_country_modifier = {
				name = teu_pru_prussian_enlightenment_modifier
				duration = -1
			}
			remove_comet_sighted_events = yes
		}
	}
	
	teu_pru_crush_the_republics = {
		icon = crush_the_revolution
		position = 7
		required_missions = { teu_pru_prussian_enlightenment }
		provinces_to_highlight = {
			is_capital = yes
			owner = {
				is_revolution_target = yes
				NOT = { tag = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			OR = {
				has_reform = revolutionary_empire_reform
				has_reform = revolutionary_republic_reform
				custom_trigger_tooltip = {
					tooltip = center_of_revolution.3000.A.tt
					has_global_flag = no_more_revolutions_ever
				}
				any_known_country = {
					is_revolution_target = yes
					war_with = ROOT
					capital_scope = {
						controlled_by = ROOT
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					OR = {
						has_reform = revolutionary_empire_reform
						has_reform = revolutionary_republic_reform
					}
				}
				add_country_modifier = {
					name = teu_pru_embraced_the_revolution
					duration = -1
				}
			}
			else = {
				add_country_modifier = {
					name = teu_pru_crushed_the_revolution
					duration = -1
				}
			}
		}
	}
}

teu_pru_military_mission_slot = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				OR = {
					was_tag = DNZ
					was_tag = TEU
				}
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
			tag = DNZ
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	teu_pru_army_reforms = {
		icon = army_reforms
		position = 3
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			has_mil_advisor_2 = yes
			has_global_modifier_value = {
				which = discipline
				value = 0.2
			}
		}
		effect = {
			set_country_flag = brapru_army_reforms_2
			country_event = { id = flavor_brapru.6 }
		}
	}
	
	teu_pru_disciplined_army = {
		icon = empower_the_junkers
		position = 4
		required_missions = { teu_pru_army_reforms }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				army_professionalism = 0.5
			}
			else = {
				army_tradition = 50
			}
			has_commanding_three_star = yes
			if = {
				limit = {
					has_estate = estate_nobles
				}
				estate_influence = {
					estate = estate_nobles
					influence = 60
				}
			}
			else = {
				crown_land_share = 70
			}
			if = {
				limit = {
					has_estate = estate_nobles
					OR = {
						has_reform = prussian_monarchy
						has_reform = prussian_monarchy_base
						has_reform = prussian_republic_reform
					}
				}
				has_estate_privilege = estate_nobles_junker_primacy
			}
		}
		effect = {
			add_country_modifier = {
				name = teu_pru_nobles_in_general_positions
				duration = -1
			}
		}
	}

	teu_pru_proof_of_strength = {
		icon = a_show_of_strength
		position = 5
		required_missions = { teu_pru_disciplined_army }
		provinces_to_highlight = {
			owner = {
				OR = {
					land_forcelimit = ROOT
					total_development = ROOT
				}
				NOT = { tag = ROOT }
				NOT = { is_subject_of = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				army_professionalism = 0.75
			}
			else = {
				army_tradition = 75
			}
			OR = {
				any_country = {
					war_with = ROOT
					OR = {
						land_forcelimit = ROOT
						custom_trigger_tooltip = {
							tooltip = teu_pru_proof_of_strength_bt
							total_development = ROOT
						}
					}
					custom_trigger_tooltip = {
						tooltip = teu_pru_proof_of_strength_tt
						current_war_losses = {
							type = soldiers
							cause = battle
							amount = 60000
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = teu_pru_proof_of_strength_ct
					NOT = {
						any_country = {
							land_forcelimit = ROOT
							total_development = ROOT
						}
					}
				}
			}
		}
		effect = {
			add_splendor = 800
			add_power_projection = {
				type = mission_rewards_power_projection
				amount = 50
			}
			add_army_tradition = 20
			add_army_professionalism = 0.05
		}
	}
	
	teu_pru_an_army_with_a_state = {
		icon = an_army_with_a_state
		position = 6
		required_missions = { 
			teu_pru_manufactories_for_prussia
			teu_pru_proof_of_strength
		}
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			army_size = 20 # modified
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				army_professionalism = 1
			}
			else = {
				army_tradition = 100
			}
		}
		effect = {
			set_country_flag = brapru_army_reforms_3
			country_event = { id = flavor_brapru.29 }
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				add_country_modifier = {
					name = "pru_space_marines"
					duration = -1
				}
			}
			else = {
				add_country_modifier = {
					name = "pru_space_marines_2"
					duration = -1
				}
			}
		}
	}
}

teu_pru_development_mission_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		OR = {
			AND = {
				OR = {
					was_tag = DNZ
					was_tag = TEU
				}
				tag = PRU
			}
			AND = {
				tag = TEU
				has_country_flag = teu_prussian_path
			}
			tag = DNZ
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	teu_pru_a_prussian_navy = {
		icon = mission_establish_high_seas_navy
		position = 1
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			naval_forcelimit = 25
			navy_size_percentage = 1
		}
		effect = {
			create_admiral = {
				tradition = 70
			}
			add_country_modifier = {
				name = teu_pru_prussian_navy
				duration = 9125
			}
		}
	}
	
	teu_pru_strengthen_mercantilism = {
		icon = mission_dominate_home_trade_node
		position = 2
		required_missions = { teu_pru_a_prussian_navy }
		provinces_to_highlight = {
			OR = {
				area = west_prussia_area
				area = east_prussia_area
				area = samogitia_area
				area = curonia_area
				area = livonia_area
				area = estonia_ingria_area
			}
			OR = {
				has_river_estuary_trigger = yes
				province_has_center_of_trade_of_level = 1
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
				NOT = { has_trade_building_trigger = yes }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			custom_trigger_tooltip = {
				tooltip = teu_pru_strengthen_mercantilism_tt
				num_of_owned_provinces_with = {
					OR = {
						area = west_prussia_area
						area = east_prussia_area
						area = samogitia_area
						area = curonia_area
						area = livonia_area
						area = estonia_ingria_area
					}
					OR = {
						has_river_estuary_trigger = yes
						province_has_center_of_trade_of_level = 1
					}
					is_core = ROOT
					has_trade_building_trigger = yes
					value = 4
				}
			}
		}
		effect = {
			define_advisor = {
				type = trader
				skill = 2
				cost_multiplier = 0.25
			}
			define_advisor = {
				type = master_of_mint
				skill = 2
				cost_multiplier = 0.25
			}
		}
	}
	
	teu_pru_dominate_baltic_trade = {
		icon = reform_the_monte
		position = 4
		required_missions = { teu_pru_strengthen_mercantilism }
		provinces_to_highlight = {
			province_id = 1926
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			1926 = {
				trade_share = {
					country = ROOT
					share = 75
				}
			}
		}
		effect = {
			add_mercantilism = 10
			1926 = {
				add_trade_node_income = 50
			}
		}
	}
	
	teu_pru_manufactories_for_prussia = {
		icon = mission_industrial_forging
		position = 5
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			num_of_owned_provinces_with = {
				has_manufactory_trigger = yes
				base_production = 6
				value = 15
			}
		}
		effect = {
			add_years_of_owned_provinces_production_income = {
				years = 1
				trigger = {
					has_manufactory_trigger = yes
					base_production = 6
				}
				custom_tooltip = teu_pru_manufactories_for_prussia_tt
			}
		}
	}
	
	teu_pru_employ_advisors = {
		icon = establish_the_chancellorship
		position = 6
		required_missions = {  }
		provinces_to_highlight = {
			is_capital_of = ROOT
			NOT = { has_courthouse_building_trigger = yes }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			capital_scope = {
				has_courthouse_building_trigger = yes
			}
			is_in_deficit = no
			custom_trigger_tooltip = {
				tooltip = ger_chancellor_tt
				has_mil_advisor_3 = yes
				has_adm_advisor_3 = yes
				has_dip_advisor_3 = yes
			}
		}
		effect = {
			add_adm_power = 75
			add_dip_power = 75
			add_mil_power = 75
			add_country_modifier = {
				name = teu_pru_expanded_cabinet
				duration = 9125
			}
		}
	}
	
	teu_pru_develop_konigsberg = {
		icon = develop_konigsberg
		position = 7
		required_missions = { teu_pru_employ_advisors }
		provinces_to_highlight = {
			province_id = 41
			OR = {
				NOT = { is_core = ROOT }
				NOT = { owned_by = ROOT }
				NOT = { development = 30 }
				NOT = { is_capital_of = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			owns_core_province = 41
			41 = { 
				development = 30
				is_capital_of = ROOT
			}
		}
		effect = {
			set_country_flag = konigsberg_university_flag
			country_event = { id = flavor_brapru.11 }
		}
	}
}

#Crusader Path

teu_crusader_russia_mission_slot = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_crusader_path
	}
	has_country_shield = yes
	
	teu_crusader_clergy_influence = {
		icon = control_the_church
		position = 2
		required_missions = { teu_livonian_alliance }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			if = {
				limit = {
					has_estate = estate_church
				}
				estate_influence = {
					estate = estate_church
					influence = 50
				}
				estate_loyalty = {
					estate = estate_church
					loyalty = 60
				}
				num_of_estate_privileges = {
					estate = estate_church
					value = 3
				}
			}
			else = {
				NOT = { has_estate = estate_church }
			}
		}
		effect = {
			unlock_estate_privilege = { estate_privilege = estate_church_anti_heresy_act }
			karelia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			novgorod_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			pskov_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_crusader_conquer_novgorod = {
		icon = mission_conquer_novgorod
		position = 3
		required_missions = { 
			teu_crusader_clergy_influence
			teu_strengthen_livonia
		}
		provinces_to_highlight = {
			OR = {
				area = karelia_area
				area = pskov_area
				area = novgorod_area
			}
			NOT = {
				owner = {
					religion = catholic
					OR = {
						tag = ROOT
						alliance_with = ROOT
						is_subject_of = ROOT
					}
				}
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			33 = { owner = { religion = catholic } }
			310 = { owner = { religion = catholic } }
			calc_true_if = {
				all_province = {
					OR = {
						area = karelia_area
						area = pskov_area
						area = novgorod_area
					}
					owner = {
						religion = catholic
						OR = {
							tag = ROOT
							alliance_with = ROOT
							is_subject_of = ROOT
						}
					}
				}
				amount = 8
			}
		}
		effect = {
			change_government_reform_progress = 100
			moscow_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			tver_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			vladimir_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_crusader_third_rome = {
		icon = mission_fall_of_third_rome
		position = 4
		required_missions = { teu_crusader_conquer_novgorod }
		provinces_to_highlight = {
			province_id = 295
			OR = {
				NOT = { is_core = ROOT }
				NOT = { owned_by = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			295 = {
				OR = {
					AND = {
						is_core = ROOT
						owned_by = ROOT
					}
					owner = {
						religion = catholic
						alliance_with = ROOT
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					owns_core_province = 295
				}
				country_event = {
					id = flavor_teu.37
				}
			}
			else_if = {
				limit = {
					295 = {
						owner = {
							religion = catholic
							alliance_with = ROOT
						}
					}
				}
				add_dip_power = 100
			}
			else = {
				custom_tooltip = teu_crusader_third_rome_tt
			}
			russia_region = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_crusader_end_the_schism = {
		icon = end_the_schism
		position = 5
		required_missions = { teu_crusader_third_rome }
		provinces_to_highlight = {
			region = russia_region
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { religion = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			OR = {
				AND = {
					295 = {
						owner = { religion = catholic }
						religion = ROOT
					}
					33 = {
						owner = { religion = catholic }
						religion = ROOT
					}
					310 = {
						owner = { religion = catholic }
						religion = ROOT
					}
					calc_true_if = {
						all_province = {
							region = russia_region
							religion = catholic
							owner = {
								religion = ROOT
								OR = {
									tag = ROOT
									is_subject_of = ROOT
									alliance_with = ROOT
								}
							}
						}
						amount = 40
					}
				}
				custom_trigger_tooltip = {
					tooltip = catholics_healed_schism_tt
					has_global_flag = catholics_healed_schism
				}
			}
		}
		effect = {
			if = {
				limit = { NOT = { has_global_flag = catholics_healed_schism } }
				custom_tooltip = teu_crusader_end_the_schism_tt
				hidden_effect = {
					set_global_flag = catholics_healed_schism
					every_country = {
						limit = { 
							religion = orthodox 
							knows_country = ROOT
						}
						country_event = { id = flavor_teu.38 }
					}
				}
			}
			else = {
				add_papal_influence = 100
			}
			add_country_modifier = {
				name = teu_crusade_end_of_the_schism
				duration = -1
			}
		}
	}
	
	teu_crusader_land_of_churches = {
		icon = mission_land_of_churches
		position = 6
		required_missions = {  }
		provinces_to_highlight = {
			owned_by = ROOT
			OR = {
				NOT = { has_tax_building_trigger = yes }
				NOT = { religion = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			num_of_owned_provinces_with = {
				religion = ROOT
				has_tax_building_trigger = yes
				value = 15
			}
		}
		effect = {
			add_papal_influence = 25
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 10
			}
			if = {
				limit = { exists = PAP }
				reverse_add_opinion = {
					who = PAP
					modifier = teu_constructed_churches_for_papacy
				}
			}
		}
	}
	
	teu_crusader_build_cathedrals = {
		icon = mission_european_church
		position = 7
		required_missions = { teu_crusader_land_of_churches }
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_building = cathedral }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			cathedral = 10
			theologian = 3
		}
		effect = {
			custom_tooltip = teu_crusader_build_cathedrals_tt
			hidden_effect = {
				every_owned_province = {
					limit = { has_building = cathedral }
					add_province_modifier = {
						name = teu_crusade_teutonic_cathedral
						duration = 9125
					}
					owner = { add_papal_influence = 5 }
				}
			}
		}
	}
}

teu_crusader_more_conquest_mission_slot = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_crusader_path
	}
	has_country_shield = yes
	
	teu_crusader_lithuanian_crusade = {
		icon = mission_conquer_lithuania
		position = 3
		required_missions = { teu_defeat_the_poles }
		provinces_to_highlight = {
			OR = {
				area = samogitia_area
				area = lithuania_area
			}
			OR = {
				NOT = { religion = ROOT }
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = samogitia_area
					area = lithuania_area
				}
				religion = ROOT
				value = 5
			}
		}
		effect = {
			add_army_tradition = 20
			add_devotion = 25
			if = {
				limit = {
					NOT = { mission_completed = teu_crusader_conquer_poland }
				}
				ruthenia_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
			else = {
				add_adm_power = 150
			}
			crimea_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = { NOT = { has_country_modifier = teu_crusade_zeal_of_the_crusader } }
				add_country_modifier = {
					name = teu_crusade_zeal_of_the_crusader
					duration = 9125
				}
			}
			else = {
				add_yearly_manpower = 0.25
			}
		}
	}
	
	teu_crusader_conquer_crimea = {
		icon = mission_lit_harness_steppes
		position = 4
		required_missions = { teu_crusader_lithuanian_crusade }
		provinces_to_highlight = {
			region = crimea_region
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { religion = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = crimea_region
				religion = ROOT
				value = 15
			}
		}
		effect = {
			add_country_modifier = {
				name = teu_crusade_horses_of_the_steppes
				duration = 9125
			}
			circassia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			dagestan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = {
					mission_completed = teu_crusader_push_into_ruthenia
				}
				ural_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
			else = {
				add_adm_power = 100
			}
		}
	}
	
	teu_crusader_fortify_the_caucasus = {
		icon = mission_castle_construction
		position = 5
		required_missions = { teu_crusader_conquer_crimea }
		provinces_to_highlight = {
			OR = {
				province_id = 463
				province_id = 4306
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { religion = ROOT }
				NOT = { province_has_current_tech_fort_trigger = yes }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			owns_or_non_sovereign_subject_of = 463
			owns_or_non_sovereign_subject_of = 4306
			463 = {
				religion = ROOT
				province_has_current_tech_fort_trigger = yes
			}
			4306 = {
				religion = ROOT
				province_has_current_tech_fort_trigger = yes
			}
		}
		effect = {
			define_advisor = {
				type = fortification_expert
				skill = 3
				cost_multiplier = 0.1
				religion = ROOT
			}
			463 = {
				add_province_modifier = {
					name = teu_pru_fortified_border
					duration = -1
				}
			}
			4306 = {
				add_province_modifier = {
					name = teu_pru_fortified_border
					duration = -1
				}
			}
		}
	}
	
	teu_crusader_bulwark_against_the_turks = {
		icon = mission_ottoman_diplomacy
		position = 6
		required_missions = { teu_crusader_fortify_the_caucasus }
		provinces_to_highlight = {
			is_capital_of = TUR
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			OR = {
				NOT = { exists = TUR }
				has_won_war_against = {
					who = TUR
					max_years_since = 100
				}
			}
			is_defender_of_faith = yes
		}
		effect = {
			if = {
				limit = { exists = TUR }
				country_event = {
					id = flavor_teu.40
				}
			}
			else = {
				add_country_modifier = {
					name = teu_crusade_ottomans_vanquished
					duration = -1
				}
			}
		}
	}
}

teu_crusader_eastern_conquest_mission_slot = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_crusader_path
	}
	has_country_shield = yes
	
	teu_crusader_conquer_poland = {
		icon = mission_unite_home_region
		position = 3
		required_missions = { teu_defeat_the_poles }
		provinces_to_highlight = {
			region = poland_region
			OR = {
				NOT = { religion = ROOT }
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = poland_region
				religion = ROOT
				value = 20
			}
		}
		effect = {
			add_yearly_manpower = 2
			add_army_tradition = 10
			if = {
				limit = {
					NOT = { mission_completed = teu_crusader_lithuanian_crusade }
				}
				ruthenia_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
			else = {
				add_adm_power = 150
			}
			if = {
				limit = { NOT = { has_country_modifier = teu_crusade_zeal_of_the_crusader } }
				add_country_modifier = {
					name = teu_crusade_zeal_of_the_crusader
					duration = 9125
				}
			}
			else = {
				add_mil_power = 50
			}
		}
	}
	
	teu_crusader_push_into_ruthenia = {
		icon = mission_pol_breadbasket_europe
		position = 4
		required_missions = { 
			teu_crusader_conquer_poland
			teu_crusader_lithuanian_crusade
		}
		provinces_to_highlight = {
			region = ruthenia_region
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { religion = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = ruthenia_region
				religion = ROOT
				value = 25
			}
		}
		effect = {
			country_event = {
				id = flavor_teu.39
			}
			if = {
				limit = {
					mission_completed = teu_crusader_conquer_crimea
				}
				ural_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
			else = {
				add_adm_power = 100
			}
		}
	}
	
	teu_crusader_eliminate_the_great_horde = {
		icon = mission_non-western_cavalry_raid
		position = 5
		required_missions = { 
			teu_crusader_conquer_crimea
			teu_crusader_push_into_ruthenia
		}
		provinces_to_highlight = {
			region = ural_region
			OR = {
				NOT = { religion = ROOT }
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = ural_region
				religion = ROOT
				value = 20
			}
		}
		effect = {
			add_army_professionalism = 0.05
			add_papal_influence = 50
			central_asia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_crusader_steppes_crusade = {
		icon = mission_chinese_general_riding
		position = 6
		required_missions = { teu_crusader_eliminate_the_great_horde }
		provinces_to_highlight = {
			region = central_asia_region
			OR = {
				NOT = { religion = ROOT }
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = central_asia_region
				religion = ROOT
				value = 20
			}
		}
		effect = {
			add_treasury = 1000
			add_manpower = 10
			add_years_of_owned_provinces_production_income = {
				years = 4
				trigger = {
					religion = ROOT
					OR = {
						region = ural_region
						region = crimea_region
						region = central_asia_region
					}
				}
				custom_tooltip = teu_crusader_steppes_crusade_tt
			}
			add_years_of_owned_provinces_manpower = {
				years = 4
				trigger = {
					religion = ROOT
					OR = {
						region = ural_region
						region = crimea_region
						region = central_asia_region
					}
				}
				custom_tooltip = teu_crusader_steppes_crusade_tt
			}
		}
	}
	
	teu_crusader_a_holy_horde = {
		icon = mission_holy_horde
		position = 7
		required_missions = { 
			teu_crusader_steppes_crusade 
			teu_crusader_mil_reform_4
		}
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			religious_unity = 0.8
			num_of_cities = 100
			cavalry_fraction = 0.5
			army_size = 35 # modified
		}
		effect = {
			country_event = {
				id = flavor_teu.41
			}
		}
	}
}

teu_crusader_military_mission_slot = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_crusader_path
	}
	has_country_shield = yes
	
	teu_crusader_mil_reform_1 = {
		icon = mission_united_knight_order
		position = 3
		required_missions = { teu_build_to_force_limit }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			custom_trigger_tooltip = {
				tooltip = teu_crusader_mil_reform_1_tt
				check_variable = {
					which = num_won_battles
					value = 20
				}
			}
		}
		effect = {
			add_army_tradition = 10
			add_country_modifier = {
				name = teu_crusader_mil_reform_1_mod
				duration = -1
			}
		}
	}
	
	teu_crusader_mil_reform_2 = {
		icon = mission_knight
		position = 4
		required_missions = {
			teu_crusader_conquer_poland
			teu_crusader_mil_reform_1
		}
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				army_professionalism = 0.3
			}
			else = {
				army_tradition = 40
			}
			has_mil_advisor_2 = yes
		}
		effect = {
			add_mil_power = 100
			if = {
				limit = {
					has_country_modifier = teu_crusader_mil_reform_1_mod
				}
				custom_tooltip = teu_crusader_mil_reform_2_tt
				hidden_effect = {
					remove_country_modifier = teu_crusader_mil_reform_1_mod
				}
			}
			add_country_modifier = {
				name = teu_crusader_mil_reform_2_mod
				duration = -1
			}
		}
	}
	
	teu_crusader_mil_reform_3 = {
		icon = mission_teutonic_lancer
		position = 5
		required_missions = { 
			teu_crusader_push_into_ruthenia
			teu_crusader_mil_reform_2
		}
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			num_of_generals = 2
			has_completed_idea_group_of_category = {
				mil_ideas = yes
			}
			num_of_cavalry = 10 # modified
		}
		effect = {
			define_advisor = {
				type = commandant
				skill = 3
				cost_multiplier = 0.25
			}
			if = {
				limit = {
					has_country_modifier = teu_crusader_mil_reform_2_mod
				}
				custom_tooltip = teu_crusader_mil_reform_3_tt
				hidden_effect = {
					remove_country_modifier = teu_crusader_mil_reform_2_mod
				}
			}
			add_country_modifier = {
				name = teu_crusader_mil_reform_3_mod
				duration = -1
			}
		}
	}
	
	teu_crusader_mil_reform_4 = {
		icon = mission_teutonic_riders
		position = 6
		required_missions = { 
			teu_crusader_eliminate_the_great_horde
			teu_crusader_mil_reform_3
		}
		provinces_to_highlight = {
			owned_by = ROOT
			OR = {
				NOT = { has_building = barracks }
				NOT = { has_building = training_fields }
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			OR = {
				barracks = 8
				training_fields = 8
			}
			grain = 20
			monthly_mil = 10
			num_of_cavalry = 20 # modified
		}
		effect = {
			add_army_professionalism = 0.1
			add_army_tradition = 20
			if = {
				limit = {
					has_country_modifier = teu_crusader_mil_reform_3_mod
				}
				custom_tooltip = teu_crusader_mil_reform_4_tt
				hidden_effect = {
					remove_country_modifier = teu_crusader_mil_reform_3_mod
				}
			}
			add_country_modifier = {
				name = teu_crusader_mil_reform_4_mod
				duration = -1
			}
		}
	}
}

teu_crusader_development_mission_slot = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		has_country_flag = teu_crusader_path
	}
	has_country_shield = yes
	
	teu_crusader_secure_papal_alliance = {
		icon = answer_the_roman_question
		position = 1
		required_missions = {  }
		provinces_to_highlight = {
			is_capital_of = PAP
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			if = {
				limit = {
					exists = PAP
				}
				alliance_with = PAP
				OR = {
					AND = {
						num_of_cardinals = 1
						invested_papal_influence = 30
					}
					AND = {
						calc_true_if = {
							has_country_modifier = papal_sanction_for_church_taxes
							has_country_modifier = papal_blessing
							has_country_modifier = papal_indulgence
							has_country_modifier = usury_forgiven
							has_country_modifier = papal_sanction_for_holy_war
							amount = 2
						}
					}
				}
			}
			else = {
				calc_true_if = {
					has_country_modifier = papal_sanction_for_church_taxes
					has_country_modifier = papal_blessing
					has_country_modifier = papal_indulgence
					has_country_modifier = usury_forgiven
					has_country_modifier = papal_sanction_for_holy_war
					amount = 2
				}
			}
		}
		effect = {
			add_papal_influence = 75
			define_advisor = {
				type = inquisitor
				skill = 1
				religion = ROOT
				discount = yes
			}
		}
	}
	
	teu_crusader_embrace_religious_ideas = {
		icon = show_piety
		position = 2
		required_missions = { teu_crusader_secure_papal_alliance }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			OR = {
				full_idea_group = religious_ideas
				full_idea_group = theocracy_gov_ideas
			}
			OR = {
				inquisitor = 3
				theologian = 3
			}
			if = { 
				limit = { has_dlc = "Common Sense" }
				legitimacy_equivalent = 100
			}
			else = { stability = 2 }
		}
		effect = {
			if = {
				limit = {
					full_idea_group = religious_ideas
				}
				change_ruler_stat = {
					type = adm
					amount = 2
				}
			}
			else = {
				custom_tooltip = teu_crusader_embrace_religious_ideas_at
			}
			if = {
				limit = {
					full_idea_group = theocracy_gov_ideas
				}
				change_ruler_stat = {
					type = mil
					amount = 2
				}
			}
			else = {
				custom_tooltip = teu_crusader_embrace_religious_ideas_bt
			}
		}
	}
	
	teu_crusader_convert_provinces = {
		icon = spread_piety
		position = 3
		required_missions = { teu_crusader_embrace_religious_ideas }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			custom_trigger_tooltip = {
				tooltip = teu_crusader_convert_provinces_tt
				check_variable = {
					which = num_converted_religion
					value = 75
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = teu_crusader_the_great_missionaries
				duration = 36500
			}
		}
	}
	
	teu_crusader_gain_income = {
		icon = mission_high_income
		position = 4
		required_missions = { }
		provinces_to_highlight = {}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			share_of_starting_income = 2
			is_in_deficit = no
			NOT = { num_of_loans = 1 }
			NOT = { corruption = 1 }
			stability = 2
		}
		effect = {
			capital_scope = {
				add_base_tax = 1
				add_base_production = 1
				add_base_manpower = 1
				area = {
					limit = { owned_by = ROOT }
					add_province_modifier = {
						name = "growth_of_capital"
						duration = 9125 #25 years
					}
				}
			}
			add_country_modifier = {
				name = "growing_economy"
				duration = 9125
			}
		}
	}
	
	teu_crusader_castle_expertise = {
		icon = mission_marienburg
		position = 5
		required_missions = { teu_crusader_gain_income }
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { province_has_current_tech_fort_trigger = yes }
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			num_of_owned_provinces_with = {
				province_has_current_tech_fort_trigger = yes
				value = 25
			}
			fortification_expert = 3
		}
		effect = {
			add_country_modifier = {
				name = teu_crusader_a_fortified_order
				duration = 36500
			}
		}
	}
	
	teu_crusader_survive_the_reformation = {
		icon = counter_reformation
		position = 6
		required_missions = { }
		provinces_to_highlight = {
			owned_by = ROOT
			OR = {
				religion = hussite
				religion = protestant
				religion = reformed
				religion = anglican
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			religious_unity = 0.9
			NOT = { current_age = age_of_discovery }
			NOT = {
				any_owned_province = {
					OR = {
						religion = hussite
						religion = protestant
						religion = reformed
						religion = anglican
					}
				}
			}
			OR = {
				has_country_modifier = counter_reformation
				NOT = { current_age = age_of_reformation }
			}
		}
		effect = {
			custom_tooltip = can_always_embrace_the_counter_reformation_tt
			set_country_flag = can_always_embrace_the_counter_reformation
		}
	}
	
	teu_crusader_destroy_the_heresies = {
		icon = crush_heretic_strongholds
		position = 7
		required_missions = { teu_crusader_survive_the_reformation }
		provinces_to_highlight = {
			OR = {
				AND = {
					continent = europe
					is_reformation_center = yes
				}
				owner = {
					capital_scope = {
						continent = europe
					}
					OR = {
						religion = protestant
						religion = reformed
					}
				}
			}
		}
		trigger = {
			not_in_mission_preview_mode = { key = TEU }
			religion = catholic
			NOT = { current_age = age_of_discovery }
			OR = {
				NOT = { current_age = age_of_reformation }
				custom_trigger_tooltip = {
					tooltip = teu_crusader_destroy_the_heresies_at
					NOT = {
						europe = {
							is_reformation_center = yes
						}
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = teu_crusader_destroy_the_heresies_bt
				NOT = {
					europe = {
						owner = {
							OR = {
								religion = protestant
								religion = reformed
							}
						}
					}
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = teu_crusader_crushed_the_reformation
				duration = -1
			}
		}
	}
}

#Dummy Missions

teu_dummy_mission_slot_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = teu_crusader_path }
		NOT = { has_country_flag = teu_prussian_path }
	}
	has_country_shield = yes
	
	teu_dummy_mission_1 = {
		icon = mission_unknown_mission
		position = 2
		required_missions = { teu_seek_imperial_protection }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					has_adm_advisor = yes
					has_dip_advisor = yes
					has_mil_advisor = yes
					if = {
						limit = {
							has_estate = estate_church
						}
						estate_loyalty = {
							estate = estate_church
							loyalty = 60
						}
					}
					if = {
						limit = {
							has_estate = estate_burghers
						}
						estate_loyalty = {
							estate = estate_burghers
							loyalty = 60
						}
					}
					if = {
						limit = {
							has_estate = estate_nobles
						}
						estate_loyalty = {
							estate = estate_nobles
							loyalty = 60
						}
					}
					is_at_war = no
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					if = {
						limit = {
							has_estate = estate_church
						}
						estate_influence = {
							estate = estate_church
							influence = 50
						}
						estate_loyalty = {
							estate = estate_church
							loyalty = 60
						}
						num_of_estate_privileges = {
							estate = estate_church
							value = 3
						}
					}
					else = {
						NOT = { has_estate = estate_church }
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			if = {
				limit = {
					hre_size = 1
				}
				country_event = {
					id = flavor_teu.11
				}
			}
			else = {
				country_event = {
					id = flavor_teu.18
				}
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			unlock_estate_privilege = { estate_privilege = estate_church_anti_heresy_act }
			karelia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			novgorod_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			pskov_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_dummy_mission_2 = {
		icon = mission_unknown_mission
		position = 3
		required_missions = { teu_dummy_mission_1 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = branching_path_mission_condition
						always = no
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					33 = { owner = { religion = catholic } }
					310 = { owner = { religion = catholic } }
					calc_true_if = {
						all_province = {
							OR = {
								area = karelia_area
								area = pskov_area
								area = novgorod_area
							}
							owner = {
								religion = catholic
								OR = {
									tag = ROOT
									alliance_with = ROOT
									is_subject_of = ROOT
								}
							}
						}
						amount = 8
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			custom_tooltip = branching_path_mission_effects
			custom_tooltip = teu_crsuader_path_effects_tt
			change_government_reform_progress = 100
			moscow_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			tver_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			vladimir_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_dummy_mission_3 = {
		icon = mission_unknown_mission
		position = 4
		required_missions = { teu_dummy_mission_2 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = branching_path_mission_condition
						always = no
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					295 = {
						OR = {
							AND = {
								is_core = ROOT
								owned_by = ROOT
							}
							owner = {
								religion = catholic
								alliance_with = ROOT
							}
						}
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			custom_tooltip = branching_path_mission_effects
			custom_tooltip = teu_crsuader_path_effects_tt
			if = {
				limit = {
					owns_core_province = 295
				}
				country_event = {
					id = flavor_teu.37
				}
			}
			else_if = {
				limit = {
					295 = {
						owner = {
							religion = catholic
							alliance_with = ROOT
						}
					}
				}
				add_dip_power = 100
			}
			else = {
				custom_tooltip = teu_crusader_third_rome_tt
			}
			russia_region = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_dummy_mission_4 = {
		icon = mission_unknown_mission
		position = 5
		required_missions = { teu_dummy_mission_3 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = branching_path_mission_condition
						always = no
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					OR = {
						AND = {
							295 = {
								owner = { religion = catholic }
								religion = ROOT
							}
							33 = {
								owner = { religion = catholic }
								religion = ROOT
							}
							310 = {
								owner = { religion = catholic }
								religion = ROOT
							}
							calc_true_if = {
								all_province = {
									region = russia_region
									religion = catholic
									owner = {
										religion = ROOT
										OR = {
											tag = ROOT
											is_subject_of = ROOT
											alliance_with = ROOT
										}
									}
								}
								amount = 40
							}
						}
						custom_trigger_tooltip = {
							tooltip = catholics_healed_schism_tt
							has_global_flag = catholics_healed_schism
						}
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			custom_tooltip = branching_path_mission_effects
			custom_tooltip = teu_crsuader_path_effects_tt
			if = {
				limit = { NOT = { has_global_flag = catholics_healed_schism } }
				custom_tooltip = teu_crusader_end_the_schism_tt
				hidden_effect = {
					set_global_flag = catholics_healed_schism
					every_country = {
						limit = { 
							religion = orthodox 
							knows_country = ROOT
						}
						country_event = { id = flavor_teu.38 }
					}
				}
			}
			else = {
				add_papal_influence = 100
			}
			add_country_modifier = {
				name = teu_crusade_end_of_the_schism
				duration = -1
			}
		}
	}
	
	teu_dummy_mission_5 = {
		icon = mission_unknown_mission
		position = 6
		required_missions = { teu_dummy_mission_4 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = branching_path_mission_condition
						always = no
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					num_of_owned_provinces_with = {
						religion = ROOT
						has_tax_building_trigger = yes
						value = 15
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			custom_tooltip = branching_path_mission_effects
			custom_tooltip = teu_crsuader_path_effects_tt
			add_papal_influence = 25
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 10
			}
			if = {
				limit = { exists = PAP }
				reverse_add_opinion = {
					who = PAP
					modifier = teu_constructed_churches_for_papacy
				}
			}
		}
	}
	
	teu_dummy_mission_6 = {
		icon = mission_unknown_mission
		position = 7
		required_missions = { teu_dummy_mission_5 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = branching_path_mission_condition
						always = no
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					cathedral = 10
					theologian = 3
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			custom_tooltip = branching_path_mission_effects
			custom_tooltip = teu_crsuader_path_effects_tt
			custom_tooltip = teu_crusader_build_cathedrals_tt
		}
	}
}

teu_dummy_mission_slot_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = teu_crusader_path }
		NOT = { has_country_flag = teu_prussian_path }
	}
	has_country_shield = yes
	
	teu_dummy_mission_7 = {
		icon = mission_unknown_mission
		position = 3
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = branching_path_mission_condition
						always = no
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						OR = {
							area = samogitia_area
							area = lithuania_area
						}
						religion = ROOT
						value = 5
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			custom_tooltip = branching_path_mission_effects
			custom_tooltip = teu_crsuader_path_effects_tt
			add_army_tradition = 20
			add_devotion = 25
			if = {
				limit = {
					NOT = { mission_completed = teu_crusader_conquer_poland }
				}
				ruthenia_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
			else = {
				add_adm_power = 150
			}
			crimea_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = { NOT = { has_country_modifier = teu_crusade_zeal_of_the_crusader } }
				add_country_modifier = {
					name = teu_crusade_zeal_of_the_crusader
					duration = 9125
				}
			}
			else = {
				add_yearly_manpower = 0.25
			}
		}
	}
	
	teu_dummy_mission_8 = {
		icon = mission_unknown_mission
		position = 4
		required_missions = { teu_dummy_mission_7 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = branching_path_mission_condition
						always = no
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = crimea_region
						religion = ROOT
						value = 15
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			custom_tooltip = branching_path_mission_effects
			custom_tooltip = teu_crsuader_path_effects_tt
			add_country_modifier = {
				name = teu_crusade_horses_of_the_steppes
				duration = 9125
			}
			circassia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			dagestan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			if = {
				limit = {
					mission_completed = teu_crusader_push_into_ruthenia
				}
				ural_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
			else = {
				add_adm_power = 100
			}
		}
	}
	
	teu_dummy_mission_9 = {
		icon = mission_unknown_mission
		position = 5
		required_missions = { teu_dummy_mission_8 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = branching_path_mission_condition
						always = no
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					owns_or_non_sovereign_subject_of = 463
					owns_or_non_sovereign_subject_of = 4306
					463 = {
						religion = ROOT
						province_has_current_tech_fort_trigger = yes
					}
					4306 = {
						religion = ROOT
						province_has_current_tech_fort_trigger = yes
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			custom_tooltip = branching_path_mission_effects
			custom_tooltip = teu_crsuader_path_effects_tt
			define_advisor = {
				type = fortification_expert
				skill = 3
				cost_multiplier = 0.1
				religion = ROOT
			}
			463 = {
				add_province_modifier = {
					name = teu_pru_fortified_border
					duration = -1
				}
			}
			4306 = {
				add_province_modifier = {
					name = teu_pru_fortified_border
					duration = -1
				}
			}
		}
	}
	
	teu_dummy_mission_10 = {
		icon = mission_unknown_mission
		position = 6
		required_missions = { teu_dummy_mission_9 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = branching_path_mission_condition
						always = no
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					OR = {
						NOT = { exists = TUR }
						has_won_war_against = {
							who = TUR
							max_years_since = 100
						}
					}
					is_defender_of_faith = yes
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			custom_tooltip = branching_path_mission_effects
			custom_tooltip = teu_crsuader_path_effects_tt
			if = {
				limit = { exists = TUR }
				country_event = {
					id = flavor_teu.40
				}
			}
			else = {
				add_country_modifier = {
					name = teu_crusade_ottomans_vanquished
					duration = -1
				}
			}
		}
	}
}

teu_dummy_mission_slot_3 = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = teu_crusader_path }
		NOT = { has_country_flag = teu_prussian_path }
	}
	has_country_shield = yes
	
	teu_dummy_mission_11 = {
		icon = mission_unknown_mission
		position = 3
		required_missions = { teu_defeat_the_poles }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					west_prussia_area = {
						owned_by = ROOT
						is_core = ROOT
						num_of_times_improved_by_owner = 3
						has_production_building_trigger = yes
						type = all
					}
					east_prussia_area = {
						owned_by = ROOT
						is_core = ROOT
						num_of_times_improved_by_owner = 3
						has_production_building_trigger = yes
						type = all
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = poland_region
						religion = ROOT
						value = 20
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			east_prussia_area = {
				add_local_autonomy = -100
				add_prosperity = 100
				add_province_modifier = {
					name = teu_pru_developed_prussia
					duration = 9125
				}
			}
			west_prussia_area = {
				add_local_autonomy = -100
				add_prosperity = 100
				add_province_modifier = {
					name = teu_pru_developed_prussia
					duration = 9125
				}
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			add_yearly_manpower = 2
			add_army_tradition = 10
			if = {
				limit = {
					NOT = { mission_completed = teu_crusader_lithuanian_crusade }
				}
				ruthenia_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
			else = {
				add_adm_power = 150
			}
			if = {
				limit = { NOT = { has_country_modifier = teu_crusade_zeal_of_the_crusader } }
				add_country_modifier = {
					name = teu_crusade_zeal_of_the_crusader
					duration = 9125
				}
			}
			else = {
				add_yearly_manpower = 0.25
			}
		}
	}
	
	teu_dummy_mission_12 = {
		icon = mission_unknown_mission
		position = 4
		required_missions = { teu_dummy_mission_11 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					reform_level = 7
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = ruthenia_region
						religion = ROOT
						value = 25
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			if = {
				limit = { NOT = { has_country_flag = pru_legal_reforms_flag } }
				set_country_flag = pru_legal_reforms_flag
				country_event = { id = flavor_brapru.27 }
			}
			else = {
				custom_tooltip = jol_centralize_the_state_ct
				hidden_effect = {
					every_owned_province = {
						limit = {
							local_autonomy = 5
						}
						add_local_autonomy = -100
						ROOT = { add_absolutism = 10 }
					}
				}
				add_legitimacy = 50
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			country_event = {
				id = flavor_teu.39
			}
			if = {
				limit = {
					mission_completed = teu_crusader_conquer_crimea
				}
				ural_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_permanent_claim = ROOT
				}
			}
			else = {
				add_adm_power = 100
			}
		}
	}
	
	teu_dummy_mission_13 = {
		icon = mission_unknown_mission
		position = 5
		required_missions = { teu_dummy_mission_12 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					if = {
						limit = { 
							is_revolutionary = yes
							has_dlc = "Emperor"
						}
						revolutionary_zeal = 80
					}
					else = {
						absolutism = 80
					}
					custom_trigger_tooltip = {
						tooltip = teu_pru_an_absolute_kingdom_tt
						OR = {
							has_country_modifier = crushed_local_authority
							has_country_modifier = central_authority_asserted
							AND = {
								NOT = { current_age = age_of_absolutism }
								is_absolutism_active = yes
							}
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = ural_region
						religion = ROOT
						value = 20
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			change_ruler_stat = {
				type = adm
				amount = 1
			}
			change_ruler_stat = {
				type = dip
				amount = 1
			}
			change_ruler_stat = {
				type = mil
				amount = 1
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			add_army_professionalism = 0.05
			add_papal_influence = 50
			central_asia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	teu_dummy_mission_14 = {
		icon = mission_unknown_mission
		position = 6
		required_missions = { teu_dummy_mission_13 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					has_institution = enlightenment
					university = 20
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = central_asia_region
						religion = ROOT
						value = 20
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			add_country_modifier = {
				name = teu_pru_prussian_enlightenment_modifier
				duration = -1
			}
			remove_comet_sighted_events = yes
			custom_tooltip = teu_crsuader_path_effects_tt
			add_treasury = 1000
			add_manpower = 10
			add_years_of_owned_provinces_production_income = {
				years = 4
				trigger = {
					religion = ROOT
					OR = {
						region = ural_region
						region = crimea_region
						region = central_asia_region
					}
				}
				custom_tooltip = teu_crusader_steppes_crusade_tt
			}
			add_years_of_owned_provinces_manpower = {
				years = 4
				trigger = {
					religion = ROOT
					OR = {
						region = ural_region
						region = crimea_region
						region = central_asia_region
					}
				}
				custom_tooltip = teu_crusader_steppes_crusade_tt
			}
		}
	}
	
	teu_dummy_mission_15 = {
		icon = mission_unknown_mission
		position = 7
		required_missions = { teu_dummy_mission_14 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					OR = {
						has_reform = revolutionary_empire_reform
						has_reform = revolutionary_republic_reform
						custom_trigger_tooltip = {
							tooltip = center_of_revolution.3000.A.tt
							has_global_flag = no_more_revolutions_ever
						}
						any_known_country = {
							is_revolution_target = yes
							war_with = ROOT
							capital_scope = {
								controlled_by = ROOT
							}
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					religious_unity = 0.8
					num_of_cities = 100
					cavalry_fraction = 0.5
					army_size = 35 # modified
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			if = {
				limit = {
					OR = {
						has_reform = revolutionary_empire_reform
						has_reform = revolutionary_republic_reform
					}
				}
				add_country_modifier = {
					name = teu_pru_embraced_the_revolution
					duration = -1
				}
			}
			else = {
				add_country_modifier = {
					name = teu_pru_crushed_the_revolution
					duration = -1
				}
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			country_event = {
				id = flavor_teu.41
			}
		}
	}
}

teu_dummy_mission_slot_4 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = teu_crusader_path }
		NOT = { has_country_flag = teu_prussian_path }
	}
	has_country_shield = yes
	
	teu_dummy_mission_16 = {
		icon = mission_unknown_mission
		position = 3
		required_missions = { teu_build_to_force_limit }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					has_mil_advisor_2 = yes
					has_global_modifier_value = {
						which = discipline
						value = 0.2
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					custom_trigger_tooltip = {
						tooltip = teu_crusader_mil_reform_1_tt
						check_variable = {
							which = num_won_battles
							value = 20
						}
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			country_event = { id = flavor_brapru.6 }
			custom_tooltip = teu_crsuader_path_effects_tt
			add_army_tradition = 10
			add_country_modifier = {
				name = teu_crusader_mil_reform_1_mod
				duration = -1
			}
		}
	}
	
	teu_dummy_mission_17 = {
		icon = mission_unknown_mission
		position = 4
		required_missions = { teu_dummy_mission_16 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					if = {
						limit = {
							has_dlc = "Cradle of Civilization"
						}
						army_professionalism = 0.5
					}
					else = {
						army_tradition = 50
					}
					has_commanding_three_star = yes
					if = {
						limit = {
							has_estate = estate_nobles
						}
						estate_influence = {
							estate = estate_nobles
							influence = 60
						}
					}
					else = {
						crown_land_share = 70
					}
					if = {
						limit = {
							has_estate = estate_nobles
							OR = {
								has_reform = prussian_monarchy
								has_reform = prussian_monarchy_base
								has_reform = prussian_republic_reform
							}
						}
						has_estate_privilege = estate_nobles_junker_primacy
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					if = {
						limit = {
							has_dlc = "Cradle of Civilization"
						}
						army_professionalism = 0.3
					}
					else = {
						army_tradition = 40
					}
					has_mil_advisor_2 = yes
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			add_country_modifier = {
				name = teu_pru_nobles_in_general_positions
				duration = -1
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			add_mil_power = 100
			if = {
				limit = {
					has_country_modifier = teu_crusader_mil_reform_1_mod
				}
				custom_tooltip = teu_crusader_mil_reform_2_tt
				hidden_effect = {
					remove_country_modifier = teu_crusader_mil_reform_1_mod
				}
			}
			add_country_modifier = {
				name = teu_crusader_mil_reform_2_mod
				duration = -1
			}
		}
	}
	
	teu_dummy_mission_18 = {
		icon = mission_unknown_mission
		position = 5
		required_missions = { teu_dummy_mission_17 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					if = {
						limit = {
							has_dlc = "Cradle of Civilization"
						}
						army_professionalism = 0.75
					}
					else = {
						army_tradition = 75
					}
					OR = {
						any_country = {
							war_with = ROOT
							OR = {
								land_forcelimit = ROOT
								total_development = ROOT
							}
							custom_trigger_tooltip = {
								tooltip = teu_pru_proof_of_strength_tt
								current_war_losses = {
									type = soldiers
									cause = battle
									amount = 60000
								}
							}
						}
						custom_trigger_tooltip = {
							tooltip = teu_pru_proof_of_strength_ct
							NOT = {
								any_country = {
									land_forcelimit = ROOT
									total_development = ROOT
								}
							}
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					num_of_generals = 2
					has_completed_idea_group_of_category = {
						mil_ideas = yes
					}
					num_of_cavalry = 10 # modified
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			add_splendor = 800
			add_power_projection = {
				type = mission_rewards_power_projection
				amount = 50
			}
			add_army_tradition = 20
			add_army_professionalism = 0.05
			custom_tooltip = teu_crsuader_path_effects_tt
			define_advisor = {
				type = commandant
				skill = 3
				cost_multiplier = 0.25
			}
			if = {
				limit = {
					has_country_modifier = teu_crusader_mil_reform_2_mod
				}
				custom_tooltip = teu_crusader_mil_reform_3_tt
				hidden_effect = {
					remove_country_modifier = teu_crusader_mil_reform_2_mod
				}
			}
			add_country_modifier = {
				name = teu_crusader_mil_reform_3_mod
				duration = -1
			}
		}
	}
	
	teu_dummy_mission_19 = {
		icon = mission_unknown_mission
		position = 6
		required_missions = { teu_dummy_mission_18 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					army_size = 20 # modified
					if = {
						limit = {
							has_dlc = "Cradle of Civilization"
						}
						army_professionalism = 1
					}
					else = {
						army_tradition = 100
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					OR = {
						barracks = 8
						training_fields = 8
					}
					grain = 20
					monthly_mil = 10
					num_of_cavalry = 20 # modified
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			country_event = { id = flavor_brapru.29 }
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				add_country_modifier = {
					name = "pru_space_marines"
					duration = -1
				}
			}
			else = {
				add_country_modifier = {
					name = "pru_space_marines_2"
					duration = -1
				}
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			add_army_professionalism = 0.1
			add_army_tradition = 20
			if = {
				limit = {
					has_country_modifier = teu_crusader_mil_reform_3_mod
				}
				custom_tooltip = teu_crusader_mil_reform_4_tt
				hidden_effect = {
					remove_country_modifier = teu_crusader_mil_reform_3_mod
				}
			}
			add_country_modifier = {
				name = teu_crusader_mil_reform_4_mod
				duration = -1
			}
		}
	}
}

teu_dummy_mission_slot_5 = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Lions of the North"
	}
	potential = {
		has_dlc = "Lions of the North"
		tag = TEU
		NOT = { map_setup = map_setup_random }
		NOT = { has_country_flag = teu_crusader_path }
		NOT = { has_country_flag = teu_prussian_path }
	}
	has_country_shield = yes
	
	teu_dummy_mission_20 = {
		icon = mission_unknown_mission
		position = 1
		required_missions = {  }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					naval_forcelimit = 25
					navy_size_percentage = 1
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					if = {
						limit = {
							exists = PAP
						}
						alliance_with = PAP
						OR = {
							AND = {
								num_of_cardinals = 1
								invested_papal_influence = 30
							}
							AND = {
								calc_true_if = {
									has_country_modifier = papal_sanction_for_church_taxes
									has_country_modifier = papal_blessing
									has_country_modifier = papal_indulgence
									has_country_modifier = usury_forgiven
									has_country_modifier = papal_sanction_for_holy_war
									amount = 2
								}
							}
						}
					}
					else = {
						calc_true_if = {
							has_country_modifier = papal_sanction_for_church_taxes
							has_country_modifier = papal_blessing
							has_country_modifier = papal_indulgence
							has_country_modifier = usury_forgiven
							has_country_modifier = papal_sanction_for_holy_war
							amount = 2
						}
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			create_admiral = {
				tradition = 70
			}
			add_country_modifier = {
				name = teu_pru_prussian_navy
				duration = 9125
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			add_papal_influence = 75
			define_advisor = {
				type = inquisitor
				skill = 1
				religion = ROOT
				discount = yes
			}
		}
	}
	
	teu_dummy_mission_21 = {
		icon = mission_unknown_mission
		position = 2
		required_missions = { teu_dummy_mission_20 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					custom_trigger_tooltip = {
						tooltip = teu_pru_strengthen_mercantilism_tt
						num_of_owned_provinces_with = {
							OR = {
								area = west_prussia_area
								area = east_prussia_area
								area = samogitia_area
								area = curonia_area
								area = livonia_area
								area = estonia_ingria_area
							}
							OR = {
								has_river_estuary_trigger = yes
								province_has_center_of_trade_of_level = 1
							}
							is_core = ROOT
							has_trade_building_trigger = yes
							value = 4
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					OR = {
						full_idea_group = religious_ideas
						full_idea_group = theocracy_gov_ideas
					}
					OR = {
						inquisitor = 3
						theologian = 3
					}
					legitimacy_equivalent = 100
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			define_advisor = {
				type = trader
				skill = 2
				cost_multiplier = 0.25
			}
			define_advisor = {
				type = master_of_mint
				skill = 2
				cost_multiplier = 0.25
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			if = {
				limit = {
					full_idea_group = religious_ideas
				}
				change_ruler_stat = {
					type = adm
					amount = 2
				}
			}
			else = {
				custom_tooltip = teu_crusader_embrace_religious_ideas_at
			}
			if = {
				limit = {
					full_idea_group = religious_ideas
				}
				change_ruler_stat = {
					type = mil
					amount = 2
				}
			}
			else = {
				custom_tooltip = teu_crusader_embrace_religious_ideas_bt
			}
		}
	}
	
	teu_dummy_mission_22 = {
		icon = mission_unknown_mission
		position = 3
		required_missions = { teu_dummy_mission_21 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			custom_trigger_tooltip = {
				tooltip = teu_crusader_path_tt
				always = no
			}
			religion = catholic
			custom_trigger_tooltip = {
				tooltip = teu_crusader_convert_provinces_tt
				check_variable = {
					which = num_converted_religion
					value = 75
				}
			}
		}
		effect = {
			custom_tooltip = teu_crsuader_path_effects_tt
			add_country_modifier = {
				name = teu_crusader_the_great_missionaries
				duration = 36500
			}
		}
	}
	
	teu_dummy_mission_23 = {
		icon = mission_unknown_mission
		position = 4
		required_missions = { teu_dummy_mission_22 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					1926 = {
						trade_share = {
							country = ROOT
							share = 75
						}
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					share_of_starting_income = 2
					is_in_deficit = no
					NOT = { num_of_loans = 1 }
					NOT = { corruption = 1 }
					stability = 2
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			add_mercantilism = 10
			1926 = {
				add_trade_node_income = 50
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			capital_scope = {
				add_base_tax = 1
				add_base_production = 1
				add_base_manpower = 1
				area = {
					limit = { owned_by = ROOT }
					add_province_modifier = {
						name = "growth_of_capital"
						duration = 9125 #25 years
					}
				}
			}
			add_country_modifier = {
				name = "growing_economy"
				duration = 9125
			}
		}
	}
	
	teu_dummy_mission_24 = {
		icon = mission_unknown_mission
		position = 5
		required_missions = { teu_dummy_mission_23 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					num_of_owned_provinces_with = {
						has_manufactory_trigger = yes
						base_production = 6
						value = 15
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					num_of_owned_provinces_with = {
						province_has_current_tech_fort_trigger = yes
						value = 25
					}
					fortification_expert = 3
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			add_years_of_owned_provinces_production_income = {
				years = 1
				trigger = {
					has_manufactory_trigger = yes
					base_production = 6
				}
				custom_tooltip = teu_pru_manufactories_for_prussia_tt
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			add_country_modifier = {
				name = teu_crusader_a_fortified_order
				duration = 36500
			}
		}
	}
	
	teu_dummy_mission_25 = {
		icon = mission_unknown_mission
		position = 6
		required_missions = { teu_dummy_mission_24 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					capital_scope = {
						has_courthouse_building_trigger = yes
					}
					is_in_deficit = no
					custom_trigger_tooltip = {
						tooltip = ger_chancellor_tt
						has_mil_advisor_3 = yes
						has_adm_advisor_3 = yes
						has_dip_advisor_3 = yes
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					religious_unity = 0.9
					NOT = { current_age = age_of_discovery }
					NOT = {
						any_owned_province = {
							OR = {
								religion = hussite
								religion = protestant
								religion = reformed
								religion = anglican
							}
						}
					}
					OR = {
						has_country_modifier = counter_reformation
						NOT = { current_age = age_of_reformation }
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			add_adm_power = 75
			add_dip_power = 75
			add_mil_power = 75
			add_country_modifier = {
				name = teu_pru_expanded_cabinet
				duration = 9125
			}
			custom_tooltip = teu_crsuader_path_effects_tt
			custom_tooltip = can_always_embrace_the_counter_reformation_tt
		}
	}
	
	teu_dummy_mission_26 = {
		icon = mission_unknown_mission
		position = 7
		required_missions = { teu_dummy_mission_25 }
		provinces_to_highlight = {}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = selectable_mission_trigger_tt
				always = no
			}
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_prussian_path_tt
						always = no
					}
					owns_core_province = 41
					41 = { 
						development = 30
						is_capital_of = ROOT
					}
				}
				AND = {
					custom_trigger_tooltip = {
						tooltip = teu_crusader_path_tt
						always = no
					}
					religion = catholic
					NOT = { current_age = age_of_discovery }
					OR = {
						NOT = { current_age = age_of_reformation }
						custom_trigger_tooltip = {
							tooltip = teu_crusader_destroy_the_heresies_at
							NOT = {
								europe = {
									is_reformation_center = yes
								}
							}
						}
					}
					custom_trigger_tooltip = {
						tooltip = teu_crusader_destroy_the_heresies_bt
						NOT = {
							europe = {
								owner = {
									OR = {
										religion = protestant
										religion = reformed
									}
								}
							}
						}
					}
				}
			}
		}
		effect = {
			custom_tooltip = teu_prussian_path_effects_tt
			country_event = { id = flavor_brapru.11 }
			custom_tooltip = teu_crsuader_path_effects_tt
			add_country_modifier = {
				name = teu_crusader_crushed_the_reformation
				duration = -1
			}
		}
	}
}