subjugate_tver = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		TVE = {
			neighbour = this
			not = { vassal_of = MOS }
			not = { vassal_of = RUS }
			not = { num_of_cities = this }
			is_lesser_in_union = no
			is_subject = no
			owns = 294
		}
	}
	abort = {
		or = {
			not = { exists = TVE }
			TVE = { is_lesser_in_union = yes }
			is_lesser_in_union = yes
			is_subject = yes
		}
	}
	success = {
		or = {
			TVE = { vassal_of = MOS }
			TVE = { vassal_of = RUS }
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { relation = { who = TVE value = 0 } }
		}
	}
	immediate = {
		casus_belli = {
			type = cb_vassalize_mission
			months = 120
			target = TVE
		}
	}
	abort_effect = {
		remove_casus_belli = {
			type = cb_vassalize_mission
			target = TVE
		}
	}
	effect = {
		add_core = 294
		remove_casus_belli = {
			type = cb_vassalize_mission
			target = TVE
		}
	}
}

annex_yaroslavl = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		is_subject = no
		is_lesser_in_union = no
		exists = YAR
		YAR = {
			neighbour = this
			not = { num_of_cities = this }
			owns = 308		# Yaroslavl
			religion_group = this
		}
	}
	abort = {
		or = {
			not = { exists = YAR }
			is_lesser_in_union = yes
			is_subject = yes
			YAR = { not = { religion_group = this } }
		}
	}
	success = {
		not = { exists = YAR }
		owns = 308
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			relation = { who = YAR value = 100 }
		}
		modifier = {
			factor = 2
			relation = { who = YAR value = 200 }
		}
	}
	immediate = {
		add_temp_claim = 308
	}
	abort_effect = {
		remove_temp_claim = 308
	}
	effect = {
		prestige = 0.05
		add_core = 308
	}
}

annex_ryazan = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		is_subject = no
		is_lesser_in_union = no
		exists = RYA
		RYA = {
			neighbour = this
			not = { num_of_cities = this }
			owns = 301		# Ryazan
			religion_group = this
		}
	}
	abort = {
		or = {
			not = { exists = RYA }
			is_lesser_in_union = yes
			is_subject = yes	
			RYA = { not = { religion_group = this } }
		}
	}
	success = {
		not = { exists = RYA }
		owns = 301
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			relation = { who = RYA value = 100 }
		}
		modifier = {
			factor = 2
			relation = { who = RYA value = 200 }
		}
	}
	immediate = {
		add_temp_claim = 301
		add_temp_claim = 300
		add_temp_claim = 1778
	}
	abort_effect = {
		remove_temp_claim = 301
		remove_temp_claim = 300
		remove_temp_claim = 1778
	}
	effect = {
		prestige = 0.05
		add_core = 301
	}
}

russia_discovers_eastern_siberia = {

	type = country
	
	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		western_siberia = { has_discovered =  this }
		idea = quest_for_the_new_world
		not = { eastern_siberia = { has_discovered =  this } }
		eastern_siberia = { range = yes }
	}
	abort = {
		not = { idea = quest_for_the_new_world }
	}
	success = {
		eastern_siberia = {
			has_discovered =  this
			units_in_province = this
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { innovative_narrowminded = 0 }
		}
		modifier = {
			factor = 2
			explorer = 1
		}
	}
	effect = {
		treasury = 100
	}
}

access_to_the_baltic_sea = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		not = { owns = 33 }
		not = { owns = 34 }
		not = { owns = 36 }
		not = { owns = 37 }
		not = { owns = 38 }	
		is_lesser_in_union = no
		is_subject = no
		or = {
			33 = { any_neighbor_province = { owned_by = this } }
			34 = { any_neighbor_province = { owned_by = this } }
		}

	}
	abort = {
		or = {
			is_lesser_in_union = yes
			is_subject = yes		
		}
	}
	success = {
		or = {
			owns = 33
			owns = 34
			owns = 36
			owns = 37
			owns = 38
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			adm = 7
		}
		modifier = {
			factor = 2
			land_naval = 1
		}
	}
	immediate = {
		add_temp_claim = 33
		add_temp_claim = 34
		add_temp_claim = 36
		add_temp_claim = 37
		add_temp_claim = 38
	}
	abort_effect = {
		remove_temp_claim = 33
		remove_temp_claim = 34
		remove_temp_claim = 36
		remove_temp_claim = 37
		remove_temp_claim = 38
	}
	effect = {
		navy_tradition = 0.33
	}
}

russian_colony_in_east_siberia = {

	type = country
	
	allow = {
		tag = RUS
		western_siberia = { owned_by = this }
		eastern_siberia = {
			has_discovered = this
			empty = yes
		}
		idea = quest_for_the_new_world
		not = { eastern_siberia = { owned_by = this } }
	}
	abort = {
		or = {
			not = { idea = quest_for_the_new_world }
			and = {
				not = { eastern_siberia = { empty = yes } }
				not = { eastern_siberia = { owned_by = this } }
			}
			not = { western_siberia = { owned_by = this } }
		}
	}
	success = {
		eastern_siberia = { owned_by = this }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			adm = 7
		}
	}
	effect = {
		prestige = 0.1
	}
}

russia_discovers_western_siberia = {

	type = country
	
	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		idea = quest_for_the_new_world
		not = { western_siberia = { has_discovered =  this } }
		western_siberia = { range = yes }
	}
	abort = {
		not = { idea = quest_for_the_new_world }
	}
	success = {
		western_siberia = {
			has_discovered =  this
			units_in_province = this
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { innovative_narrowminded = 0 }
		}
		modifier = {
			factor = 2
			explorer = 1
		}
	}
	effect = {
		treasury = 100
	}
}

russian_colony_in_west_siberia = {

	type = country
	
	allow = {
		tag = RUS
		western_siberia = {
			has_discovered = this
			empty = yes
		}
		idea = quest_for_the_new_world
		not = { western_siberia = { owned_by = this } }
	}
	abort = {
		or = {
			not = { idea = quest_for_the_new_world }
			and = {
				not = { western_siberia = { empty = yes } }
				not = { western_siberia = { owned_by = this } }
			}	
		}
	}
	success = {
		western_siberia = { owned_by = this }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			adm = 7
		}
	}
	effect = {
		prestige = 0.1
	}
}

annex_the_qasim_khanate = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		is_subject = no
		is_lesser_in_union = no
		exists = QAS
		not = { is_core = 301 }
		QAS = {
			neighbour = this
			not = { num_of_cities = this }
			owns = 301		# Ryazan
			religion_group = this
		}
	}
	abort = {
		or = {
			is_lesser_in_union = yes
			is_subject = yes
			not = { exists = QAS }
			QAS = { not = { religion_group = this } }
		}
	}
	success = {
		not = { exists = QAS }
		owns = 301
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			relation = { who = QAS value = 100 }
		}
		modifier = {
			factor = 2
			relation = { who = QAS value = 200 }
		}
	}
	immediate = {
		add_temp_claim = 301
	}
	abort_effect = {
		remove_temp_claim = 301
	}
	effect = {
		prestige = 0.05
		add_core = 301
	}
}

defend_russia_against_the_mongols = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		exists = GOL
		war_with = GOL
		NOT = { num_of_cities = 12 }
		GOL = {
			num_of_cities = 15
		}
		GOL = {
			neighbour = this
			not = { any_owned_province = { culture = russian } }
		}
	}
	abort = {
		or = {
			not = { exists = GOL }
			not = { war_with = GOL }
		}
	}
	success = {
		not = { war_with = GOL }
		GOL = {
			not = {
				any_owned_province = { culture = russian }
			}
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			is_monarch_leader = yes
		}
		modifier = {
			factor = 2
			mil = 7
		}
	}
	effect = {
		infamy = -5
		army_tradition = 0.1
	}
}

cross_the_mongol_border = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		exists = GOL
		war_with = GOL
		GOL = { neighbour = this }
		not = { any_owned_province = { is_core = GOL } }
	}
	abort = {
		or = {
			not = { exists = GOL }
			not = { war_with = GOL }
		}
	}
	success = {
		not = { war_with = GOL }
		any_owned_province = { is_core = GOL }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			is_monarch_leader = yes
		}
		modifier = {
			factor = 2
			mil = 7
		}
	}
	effect = {
		infamy = -5
		army_tradition = 0.25
	}
}

subjugate_novgorod = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		is_lesser_in_union = no
		is_subject = no
		exists = NOV
		NOV = {
			neighbour = this
			not = { vassal_of = MOS }
			not = { vassal_of = RUS }
			not = { num_of_cities = this }
			is_lesser_in_union = no
			or = {
				owns = 309		# Olonets
				owns = 310		# Novgorod
				owns = 313		# Archangelsk
			}
			is_subject = no
		}
	}
	abort = {
		or = {
			not = { exists = NOV }
			NOV = { is_lesser_in_union = yes }
			is_lesser_in_union = yes
			is_subject = yes
		}
	}
	success = {
		or = {
			NOV = { vassal_of = MOS }
			NOV = { vassal_of = RUS }
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { relation = { who = NOV value = 0 } }
		}
	}
	immediate = {
		casus_belli = {
			type = cb_vassalize_mission
			months = 120
			target = NOV
		}
	}
	abort_effect = {
		remove_casus_belli = {
			type = cb_vassalize_mission
			target = NOV
		}
	}
	effect = {
		add_core = 309
		add_core = 310
		add_core = 313
		remove_casus_belli = {
			type = cb_vassalize_mission
			target = NOV
		}
	}
}

annex_novgorod = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		is_subject = no
		is_lesser_in_union = no
		exists = NOV
		NOV = {
			or = {
				vassal_of = MOS
				vassal_of = RUS
			}
			neighbour = this
			not = { num_of_cities = this }
			owns = 310		# Novgorod
			religion_group = this
		}
	}
	abort = {
		or = {
			is_lesser_in_union = yes
			is_subject = yes
			not = { exists = NOV }
			NOV = { not = { religion_group = this } }
		}
	}
	success = {
		not = { exists = NOV }
		owns = 310
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			relation = { who = NOV value = 100 }
		}
		modifier = {
			factor = 2
			relation = { who = NOV value = 200 }
		}
	}
	effect = {
		prestige = 0.1
		stability = 2
	}
}

russia_partitions_poland = {
	
	type = country

	allow = {
		tag = RUS
		year = 1700
		exists = POL
		exists = PRU
		exists = HAB
		neighbour = POL
		is_lesser_in_union = no
		is_subject = no
		POL = {
			owns = 276		# Minsk
			owns = 278		# Polesia
			owns = 281		# Podolia
			neighbour = PRU
			neighbour = HAB
		}
		or = {
			is_core = 276
			is_core = 278
			is_core = 281
		}
		relation = { who = PRU value = 0 }
		relation = { who = HAB value = 0 }
	}
	abort = {
		or = {
			not = { exists = POL }
			is_lesser_in_union = yes
			is_subject = yes
			not = { neighbour = POL }
		}
	}
	success = {
		or = {
			owns = 276
			owns = 278
			owns = 281
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			POL = { not = { num_of_cities = this } }
		}
		modifier = {
			factor = 2
			not = { relation = { who = POL value = 0 } }
		}
	}
	effect = {
		prestige = 0.1
	}
}

conquer_finland = {

	type = country
	
	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		exists = SWE
		war_with = SWE
		is_lesser_in_union = no
		is_subject = no
		finland = { owned_by = SWE }
		not = { finland = { owned_by = MOS } }
		not = { finland = { owned_by = RUS } }
	}
	abort = {
		or = {
			not = { war_with = SWE }
			is_lesser_in_union = yes
			is_subject = yes
		}
	}
	success = {
		not = { war_with = SWE }
		or = {
			finland = { owned_by = MOS }
			finland = { owned_by = RUS }
		}
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}	
	}
	immediate = {
		finland = {
			add_temp_claim = THIS
		}
	}
	abort_effect = {
		finland = {
			remove_temp_claim = THIS
		}
	}
	effect = {
		stability = 2
		infamy = -5
	}
}

subjugate_crimea = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		exists = CRI
		war_with = CRI
		CRI = {
			neighbour = this
			not = { num_of_cities = this }
			owns = 284		# Salaciq
		}
		is_lesser_in_union = no
		is_subject = no
	}
	abort = {
		or = {
			not = { war_with = CRI }
			not = { exists = CRI }
			is_lesser_in_union = yes
			is_subject = yes
		}
	}
	success = {
		not = { exists = CRI }
		owns = 284
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			CRI = {
				not = { mil = 3 }
			}
		}
	}
	immediate = {
		add_temp_claim = 284
	}
	abort_effect = {
		remove_temp_claim = 284
	}
	effect = {
		add_core = 284
		prestige = 0.05
	}
}


subjugate_kazan = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		exists = KAZ
		war_with = KAZ
		is_lesser_in_union = no
		is_subject = no
		KAZ = {
			neighbour = this
			not = { num_of_cities = this }
			owns = 1082		# Kazan
		}
	}
	abort = {
		or = {
			not = { war_with = KAZ }
			not = { exists = KAZ }
			is_lesser_in_union = yes
			is_subject = yes
		}
	}
	success = {
		not = { exists = KAZ }
		owns = 1082
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			KAZ = {
				not = { mil = 3 }
			}
		}
	}
	immediate = {
		add_temp_claim = 1082
	}
	abort_effect = {
		remove_temp_claim = 1082
	}
	effect = {
		add_core = 1082
		prestige = 0.05
	}
}

subjugate_the_siberian_khanate = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		exists = SIB
		war_with = SIB
		is_lesser_in_union = no
		is_subject = no
		SIB = {
			neighbour = this
			not = { num_of_cities = this }
			owns = 1074		# Sibir
		}
	}
	abort = {
		or = {
			not = { war_with = SIB }
			not = { exists = SIB }
			is_lesser_in_union = yes
			is_subject = yes
		}
	}
	success = {
		not = { exists = SIB }
		owns = 1074
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			KAZ = {
				not = { mil = 3 }
			}
		}
	}
	immediate = {
		add_temp_claim = 1074
	}
	abort_effect = {
		remove_temp_claim = 1074
	}
	effect = {
		add_core = 1074
		prestige = 0.05
	}
}

subjugate_astrakhan = {
	
	type = country

	allow = {
		or = {
			tag = MOS
			tag = RUS
		}
		exists = AST
		war_with = AST
		is_lesser_in_union = no
		is_subject = no
		AST = {
			neighbour = this
			not = { num_of_cities = this }
			owns = 464		# Astrakhan
		}
	}
	abort = {
		or = {
			not = { war_with = AST }
			not = { exists = AST }
			is_lesser_in_union = yes
			is_subject = yes
		}
	}
	success = {
		not = { exists = AST }
		owns = 464
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			KAZ = {
				not = { mil = 3 }
			}
		}
	}
	immediate = {
		add_temp_claim = 464
	}
	abort_effect = {
		remove_temp_claim = 464
	}
	effect = {
		add_core = 464
		prestige = 0.05
	}
}
