tr_novgorod_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Third Rome"
	}
	potential = {
		tag = NOV
		has_dlc = "Third Rome"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	nov_recover_cores = {
		icon = mission_reconquer_vologda
		required_missions = {  }
		provinces_to_highlight = {
			OR = {
				province_id = 314
				province_id = 4262
				province_id = 1755
				province_id = 4129
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			owns = 314
			owns = 4262
			owns = 1755
			owns = 4129
		}
		effect = {
			4249 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			294 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			4248 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			vologda_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			beloozero_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			galich_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			moscow_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			suzdal_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			vladimir_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			yaroslavl_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			1752 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	nov_defeat_mos = {
		icon = mission_defeat_muscovy
		required_missions = { nov_recover_cores }
		provinces_to_highlight = {
			OR = {
				area = vologda_area
				area = beloozero_area
				area = galich_area
				area = moscow_area
				area = suzdal_area
				area = vladimir_area
				area = yaroslavl_area
				province_id = 1752
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			vologda_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			beloozero_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			galich_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			moscow_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			suzdal_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			vladimir_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			yaroslavl_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			1752 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "nov_defeated_muscovy"
				duration = 7300
			}
			oka_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			ryazan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			2408 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
}

tr_novgorod_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Third Rome"
	}
	potential = {
		tag = NOV
		has_dlc = "Third Rome"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	nov_conquer_tver = {
		icon = mission_conquer_tver
		required_missions = { nov_recover_cores }
		position = 2
		provinces_to_highlight = {
			OR = {
				province_id = 4249
				province_id = 294
				province_id = 4248
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			4249 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			294 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			4248 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			tver_area = {
				limit = {
					country_or_non_sovereign_subject_holds = ROOT
				}
				add_province_modifier = {
					name = "nov_tver_conquest"
					duration = 7300
				}
			}
			274 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			1960 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	nov_conquer_princes = {
		icon = mission_dethrone_the_rurikovichs
		required_missions = { nov_conquer_tver nov_defeat_mos  }
		provinces_to_highlight = {
			OR = {
				area = oka_area
				area = ryazan_area
				province_id = 2408
				province_id = 274
				province_id = 1960
				owner = {
					AND = {
						dynasty = "00000000"
						OR = {
							culture_group = east_slavic
							culture_group = slavic
						}
					}
				}
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			NOT = {
				any_country = {
					AND = {
						dynasty = "00000000"
						OR = {
							culture_group = east_slavic
							culture_group = slavic
						}
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
			}
			oka_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			ryazan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			2408 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			274 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			1960 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "nov_ruriks_eliminated"
				duration = 7300
			}
		}
	}
}

tr_novgorod_3 = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Third Rome"
	}
	potential = {
		tag = NOV
		has_dlc = "Third Rome"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	nov_build_navy = {
		icon = mission_develop_nevas_port
		required_missions = {  }
		provinces_to_highlight = {
			province_id = 33
		}
		trigger = {
			33 = {
				owned_by = ROOT
				has_building = marketplace
				has_building = dock
				is_strongest_trade_power = ROOT
			}
			navy_size_percentage = 1
		}
		effect = {
			33 = {
				add_province_modifier = {
					name = "neva_fleet"
					duration = -1
				}
			}
			38 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	nov_conquer_riga = {
		icon = mission_conquer_riga
		required_missions = { nov_build_navy  }
		provinces_to_highlight = {
			province_id = 38
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			38 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_mercantilism = 2
			40 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			43 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	nov_conquer_danzig = {
		icon = mission_danzig_or_war
		required_missions = { nov_conquer_riga  }
		provinces_to_highlight = {
			OR = {
				province_id = 40
				province_id = 43
				province_id = 1926
			}
			OR = {
				province_id = 1926
				NOT = {
					country_or_non_sovereign_subject_holds = ROOT
				}
			}
		}
		trigger = {
			40 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			43 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			1926 = {
				is_strongest_trade_power = ROOT
			}
		}
		effect = {
			add_mercantilism = 2
			45 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			44 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			1874 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	nov_conquer_lubeck = {
		icon = mission_heart_of_the_hansa
		required_missions = { nov_conquer_danzig  }
		provinces_to_highlight = {
			OR = {
				province_id = 45
				province_id = 44
				province_id = 1874
			}
			OR = {
				NOT = {
					country_or_non_sovereign_subject_holds = ROOT
				}
				AND = {
					province_id = 45
					NOT = { is_strongest_trade_power = ROOT }
				}
			}
		}
		trigger = {
			45 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			44 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			1874 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			45 = {
				is_strongest_trade_power = ROOT
			}
		}
		effect = {
			add_mercantilism = 2
			add_country_modifier = {
				name = "nov_lubeck_conquest"
				duration = 7300
			}
		}
	}
	nov_best_node = {
		icon = mission_novgorod_the_great
		required_missions = { nov_conquer_lubeck nov_scandinavian_ports  }
		provinces_to_highlight = {
			OR = {
				province_id = 33
				province_id = 1652
			}
		}
		trigger = {
			OR = {
				33 = {
					highest_value_trade_node = yes
					is_strongest_trade_power = ROOT
				}
				1652 = {
					highest_value_trade_node = yes
					is_strongest_trade_power = ROOT
				}
			}
		}
		effect = {
			add_mercantilism = 5
			310 = {
				add_province_modifier = {
					name = "nov_the_great"
					duration = -1
				}
			}
		}
	}
}

tr_novgorod_4 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Third Rome"
	}
	potential = {
		tag = NOV
		has_dlc = "Third Rome"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	nov_arkhangelsk = {
		icon = mission_found_arkhangelsk
		required_missions = {  }
		provinces_to_highlight = {
			province_id = 1955
		}
		trigger = {
			owns = 1955
			1955 = {
				OR = {
					has_building = marketplace
					has_building = dock
				}
			}
		}
		effect = {
			1955 = {
				change_province_name = "Arkhangelsk"
				rename_capital = "Arkhangelsk"
				add_base_tax = 2
				add_base_production = 2
				add_base_manpower = 2
				add_province_modifier = {
					name = "arkhangelsk_modifier"
					duration = -1
				}
			}
			laponia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			perm_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	nov_white_sea = {
		icon = mission_protect_white_sea_trade
		required_missions = { nov_arkhangelsk }
		provinces_to_highlight = {
			OR = {
				area = perm_area
				area = laponia_area
				province_id = 1652
			}
			OR = {
				province_id = 1652
				NOT = {
					country_or_non_sovereign_subject_holds = ROOT
				}
			}
		}
		trigger = {
			1652 = {
				is_strongest_trade_power = ROOT
			}
			perm_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			laponia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_mercantilism = 2
			finland_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			bothnia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			30 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			northern_norway = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			western_norway	 = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	nov_conquer_finland = {
		icon = mission_conquer_finland
		required_missions = { nov_white_sea  }
		provinces_to_highlight = {
			OR = {
				province_id = 30
				area = finland_area
				area = bothnia_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			30 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			finland_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			bothnia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "nov_grand_duchy_finland"
				duration = -1
			}
			1 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			25 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			6 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
			12 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
		}
	}
	nov_scandinavian_ports = {
		icon = mission_scandinavian_port_authority
		required_missions = { nov_conquer_finland  }
		provinces_to_highlight = {
			OR = {
				province_id = 1
				province_id = 25
				province_id = 6
				province_id = 12
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			1 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			25 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			6 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			12 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_mercantilism = 2
			1926 = {
				add_trade_modifier = {
					who = root
					duration = 7300
					power = 25
					key = baltic_ambition_key
				}
			}
		}
	}
}

tr_novgorod_5 = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Third Rome"
	}
	potential = {
		tag = NOV
		has_dlc = "Third Rome"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	nov_archbishopric = {
		icon = mission_autocephalous_archbishopric
		required_missions = {  }
		provinces_to_highlight = {
			province_id = 310
		}
		trigger = {
			stability = 2
			310 = {
				owned_by = ROOT
				has_state_patriach = yes
				OR = {
					has_building = temple
					has_building = cathedral
				}
			}
			OR = {
				current_icon = icon_michael
				current_icon = icon_eleusa
				current_icon = icon_pancreator
				current_icon = icon_nicholas
				current_icon = icon_climacus
			}
		}
		effect = {
			add_patriarch_authority = 0.1
			add_country_modifier = {
				name = "nov_archbishop"
				duration = 7300
			}
		}
	}
	nov_cathedrals = {
		icon = mission_cathedral_cities
		required_missions = { nov_archbishopric }
		provinces_to_highlight = {
		}
		trigger = {
			cathedral = 10
			religious_unity = 1
		}
		effect = {
			add_patriarch_authority = 0.1
			add_country_modifier = {
				name = "nov_cathedrals_modifier"
				duration = 7300
			}
		}
	}
	nov_north_sea = {
		icon = mission_seize_north_sea_trade
		required_missions = { nov_white_sea }
		provinces_to_highlight = {
			OR = {
				AND = {
					OR = {
						area = northern_norway
						area = western_norway
					}
					NOT = {
						country_or_non_sovereign_subject_holds = ROOT
					}
				}
				AND = {
					province_id = 1975
					NOT = { is_strongest_trade_power = ROOT }
				}
			}
		}
		trigger = {
			1975 = {
				is_strongest_trade_power = ROOT
			}
			northern_norway = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			western_norway = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_mercantilism = 2
			add_country_modifier = {
				name = "nov_north_sea_trade"
				duration = 7300
			}
		}
	}
}
