##Made by Ogele 'Comrade Flan'
#Slot 1 and 2
#Special to Muscovy only
mos_rus_handle_succession = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		OR = {
			tag = MOS
			AND = {
				was_tag = MOS
				tag = RUS
			}
		}
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	mos_the_civil_war = {
		icon = mission_dethrone_the_rurikovichs
		required_missions = {  }
		position = 1
		provinces_to_highlight = {
			owned_by = ROOT
			controlled_by = REB
		}
		trigger = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = mos_the_civil_war_at
					NOT = { has_ruler_flag = has_vasily_ii }
				}
				custom_trigger_tooltip = {
					tooltip = mos_the_civil_war_bt
					has_country_flag = mos_civil_war_ended_flag
				}
			}
			if = {
				limit = { government = monarchy }
				legitimacy = 80
			}
			NOT = { num_of_rebel_armies = 1 }
			NOT = { num_of_rebel_controlled_provinces = 1 }
		}
		effect = {
			if = {
				limit = {
					dynasty = "Rurikovich"
				}
				add_country_modifier = {
					name = mos_legitimacy_of_the_rurikovich
					duration = 9125
				}
			}
			else = {
				add_country_modifier = {
					name = mos_a_new_russian_authority
					duration = 9125
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_secure_muscovys_future = {
		icon = mission_sovereign_principality
		required_missions = { mos_the_civil_war }
		position = 2
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = { government = monarchy }
				legitimacy = 90
			}
			ruler_total_stats = {
				amount = 10
			}
		}
		effect = {
			add_country_modifier = {
				name = mos_the_secured_future_of_russia
				duration = 14600
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Available only to non-Novgorodian Russia
mos_rus_conquer_west = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		OR = {
			tag = MOS
			AND = {
				NOT = { was_tag = NOV }
				tag = RUS
			}
		}
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	mos_rus_window_on_the_west = {
		icon = mission_conquer_riga
		required_missions = { mos_rus_conquer_novgorod }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = curonia_area
				area = estonia_ingria_area
				area = livonia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			curonia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
			estonia_ingria_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
			livonia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
		}
		effect = {
			add_country_modifier = {
				name = "baltic_ambition_new"
				duration = 9125
			}
			baltic_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			finland_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			bothnia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			laponia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_conquer_finland = {
		icon = mission_conquer_finland
		required_missions = { mos_rus_window_on_the_west }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = finland_area
				area = bothnia_area
				area = laponia_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			finland_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
			bothnia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
			laponia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
			4124 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			if = {
				limit = { NOT = { exists = FIN } }
				country_event_with_insight = {
					id = flavor_rus.105
					insight_tooltip = mos_rus_conquer_finland_at
				}
			}
			else = {
				add_mil_power = 50
			}
			add_country_modifier = {
				name = "conquest_of_finland"
				duration = 9125
			}
			scandinavia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_subjugate_scandinavia = {
		icon = mission_slay_the_lion
		required_missions = { mos_rus_conquer_finland }
		position = 7
		provinces_to_highlight = {
			region = scandinavia_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = scandinavia_region
				value = 25
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Lions of the North"
				}
				simple_dynamic_effect = {
					first_custom_tooltip = mos_rus_subjugate_scandinavia_at
					first_limit = "FIN = { exists = yes is_subject_of = ROOT }"
					first_effect = "
					custom_tooltip = mos_rus_subjugate_scandinavia_bt
					hidden_effect = { FIN = { set_country_flag = rus_can_complete_missions_as_subject }	 }"
					second_custom_tooltip = mos_rus_subjugate_scandinavia_ct
					second_limit = "NOT = { FIN = { exists = yes is_subject_of = ROOT } }"
					second_effect = "
					capital_scope = {
						carolean_infantry = ROOT
						carolean_infantry = ROOT
						carolean_infantry = ROOT
						carolean_infantry = ROOT
						carolean_infantry = ROOT
						carolean_infantry = ROOT
						carolean_infantry = ROOT
						carolean_infantry = ROOT
						carolean_infantry = ROOT
						carolean_infantry = ROOT
					}
					"
				}
			}
			else = {
				define_advisor = {
					type = commandant
					skill = 3
					cost_multiplier = 0.25
				}
				add_manpower = 10
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_europes_greatest_power = {
		icon = mission_great_power_from_the_east
		required_missions = { mos_rus_subjugate_scandinavia }
		position = 8
		provinces_to_highlight = {
			if = {
				limit = {
					OR = {
						has_dlc = "Emperor"
						has_dlc = "Rights of Man"
					}
				}
				owner = {
					NOT = { tag = ROOT }
					total_own_and_non_tributary_subject_development = 200
					NOT = {
						has_opinion_modifier = {
							who = ROOT
							modifier = great_power_influence
						}
					}
				}
			}
			else = {
				owner = {
					NOT = { tag = ROOT }
					total_own_and_non_tributary_subject_development = ROOT
				}
			}
		}
		trigger = {
			if = {
				limit = {
					OR = {
						has_dlc = "Emperor"
						has_dlc = "Rights of Man"
					}
				}
				NOT = { great_power_rank = 6 }
				calc_true_if = {
					custom_trigger_tooltip = {
						tooltip = dan_a_danish_great_power_at
						all_known_country = {
							total_own_and_non_tributary_subject_development = 200
							has_opinion_modifier = {
								who = ROOT
								modifier = great_power_influence
							}
						}
					}
					amount = 3
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = dan_a_danish_great_power_bt
					NOT = {
						any_known_country = {
							total_own_and_non_tributary_subject_development = ROOT
						}
					}
				}
				calc_true_if = {
					custom_trigger_tooltip = {
						tooltip = dan_a_danish_great_power_ct
						all_known_country = {
							total_own_and_non_tributary_subject_development = 200
							subsidised_percent_amount = {
								value = 0.25
							}
						}
					}
					amount = 3
				}
			}
		}
		effect = {
			add_permanent_power_projection = {
				type = 25_permanent_power_projection
				amount = 25
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}
mos_rus_eastern_europe = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		OR = {
			tag = MOS
			AND = {
				NOT = { was_tag = NOV }
				tag = RUS
			}
		}
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	mos_rus_conquer_novgorod = {
		icon = mission_conquer_novgorod
		required_missions = { mos_rus_build_up_army }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = novgorod_area
				area = beloozero_area
				area = pomor_area
				area = north_karelia
				area = arkhangelsk_area
				province_id = 4148
				province_id = 1777
				province_id = 33
				province_id = 34
				province_id = 1961
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			owns = 310
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = novgorod_area
					area = beloozero_area
					area = pomor_area
					area = north_karelia
					area = arkhangelsk_area
					province_id = 4148
					province_id = 1777
					province_id = 33
					province_id = 34
					province_id = 1961
				}
				value = 15
			}
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.101
				insight_tooltip = INSIGHT_JUST_TOOLTIP
				effect_tooltip = "
				310 = {
					add_base_tax = 1
					add_base_production = 1
					add_base_manpower = 1
					add_province_modifier = {
						name = rus_developed_trade_post_novgorod
						duration = -1
					}
				}"
			}
			ruthenia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			estonia_ingria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			livonia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			curonia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 1000
		}
	}
	
	mos_rus_conquer_ruthenia = {
		icon = mission_restore_kiev
		required_missions = { mos_rus_conquer_novgorod }
		position = 4
		provinces_to_highlight = {
			region = ruthenia_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 280
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = ruthenia_region
				value = 20
			}
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.106
				insight_tooltip = mos_rus_conquer_ruthenia_at
			}
			ruthenia_region = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				add_province_modifier = {
					name = "ruthenian_integration"
					duration = 9125
				}
			}
			poland_region = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_partition_poland = {
		icon = mission_partition_poland
		required_missions = { mos_rus_conquer_ruthenia }
		position = 5
		provinces_to_highlight = {
			region = poland_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = poland_region
				value = 15
			}
		}
		effect = {
			tooltip = {
				add_accepted_culture = czech
				add_accepted_culture = sorbian
				add_accepted_culture = schlesian
				add_accepted_culture = polish
				add_accepted_culture = slovak
			}
			add_country_modifier = {
				name = rus_west_slavic_union
				duration = -1
				desc = mos_rus_partition_poland_at
			}
			hidden_effect = {
				add_accepted_culture = czech
				add_accepted_culture = sorbian
				add_accepted_culture = schlesian
				add_accepted_culture = polish
				add_accepted_culture = slovak
			}
			add_country_modifier = {
				name = "rus_partition_poland_modifier"
				duration = 7300
			}
			carpathia_region = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_carpathian_conquest = {
		icon = mission_conquer_romania
		required_missions = { mos_rus_partition_poland }
		position = 6
		provinces_to_highlight = {
			region = carpathia_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = carpathia_region
				value = 15
			}
		}
		effect = {
			tooltip = {
				add_accepted_culture = hungarian
				add_accepted_culture = romanian
				add_accepted_culture = transylvanian
			}
			add_country_modifier = {
				name = rus_carpathian_union
				duration = -1
				desc = mos_rus_carpathian_conquest_at
			}
			hidden_effect = {
				add_accepted_culture = hungarian
				add_accepted_culture = romanian
				add_accepted_culture = transylvanian
			}
			custom_tooltip = mos_rus_carpathian_conquest_ct
			hidden_effect = {
				balkan_region = {
					limit = {
						culture_group = south_slavic
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_protect_south_slavs = {
		icon = mission_protect_the_south_slavs
		required_missions = { mos_rus_carpathian_conquest }
		position = 7
		provinces_to_highlight = {
			OR = {
				culture_group = south_slavic
				region = balkan_region
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					culture_group = south_slavic
					region = balkan_region
				}
				value = 25
			}
		}
		effect = {
			custom_tooltip = mos_rus_protect_south_slavs_bt
			hidden_effect = {
				if = { limit = { accepted_culture = russian } remove_accepted_culture = russian }
				if = { limit = { accepted_culture = czech } remove_accepted_culture = czech }
				if = { limit = { accepted_culture = polish } remove_accepted_culture = polish }
				if = { limit = { accepted_culture = schlesian } remove_accepted_culture = schlesian }
				if = { limit = { accepted_culture = sorbian } remove_accepted_culture = sorbian }
				if = { limit = { accepted_culture = slovak } remove_accepted_culture = slovak }
				if = { limit = { accepted_culture = novgorodian } remove_accepted_culture = novgorodian }
				if = { limit = { accepted_culture = ryazanian } remove_accepted_culture = ryazanian }
				if = { limit = { accepted_culture = byelorussian } remove_accepted_culture = byelorussian }
				if = { limit = { accepted_culture = ruthenian } remove_accepted_culture = ruthenian }
				if = { limit = { accepted_culture = slovene } remove_accepted_culture = slovene }
				if = { limit = { accepted_culture = bosnian } remove_accepted_culture = bosnian }
				if = { limit = { accepted_culture = serbian } remove_accepted_culture = serbian }
				if = { limit = { accepted_culture = bulgarian } remove_accepted_culture = bulgarian }
				if = { limit = { accepted_culture = croatian } remove_accepted_culture = croatian }
				create_new_culture_group = {
					culture_group = slavic
					culture = russian
					culture2 = czech
					culture3 = polish
					culture4 = schlesian
					culture5 = sorbian
					culture6 = slovak
					culture7 = novgorodian
					culture8 = ryazanian
					culture9 = byelorussian
					culture10 = ruthenian
					culture12 = slovene
					culture13 = bosnian
					culture14 = serbian
					culture15 = bulgarian
					culture16 = croatian
				}
			}
			balkan_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			aegean_archipelago_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_claim_the_third_rome = {
		icon = mission_the_third_rome
		required_missions = { 
			mos_rus_protect_south_slavs 
			mos_rus_russian_patriarchate
		}
		position = 8
		provinces_to_highlight = {
			province_id = 151
			NOT = { owned_by = ROOT }
		}
		trigger = {
			owns = 151
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.2001
				insight_tooltip = mos_rus_claim_the_third_rome_at
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Available only to Novgorodian Russia
nov_rus_conquer_west = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		was_tag = NOV
		tag = RUS
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nov_rus_window_on_the_west = {
		icon = mission_conquer_riga
		required_missions = { nov_rus_conquer_muscovy }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = curonia_area
				area = estonia_ingria_area
				area = livonia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			curonia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
			estonia_ingria_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
			livonia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
		}
		effect = {
			add_country_modifier = {
				name = "baltic_ambition_new"
				duration = 9125
			}
			baltic_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			finland_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			bothnia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			laponia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_conquer_finland = {
		icon = mission_conquer_finland
		required_missions = { nov_rus_window_on_the_west }
		position = 4
		provinces_to_highlight = {
			OR = {
				area = finland_area
				area = bothnia_area
				area = laponia_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			finland_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
			bothnia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
			laponia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT	
			}
		}
		effect = {
			add_country_modifier = {
				name = nov_rus_scandinavian_conquest
				duration = -1
			}
			add_accepted_culture = finnish
			add_accepted_culture = sapmi
			add_country_modifier = {
				name = "conquest_of_finland"
				duration = 9125
			}
			scandinavia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_subjugate_scandinavia = {
		icon = mission_slay_the_lion
		required_missions = { nov_rus_conquer_finland }
		position = 5
		provinces_to_highlight = {
			region = scandinavia_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = scandinavia_region
				value = 25
			}
		}
		effect = {
			remove_country_modifier = nov_rus_scandinavian_conquest
			add_country_modifier = {
				name = nov_rus_scandinavian_dominance
				duration = -1
			}
			add_accepted_culture = swedish
			add_accepted_culture = norwegian
			add_accepted_culture = danish
			capital_scope = {
				carolean_infantry = ROOT
				carolean_infantry = ROOT
				carolean_infantry = ROOT
				carolean_infantry = ROOT
				carolean_infantry = ROOT
				carolean_infantry = ROOT
				carolean_infantry = ROOT
				carolean_infantry = ROOT
				carolean_infantry = ROOT
				carolean_infantry = ROOT
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_monopolize_lubeck = {
		icon = mission_heart_of_the_hansa
		required_missions = {
			nov_rus_subjugate_scandinavia
			nov_rus_take_danzig
		}
		position = 6
		provinces_to_highlight = {
			province_id = 45
			OR = {
				NOT = { owned_by = ROOT }
				NOT = {
					trade_share = {
						country = ROOT
						share = 30
					}
				}
			}
		}
		trigger = {
			45 = {
				owned_by = ROOT
				trade_share = {
					country = ROOT
					share = 30
				}
			}
		}
		effect = {
			add_mercantilism = 5
			45 = {
				set_center_level_3_center_of_trade = yes
				add_base_production = 4
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_trade_empire_of_europe = {
		icon = mission_novgorod_the_great
		required_missions = { 
			nov_rus_monopolize_lubeck 
		}
		position = 8
		provinces_to_highlight = {
			is_european_trade_node_province = yes
			NOT = {
				trade_share = {
					country = ROOT
					share = 40
				}
			}
		}
		trigger = {
			if = {
				limit = { 310 = { NOT = { has_province_modifier = nov_the_great } } }
				owns = 310
			}
			if = {
				limit = {
					OR = {
						has_dlc = "Emperor"			#Monopolies
						has_dlc = "Mare Nostrum"	#Promote Mercantlism
					}
				}
				mercantilism = 50
			}
			calc_true_if = {
				desc = nov_rus_trade_empire_of_europe_at
				european_trade_node_scope = {
					trigger = "trade_share = { country = ROOT share = 40 }"
				}
				amount = 5
			}
		}
		effect = {
			if = {
				limit = { 310 = { NOT = { has_province_modifier = nov_the_great } } }
				310 = {
					add_province_modifier = {
						name = nov_the_great
						duration = -1
					}
				}
			}
			add_country_modifier = {
				name = rus_trade_empire
				duration = -1
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}
nov_rus_eastern_europe = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		was_tag = NOV
		tag = RUS
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nov_rus_conquer_muscovy = {
		icon = mission_defeat_muscovy
		required_missions = { mos_rus_build_up_army }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = novgorod_area
				area = beloozero_area
				area = pomor_area
				area = north_karelia
				area = arkhangelsk_area
				province_id = 4148
				province_id = 1777
				province_id = 33
				province_id = 34
				province_id = 1961
				owned_by = MOS
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			MOS = {
				OR = {
					exists = no
					is_subject_of = ROOT
				}
			}
			owns = 310
			owns = 33
			owns = 1955
			num_of_owned_provinces_with = {
				OR = {
					area = novgorod_area
					area = beloozero_area
					area = pomor_area
					area = north_karelia
					area = arkhangelsk_area
					province_id = 4148
					province_id = 1777
					province_id = 33
					province_id = 34
					province_id = 1961
				}
				value = 15
			}
		}
		effect = {
			estonia_ingria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			livonia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			curonia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			ruthenia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_handle_ruthenia = {
		icon = mission_restore_kiev
		required_missions = { nov_rus_conquer_muscovy }
		position = 3
		provinces_to_highlight = {
			region = ruthenia_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 280
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = ruthenia_region
				value = 20
			}
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.106
				insight_tooltip = mos_rus_conquer_ruthenia_at
			}
			ruthenia_region = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				add_province_modifier = {
					name = "ruthenian_integration"
					duration = 9125
				}
			}
			poland_region = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_deal_with_poland = {
		icon = mission_partition_poland
		required_missions = { nov_rus_handle_ruthenia }
		position = 4
		provinces_to_highlight = {
			region = poland_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = poland_region
				value = 15
			}
		}
		effect = {
			tooltip = {
				add_accepted_culture = czech
				add_accepted_culture = sorbian
				add_accepted_culture = schlesian
				add_accepted_culture = polish
				add_accepted_culture = slovak
			}
			add_country_modifier = {
				name = rus_west_slavic_union
				duration = -1
				desc = mos_rus_partition_poland_at
			}
			hidden_effect = {
				add_accepted_culture = czech
				add_accepted_culture = sorbian
				add_accepted_culture = schlesian
				add_accepted_culture = polish
				add_accepted_culture = slovak
			}
			add_country_modifier = {
				name = "rus_partition_poland_modifier"
				duration = 7300
			}
			add_adm_power = 100
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_take_danzig = {
		icon = mission_danzig_or_war
		required_missions = { nov_rus_deal_with_poland }
		position = 5
		provinces_to_highlight = {
			province_id = 43
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { num_of_times_improved = 4 }
			}
		}
		trigger = {
			43 = {
				owned_by = ROOT
				num_of_times_improved = 4
			}
		}
		effect = {
			43 = {
				set_center_level_3_center_of_trade = yes
				add_base_production = 4
			}
			hinter_pommern_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_russian_claim = yes
			}
			vorpommern_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_russian_claim = yes
			}
			mecklenburg_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_russian_claim = yes
			}
			holstein_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT }
					NOT = { is_core = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_involve_in_asian_trade = {
		icon = mission_asian_trader
		required_missions = { mos_rus_conquer_persia }
		position = 6
		provinces_to_highlight = {
			OR = {
				province_id = 507
				province_id = 707
			}
			OR = {
				NOT = {
					trade_share = {
						country = ROOT
						share = 20
					}
				}
				NOT = { has_merchant = ROOT }
			}
		}
		trigger = {
			OR = {
				507 = {
					trade_share = {
						country = ROOT
						share = 20
					}
					has_merchant = ROOT
				}
				707 = {
					trade_share = {
						country = ROOT
						share = 20
					}
					has_merchant = ROOT
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = nov_rus_asian_market_access
				duration = 9125
			}
			simple_dynamic_effect_without_alternative = {
				first_custom_tooltip = nov_rus_involve_in_asian_trade_at
				first_limit = "
				707 = {
					trade_share = {
						country = ROOT
						share = 20
					}
					has_merchant = ROOT
				}"
				first_effect = "
				shanshan_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				tarim_basin_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				mongolia_region = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}"
				second_custom_tooltip = nov_rus_involve_in_asian_trade_bt
				second_limit = "
				507 = {
					trade_share = {
						country = ROOT
						share = 20
					}
					has_merchant = ROOT
				}"
				second_effect = "
				hindusthan_region = {
					limit = {
						NOT = { is_permanent_claim = ROOT }
						NOT = { is_core = ROOT }
					}
					add_russian_claim = yes
				}"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_dominate_asian_market = {
		icon = mission_asian_city
		required_missions = { nov_rus_involve_in_asian_trade }
		position = 7
		provinces_to_highlight = {
			OR = {
				province_id = 524
				province_id = 1343
				province_id = 677
				province_id = 700
				province_id = 4233
				province_id = 730
			}
			NOT = {
				trade_share = {
					country = ROOT
					share = 25
				}
			}
		}
		trigger = {
			OR = {
				AND = {
					524 = {
						trade_share = {
							country = ROOT
							share = 25
						}
					}
					1343 = {
						trade_share = {
							country = ROOT
							share = 25
						}
					}
					677 = {
						trade_share = {
							country = ROOT
							share = 25
						}
					}
				}
				AND = {
					700 = {
						trade_share = {
							country = ROOT
							share = 25
						}
					}
					4233 = {
						trade_share = {
							country = ROOT
							share = 25
						}
					}
					730 = {
						trade_share = {
							country = ROOT
							share = 25
						}
					}
				}
			}
		}
		effect = {
			add_mercantilism = 10
			add_treasury = 3000
		}

		ai_weight = {
			factor = 250
		}
	}
	
	nov_rus_compete_in_the_channel = {
		icon = mission_market_place_with_asian_traders
		required_missions = { nov_rus_dominate_asian_market }
		position = 8
		provinces_to_highlight = {
			OR = {
				province_id = 454
				province_id = 469
				province_id = 1082
				province_id = 33
				province_id = 1064
				province_id = 707
				province_id = 507
				province_id = 4341
			}
			OR = {
				NOT = {
					trade_share = {
						country = ROOT
						share = 20
					}
				}
				NOT = {
					is_strongest_trade_power = ROOT
				}
			}
		}
		trigger = {
			454 = {
				trade_share = {
					country = ROOT
					share = 20
				}
				is_strongest_trade_power = ROOT
			}
			469 = {
				trade_share = {
					country = ROOT
					share = 20
				}
				is_strongest_trade_power = ROOT
			}
			1082 = {
				trade_share = {
					country = ROOT
					share = 20
				}
				is_strongest_trade_power = ROOT
			}
			33 = {
				trade_share = {
					country = ROOT
					share = 20
				}
				is_strongest_trade_power = ROOT
			}
			1064 = {
				trade_share = {
					country = ROOT
					share = 20
				}
				is_strongest_trade_power = ROOT
			}
			707 = {
				trade_share = {
					country = ROOT
					share = 20
				}
				is_strongest_trade_power = ROOT
			}
			507 = {
				trade_share = {
					country = ROOT
					share = 20
				}
				is_strongest_trade_power = ROOT
			}
			4341 = {
				trade_share = {
					country = ROOT
					share = 20
				}
				is_strongest_trade_power = ROOT
			}
			custom_trigger_tooltip = {
				tooltip = nov_rus_compete_in_the_channel_at
				OR = {
					trading_bonus = {
						trade_goods = chinaware
						value = yes
					}
					trading_bonus = {
						trade_goods = cloth
						value = yes
					}
					trading_bonus = {
						trade_goods = paper
						value = yes
					}
					trading_bonus = {
						trade_goods = silk
						value = yes
					}
					trading_bonus = {
						trade_goods = tea
						value = yes
					}
					trading_bonus = {
						trade_goods = dyes
						value = yes
					}
					trading_bonus = {
						trade_goods = spices
						value = yes
					}
				}
			}
		}
		effect = {
			add_permanent_power_projection = {
				type = 25_permanent_power_projection
				amount = 25
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Slot 3
#Available to all forms of Russias
mos_rus_russian_consolidation = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		OR = {
			tag = MOS
			tag = RUS
		}
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	mos_rus_build_up_army = {
		icon = mission_early_russian_army
		required_missions = {  }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = { ai = no }
				monthly_adm = 10
			}
			army_size_percentage = 0.8
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.100
				insight_tooltip = mos_rus_build_up_army_at
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_eliminate_the_minors = {
		icon = mission_conquer_tver
		required_missions = { mos_rus_build_up_army }
		position = 2
		provinces_to_highlight = {
			OR = {
				province_id = 294
				province_id = 4248
				province_id = 4249
				province_id = 4116
				province_id = 301
				province_id = 300
				province_id = 4255
				province_id = 2408
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			owns_or_non_sovereign_subject_of = 294
			owns_or_non_sovereign_subject_of = 4248
			owns_or_non_sovereign_subject_of = 4249
			owns_or_non_sovereign_subject_of = 4116
			owns_or_non_sovereign_subject_of = 301
			owns_or_non_sovereign_subject_of = 300
			owns_or_non_sovereign_subject_of = 4255
			owns_or_non_sovereign_subject_of = 2408
			num_of_cities = 30
		}
		effect = {
			add_ruler_modifier = {
				name = rus_unifier_of_russia
				duration = -1
			}
			custom_tooltip = mos_rus_eliminate_the_minors_at
			hidden_effect = {
				#russia_region = {
				#	limit = {
				#		owned_by = ROOT
				#	}
				#	add_base_manpower = 1
				#  
				#	type = random
				#	amount = 10
				#}
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				random_owned_province = { limit = { NOT = { has_province_flag = received_reward } region = russia_region } add_base_manpower = 1 set_province_flag = received_reward }
				every_owned_province = {
					limit = {
						has_province_flag = received_reward
					}
					clr_province_flag = received_reward
				}
			}

		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_conquer_crimea = {
		icon = mission_galleys_in_port
		required_missions = {  }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = azov_area
				area = zaporizhia_area
				area = yedisan_area
				area = crimea_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = azov_area
					area = zaporizhia_area
					area = yedisan_area
					area = crimea_area
				}
				value = 10
			}
		}
		effect = {
			add_country_modifier = {
				name = "controlling_the_steppes"
				duration = 5475
			}
			crimea_region = {
				limit = {
					owned_by = ROOT
				}
				add_province_modifier = {
					name = "convert_the_steppes"
					duration = 5475
				}
			}
			caucasia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_conquer_the_caucasus = {
		icon = mission_the_caucasus_rus
		required_missions = {
			mos_rus_conquer_crimea
		}
		position = 4
		provinces_to_highlight = {
			region = caucasia_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = caucasia_region
					value = 15
				}
				custom_trigger_tooltip = {
					tooltip = mos_rus_conquer_the_caucasus_tt
					any_ally = {
						religion_group = ROOT
						capital_scope = {
							region = caucasia_region
						}
						num_of_cities = 15
						has_opinion = {
							who = ROOT
							value = 100
						}
					}
				}
			}
		}
		effect = {
			custom_tooltip = mos_rus_conquer_the_caucasus_at
			if = {
				limit = {
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = caucasia_region
						value = 15
					}
				}
				custom_tooltip = BONUS_REWARD_YES
			}
			else = { custom_tooltip = BONUS_REWARD_NO }
			tooltip = {
				tabriz_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				tabarestan_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				azerbaijan_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				iraq_e_ajam_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				isfahan_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				birjand_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				sistan_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				herat_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				mashhad_area = {
					limit = {
						NOT = { is_core = ROOT }
						NOT = { is_permanent_claim = ROOT }
					}
					add_russian_claim = yes
				}
				add_adm_power = 150
			}

			custom_tooltip = mission_alternatively_tt
			custom_tooltip = mos_rus_conquer_the_caucasus_bt
			if = {
				limit = {
					any_ally = {
						religion_group = ROOT
						capital_scope = {
							region = caucasia_region
						}
						num_of_cities = 15
						has_opinion = {
							who = ROOT
							value = 100
						}
					}
				}
				custom_tooltip = BONUS_REWARD_YES
			}
			else = { custom_tooltip = BONUS_REWARD_NO }
			tooltip = {
				add_country_modifier = {
					name = rus_russian_caucasian_alliance
					duration = -1
				}
				custom_tooltip = mos_rus_conquer_the_caucasus_ct
				add_province_modifier = {
					name = rus_reinforced_defenses
					duration = 9125
				}
			}

			hidden_effect = {
				if = {
					limit = {
						num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
							region = caucasia_region
							value = 15
						}
					}
					tabriz_area = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_russian_claim = yes
					}
					tabarestan_area = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_russian_claim = yes
					}
					azerbaijan_area = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_russian_claim = yes
					}
					iraq_e_ajam_area = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_russian_claim = yes
					}
					isfahan_area = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_russian_claim = yes
					}
					birjand_area = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_russian_claim = yes
					}
					sistan_area = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_russian_claim = yes
					}
					herat_area = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_russian_claim = yes
					}
					mashhad_area = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_russian_claim = yes
					}
					add_adm_power = 150
				}
				else = {
					add_country_modifier = {
						name = rus_russian_caucasian_alliance
						duration = -1
					}
					random_ally = {
						limit = {
							religion_group = ROOT
							capital_scope = {
								region = caucasia_region
							}
							num_of_cities = 15
							has_opinion = {
								who = ROOT
								value = 100
							}
						}
						add_country_modifier = {
							name = rus_russian_caucasian_alliance
							duration = -1
						}
					}
					caucasia_region = {
						limit = {
							owner = {
								OR = {
									tag = ROOT
									is_subject_of = ROOT
									alliance_with = ROOT
									AND = {
										is_subject = yes
										overlord = {
											alliance_with = ROOT
										}
									}
								}
							}
						}
						add_province_modifier = {
							name = rus_reinforced_defenses
							duration = 9125
						}
					}
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_conquer_persia = {
		icon = mission_persian_soldiers
		required_missions = {
			mos_rus_conquer_the_caucasus
			mos_rus_conquer_central_asia
		}
		position = 5
		provinces_to_highlight = {
			OR = {
				area = shirvan_area
				area = armenia_area
				area = tabriz_area
				area = tabarestan_area
				area = azerbaijan_area
				area = iraq_e_ajam_area
				area = isfahan_area
				area = birjand_area
				area = sistan_area
				area = herat_area
				area = mashhad_area
			}
			OR = {
				has_river_estuary_trigger = yes
				province_has_center_of_trade_of_level = 1
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					custom_trigger_tooltip = {
						tooltip = mos_rus_conquer_persia_at
						OR = {
							area = shirvan_area
							area = armenia_area
							area = tabriz_area
							area = tabarestan_area
							area = azerbaijan_area
							area = iraq_e_ajam_area
							area = isfahan_area
							area = birjand_area
							area = sistan_area
							area = herat_area
							area = mashhad_area
						}
					}
					OR = {
						has_river_estuary_trigger = yes
						province_has_center_of_trade_of_level = 1
					}
					value = 6
				}
				custom_trigger_tooltip = {
					tooltip = mos_rus_conquer_persia_bt
					any_ally = {
						capital_scope = { region = caucasia_region }
						religion_group = ROOT
						num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
							region = persia_region
							value = 20
						}
					}
				}
			}
		}
		effect = {
			custom_tooltip = mos_rus_conquer_persia_ct
			if = {
				limit = {
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						is_in_persian_trade_node = yes
						OR = { has_river_estuary_trigger = yes province_has_center_of_trade_of_level = 1 } 
						value = 6
					}
				}
				custom_tooltip = BONUS_REWARD_YES
			}
			else = { custom_tooltip = BONUS_REWARD_NO }
			tooltip = {
				define_advisor = {
					type = trader
					cost_multiplier = 0.1
					skill = 3
				}
				4341 = {
					add_trade_modifier = {
						who = ROOT
						duration = -1
						power = 75
						key = RUS_PERSIAN_TRADE
					}
				}
			}
			custom_tooltip = mission_alternatively_tt
			custom_tooltip = mos_rus_conquer_persia_dt
			if = {
				limit = {
					any_ally = {
						capital_scope = { region = caucasia_region }
						religion_group = ROOT
						num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
							region = persia_region
							value = 20
						}
					}
				}
				custom_tooltip = BONUS_REWARD_YES
			}
			else = { custom_tooltip = BONUS_REWARD_NO }
			tooltip = {
				country_event_with_insight = {
					id = flavor_rus.116
					insight_tooltip = mos_rus_conquer_persia_et
				}
			}
			hidden_effect = {
				if = {
					limit = {
						num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
							is_in_persian_trade_node = yes
							OR = { has_river_estuary_trigger = yes province_has_center_of_trade_of_level = 1 } 
							value = 6
						}
					}
					define_advisor = {
						type = trader
						cost_multiplier = 0.1
						skill = 3
					}
					4341 = {
						add_trade_modifier = {
							who = ROOT
							duration = -1
							power = 75
							key = RUS_PERSIAN_TRADE
						}
					}
				}
				else = {
					country_event_with_insight = {
						id = flavor_rus.116
						insight_tooltip = mos_rus_conquer_persia_et
					}
				}
			}
			#For reasons beyond my comprehension, the game is refusing to trigger any event at this spoit if I use simple_dynamic_effect.
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_land_of_churches = {
		icon = mission_land_of_churches
		required_missions = {  }
		position = 6
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_tax_building_trigger = yes }
		}
		trigger = {
			num_of_owned_provinces_with = {
				value = 20
				has_tax_building_trigger = yes
			}
			if = {
				limit = {
					has_dlc = "Third Rome"
					religion = orthodox
				}
				has_orthodox_religious_icon_trigger = yes
			}
		}
		effect = {
			if = {
				limit = { religion = orthodox }
				if = {
					limit = { has_dlc = "Third Rome" }
					add_patriarch_authority = 0.1
					complex_dynamic_effect_without_alternative = {
						first_custom_tooltip = icon_climacus_reward_tt
						first_limit = "current_icon = icon_climacus"
						first_effect = "add_country_modifier = { name = rus_icon_climacus_bonus duration = 9125 }"
						second_custom_tooltip = icon_eleusa_reward_tt
						second_limit = "current_icon = icon_eleusa"
						second_effect = "add_country_modifier = { name = rus_icon_eleusa_bonus duration = 9125 }"
						third_custom_tooltip = icon_michael_reward_tt
						third_limit = "current_icon = icon_michael"
						third_effect = "add_country_modifier = { name = rus_icon_michael_bonus duration = 9125 }"
						fourth_custom_tooltip = icon_nicholas_reward_tt
						fourth_limit = "current_icon = icon_nicholas"
						fourth_effect = "add_country_modifier = { name = rus_icon_nicholas_bonus duration = 9125 }"
						fifth_custom_tooltip = icon_pancreator_reward_tt
						fifth_limit = "current_icon = icon_pancreator"
						fifth_effect = "add_country_modifier = { name = rus_icon_pancreator_bonus duration = 9125 }"
					}
				}
				else = {
					add_estate_loyalty = {
						estate = estate_church
						loyalty = 20
					}
				}
			}
			else = {
				define_advisor = {
					type = inquisitor
					skill = 3
					cost_multiplier = 0.25
				}
				add_prestige_or_monarch_power = {
					amount = 25
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_russian_patriarchate = {
		icon = mission_russian_patriarchatee
		required_missions = { mos_rus_land_of_churches }
		position = 7
		provinces_to_highlight = {
			OR = {
				AND = {
					province_id = 151
					owned_by = BYZ
				}
				AND = {
					province_id = 295
					OR = {
						NOT = { owned_by = ROOT }
						if = {
							limit = { has_dlc = "Third Rome" religion = orthodox }
							has_state_patriach = no
						}
						NOT = { religion = ROOT }
					}
				}
			}
		}
		trigger = {
			BYZ = {
				OR = {
					NOT = { owns = 151 }
					is_subject_of = ROOT
				}
			}
			295 = {
				owned_by = ROOT
				if = {
					limit = { has_dlc = "Third Rome" religion = orthodox }
					has_state_patriach = yes
				}
				religion = ROOT
			}
			if = {
				limit = { has_estate = estate_church }
				estate_loyalty = {
					estate = estate_church
					loyalty = 70
				}
			}
		}
		effect = {
			if = {
				limit = { religion = orthodox }
				add_country_modifier = {
					name = "russian_patriarchate"
					duration = -1
				}
				country_event_with_insight = {
					id = flavor_rus.120
					insight_tooltip = INSIGHT_JUST_TOOLTIP
					effect_tooltip = "
					add_stability_or_adm_power = yes
					add_patriarch_authority = 0.1
					custom_tooltip = flavor_rus.120.a.tt"
				}
			}
			else = {
				add_country_modifier = {
					name = rus_religious_zeal
					duration = -1
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_found_the_russian_tsardom = {	#Custom localization for republics/monarchies/theocracies
		icon = mission_the_russian_tsardom
		required_missions = {  }
		position = 9
		provinces_to_highlight = {
			if = {
				limit = { exists = RUS }
				owned_by = RUS
			}
			else = {
				OR = {
					province_id = 295			# Moskva
					province_id = 310			# Novgorod
					AND = {
						province_id = 294
						ROOT = { NOT = { owns_core_province = 308 } }
					}
					AND = {
						province_id = 308
						ROOT = { NOT = { owns_core_province = 294 } }
					}
					AND = {
						province_id = 301
						ROOT = { NOT = { owns_core_province = 293 } }
					}
					AND = {
						province_id = 293
						ROOT = { NOT = { owns_core_province = 301 } }
					}
					AND = {
						province_id = 306
						ROOT = { NOT = { owns_core_province = 307 } }
					}
					AND = {
						province_id = 307
						ROOT = { NOT = { owns_core_province = 306 } }
					}
				}
				OR = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
			}
		}
		trigger = {
			tag = RUS
		}
		effect = {
			remove_country_modifier = centralization_modifier
			add_country_modifier = {
				name = rus_the_realm_of_the_rus
				duration = 7300
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Slot 4
mos_rus_russian_steppes = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		OR = {
			tag = MOS
			tag = RUS
		}
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	mos_rus_conquer_the_great_horde = {
		icon = mission_break_the_tatar_yoke
		required_missions = { mos_rus_build_up_army }
		position = 2
		provinces_to_highlight = {
			province_id = 466
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				AND = {
					NOT = { has_country_modifier = the_tatar_yoke }
					owns_or_non_sovereign_subject_of = 466
				}
				AND = {
					controls = 466
					466 = {
						owner = {
							NOT = {
								war_score_against = {
									who = ROOT
									value = -85
								}
							}
						}
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_country_modifier = the_tatar_yoke
				}
				country_event = {
					id = flavor_mos.11
				}
			}
			add_power_projection = {
				type = mission_rewards_power_projection
				amount = 50
			}
			add_adm_power = 50
			add_mil_power = 50
		}

		ai_weight = {
			factor = 1000
		}
	}
	
	mos_rus_end_the_tatar_yok = {
		icon = mission_destroy_the_horde
		required_missions = { 
			mos_rus_conquer_the_great_horde
			mos_rus_conquer_kazan
		}
		position = 3
		provinces_to_highlight = {
			OR = {
				owned_by = KAZ
				owned_by = GOL
				owned_by = NOG
				owned_by = AST
				owned_by = CRI
				owned_by = GLH
				owned_by = YUA
				owned_by = MGE
			}
		}
		trigger = {
			NOT = { exists = KAZ }
			NOT = { exists = GOL }
			NOT = { exists = NOG }
			NOT = { exists = AST }
			NOT = { exists = CRI }
			if = {
				limit = { exists = GLH }
				NOT = { exists = GLH }
			}
			if = {
				limit = { exists = YUA }
				NOT = { exists = YUA }
			}
			if = {
				limit = { exists = MGE }
				NOT = { exists = MGE }
			}
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.122
				insight_tooltip = INSIGHT_JUST_TOOLTIP
				effect_tooltip = "
				add_power_projection = {
					type = mission_rewards_power_projection
					amount = 100
				}
				add_country_modifier = {
					name = rus_end_of_the_horde
					duration = 36500
				}"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_conquer_central_asia = {
		icon = mission_non-western_cavalry_raid
		required_missions = { mos_rus_expand_eastwards }
		position = 4
		provinces_to_highlight = {
			OR = {
				AND = {
					region = central_asia_region
					NOT = { area = lower_yik_area }
					NOT = { area = nogai_area }
					NOT = { area = tarim_basin_area }
					NOT = { area = shanshan_area }
				}
				area = merv_area
			}
			province_has_center_of_trade_of_level = 1
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				custom_trigger_tooltip = {
					tooltip = mos_rus_conquer_central_asia_ct
					OR = {
						AND = {
							region = central_asia_region
							NOT = { area = lower_yik_area }
							NOT = { area = nogai_area }
							NOT = { area = tarim_basin_area }
							NOT = { area = shanshan_area }
						}
						area = merv_area
					}
				}
				province_has_center_of_trade_of_level = 1
				value = 4
			}
		}
		effect = {
			454 = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 100
					key = RUS_RUSSIAN_TRADE_MONOPOLY
				}
			}
			507 = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 50
					key = RUS_RUSSIAN_TRADE_INFLUENCE
				}
			}
			707 = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 50
					key = RUS_RUSSIAN_TRADE_INFLUENCE
				}
			}
			custom_tooltip = mos_rus_conquer_central_asia_at
			tooltip = {
				add_base_production = 2
				add_province_modifier = {
					name = rus_local_russian_trade_center
					duration = -1
				}
			}
			hidden_effect = {
				central_asia_region = {
					limit = {
						country_or_non_sovereign_subject_holds = ROOT
						OR = {
							has_river_estuary_trigger = yes
							province_has_center_of_trade_of_level = 1
						}
					}
					add_base_production = 2
					add_province_modifier = {
						name = rus_local_russian_trade_center
						duration = -1
					}
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_conquer_manchuria = {
		icon = mission_amur_acquisition
		required_missions = { mos_rus_colonize_eastern_siberia }
		position = 7
		provinces_to_highlight = {
			OR = {
				area = furdan_area
				area = ilan_hala_area
				area = central_jilin_area
				area = sakhalin_area
			}
			NOT = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		trigger = {
			owns_core_province = 2106
			730 = {
				is_strongest_trade_power = ROOT
			}
			furdan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			ilan_hala_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			central_jilin_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			sakhalin_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_mercantilism = 4
			2106 = {
				rename_capital = "Vladivostok"
				change_religion = ROOT
				change_culture = ROOT
				add_base_tax = 2
				add_base_production = 4
				add_base_manpower = 2
				add_province_modifier = {
					name = "russian_pacific_port"
					duration = -1
				}
			}
		}
		ai_weight = {
			factor = 250
		}
	}
}

mos_rus_california = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		OR = {
			tag = MOS
			tag = RUS
		}
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
		is_random_new_world = no
	}
	has_country_shield = yes
	
	mos_rus_colonize_california = {
		icon = mission_colonize_california
		required_missions = { mos_rus_colonize_alaska }
		position = 8
		provinces_to_highlight = {
			colonial_region = colonial_california
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
			has_discovered = ROOT
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				colonial_region = colonial_california
				value = 20
			}
		}
		effect = {
			add_country_modifier = {
				name = rus_new_world_trade
				duration = -1
			}
			4637 = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 100
					key = RUS_TRADE_OF_THE_NEW_WORLD
				}
			}
			730 = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 100
					key = RUS_TRADE_OF_THE_NEW_WORLD
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Slot 5
#Muscovy only
mos_rus_russian_subjects = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		OR = {
			tag = MOS
			AND = {
				was_tag = MOS
				tag = RUS
			}
		}
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	mos_integrate_subjects = {
		icon = mission_integrate_perm
		required_missions = {  }
		position = 1
		provinces_to_highlight = {
			OR = {
				owned_by = BLO
				owned_by = RSO
				owned_by = YAR
				owned_by = PRM
				owned_by = PSK
			}
		}
		trigger = {
			NOT = { exists = BLO }
			NOT = { exists = RSO }
			NOT = { exists = YAR }
			NOT = { exists = PRM }
			NOT = { exists = PSK }
		}
		effect = {
			remove_country_modifier = annexers_legacy
			add_dip_power = 100
			add_prestige = 5
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Novgorod only
nov_rus_russian_navy = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		was_tag = NOV
		tag = RUS
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	nov_establish_the_great_navy = {
		icon = mission_rb_grow_the_channel
		required_missions = {  }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			naval_forcelimit = 80
			navy_size_percentage = 1
		}
		effect = {
			add_country_modifier = {
				name = nov_rus_great_novgorodian_navy
				duration = 36500
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Russian Minor
rmi_rus_power = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		NOT = { was_tag = MOS }
		NOT = { was_tag = NOV }
		tag = RUS
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rmi_grow_to_power = {
		icon = mission_conquer_moscow
		required_missions = {  }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			grown_by_development = 350
		}
		effect = {
			add_power_projection = {
				type = mission_rewards_power_projection
				amount = 25
			}
			add_country_modifier = {
				name = rmi_rus_rising_russian_power
				duration = 18250
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

#All Russias
mos_rus_siberian_conquest = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		OR = {
			tag = MOS
			tag = RUS
		}
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	mos_rus_conquer_kazan = {
		icon = mission_cossack_cavalry
		required_missions = { mos_rus_build_up_army }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = kazan_area
				area = samara_area
				area = volga_area
				area = kama_area
				area = bashkiria_area
				area = tambov_area
				area = saratov_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = kazan_area
					area = samara_area
					area = volga_area
					area = kama_area
					area = bashkiria_area
					area = tambov_area
					area = saratov_area
				}
				value = 10
			}
		}
		effect = {
			create_conquistador = {
				tradition = 40
			}
			add_country_modifier = {
				name = rus_steppe_conversion
				duration = 9125
			}
			lower_yik_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			nogai_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			kazakhstan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			khiva_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			transcaspia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 100
		}
	}
	
	mos_rus_expand_eastwards = {
		icon = mission_chinese_general_riding
		required_missions = { mos_rus_conquer_kazan }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = lower_yik_area
				area = nogai_area
				area = kazakhstan_area
				area = khiva_area
				area = transcaspia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = lower_yik_area
					area = nogai_area
					area = kazakhstan_area
					area = khiva_area
					area = transcaspia_area
				}
				value = 10
			}
		}
		effect = {
			create_conquistador = {
				tradition = 80
			}
			add_adm_power = 100
			west_siberia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			kyzylkum_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			merv_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			transoxiana_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			termez_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			ferghana_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			kashgaria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			arys_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			jetysuu_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			syr_darya_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			balchasj_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_colonize_west_siberia = {
		icon = mission_beyond_the_urals
		required_missions = { mos_rus_expand_eastwards }
		position = 4
		provinces_to_highlight = {
			OR = {
				province_id = 1074
				province_id = 1075
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			owns = 1074
			owns = 1075
		}
		effect = {
			1074 = {
				change_religion = ROOT
				change_culture = ROOT
				add_base_production = 2
			}
			1075 = {
				change_religion = ROOT
				change_culture = ROOT
				add_base_production = 1
			}
			west_siberia_region = {
				limit = {
					trade_goods = fur
					owned_by = ROOT
				}
				add_province_modifier = {
					name = "siberian_fur_production"
					duration = 7300
				}
			}
			tannu_uriankhai_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
			define_conquistador = {
				name = "Yermak Timofeyevich"
				shock = 6
				fire = 6
				manuever = 5
				siege = 0
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_colonize_central_siberia = {
		icon = mission_collect_yasak
		required_missions = { mos_rus_colonize_west_siberia }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = irkutsk_area
				area = tunguska_area
				area = central_siberia_area
				area = tannu_uriankhai_area
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			num_of_owned_provinces_with = {
				OR = {
					area = irkutsk_area
					area = tunguska_area
					area = central_siberia_area
					area = tannu_uriankhai_area
				}
				value = 15
			}
			owns = 1064
		}
		effect = {
			1064 = {
				center_of_trade = 2
				change_religion = ROOT
				change_culture = ROOT
				add_base_production = 2
			}
			east_siberia_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_colonize_eastern_siberia = {
		icon = mission_extent_yasak_to_the_east
		required_missions = { mos_rus_colonize_central_siberia }
		position = 6
		provinces_to_highlight = {
			region = east_siberia_region
			NOT = { owned_by = ROOT }
		}
		trigger = {
			num_of_owned_provinces_with = {
				region = east_siberia_region
				value = 20
			}
			owns = 1043
		}
		effect = {
			east_siberia_region = {
				limit = {
					trade_goods = fur
					owned_by = ROOT
				}
				add_province_modifier = {
					name = "siberian_fur_production"
					duration = 7300
				}
			}
			define_explorer = {
				name = "Vitus Bering"
				fire = 4
				shock = 2
				manuever = 5
			}
			1043 = {
				if = {
					limit = {
						NOT = { has_building = shipyard }
						NOT = { has_building = grand_shipyard }
					}
					add_building = shipyard
				}
				center_of_trade = 2
				change_religion = ROOT
				change_culture = ROOT
				add_base_production = 2
				add_province_modifier = {
					name = "russian_pacific_port"
					duration = -1
				}
			}
			add_country_modifier = {
				name = rus_new_world_colonization
				duration = 36500
			}
			increase_gold_discovery = yes
			furdan_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_russian_claim = yes
			}
			ilan_hala_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_russian_claim = yes
			}
			central_jilin_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_russian_claim = yes
			}
			sakhalin_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_russian_claim = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

mos_rus_new_world = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		OR = {
			tag = MOS
			tag = RUS
		}
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
		is_random_new_world = no
	}
	has_country_shield = yes
	
	mos_rus_colonize_alaska = {
		icon = mission_colonize_alaska
		required_missions = { mos_rus_colonize_eastern_siberia }
		position = 7
		provinces_to_highlight = {
			if = {
				limit = {
					ROOT = {
						NOT = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								colonial_region = colonial_alaska
								value = 20
							}
						}
					}
				}
				colonial_region = colonial_alaska
			}
			else = {
				province_id = 2613
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
			has_discovered = ROOT
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				colonial_region = colonial_alaska
				value = 20
			}
			owns_or_non_sovereign_subject_of = 2613
		}
		effect = {
			add_country_modifier = {
				name = "rus_alaska_modifier"
				duration = 7300
			}
			2613 = {
				change_province_name = "Novo-Arkhangelsk"
				rename_capital = "Novo-Arkhangelsk"
				add_base_tax = 1
				add_base_production = 1
				add_base_manpower = 1
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	mos_rus_colonize_canada = {
		icon = mission_settlers_north_america
		required_missions = { mos_rus_colonize_alaska }
		position = 8
		provinces_to_highlight = {
			colonial_region = colonial_canada
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
			has_discovered = ROOT
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				colonial_region = colonial_canada
				value = 40
			}
		}
		effect = {
			add_country_modifier = {
				name = rus_tariffs_of_the_new_world
				duration = -1
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Russian Tsardom Misssions - Available for all Russias before modernization
rus_russian_bureaucracy = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_enact_the_sudebnik = {
		icon = mission_the_sudebnik
		required_missions = { mos_rus_found_the_russian_tsardom }
		position = 10
		provinces_to_highlight = {
			OR = {
				province_id = 274
				province_id = 310
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { num_of_times_improved = 2 }
			}
		}
		trigger = {
			stability = 1
			reform_level = 3
			OR = {
				has_reform = tysyatsky_reform
				has_reform = namestnik_reform
			}
			owns_or_non_sovereign_subject_of = 274
			owns_or_non_sovereign_subject_of = 310
			274 = { num_of_times_improved = 3 }
			310 = { num_of_times_improved = 3 }
			if = {
				limit = {
					NOT = { primary_culture = ruthenian }
					NOT = { primary_culture = ruthenian_new }
				}
				custom_trigger_tooltip = {
					tooltip = rus_enact_the_sudebnik_ct
					has_country_flag = rus_had_tysyatsky_event
				}
			}
		}
		effect = {
			simple_dynamic_effect = {
				first_custom_tooltip = rus_enact_the_sudebnik_at
				first_limit = "has_reform = tysyatsky_reform"
				first_effect = "add_estate_loyalty = { estate = estate_nobles loyalty = 15 } add_legitimacy_equivalent = { amount = 10 republican_tradition = 5 }"
				second_custom_tooltip = rus_enact_the_sudebnik_bt
				second_limit = "has_reform = namestnik_reform"
				second_effect = "change_estate_land_share = { estate = all share = -5 } add_adm_power = 50"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_book_of_royal_degrees = {
		icon = mission_book_of_royal_degrees
		required_missions = { rus_enact_the_sudebnik }
		position = 11
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					#Promote Advisors - +2
					has_dlc = "Cradle of Civilization"
					#National Focus - +2
					has_dlc = "Res Publica"
					has_dlc = "Common Sense"
				}
				monthly_adm = 14
			}
			else_if = {
				limit = {
					OR = {
						has_dlc = "Cradle of Civilization"
						has_dlc = "Res Publica"
						has_dlc = "Common Sense"
					}
				}
				monthly_adm = 12
			}
			else = {
				monthly_adm = 10
			}
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.123
				insight_tooltip = rus_book_of_royal_degrees_at
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_russian_nobility = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_handle_the_boyars = {
		icon = mission_unite_the_princes
		required_missions = { mos_rus_found_the_russian_tsardom }
		position = 10
		provinces_to_highlight = {
		}
		trigger = {
			OR = {
				AND = {
					crown_land_share = estate_nobles
					NOT = { estate_influence = { estate = estate_nobles influence = 40 } }
				}
				AND = {
					NOT = { crown_land_share = estate_nobles }
					estate_loyalty = { estate = estate_nobles loyalty = 65 }
				}
				NOT = { has_estate = estate_nobles }
			}
		}
		effect = {
			if = {
				limit = { has_estate = estate_nobles }
				simple_dynamic_effect = {
					first_custom_tooltip = rus_handle_the_boyars_at
					first_limit = "crown_land_share = estate_nobles"
					first_effect = "add_country_modifier = { name = rus_demoted_the_boyars duration = 9125 }"
					second_custom_tooltip = rus_handle_the_boyars_bt
					second_limit = "NOT = { crown_land_share = estate_nobles }"
					second_effect = "add_country_modifier = { name = rus_support_of_the_boyars duration = 9125 }"
				}
			}
			else = {
				add_adm_power = 50
				add_dip_power = 50
				add_mil_power = 50
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_the_mestnichestvo = {
		icon = mission_abolish_mestnichestvo
		required_missions = { rus_handle_the_boyars }
		position = 11
		provinces_to_highlight = {
		}
		trigger = {
			NOT = { has_spawned_rebels = noble_rebels }
			NOT = { has_estate_privilege = estate_nobles_mestnichestvo }
			NOT = { corruption = 0.5 }
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.126
				insight_tooltip = INSIGHT_JUST_TOOLTIP
				effect_tooltip = "change_government_reform_progress = 50
				if = {
					limit = {
						has_government_mechanic = russian_modernization_mechanic
					}
					add_government_power = { 
						mechanic_type = russian_modernization_mechanic
						power_type = russian_modernization
						value = 10
					}
				}
				else = {
					add_adm_power = 50
				}"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_show_russian_superiority = {
		icon = mission_great_northern_war
		required_missions = {
			rus_book_of_royal_degrees
			rus_the_mestnichestvo
		}
		position = 12
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_courthouse_building_trigger = yes }
			NOT = { has_building = state_house }
		}
		trigger = {
			if = {
				limit = {
					has_government_mechanic = russian_modernization_mechanic
				}
				has_government_power = { 
					mechanic_type = russian_modernization_mechanic
					power_type = russian_modernization
					value = 50
				}
			}
			OR = {
				num_of_owned_provinces_with = {
					has_courthouse_building_trigger = yes
					value = 15
				}
				num_of_owned_provinces_with = {
					has_building = state_house
					value = 3
				}
				monthly_adm = 12
			}
		}
		effect = {
			change_government_reform_progress = 75
			add_country_modifier = {
				name = rus_early_modernization_modifier
				duration = 9125
			}
			custom_tooltip = rus_show_russian_superiority_at
			tooltip = {
				add_building = university
				add_province_modifier = {
					name = rus_center_of_modernization
					duration = -1
				}
			}
			hidden_effect = {
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes }
					save_event_target_as = rus_center_of_modernization
				}
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes development = 10 }
					save_event_target_as = rus_center_of_modernization
				}
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes development = 15 }
					save_event_target_as = rus_center_of_modernization
				}
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes development = 20 }
					save_event_target_as = rus_center_of_modernization
				}
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes development = 25 }
					save_event_target_as = rus_center_of_modernization
				}
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes development = 30 }
					save_event_target_as = rus_center_of_modernization
				}
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes development = 35 }
					save_event_target_as = rus_center_of_modernization
				}
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes development = 40 }
					save_event_target_as = rus_center_of_modernization
				}
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes development = 45 }
					save_event_target_as = rus_center_of_modernization
				}
				random_owned_province = {
					limit = { is_core = ROOT is_state = yes development = 50 }
					save_event_target_as = rus_center_of_modernization
				}
				event_target:rus_center_of_modernization = {
					add_building = university
					add_province_modifier = {
						name = rus_center_of_modernization
						duration = -1
					}
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_russian_disaster = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_the_vodka_monopoly = {
		icon = mission_vodka_monopoly
		required_missions = { mos_rus_found_the_russian_tsardom }
		position = 10
		provinces_to_highlight = {
			trade_goods = grain
			owned_by = ROOT
			NOT = { base_production = 6 }
		}
		trigger = {
			OR = {
				num_of_owned_provinces_with = {
					base_production = 6
					trade_goods = grain
					value = 10
				}
				has_reform = vodka_of_the_crown_reform
			}
		}
		effect = {
			custom_tooltip = rus_enable_vodka_sales_decision_tt
			set_country_flag = rus_enable_vodka_sales_decision
			add_years_of_owned_provinces_production_income = {
				custom_tooltip = MONOPOLY_INCOME_GRAIN_DESC
				trigger = {
					trade_goods = grain
				}
				years = 4
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_the_time_of_troubles = {
		icon = mission_weather_the_troubles
		required_missions = {  }
		position = 11
		provinces_to_highlight = {
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = had_time_of_troubles.tooltip
				OR = {
					has_country_flag = rus_had_time_of_troubles
					AND = {
						NOT = { current_age = age_of_discovery }
						NOT = { current_age = age_of_reformation }
					}
				}
			}
		}
		effect = {
			simple_dynamic_effect = {
				first_custom_tooltip = rus_the_time_of_troubles_at
				first_limit = "has_country_flag = rus_had_time_of_troubles"
				first_effect = "add_country_modifier = { name = rus_the_strong_motherland duration = -1 }"
				second_custom_tooltip = rus_the_time_of_troubles_bt
				second_limit = "NOT = { current_age = age_of_discovery } NOT = { current_age = age_of_reformation }"
				second_effect = "add_country_modifier = { name = rus_the_stable_empire duration = 9125 }"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_the_empire_of_russia = {
		icon = mission_empire_of_russia
		required_missions = { 
			rus_show_russian_superiority
			rus_increase_absolute_rule
		}
		position = 13
		provinces_to_highlight = {
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = rus_the_empire_of_russia_ct
				OR = {
					has_reform = russian_empire_reform
					has_reform = great_russian_republic_reform
				}
			}
		}
		effect = {
			custom_tooltip = rus_the_empire_of_russia_at
			hidden_effect = {
				set_country_flag = rus_modernized_russia
				swap_non_generic_missions = yes
			}
			country_event_with_insight = {
				id = flavor_rus.134
				insight_tooltip = INSIGHT_JUST_TOOLTIP
				effect_tooltip = "
				change_technology_group = western
				add_prestige_or_monarch_power = {
					amount = 50
				}"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_russian_streltsy = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_the_streltsy = {
		icon = mission_recruit_streltsy
		required_missions = { mos_rus_found_the_russian_tsardom }
		position = 10
		provinces_to_highlight = {
		}
		trigger = {
			army_size_percentage = 0.8
			army_tradition = 30
			OR = {
				num_of_streltsy = 30
				AND = {
					NOT = { has_reform = tsardom }
					NOT = { has_reform = ruthenian_tsardom }
					NOT = { has_reform = principality }
					NOT = { has_reform = veche_republic }
					NOT = { has_reform = great_veche_republic }
					NOT = { has_reform = streltsy_reform }
				}
				#custom_trigger_tooltip = {
				#	tooltip = has_not_russian_mechanic_tt
				#	NOT = { has_government_mechanic = russian_mechanic }
				#}
			}
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.130
				insight_tooltip = rus_the_streltsy_at
			}
		}

		ai_weight = {
			factor = 0 # AI can't recruit streltsy anyway, and trying to stay at forcelimit ruins Russia's economy
		}
	}
	
	rus_solidify_serfdom = {
		icon = mission_serfdom
		required_missions = { rus_the_vodka_monopoly }
		position = 11
		provinces_to_highlight = {
		}
		trigger = {
			#Exception case if the player - somehow - crushes the peasants and liberates them at the same time and vice versa for nobles...
			if = {
				limit = { RUS_has_none_of_the_serfdom_privileges = yes }
				RUS_has_none_of_the_serfdom_privileges = yes
			}
			else_if = {
				limit = {
					OR = {
						AND = {
							has_country_flag = rus_crushed_boyars_revolt
							OR = {
								has_country_flag = rus_enacted_early_serfdom_flag
								has_country_flag = enserfed_peasants
							}
						}
						AND = {
							has_country_flag = rus_crushed_peasant_revolt
							OR = {
								has_country_flag = liberated_peasants
								has_country_flag = rus_enacted_early_disconnection_flag
							}
						}
					}
				}
				NOT = { has_spawned_rebels = anti_tax_rebels }
				NOT = { has_spawned_rebels = noble_rebels }
				OR = {
					AND = {
						custom_trigger_tooltip = {
							tooltip = rus_solidify_serfdom_at
							has_country_flag = rus_crushed_peasant_revolt
						}
					}
					AND = {
						custom_trigger_tooltip = {
							tooltip = rus_solidify_serfdom_bt
							has_country_flag = rus_crushed_boyars_revolt
						}
					}
					NOT = { has_estate = estate_nobles }
				}
			}
			else = {
				OR = {
					AND = {
						custom_trigger_tooltip = {
							tooltip = rus_enacted_early_serfdom_tt	#Give serfdom related privilege
							OR = {
								has_country_flag = rus_enacted_early_serfdom_flag
								has_country_flag = enserfed_peasants
							}
						}
						custom_trigger_tooltip = {
							tooltip = rus_solidify_serfdom_at
							has_country_flag = rus_crushed_peasant_revolt
						}
						NOT = { has_spawned_rebels = anti_tax_rebels }
					}
					AND = {
						custom_trigger_tooltip = {
							tooltip = rus_enacted_early_disconnection_tt	#Give serfdom related privilege
							OR = {
								has_country_flag = liberated_peasants
								has_country_flag = rus_enacted_early_disconnection_flag
							}
						}
						custom_trigger_tooltip = {
							tooltip = rus_solidify_serfdom_bt
							has_country_flag = rus_crushed_boyars_revolt
						}
						NOT = { has_spawned_rebels = noble_rebels }
					}
					NOT = { has_estate = estate_nobles }
				}
			}
		}
		effect = {
			if = {
				limit = { has_estate = estate_nobles }
				if = {
					limit = { RUS_has_none_of_the_serfdom_privileges = yes }
					add_adm_power = 100
					add_dip_power = 100
					add_mil_power = 100
					custom_tooltip = " "
				}
				simple_dynamic_effect = {
					first_custom_tooltip = rus_solidify_serfdom_ct
					first_limit = "RUS_rus_solidify_serfdom_serfdom = yes"
					first_effect = "custom_tooltip = rus_solidify_serfdom_dt set_country_flag = rus_buffed_serfdom_privileges"
					second_custom_tooltip = rus_solidify_serfdom_et
					second_limit = "RUS_rus_solidify_serfdom_free_peasants = yes"
					second_effect = "custom_tooltip = rus_solidify_serfdom_ft set_country_flag = rus_buffed_free_peasantry_privileges"
				}
			}
			else = {
				add_adm_power = 100
				add_dip_power = 100
				add_mil_power = 100
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_increase_absolute_rule = {
		icon = mission_autocratic_rule
		required_missions = { 
			rus_solidify_serfdom
			rus_the_courts_direction
		}
		position = 12
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					is_absolutism_active = no
				}
				legitimacy_equivalent = 90
				stability = 3
				num_of_subjects = 7
				NOT = {
					any_subject_country = {
						liberty_desire = 20
					}
				}
				custom_trigger_tooltip = {
					tooltip = absolutism_dynamic_reward_tt
					is_absolutism_active = no
				}
			}
			else = {
				if = {
					limit = {
						is_revolutionary = yes
						has_dlc = "Emperor"
					}
					revolutionary_zeal = 75
				}
				else = {
					if = {
						limit = { government = republic }
						absolutism = 35
					}
					else = {
						absolutism = 50
					}
				}
				NOT = { average_home_autonomy = 15 }
			}
			NOT = {
				estate_influence = {
					estate = estate_church
					influence = 50
				}
			}
			NOT = {
				estate_influence = {
					estate = estate_burghers
					influence = 50
				}
			}
			NOT = {
				estate_influence = {
					estate = estate_nobles
					influence = 50
				}
			}
			if = {
				limit = {
					has_any_estates = yes
				}
				custom_trigger_tooltip = {
					tooltip = rus_increase_absolute_rule_tt
					check_variable = {
						which = seize_land_counter
						value = 10
					}
				}
			}
		}
		effect = {
			add_adm_power = 50
			add_country_modifier = {
				name = "russian_autocracy"
				duration = 7300
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_court_and_church = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_role_of_the_church = {
		icon = mission_autocephalous_archbishopric
		required_missions = { mos_rus_found_the_russian_tsardom }
		position = 10
		provinces_to_highlight = {
		}
		trigger = {
			OR = {
				NOT = { has_estate = estate_church }
				AND = {
					estate_loyalty = { estate = estate_church loyalty = 65 }
					num_of_estate_agendas_completed = { estate = estate_church value = 2 }
					estate_influence = { estate = estate_church influence = 30 }
				}
			}
		}
		effect = {
			if = {
				limit = { has_estate = estate_church }
				enable_improved_consecration = yes 
				add_country_modifier = { 
					name = rus_loyalty_of_the_patriarchy 
					duration = -1 
				}
			}
			else = {
				add_prestige_or_monarch_power = {
					amount = 25
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_the_courts_direction = {
		icon = mission_alliances
		required_missions = {
			rus_the_streltsy
			rus_role_of_the_church
		}
		position = 11
		provinces_to_highlight = {
			is_capital = yes
			has_discovered = ROOT
			owner = {
				technology_group = western
				NOT = {
					has_opinion = {
						who = ROOT
						value = 100
					}
				}
			}
		}
		trigger = {
			has_adm_advisor_2 = yes
			if = {
				limit = {
					government = monarchy
				}
				legitimacy = 95
			}
			if = {
				limit = {
					government = republic
				}
				republican_tradition = 90
			}
			any_known_country = {
				technology_group = western
				has_opinion = {
					who = ROOT
					value = 100
				}
			}
		}
		effect = {
			complex_dynamic_effect_without_alternative = {
				first_custom_tooltip = rus_the_courts_direction_at
				first_limit = "philosopher = 2"
				first_effect = "add_country_modifier = { name = rus_philosopher_focus duration = 9125 }"
				second_custom_tooltip = rus_the_courts_direction_bt
				second_limit = "natural_scientist = 2"
				second_effect = "add_country_modifier = { name = rus_natural_scientist_focus duration = 9125 }"
				third_custom_tooltip = rus_the_courts_direction_ct
				third_limit = "artist = 2"
				third_effect = "add_country_modifier = { name = rus_artist_focus duration = 9125 }"
				fourth_custom_tooltip = rus_the_courts_direction_dt
				fourth_limit = "treasurer = 2"
				fourth_effect = "add_country_modifier = { name = rus_treasurer_focus duration = 9125 }"
				fifth_custom_tooltip = rus_the_courts_direction_et
				fifth_limit = "theologian = 2"
				fifth_effect = "add_country_modifier = { name = rus_theologian_focus duration = 9125 }"
				sixth_custom_tooltip = rus_the_courts_direction_ft
				sixth_limit = "master_of_mint = 2"
				sixth_effect = "add_country_modifier = { name = rus_master_of_mint_focus duration = 9125 }"
				seventh_custom_tooltip = rus_the_courts_direction_gt
				seventh_limit = "inquisitor = 2"
				seventh_effect = "add_country_modifier = { name = rus_inquisitor_focus duration = 9125 }"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Russian Empire Missions - Available for all Russias after modernization
rus_russian_navy = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_country_flag = rus_modernized_russia
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_establish_the_russian_navy = {
		icon = mission_russian_navy
		required_missions = { rus_the_empire_of_russia }
		position = 14
		provinces_to_highlight = {
		}
		trigger = {
			num_of_admirals = 2
			navy_size_percentage = 0.8
			naval_forcelimit = 100
			navy_tradition = 50
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.36
				insight_tooltip = rus_establish_the_russian_navy_at
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_monopolize_novgorod = {
		icon = reform_the_state
		required_missions = { rus_establish_the_russian_navy }
		position = 15
		provinces_to_highlight = {
			OR = {
				province_id = 1652
				province_id = 33
				province_id = 1926
			}
			OR = {
				NOT = {
					trade_share = {
						country = ROOT
						share = 50
					}
				}
				highest_value_trade_node = no
			}
		}
		trigger = {
			OR = {
				1652 = {
					trade_share = {
						country = ROOT
						share = 50
					}
					highest_value_trade_node = yes
				}
				33 = {
					trade_share = {
						country = ROOT
						share = 50
					}
					highest_value_trade_node = yes
				}
				1926 = {
					trade_share = {
						country = ROOT
						share = 50
					}
					highest_value_trade_node = yes
				}
			}
		}
		effect = {
			if = {
				limit = { NOT = { has_dlc = "Emperor" } }
				custom_tooltip = unlock_monopolies_tt
			}
			custom_tooltip = buffed_monopolies_tt
			set_country_flag = buffed_monopolies
			1652 = {
				add_trade_node_income = 30
			}
			33 = {
				add_trade_node_income = 30
			}
			1926 = {
				add_trade_node_income = 30
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_russian_government = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_country_flag = rus_modernized_russia
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_establish_the_governing_senate = {
		icon = mission_the_governing_senate
		required_missions = { rus_the_empire_of_russia }
		position = 14
		provinces_to_highlight = {
		}
		trigger = {
			num_of_completed_idea_groups_by_category = {
				type = adm
				amount = 1
			}
			has_adm_advisor_3 = yes
			has_dip_advisor_3 = yes
			has_mil_advisor_3 = yes
			reform_level = 6
		}
		effect = {
			add_country_modifier = {
				name = "prikazy_modifier"
				duration = 7300
			}
			country_event_with_insight = {
				id = flavor_rus.37
				insight_tooltip = rus_establish_the_governing_senate_at
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_pass_issues_in_the_senate = {
		icon = mission_eastern_european_city
		required_missions = { rus_establish_the_governing_senate }
		position = 15
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					NOT = { has_reform = governing_senate_reform }
					NOT = { has_reform = enforced_autocracy_reform }
				}
				custom_trigger_tooltip = {
					tooltip = FULFIL_FIRST_CONDITION_TO_SEE_MORE_TT
					always = no
				}
			}
			else_if = {
				limit = { has_reform = governing_senate_reform }
				num_of_issues_passed = {
					amount = 8
				}
				num_of_estate_agendas_completed = {
					estate = estate_church
					value = 4
				}
				num_of_estate_agendas_completed = {
					estate = estate_burghers
					value = 4
				}
				num_of_estate_agendas_completed = {
					estate = estate_nobles
					value = 4
				}
			}
			else = {
				if = {
					limit = { is_absolutism_active = yes }
					absolutism = 90
				}
				else = {
					calc_true_if = {
						desc = rus_pass_issues_in_the_senate_ct
						all_subject_country = {
							total_development = 100
							NOT = { liberty_desire = 20 }
						}
						amount = 7
					}
				}
				crown_land_share = 90
				stability = 2
			}
		}
		effect = {
			simple_dynamic_effect = {
				first_custom_tooltip = rus_pass_issues_in_the_senate_at
				first_limit = "has_reform = governing_senate_reform"
				first_effect = "halves_parliament_bribe_costs = yes unlock_new_issues = yes add_country_modifier = { name = rus_supremacy_of_the_duna duration = -1 }"
				second_custom_tooltip = rus_pass_issues_in_the_senate_bt
				second_limit = "has_reform = enforced_autocracy_reform"
				second_effect = "add_absolutism = 20 add_country_modifier = { name = rus_absolute_rule duration = -1 }"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_russian_religion_serfdom = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_country_flag = rus_modernized_russia
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_most_holy_synod = {
		icon = mission_most_holy_synod
		required_missions = { rus_the_empire_of_russia }
		position = 14
		provinces_to_highlight = {
		}
		trigger = {
			reform_level = 4
			OR = {
				AND = {
					custom_trigger_tooltip = {  
						tooltip = rus_6_tot_tt
						has_global_modifier_value = { 
							which = tolerance_own 
							value = 6
						}
					}
					if = {
						limit = { has_estate = estate_church }
						estate_loyalty = {
							estate = estate_church
							loyalty = 80
						}
					}
					if = {
						limit = { uses_patriarch_authority = yes }
						OR = {
							patriarch_authority = 1
							num_of_owned_provinces_with = {
								has_state_patriach = yes
								value = 70
							}
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = rus_most_holy_synod_xx
					any_known_country = {
						religion_group = ROOT
						NOT = { religion = ROOT }
						OR = {
							alliance_with = ROOT
							is_subject_of = ROOT
						}
						has_opinion = {
							who = ROOT
							value = 150
						}
						trust = {
							who = ROOT
							value = 75
						}
					}
					diplomatic_reputation = 2
				}
			}
		}
		effect = {
			custom_tooltip = rus_most_holy_synod_at
			if = {
				limit = {
					any_known_country = { 
						religion_group = ROOT 
						NOT = { religion = ROOT } 
						OR = { alliance_with = ROOT is_subject_of = ROOT } 
						has_opinion = { who = ROOT value = 150 } 
						trust = { who = ROOT value = 75 } 
					} 
					diplomatic_reputation = 2
				}
				custom_tooltip = BONUS_REWARD_YES
			}
			else = { custom_tooltip = BONUS_REWARD_NO }
			custom_tooltip = rus_most_holy_synod_ct
			#tooltip = {
			#	add_government_reform = holy_synod_reform
			#}
			custom_tooltip = rus_most_holy_synod_bt
			if = {
				limit = {
					OR = {
						NOT = { has_estate = estate_church } 
						estate_loyalty = { estate = estate_church loyalty = 80 } 
					} 
					if = { 
						limit = { uses_patriarch_authority = yes }
						OR = {
							patriarch_authority = 1
							num_of_owned_provinces_with = {
								has_state_patriach = yes
								value = 70
							}
						}
					}
					has_global_modifier_value = { which = tolerance_own  value = 6 }
				}
				custom_tooltip = BONUS_REWARD_YES
			}
			else = { custom_tooltip = BONUS_REWARD_NO }
			custom_tooltip = rus_most_holy_synod_dt
			#tooltip = {
			#	add_government_reform = strengthened_the_patriarchy_reform
			#}
			if = {
				limit = {
					any_known_country = { 
						religion_group = ROOT 
						NOT = { religion = ROOT } 
						OR = { alliance_with = ROOT is_subject_of = ROOT } 
						has_opinion = { who = ROOT value = 150 } 
						trust = { who = ROOT value = 75 } 
					} 
					diplomatic_reputation = 2
					OR = {
						NOT = { has_estate = estate_church } 
						estate_loyalty = { estate = estate_church loyalty = 80 } 
					} 
					if = { 
						limit = { uses_patriarch_authority = yes } 
						OR = {
							patriarch_authority = 1
							num_of_owned_provinces_with = {
								has_state_patriach = yes
								value = 70
							}
						}
					}
					has_global_modifier_value = { which = tolerance_own  value = 6 }
				}
				custom_tooltip = COMBINED_BONUS_REWARD_YES
			}
			else = { custom_tooltip = COMBINED_BONUS_REWARD_NO }
			custom_tooltip = rus_most_holy_synod_tt 
			#tooltip = {
			#	add_government_reform = head_of_the_patriarchy_reform
			#}

			hidden_effect = {
				if = {
					limit = {
						any_known_country = { 
							religion_group = ROOT 
							NOT = { religion = ROOT } 
							OR = { alliance_with = ROOT is_subject_of = ROOT } 
							has_opinion = { who = ROOT value = 150 } 
							trust = { who = ROOT value = 75 } 
						} 
						diplomatic_reputation = 2
					}
					set_country_flag = rus_holy_synod_event
				}
				if = {
					limit = {
						OR = {
							NOT = { has_estate = estate_church } 
							estate_loyalty = { estate = estate_church loyalty = 80 } 
						} 
						if = { 
							limit = { uses_patriarch_authority = yes } 
							OR = {
								patriarch_authority = 1
								num_of_owned_provinces_with = {
									has_state_patriach = yes
									value = 70
								}
							}
						}
						has_global_modifier_value = { which = tolerance_own  value = 6 }
					}
					set_country_flag = rus_strengthening_of_the_patriarchy_event
				}
				if = {
					limit = {
						any_known_country = { 
							religion_group = ROOT 
							NOT = { religion = ROOT } 
							OR = { alliance_with = ROOT is_subject_of = ROOT } 
							has_opinion = { who = ROOT value = 150 } 
							trust = { who = ROOT value = 75 } 
						} 
						diplomatic_reputation = 2
						OR = {
							NOT = { has_estate = estate_church } 
							estate_loyalty = { estate = estate_church loyalty = 80 } 
						} 
						if = { 
							limit = { uses_patriarch_authority = yes } 
							OR = {
								patriarch_authority = 1
								num_of_owned_provinces_with = {
									has_state_patriach = yes
									value = 70
								}
							}
						}
						has_global_modifier_value = { which = tolerance_own  value = 6 }
					}
					clr_country_flag = rus_holy_synod_event 
					clr_country_flag = rus_strengthening_of_the_patriarchy_event 
					country_event = { 
						id = flavor_rus.40 
					}
				}
			}
			if = {
				limit = {
					has_country_flag = rus_holy_synod_event
				}
				country_event = {
					id = flavor_rus.38
				}
			}
			if = {
				limit = {
					has_country_flag = rus_strengthening_of_the_patriarchy_event
				}
				country_event = {
					id = flavor_rus.39
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_early_industrialization = {
		icon = mission_state_manufactories
		required_missions = { rus_establish_the_governing_senate }
		position = 15
		provinces_to_highlight = {
			owned_by = ROOT
			has_manufactory_no_custom_tooltip_trigger = yes
			NOT = { development = 20 }
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_manufactory_trigger = yes
				development = 20
				value = 10
			}
		}
		effect = {
			for = {
				custom_tooltip = rus_early_industrialization_at
				effect = "random_owned_province = { 
					limit = { 
						NOT = { has_province_flag = rus_manu } 
						has_manufactory_trigger = yes 
						development = 20 
					}
					set_province_flag = rus_manu
				}"
				amount = 10
			}
			tooltip = {
				add_province_modifier = {
					name = rus_early_center_of_industrialization
					duration = -1
				}
			}
			hidden_effect = {
				every_owned_province = {
					limit = {
						has_province_flag = rus_manu
					}
					clr_province_flag = rus_manu
					add_province_modifier = { 
						name = rus_early_center_of_industrialization 
						duration = -1 
					}
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_the_age_of_revolution = {
		icon = misssion_russian_great_power	
		required_missions = {
			rus_monopolize_novgorod
			rus_pass_issues_in_the_senate
			rus_early_industrialization
			rus_reform_the_military
			rus_peters_reforms
		}
		position = 16
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					OR = {
						has_dlc = "Emperor"
						has_dlc = "Rights of Man"
					}
				}
				NOT = { great_power_rank = 4 }
			}
			total_development = 2500
		}
		effect = {
			add_country_modifier = {
				name = rus_great_power_of_the_east
				duration = -1
			}
			if = {
				limit = { NOT = { current_age = age_of_revolutions } }
				custom_tooltip = rus_the_age_of_revolution_at
			}
			else = {
				custom_tooltip = rus_the_age_of_revolution_bt
				set_country_flag = rus_has_rev_missions
				swap_non_generic_missions = yes
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_russian_military = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_country_flag = rus_modernized_russia
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_dissolve_the_streltsy = {
		icon = mission_handle_the_streltsy
		required_missions = { rus_the_empire_of_russia }
		position = 14
		provinces_to_highlight = {
		}
		trigger = {
			OR = {
				AND = {
					has_reform = streltsy_reform
					num_of_streltsy = 50
					has_leader_with = {
						total_pips = 15
					}
				}
				AND = {
					NOT = { has_reform = streltsy_reform }
					if = {
						limit = { has_dlc = "Cradle of Civilization" }
						army_professionalism = 60
					}
					army_tradition = 50
					monthly_mil = 12
				}
			}
		}
		effect = {
			simple_dynamic_effect = {
				first_custom_tooltip = rus_dissolve_the_streltsy_at
				first_limit = "
				has_reform = streltsy_reform
				num_of_streltsy = 50
				has_leader_with = {
					total_pips = 15
				}"
				first_effect = "
				add_country_modifier = {
					name = rus_institutionalized_streltsy
					duration = -1
				}"
				second_custom_tooltip = rus_dissolve_the_streltsy_bt
				second_limit = "
				NOT = { has_reform = streltsy_reform }
				army_tradition = 50
				monthly_mil = 12"
				second_effect = "
				add_country_modifier = {
					name = rus_standarized_military
					duration = -1
				}"
			}
			hidden_effect = {
				set_country_flag = has_rus_kill_counter
				set_variable = {
					which = num_won_battles
					value = 0
				}
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_reform_the_military = {
		icon = mission_assemble_an_army
		required_missions = { rus_dissolve_the_streltsy }
		position = 15
		provinces_to_highlight = {
		}
		trigger = {
			army_tradition = 80
			if = {
				limit = { has_dlc = "Cradle of Civilization" }
				army_professionalism = 100
			}
			if = {
				limit = {
					OR = {
						has_country_flag = rus_finished_kill_mission
						has_country_flag = has_rus_kill_counter
					}
				}
				custom_trigger_tooltip = {
					tooltip = rus_reform_the_military_at
					check_variable = {
						which = num_won_battles
						value = 40
					}
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = rus_reform_the_military_bt
					always = no
				}
			}
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.45
				insight_tooltip = INSIGHT_JUST_TOOLTIP
				effect_tooltip = "
				change_unit_type = western
				add_country_modifier = {
					name = rus_western_military_tactics
					duration = -1
				}
				"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_russian_westernization = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_country_flag = rus_modernized_russia
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_control_fur_trade = {
		icon = mission_control_fur_trade
		required_missions = { rus_the_empire_of_russia }
		position = 14
		provinces_to_highlight = {
		}
		trigger = {
			is_bankrupt = no
			NOT = { corruption = 0.1 }
			NOT = { num_of_loans = 1 }
			share_of_starting_income = 50
			is_in_deficit = no
			trading_bonus = {
				trade_goods = fur
				value = yes
			}
			trade_goods_produced_amount = {
				trade_goods = fur
				amount = 20
			}
		}
		effect = {
			add_country_modifier = {
				name = rus_state_investment
				duration = -1
			}
		}

		ai_weight = {
			factor = 250
		}
	}
	
	rus_peters_reforms = {
		icon = mission_table_of_ranks
		required_missions = { rus_control_fur_trade }
		position = 15
		provinces_to_highlight = {
		}
		trigger = {
			has_better_tech_than_westerns = yes
			has_more_institutions_than_westerns = yes
			has_final_tier_reforms_trigger = yes
		}
		effect = {
			unlock_government_reform = {
				government_reform = peters_government_reform
			}
			change_government_reform_progress = 50
		}

		ai_weight = {
			factor = 250
		}
	}
}

#Revolutionary Russia
rus_education = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_country_flag = rus_modernized_russia
		has_country_flag = rus_has_rev_missions
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_educational_reform = {
		icon = mission_early_modern_university
		required_missions = { rus_the_age_of_revolution }
		position = 17
		provinces_to_highlight = {
		}
		trigger = {
			OR = { 
				num_of_owned_provinces_with = {
					has_building = university 
					value = 100 
				}
				if = { 
					limit = { has_dlc = "Rule Britannia" }
					innovativeness = 90 
				}
				full_idea_group = innovativeness_ideas 
				AND = { 
					ruler_has_personality = scholar_personality 
					monthly_adm = 14 
				}
			}
		}
		effect = {
			country_event_with_insight = {
				id = flavor_rus.47
				insight_tooltip = rus_educational_reform_at
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_revolution = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_country_flag = rus_modernized_russia
		has_country_flag = rus_has_rev_missions
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_the_glorious_revolution = {
		icon = mission_russian_revolution
		required_missions = {
			rus_educational_reform
			rus_abolish_the_serfdom
		}
		position = 18
		provinces_to_highlight = {
		}
		trigger = {
			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 = {
			add_army_tradition = 25
			simple_dynamic_effect = {
				first_custom_tooltip = rus_the_glorious_revolution_at
				first_limit = "
				OR = {
					has_reform = revolutionary_empire_reform
					has_reform = revolutionary_republic_reform
				}"
				first_effect = "
				add_country_modifier = {
					name = rus_revolutionary_zeal
					duration = -1
				}"
				second_custom_tooltip = rus_the_glorious_revolution_bt
				second_limit = "
				NOT = { has_reform = revolutionary_empire_reform }
				NOT = { has_reform = revolutionary_republic_reform }
				"
				second_effect = "
				add_country_modifier = {
					name = rus_reactionary_zeal
					duration = -1
				}"
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}

rus_abolish_serfdom = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Domination"
	}
	potential = {
		tag = RUS
		has_country_flag = rus_modernized_russia
		has_country_flag = rus_has_rev_missions
		has_dlc = "Domination"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	rus_abolish_the_serfdom = {
		icon = mission_peasantry
		required_missions = { rus_the_age_of_revolution }
		position = 17
		provinces_to_highlight = {
		}
		trigger = {
			NOT = { has_estate_privilege = estate_nobles_early_serfdom }
			NOT = { has_estate_privilege = estate_nobles_total_serfdom }
			NOT = { has_estate_privilege = estate_nobles_legalized_serfdom }
			NOT = { has_estate_privilege = estate_nobles_restricted_serfdom }
			NOT = { has_estate_privilege = estate_nobles_devastating_serfdom }
			NOT = { has_estate_privilege = estate_nobles_increased_peasant_freedom }
			NOT = { has_estate_privilege = estate_nobles_peasant_liberation }
			NOT = { has_estate_privilege = estate_burghers_rise_of_the_burghers }
		}
		effect = {
			add_country_modifier = {
				name = rus_freed_peasants
				duration = -1
			}
		}

		ai_weight = {
			factor = 250
		}
	}
}