########################################
# Major Flavor Events                  #
########################################

namespace = flavor_rus
normal_or_historical_nations = yes

# The Pomjestija Reform
country_event = {
	id = flavor_rus.1
	title = "flavor_rus.EVTNAME3401"
	desc = "flavor_rus.EVTDESC3401"
	picture = REFORM_eventPicture

	fire_only_once = yes

	trigger = {
		is_year = 1450
		NOT = { is_year = 1550 }
		OR = {
			AND = {
				tag = MOS
				NOT = { exists = RUS }
			}
			tag = RUS
		}
		owns = 310
	}

	mean_time_to_happen = {
		months = 300
	}
	

	option = {		# Let us reform
		name = "flavor_rus.EVTOPTA3401"
		ai_chance = { factor = 95 }
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		add_country_modifier = {
			name = pomjestija_reform
			duration = 9125
		}
	}
	option = {		# Let us become like Novgorod
		name = "flavor_rus.EVTOPTB3401"
		ai_chance = { factor = 5 }
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		add_country_modifier = {
			name = novgorodian_reform
			duration = 9125
		}
	}
}

# Malyuta Skuratov
country_event = {
	id = flavor_rus.2
	
	title = "flavor_rus.EVTNAME3202"
	desc = "flavor_rus.EVTDESC3202"
	picture = ADVISOR_eventPicture


	fire_only_once = yes

	trigger = {
		is_year = 1560
		NOT = { is_year = 1573 }
		OR = {
			AND = {
				tag = MOS
				NOT = { exists = RUS }
			}
			tag = RUS
		}
		owns = 295		# Moskva
	}

	mean_time_to_happen = {
		months = 38
	}

	
	option = {			# An Excellent Minister!
		name = "EXCELLENTMINISTER"
		add_adm_power = 40
		add_dip_power = 40
		add_mil_power = 40
		if = {
			limit = {
				NOT = { advisor_exists = 1026 }
			}
			define_advisor = {
				type = spymaster
				name = "Malyuta Skuratov"
				discount = yes
				location = 295
				skill = 3
			}
		}
	}
}

# Russian claims in the East
country_event = {
	id = flavor_rus.3
	title = "flavor_rus.EVTNAME3404"
	desc = "flavor_rus.EVTDESC3404"
	picture = MILITARY_CAMP_eventPicture
	fire_only_once = yes
	trigger = {
		tag = RUS
		owns = 303	#Saratov
		owns = 473	#Samara
		owns = 1971	#Tsaritsyn
		owns = 1082	#Kazan
		owns = 464	#Astrakhan
	}
	
	mean_time_to_happen = {
		months = 60
	}

	option = {		# It all belongs to Mother Russia
		name = "flavor_rus.EVTOPTA3404"
		ai_chance = { factor = 100 }
		303 = {
			add_base_tax = 2
			add_base_manpower = 2
		}
		473 = {
			add_base_tax = 2
			add_base_manpower = 2
		}
		1971 = {
			add_base_tax = 2
			add_base_manpower = 2
		}
		1082 = {
			add_base_tax = 2
			add_base_manpower = 2
		}
		464 = {
			add_base_tax = 2
			add_base_manpower = 2
		}
	}
}

# Russian claims on Poland-Lithuania
country_event = {
	id = flavor_rus.4
	title = "flavor_rus.EVTNAME3405"
	desc = "flavor_rus.EVTDESC3405"
	picture = MILITARY_CAMP_eventPicture
	fire_only_once = yes

	trigger = {
		tag = RUS
		white_ruthenia_area = {
			OR = {
				owned_by = POL
				owned_by = LIT
				owned_by = PLC
			}
		}
		
		smolensk_area = {
			type = all
			owned_by = RUS
			is_core = RUS
		}		
	}
	
	mean_time_to_happen = {
		months = 32
	}
	

	option = {		# It all belongs to Mother Russia
		name = "flavor_rus.EVTOPTA3405"
		ai_chance = { factor = 100 }
		
		white_ruthenia_area = {
			limit = {
				OR = {
					owned_by = POL
					owned_by = LIT
					owned_by = PLC
				}
			}
			add_claim = ROOT
		}
		if = {
			limit = {
				white_ruthenia_area = { 
					owned_by = POL
				}
			}
			POL = {
				add_opinion = {	who = ROOT modifier = rus_claimed_land }
			}
		}
		
		if = {
			limit = {
				white_ruthenia_area = { 
					owned_by = PLC
				}
			}
			PLC = {
				add_opinion = {	who = ROOT modifier = rus_claimed_land }
			}
		}

		if = {
			limit = {
				white_ruthenia_area = { 
					owned_by = LIT
				}
			}
			LIT = {
				add_opinion = {	who = ROOT modifier = rus_claimed_land }
			}
		}

		
	}
	option = {
		name = "flavor_rus.EVTOPTB3405"
		ai_chance = { factor = 0 }
		add_prestige = -5
	}
}

# Russian claims on the Steppes
country_event = {
	id = flavor_rus.5
	title = "flavor_rus.EVTNAME3406"
	desc = "flavor_rus.EVTDESC3406"
	picture = MILITARY_CAMP_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = RUS
		kazan_area = {
			type = all
			owned_by = RUS
			is_core = RUS
		}
		samara_area = {
			type = all
			owned_by = RUS
			is_core = RUS
		}
		tambov_area = {
			type = all
			owned_by = RUS
			is_core = RUS
		}
		saratov_area = {
			type = all
			owned_by = RUS
			is_core = RUS
		}
	}
	
	mean_time_to_happen = {
		months = 32
	}

	option = {		# It all belongs to Mother Russia
		name = "flavor_rus.EVTOPTA3406"
		ai_chance = { factor = 100 }
		add_country_modifier = {
			name = russian_eastern_expansion
			duration = 9125
		}
	}
}

# The Chosen Council
country_event = {
	id = flavor_rus.6
	
	title = "flavor_rus.EVTNAME3410"
	desc = "flavor_rus.EVTDESC3410"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes

	trigger = {
		is_year = 1540
		NOT = { is_year = 1560 }
		OR = {
			AND = {
				tag = MOS
				NOT = { exists = RUS }
			}
			tag = RUS
		}
		owns = 295
	}
	
	mean_time_to_happen = {
		months = 60
		modifier = {
			factor = 0.2
			has_ruler_flag = has_ivan_the_terrible
		}
	}
	
	option = {		# Excellent Ministers!
		name = "flavor_rus.EVTOPTA3410"
		add_adm_power = 25
		define_advisor = {
			type = statesman
			name = "Alexi Adashev"
			discount = yes
			location = 295
			skill = 2
		}
		define_advisor = {
			type = theologian
			name = "Sylvestr"
			discount = yes
			location = 295
			skill = 3
		}
	}
}

# The Sacking of Moscow
country_event = {
	id = flavor_rus.7
	title = "flavor_rus.EVTNAME3411"
	desc = "flavor_rus.EVTDESC3411"
	picture = REVOLUTION_eventPicture
	fire_only_once = yes

	trigger = {
		tag = RUS
		capital_scope = {
			NOT = { controlled_by = ROOT }
			province_id = 295
		}
	}
	
	mean_time_to_happen = {
		months = 1
	}	

	option = {		# Revenge this horrible insult
		name = "flavor_rus.EVTOPTA3411"
		ai_chance = { factor = 50 }
		add_army_tradition = 10
		capital_scope = {
			controller = {
				ROOT = {
					add_opinion = {
						who = PREV
						modifier = rus_sacked_moscow
					}
				}
			}
		}
	}
	option = {		# Use it to crush the opposition
		name = "flavor_rus.EVTOPTB3411"
		ai_chance = { factor = 50 }
		add_country_modifier = {
			name = opposition_crushed
			duration = 3650
		}
	}
}

# The Treasury Reform and the Abolishing of the Kormlenije System
country_event = {
	id = flavor_rus.8
	title = "flavor_rus.EVTNAME3413"
	desc = "flavor_rus.EVTDESC3413"
	picture = REFORM_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		is_year = 1550
		NOT = { is_year = 1650 }
		tag = RUS
	}
	
	mean_time_to_happen = {
		months = 300
	}
	

	option = {		# Reform Treasury and Abolish Kormlenije
		name = "flavor_rus.EVTOPTA3413"
		ai_chance = { factor = 50 }
		add_adm_power = -50
		add_country_modifier = {
			name = chamber_of_finance
			duration = 9125
		}
		add_country_modifier = {
			name = kormlenije_abolished
			duration = 9125
		}
	}
	option = {		# Only Reform Treasury
		name = "flavor_rus.EVTOPTB3413"
		ai_chance = { factor = 25 }
		add_country_modifier = {
			name = chamber_of_finance
			duration = 9125
		}
	}
	option = {		# Only Abolish Kormlenije
		name = "flavor_rus.EVTOPTC3413"
		ai_chance = { factor = 25 }
		add_country_modifier = {
			name = kormlenije_abolished
			duration = 9125
		}
	}
}

# The Russian Orthodox Church declared independent of Constantinople
country_event = {
	id = flavor_rus.9
	title = "flavor_rus.EVTNAME3415"
	desc = "flavor_rus.EVTDESC3415"
	picture = ORTHODOX_eventPicture
	fire_only_once = yes

	trigger = {
		OR = {
			has_country_flag = patriarchate_mission
			AND = {
				NOT = { has_mission = rus_patriarchate_mission }
				tag = RUS
				religion = orthodox
				NOT = { exists = BYZ }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}

	option = {		# Let us lead the True Faith from Moscow
		name = "flavor_rus.EVTOPTA3415"
		ai_chance = { factor = 100 }
		add_stability_or_adm_power = yes
		add_patriarch_authority = 0.1
		every_known_country = {
			limit = {
				religion = orthodox
			}
			add_opinion = {
				who = ROOT
				modifier = rus_orthodoxy_led_from_moscow
			}
		}
	}
	option = {		# No we need Constantinople to lead the True Faith
		name = "flavor_rus.EVTOPTB3415"
		ai_chance = {
			factor = 0
		}
		add_patriarch_authority = -0.25
		every_province = {
			limit = {
				OR = {
					is_core = BYZ
					province_id = 148 #Salonica (Mount Athos)
					province_id = 151 #Constantinople
				}
			}
			add_claim = ROOT
		}
	}
	option = {		# No we need Constantinople to lead the True Faith
		name = "flavor_rus.EVTOPTC3415"
		ai_chance = {
			factor = 0
		}
		add_patriarch_authority = -0.5
		every_province = {
			limit = {
				OR = {
					is_core = BYZ
					province_id = 148 #Salonica (Mount Athos)
					province_id = 151 #Constantinople
				}
			}
			add_permanent_claim = ROOT
		}
	}
}

# The Peasantry is brought into Serfdom
country_event = {
	id = flavor_rus.10
	title = "flavor_rus.EVTNAME3416"
	desc = "flavor_rus.EVTDESC3416"
	picture = REFORM_eventPicture
	fire_only_once = yes	
	trigger = {
		NOT = { has_dlc = "Domination" }
		tag = RUS
		is_year = 1600
		NOT = { is_year = 1700 }
	}
	
	mean_time_to_happen = {
		months = 300
	}

	option = {		# Enserf the peasants
		name = "flavor_rus.EVTOPTA3416"
		ai_chance = { factor = 75 }
		add_country_modifier = {
			name = enserfed_peasants
			duration = -1
		}
	}
	option = {		# Do not enserf them
		name = "flavor_rus.EVTOPTB3416"
		ai_chance = { factor = 25 }
		add_legitimacy = -10
	}
}

# Hundred Chapter Synod
country_event = {
	id = flavor_rus.11	
	title = "flavor_rus.EVTNAME1005"
	desc = "flavor_rus.EVTDESC1005"
	picture = ORTHODOX_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = RUS
		is_year = 1500
		NOT = { is_year = 1600 }
		religion = orthodox
	}

	mean_time_to_happen = {
		months = 100
	}	

	option = {		# Affirm these changes
		name = "flavor_rus.EVTOPTA1005"
		ai_chance = { factor = 75 }
		add_patriarch_authority = 0.10
	}
	option = {		# Prohibit these ideas
		name = "flavor_rus.EVTOPTB1005"
		ai_chance = { factor = 25 }
		add_stability_or_adm_power = yes
		add_patriarch_authority = -0.10
	}
}

# Boris Morozov
country_event = {	
	id = flavor_rus.12	
	title = "flavor_rus.EVTNAME3203"
	desc = "flavor_rus.EVTDESC3203"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = RUS
		is_year = 1620
		NOT = { is_year = 1660 }
		owns = 295		# Moskva
	}

	mean_time_to_happen = {
		months = 120
		modifier = {
			factor = 0.2
			has_estate_privilege = estate_nobles_early_serfdom
		}
	}

	
	option = {			# An Excellent Minister!
		name = "EXCELLENTMINISTER"		
		add_adm_power = 50
		if = {
			limit = {
				NOT = { advisor_exists = 1038 }
			}
			
			define_advisor = {
				type = treasurer
				name = "Boris Morozov"
				discount = yes
				location = 295
				skill = 2
			}
		}
	}
}

# Full Serfdom enforced by Sobornoj Ulozjenije
country_event = {
	id = flavor_rus.13	
	title = "flavor_rus.EVTNAME3417"
	desc = "flavor_rus.EVTDESC3417"
	picture = REFORM_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		NOT = { has_dlc = "Domination" }
		tag = RUS
		is_year = 1650
		NOT = { is_year = 1750 }
		government = monarchy
	}
	
	mean_time_to_happen = {
		months = 300
	}
	
	option = {		# Enforce
		name = "flavor_rus.EVTOPTA3417"
		ai_chance = { factor = 90 }
		if = {
			limit = {
				has_country_modifier = enserfed_peasants
			}
			remove_country_modifier = enserfed_peasants
		}
		add_country_modifier = {
			name = legal_serfdom
			duration = -1
		}
	}
	option = {		# Accept deteriorating Economy and Burgher Uprisings
		name = "flavor_rus.EVTOPTB3417"
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_modifier = enserfed_peasants
			}
			remove_country_modifier = enserfed_peasants
		}
		add_country_modifier = {
			name = deteriorating_economy
			duration = 3650
		}
		
		if = {
			limit = {
				has_estate = estate_burghers
			}
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = -25
			}
		}		
		
	}
}

# Nikons Reform and the Raskolniks
country_event = {
	id = flavor_rus.14	
	title = "flavor_rus.EVTNAME3418"
	desc = "flavor_rus.EVTDESC3418"
	picture = REFORM_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = RUS
		is_year = 1650
		NOT = { is_year = 1750 }	
		religion = orthodox	
		NOT = { has_country_flag = RUS_raskol_flag }
	}
	
	mean_time_to_happen = {
		months = 300
	}
	
	immediate = {
		set_country_flag = RUS_raskol_flag
	}

	option = {		# Let us Modernize the Church
		name = "flavor_rus.EVTOPTA3418"
		ai_chance = { factor = 75 }
		add_patriarch_authority = 0.10
	}
	option = {		# Follow the heed of the Raskolniks
		name = "flavor_rus.EVTOPTB3418"
		ai_chance = { factor = 25 }
		add_stability_or_adm_power = yes
		add_patriarch_authority = -0.10
	}
}

# Raskol
country_event = {
	id = flavor_rus.15
	title = "flavor_rus.EVTNAME1006"
	desc = "flavor_rus.EVTDESC1006"
	picture = ORTHODOX_eventPicture
	
	
	fire_only_once = yes
	
	trigger = {
		tag = RUS
		is_year = 1650
		NOT = { is_year = 1750 }	
		religion = orthodox
	
		NOT = { has_country_flag = RUS_raskol_flag }
	}

	immediate = {
		hidden_effect = {
			set_country_flag = RUS_raskol_flag
			random_owned_province = {
				limit = {
					is_core = ROOT
					is_capital = no
				}
				set_province_flag = raskol_uprising_2
			}
			random_owned_province = {
				limit = {
					is_core = ROOT
					is_capital = no
					NOT = { has_province_flag = raskol_uprising_2 }
				}
				set_province_flag = raskol_uprising_1
			}
		}
	}

	option = {		# These reforms are necessary
		name = "flavor_rus.EVTOPTA1006"
		ai_chance = { factor = 75 }
		add_patriarch_authority = 0.25
		random_owned_province = {
			limit = {
				has_province_flag = raskol_uprising_2
			}
			spawn_rebels = {
				type = anti_tax_rebels
				size = 2
			}
			clr_province_flag = raskol_uprising_2
		}
		random_owned_province = {
			limit = {
				has_province_flag = raskol_uprising_1
			}
			spawn_rebels = {
				type = anti_tax_rebels
				size = 1
			}
			clr_province_flag = raskol_uprising_1
		}
	}
	option = {		# Support the Old traditions
		name = "flavor_rus.EVTOPTB1006"
		ai_chance = { factor = 25 }
		add_patriarch_authority = -0.1
	}
}

# The Reforms of Peter the Great
country_event = {
	id = flavor_rus.16
	title = "flavor_rus.EVTNAME1007"
	desc = "flavor_rus.EVTDESC1007"
	picture = REFORM_eventPicture
	fire_only_once = yes
	
	trigger = {
		tag = RUS
		is_year = 1680
		NOT = { is_year = 1720 }
		religion = orthodox
		any_neighbor_country = {
			institution_difference = { who = root value = 2 }
		}
	}

	mean_time_to_happen = {
		months = 10
	}
	
	option = {		# The reforms are necessary
		name = "flavor_rus.EVTOPTA1007"
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		PA_random_army_exp_between_5_and_10_effect = yes    #PA: replaced flat gain with random dynamic gain. -- 200e200w
		add_ruler_modifier = {
			name = western_reforms
			duration = -1
		}
	}
	option = {		# Avoid outside influence
		name = "flavor_rus.EVTOPTB1007"
		ai_chance = { factor = 0 }
		add_stability_or_adm_power = yes
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
	}
}

# The Bulavin Rebellion
country_event = {
	id = flavor_rus.17	
	title = "flavor_rus.EVTNAME1008"
	desc = "flavor_rus.EVTDESC1008"
	picture = ANGRY_MOB_eventPicture
	fire_only_once = yes
	
	trigger = {
		tag = RUS
		religion = orthodox
		has_ruler_modifier = western_reforms
	}

	mean_time_to_happen = {
		months = 24
	}
	
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_core = ROOT
					is_capital = no
				}
				set_province_flag = bulavin_rebellion_3
			}
			random_owned_province = {
				limit = {
					is_core = ROOT
					is_capital = no
					NOT = { has_province_flag = bulavin_rebellion_3 }
				}
				set_province_flag = bulavin_rebellion_2
			}
		}
	}

	option = {		# Crush the rebellion
		name = "flavor_rus.EVTOPTA1008"
		ai_chance = { factor = 100 }
		add_stability = -1
		random_owned_province = {
			limit = {
				has_province_flag = bulavin_rebellion_3
			}
			spawn_rebels = {
				type = noble_rebels
				size = 3
			}
			clr_province_flag = bulavin_rebellion_3
		}
		random_owned_province = {
			limit = {
				has_province_flag = bulavin_rebellion_2
			}
			spawn_rebels = {
				type = noble_rebels
				size = 2
			}
			clr_province_flag = bulavin_rebellion_2
		}
	}
	option = {		# Revert some reforms
		name = "flavor_rus.EVTOPTB1008"
		ai_chance = { factor = 0 }
		remove_country_modifier = western_reforms
		add_country_modifier = {
			name = reversed_reforms
			duration = 1825
		}
		hidden_effect = {
			every_owned_province = {
				clr_province_flag = bulavin_rebellion_3
				clr_province_flag = bulavin_rebellion_2
			}
		}
	}
}

# Fjodor Baikov's Diplomatic Incident
country_event = {
	id = flavor_rus.18	
	title = "flavor_rus.EVTNAME3419"
	desc = "flavor_rus.EVTDESC3419"
	picture = DIPLOMACY_eventPicture
	
	trigger = {
		tag = RUS
		event_target:EmperorOfChina = {
			exists = yes
			is_neighbor_of = ROOT
		}
	}
	
	fire_only_once = yes
	
		
	mean_time_to_happen = {
		months = 240
	}

	option = {		# Ignore the demands
		name = "flavor_rus.EVTOPTA3419"
		ai_chance = { factor = 75 }
		event_target:EmperorOfChina = {
			add_opinion = {
				who = ROOT
				modifier = rus_ignored_vassal_demands
			}
		}
	}
	option = {		# Pretend to be a Chinese Vassal
		name = "flavor_rus.EVTOPTB3419"
		ai_chance = { factor = 20 }
		add_legitimacy = -5
		event_target:EmperorOfChina = {
			add_opinion = {
				who = ROOT
				modifier = rus_paid_vassal_respect
			}
		}
	}
	option = {		# Pretend to be a Chinese Vassal and pay Tribute
		name = "flavor_rus.EVTOPTC3419"
		ai_chance = {
			factor = 5
		}
		add_legitimacy = -5
		add_years_of_income = -0.25
		event_target:EmperorOfChina = {
			add_opinion = {
				who = ROOT
				modifier = rus_paid_vassal_tribute
			}
		}
	}
}

# Stepan Rasin's Cossack Uprising
country_event = {
	id = flavor_rus.19
	title = "flavor_rus.EVTNAME3420"
	desc = "flavor_rus.EVTDESC3420"
	picture = ANGRY_MOB_eventPicture
	
	
	fire_only_once = yes

	trigger = {
		tag = RUS
		is_year = 1650
		calc_true_if = {
			all_owned_province = {
				has_terrain = steppe 
			}
			amount = 4
		}

	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					has_terrain = steppe
				}
				set_province_flag = cossack_uprising_2
			}
			random_owned_province = {
				limit = {
					has_terrain = steppe
					NOT = { has_province_flag = cossack_uprising_2 }
				}
				set_province_flag = cossack_uprising_1
			}
		}
	}

	option = {		# Quell all separatist movements
		name = "flavor_rus.EVTOPTA3420"
		ai_chance = { factor = 90 }
		
		if = {
			limit = {
				has_estate = estate_cossacks
			}
			add_estate_loyalty = {
				estate = estate_cossacks
				loyalty = -10
			}
		}		

	
		random_owned_province = {
			limit = {
				has_province_flag = cossack_uprising_2
			}
			spawn_rebels = {
				type = cossack_rebels
				size = 3
			}
			clr_province_flag = cossack_uprising_2
		}
		random_owned_province = {
			limit = {
				has_province_flag = cossack_uprising_1
			}
			spawn_rebels = {
				type = cossack_rebels
				size = 2
			}
			clr_province_flag = cossack_uprising_1
		}
	}
	option = {		# Give more autonomy to provinces
		name = "flavor_rus.EVTOPTB3420"
		ai_chance = { factor = 10 }
		hidden_effect = {
			every_owned_province = {
				clr_province_flag = cossack_uprising_2
				clr_province_flag = cossack_uprising_1
			}
		}
		every_owned_province = {
			limit = {
				has_terrain = steppe
			}
			add_local_autonomy = 50
		}
	}
}

# The Treaty of Nerchiinsk
country_event = {
	id = flavor_rus.20
	
	title = "flavor_rus.EVTNAME3421"
	desc = "flavor_rus.EVTDESC3421"
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = RUS
		is_year = 1650
		OR = {
			exists = MNG
			exists = QNG
		}
		any_owned_province = {
			OR = {
				region = west_siberia_region
				region = east_siberia_region
			}
		}
		OR = {
			MNG = {
				NOT = { war_with = ROOT }
				any_owned_province = {
					any_neighbor_province = {
						region = manchuria_region
						owned_by = ROOT
					}
				}
				total_development = 1000
			}
			QNG = {
				NOT = { war_with = ROOT }
				any_owned_province = {
					any_neighbor_province = {
						region = manchuria_region
						owned_by = ROOT
					}
				}
				total_development = 1000
			}
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	immediate = {
		hidden_effect = {
			if = {
				limit = {
					MNG = {
						NOT = { war_with = ROOT }
						any_owned_province = {
							any_neighbor_province = {
								region = manchuria_region
								owned_by = ROOT
							}
						}
					}
				}
				MNG = {
					set_country_flag = nerchiinsk_treaty
				}
			}
			if = {
				limit = {
					MNG = {
						NOT = { has_country_flag = nerchiinsk_treaty }
					}
					QNG = {
						NOT = { war_with = ROOT }
						any_owned_province = {
							any_neighbor_province = {
								region = manchuria_region
								owned_by = ROOT
							}
						}
					}
				}
				QNG = {
					set_country_flag = nerchiinsk_treaty
				}
			}
		}
	}

	option = {		# Accept the Treaty
		name = "flavor_rus.EVTOPTA3421"
		ai_chance = { factor = 0 }
		random_country = {
			limit = {
				has_country_flag = nerchiinsk_treaty
			}
			add_opinion = {
				who = ROOT
				modifier = rus_treaty_of_nerchiinsk
			}
			every_province = {
				limit = {
					owned_by = ROOT
					region = manchuria_region
				}
				cede_province = PREV
			}
			add_truce_with = root
			clr_country_flag = nerchiinsk_treaty
		}
		west_siberia_region = {
			add_claim = ROOT
		}
		east_siberia_region = {
			add_claim = ROOT
		}
		every_country = {
			limit = {
				any_owned_province = {
					OR = {
						region = west_siberia_region
						region = east_siberia_region
					}
				}
			}
			add_opinion = {
				who = ROOT
				modifier = rus_claimed_western_siberia
			}
		}
	}
	option = {		# Reject the Treaty as Preposterous
		name = "flavor_rus.EVTOPTB3421"
		ai_chance = { factor = 10 }
		random_country = {
			limit = {
				has_country_flag = nerchiinsk_treaty
			}
			add_opinion = {
				who = ROOT
				modifier = rus_refused_treaty_of_nerchiinsk
			}
			clr_country_flag = nerchiinsk_treaty
		}
		west_siberia_region = {
			add_claim = ROOT
		}
		east_siberia_region = {
			add_claim = ROOT
		}
		every_country = {
			limit = {
				any_owned_province = {
					OR = {
						region = west_siberia_region
						region = east_siberia_region
					}
				}
			}
			add_opinion = {
				who = ROOT
				modifier = rus_claimed_western_siberia
			}
		}
	}

}

# The Great Northern Conflict
country_event = {
	id = flavor_rus.21
	
	title = "flavor_rus.EVTNAME3422"
	desc = "flavor_rus.EVTDESC3422"
	picture = MILITARY_CAMP_eventPicture


	fire_only_once = yes

	trigger = {
		tag = RUS
		is_year = 1680
		NOT = { is_year = 1730 }
		SWE = {
			is_free_or_tributary_trigger = yes
			total_development = 200
			is_neighbor_of = RUS
			NOT = {
				alliance_with = RUS
			}
			any_enemy_country = {
				NOT = { is_rival = ROOT }
				NOT = { is_enemy = ROOT }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 100
	}
	

	option = {		# Seek closer ties with their enemies
		name = "flavor_rus.EVTOPTA3422"
		ai_chance = { factor = 75 }
		add_opinion = {
			who = SWE
			modifier = rus_political_aggressions
		}
		SWE = {
			every_enemy_country = {
				limit = {
					NOT = { is_rival = ROOT }
					NOT = { is_enemy = ROOT }
				}
				add_opinion = {
					who = ROOT
					modifier = rus_enemy_of_sweden
				}
				ROOT = {
					add_opinion = {
						who = PREV
						modifier = rus_enemy_of_sweden
					}
				}				
			}
		}
	}
	option = {		# Let others move first
		name = "flavor_rus.EVTOPTB3422"
		ai_chance = { factor = 25 }
		add_prestige = -5
	}
}

# Governmental Reforms and the Absolutism
country_event = {
	id = flavor_rus.22
	
	title = "flavor_rus.EVTNAME3426"
	desc = "flavor_rus.EVTDESC3426"
	picture = REFORM_eventPicture

	fire_only_once = yes


	trigger = {
		tag = RUS
		is_year = 1680
		NOT = { is_year = 1720 }
		government = monarchy
	}
	
	mean_time_to_happen = {
		months = 60
	}
	

	option = {		# Institute the Reforms
		name = "flavor_rus.EVTOPTA3426"
		ai_chance = { factor = 100 }
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		add_country_modifier = {
			name = russian_absolutism
			duration = -1
		}
	}
	option = {		# The Old Way is better!
		name = "flavor_rus.EVTOPTB3426"
		ai_chance = { factor = 0 }
		add_stability_or_adm_power = yes
	}
}

# The State take control of the Russian Church
country_event = {
	id = flavor_rus.23
	
	title = "flavor_rus.EVTNAME3427"
	desc = "flavor_rus.EVTDESC3427"
	picture = ORTHODOX_eventPicture
	
	fire_only_once = yes

	trigger = {
		NOT = { has_dlc = "Domination" }
		tag = RUS
		is_year = 1720
		NOT = { is_year = 1740 }
		religion = orthodox
	}
	
	mean_time_to_happen = {
		months = 60
	}
	

	option = {		# Abolish the Patriarchate
		name = "flavor_rus.EVTOPTA3427"
		ai_chance = {
			factor = 75
		}
		add_patriarch_authority = -1.0
		add_country_modifier = {
			name = state_controlled_church
			duration = -1
		}
		if = {
			limit = {
				has_estate = estate_church
			}
			add_estate_loyalty = {
				estate = estate_church
				loyalty = -25
			}
		}		
		
		
		
	}
	option = {		# Leave the Patriarchate alone
		name = "flavor_rus.EVTOPTB3427"
		ai_chance = { factor = 25 }
		add_patriarch_authority = 0.25
	}
}

# The Courland Succession of 1726
country_event = {
	id = flavor_rus.24
	
	title = "flavor_rus.EVTNAME3430"
	desc = "flavor_rus.EVTDESC3430"
	picture = COURT_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = RUS
		exists = KUR
		KUR = {
			has_heir = no
			is_neighbor_of = RUS
			is_free_or_tributary_trigger = yes
			government = monarchy
		}
	}
	
	mean_time_to_happen = {
		months = 12
	}
	
	immediate = {
		hidden_effect = {
			KUR = {
				every_owned_province = {
					every_core_country = {
						limit = {
							NOT = { tag = ROOT }
							exists = yes
						}
						set_country_flag = courland_succession
					}
				}
			}
		}
	}

	option = {		# Prepare to grab Kurland
		name = "flavor_rus.EVTOPTA3430"
		ai_chance = { factor = 90 }
		KUR = {
			every_owned_province = {
				limit = {
					NOT = { is_core = ROOT }
				}
				add_claim = ROOT
			}
		}
		every_country = {
			limit = {
				has_country_flag = courland_succession
			}			
			add_opinion = {
				who = ROOT
				modifier = rus_claimed_courland
			}
			clr_country_flag = courland_succession
		}
	}
	option = {		# Ignore this petty matter
		name = "flavor_rus.EVTOPTB3430"
		ai_chance = { factor = 10 }
		every_country = {
			limit = {
				has_country_flag = courland_succession
			}
			add_opinion = {
				who = ROOT
				modifier = rus_did_not_claim_courland
			}
			clr_country_flag = courland_succession
		}
	}
}

# The Duma and the Legislative Reform
country_event = {
	id = flavor_rus.25
	title = "flavor_rus.EVTNAME3432"
	desc = "flavor_rus.EVTDESC3432"
	picture = REFORM_eventPicture
	fire_only_once = yes

	trigger = {
		tag = RUS
		is_year = 1750
		NOT = { is_year = 1770 }
		
		has_country_modifier = russian_absolutism
	}
	
	mean_time_to_happen = {
		months = 60
	}
	

	option = {		# Ignore the Injustice in Society
		name = "flavor_rus.EVTOPTA3432"
		ai_chance = { factor = 75 }
		random_owned_province = {
			spawn_rebels = {
				type = anti_tax_rebels
				size = 1
			}
		}
	}
	option = {		# Do something about the Injustice in Society
		name = "flavor_rus.EVTOPTB3432"
		ai_chance = {
			factor = 25
		}
		
		remove_country_modifier = russian_absolutism
		add_country_modifier = {
			name = liberal_constitution
			duration = -1
		}
		add_absolutism = -25
	}
}

# The Mercantilistic Reforms
country_event = {
	id = flavor_rus.26
	title = "flavor_rus.EVTNAME3434"
	desc = "flavor_rus.EVTDESC3434"
	picture = REFORM_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = RUS
		is_year = 1700
		NOT = { is_year = 1800 }
	}
	
	mean_time_to_happen = {
		months = 200
	}
	

	option = {		# Yes, we need to reform
		name = "flavor_rus.EVTOPTA3434"
		ai_chance = { factor = 50 }
		add_country_modifier = {
			name = mercantilist_reforms
			duration = -1
		}
	}
	option = {		# No, we shall opt for Free Trade
		name = "flavor_rus.EVTOPTC3434"
		ai_chance = { factor = 25 }
		add_country_modifier = {
			name = free_trade_reforms
			duration = -1
		}
	}
}

# The Pugatchev Uprising
country_event = {
	id = flavor_rus.27
	title = "flavor_rus.EVTNAME3435"
	desc = "flavor_rus.EVTDESC3435"
	picture = ANGRY_MOB_eventPicture
	fire_only_once = yes

	trigger = {
		NOT = { has_dlc = "Domination" }
		tag = RUS
		is_year = 1750
		NOT = { stability = 1 }
		ural_region = {
			owned_by = RUS
		}
	}
	
	mean_time_to_happen = {
		months = 32
	}
	
	option = {		# The Masses are moving...
		name = "flavor_rus.EVTOPTA3435"
		
		set_country_flag = rus_pugachev_uprising
		
		ural_region = {
			limit = {
				owned_by = RUS
			}
			add_unrest = 10
		}

		random_owned_province = {
			limit = {
				region = ural_region
			}
			spawn_rebels = {
				type = anti_tax_rebels
				size = 2
			}
		}
	}
}

# The Reactionary Policy
country_event = {
	id = flavor_rus.28
	title = "flavor_rus.EVTNAME3436"
	desc = "flavor_rus.EVTDESC3436"
	picture = ANGRY_MOB_eventPicture
	fire_only_once = yes

	trigger = {
		NOT = { has_dlc = "Domination" }
		tag = RUS
		government = monarchy
		had_country_flag = {
			flag = rus_pugachev_uprising
			days = 730
		}
	}
	
	mean_time_to_happen = {
		months = 64
	}
	


	option = {		# Keep the Masses in Chains
		name = "flavor_rus.EVTOPTA3436"
		ai_chance = { factor = 70 }
		remove_country_modifier = enserfed_peasants
		remove_country_modifier = legal_serfdom
		
		add_country_modifier = {
			name = complete_serfdom
			duration = -1
		}

	}
	option = {		# Let introduce the idea of 'Freedom'
		name = "flavor_rus.EVTOPTB3436"
		ai_chance = {
			factor = 20
		}
		remove_country_modifier = enserfed_peasants
		remove_country_modifier = legal_serfdom
		
		add_country_modifier = {
			name = increased_freedom
			duration = -1
		}	
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -50
			}
		}
	
	}

}

# Tsar Paul I:s Liberal Legislation
country_event = {
	id = flavor_rus.29
	
	title = "flavor_rus.EVTNAME3437"
	desc = "flavor_rus.EVTDESC3437"
	picture = REFORM_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = RUS
		is_year = 1750
		OR = {
			has_country_modifier = enserfed_peasants
			has_country_modifier = legal_serfdom
			has_country_modifier = complete_serfdom
		}
	}
	
	mean_time_to_happen = {
		months = 60
	}
	


	option = {		# Restrict Serfdom
		name = "flavor_rus.EVTOPTA3437"
		ai_chance = {
			factor = 75
		}
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		remove_country_modifier = enserfed_peasants
		remove_country_modifier = legal_serfdom
		remove_country_modifier = complete_serfdom
		add_country_modifier = {
			name = restricted_serfdom
			duration = -1
		}	
		
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -20
			}
		}
		
		
	}
	option = {		# It is perfect as it is
		name = "flavor_rus.EVTOPTB3437"
		ai_chance = { factor = 25 }
		add_stability_or_adm_power = yes
	}
}

# Tsar Alexander I:s Liberal Legislation
country_event = {
	id = flavor_rus.30
	
	title = "flavor_rus.EVTNAME3438"
	desc = "flavor_rus.EVTDESC3438"
	picture = REFORM_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = RUS
		is_year = 1780
		
		OR = {
			has_country_modifier = enserfed_peasants
			has_country_modifier = legal_serfdom
			has_country_modifier = complete_serfdom
			has_country_modifier = restricted_serfdom
		}
		
	}
	
	mean_time_to_happen = {
		months = 100
	}
	
	
	option = {		# Abolish serfdom
		name = "flavor_rus.EVTOPTA3438"
		ai_chance = {
			factor = 75
		}
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		remove_country_modifier = enserfed_peasants
		remove_country_modifier = legal_serfdom
		remove_country_modifier = complete_serfdom
		remove_country_modifier = restricted_serfdom
		
		
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -20
			}
		}
	}
	option = {		# Leave it be
		name = "flavor_rus.EVTOPTB3438"
		ai_chance = { factor = 25 }
		add_stability_or_adm_power = yes
	}
}

# The Anjala League
country_event = {
	id = flavor_rus.31
	
	title = "flavor_rus.EVTNAME3439"
	desc = "flavor_rus.EVTDESC3439"
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes #From flavor_swe.3259

	option = {		# Give them our support
		name = "flavor_rus.EVTOPTA3439"
		ai_chance = { factor = 90 }
		add_years_of_income = -0.25
		SWE = {
			random_owned_province = {
				limit = {
					is_core = FIN
				}
				spawn_rebels = {
					type = nationalist_rebels
					size = 2
					friend = ROOT
				}
			}
		}
	}
	option = {		# Reject their pleas
		name = "flavor_rus.EVTOPTB3439"
		ai_chance = { factor = 10 }
		SWE = {
			add_opinion = {
				who = ROOT
				modifier = rus_rejected_anjala_league
			}
		}
	}
}

# Mikhailo Shcherbatov
country_event = {
	id = flavor_rus.32
	title = "flavor_rus.EVTNAME1000"
	desc = "flavor_rus.EVTDESC1000"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = RUS
		is_year = 1763
		NOT = { is_year = 1783 }
	}

	mean_time_to_happen = {
		months = 60
	}
	

	option = {		# Excellent
		name = "EXCELLENT"
		add_adm_power = 10
		add_prestige = 10
		define_advisor = {
			name = "Mikhailo Shcherbatov"
			type = philosopher
			skill = 3
			discount = yes
		}
	}
}

# Vasily Tatishchev
country_event = {
	id = flavor_rus.33
	title = "flavor_rus.EVTNAME1001"
	desc = "flavor_rus.EVTDESC1001"
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = RUS
		is_year = 1716
		NOT = { is_year = 1746 }

	}

	mean_time_to_happen = {
		months = 90
	}

	option = {		# Excellent
		name = "EXCELLENT"
		define_advisor = {
			name = "Vasily Tatishchev"
			type = statesman
			skill = 3
			discount = yes
		}
		add_adm_power = 10
		add_prestige = 10
	}
}

# Mikhail Lomonosov
country_event = {
	id = flavor_rus.34
	title = "flavor_rus.EVTNAME1002"
	desc = "flavor_rus.EVTDESC1002"
	picture = INVENTION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = RUS
		is_year = 1741
		NOT = { is_year = 1765 }
	}

	mean_time_to_happen = {
		months = 75
	}
	

	option = {		# Excellent
		name = "EXCELLENT"
		define_advisor = {
			name = "Mikhail Lomonosov"
			type = natural_scientist
			skill = 3
			discount = yes
		}
		add_adm_power = 10
		add_prestige = 10
	}
}

########################################
# 1.35 Events for the Russia
#
# written by Ogulcan Yildirim
########################################

# Ivan the Terrible
country_event = {
	id = flavor_rus.35
	title = flavor_rus.35.t
	desc = flavor_rus.35.desc
	picture = CONQUEST_eventPicture
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = RUS
			AND = {
				tag = MOS
				NOT = { exists = RUS }
			}
		}
		government = monarchy
		dynasty = "Rurikovich"
		is_lesser_in_union = no
		is_year = 1500
		NOT = { is_year = 1600 }
	}
	
	mean_time_to_happen = {
		months = 50
		modifier = {
			factor = 0.5
			has_regency = yes
		}
	}
	
	option = {
		name = flavor_rus.35.a
		define_ruler = {
			name = "Ivan IV Grozny"
			dynasty = ROOT
			adm = 6
			dip = 5
			mil = 6
			age = 16
		}
		set_ruler_flag = has_ivan_the_terrible
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					ruler_total_stats = {
						amount = 15
					}
				}
			}
		}
	}
	
	option = {
		name = flavor_rus.35.b
		add_legitimacy = 10
		add_adm_power = 25
		add_dip_power = 25
		add_mil_power = 25
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				ruler_total_stats = {
					amount = 15
				}
			}
			modifier = {
				factor = 0
				has_regency = yes
			}
		}
	}
}

# The Russian Navy
country_event = {
	id = flavor_rus.36
	title = flavor_rus.36.t
	desc = {
		desc = flavor_rus.36.desc.a
		trigger = {
			NOT = { was_tag = NOV }
		}
	}
	desc = {
		desc = flavor_rus.36.desc.b
		trigger = {
			was_tag = NOV
		}
	}
	picture = NAVAL_MILITARY_eventPicture
	is_triggered_only = yes
	
	#Focus on a Trade orientated navy
	option = {
		name = flavor_rus.36.a
		add_country_modifier = {
			name = rus_trade_fleet
			duration = -1
		}
		add_mercantilism = 5
		ai_chance = {
			factor = 1
		}
	}
	
	#Focus on a Military orientated navy
	option = {
		name = flavor_rus.36.b
		add_country_modifier = {
			name = rus_war_fleet
			duration = -1
		}
		add_navy_tradition = 20
		ai_chance = {
			factor = 0
		}
	}
}

# Formation of the Governing Senate
country_event = {
	id = flavor_rus.37
	title = flavor_rus.37.t
	desc = flavor_rus.37.desc
	picture = REFORM_eventPicture
	is_triggered_only = yes
	
	#Create the Governing Senate
	option = {
		name = flavor_rus.37.a
		unlock_government_reform = {
			government_reform = governing_senate_reform
		}
		add_government_reform = governing_senate_reform
		ai_chance = {
			factor = 1
		}
	}
	
	#Focus all power on the Emperor
	option = {
		name = flavor_rus.37.b
		unlock_government_reform = {
			government_reform = enforced_autocracy_reform
		}
		add_government_reform = enforced_autocracy_reform
		ai_chance = {
			factor = 0
		}
	}
}

# The Holy Synod
country_event = {
	id = flavor_rus.38
	title = flavor_rus.38.t
	desc = flavor_rus.38.desc
	picture = ORTHODOX_eventPicture
	is_triggered_only = yes
	
	#Create the Holy Synod
	option = {
		name = flavor_rus.38.a
		unlock_government_reform = {
			government_reform = holy_synod_reform
		}
		add_government_reform = holy_synod_reform
		ai_chance = {
			factor = 1
		}
	}
	
	#This can wait for later
	option = {
		name = flavor_rus.38.b
		unlock_government_reform = {
			government_reform = holy_synod_reform
		}
		change_government_reform_progress = 50
		ai_chance = {
			factor = 0
		}
	}
}

# Strengthened the Patriarchy
country_event = {
	id = flavor_rus.39
	title = flavor_rus.39.t
	desc = flavor_rus.39.desc
	picture = ORTHODOX_eventPicture
	is_triggered_only = yes
	
	#Create the Holy Synod
	option = {
		name = flavor_rus.39.a
		unlock_government_reform = {
			government_reform = strengthened_the_patriarchy_reform
		}
		add_government_reform = strengthened_the_patriarchy_reform
		ai_chance = {
			factor = 1
		}
	}
	
	#This can wait for later
	option = {
		name = flavor_rus.39.b
		unlock_government_reform = {
			government_reform = strengthened_the_patriarchy_reform
		}
		change_government_reform_progress = 50
		ai_chance = {
			factor = 0
		}
	}
}

# Head of the Patriarchy
country_event = {
	id = flavor_rus.40
	title = flavor_rus.40.t
	desc = flavor_rus.40.desc
	picture = ORTHODOX_eventPicture
	is_triggered_only = yes
	
	#Create the Holy Synod
	option = {
		name = flavor_rus.40.a
		unlock_government_reform = {
			government_reform = head_of_the_patriarchy_reform
		}
		add_government_reform = head_of_the_patriarchy_reform
		ai_chance = {
			factor = 1
		}
	}
	
	#This can wait for later
	option = {
		name = flavor_rus.40.b
		unlock_government_reform = {
			government_reform = head_of_the_patriarchy_reform
		}
		change_government_reform_progress = 50
		ai_chance = {
			factor = 0
		}
	}
}

# The Age or Revolutions
country_event = {
	id = flavor_rus.44
	title = flavor_rus.44.t
	desc = flavor_rus.44.desc
	picture = REVOLUTION_eventPicture
	is_triggered_only = yes
	trigger = {
		NOT = { current_age = age_of_discovery }
		NOT = { current_age = age_of_reformation }
		NOT = { current_age = age_of_absolutism }
		mission_completed = rus_the_age_of_revolution
		has_country_modifier = rus_great_power_of_the_east
		NOT = { has_country_flag = rus_has_rev_missions }
	}
	mean_time_to_happen = {
		days = 1
	}
	
	#A new age for Russia
	option = {
		name = flavor_rus.44.a
		custom_tooltip = rus_the_age_of_revolution_bt
		set_country_flag = rus_has_rev_missions
		swap_non_generic_missions = yes
		
		ai_chance = {
			factor = 1
		}
	}
}

# Modernization of the Army
country_event = {
	id = flavor_rus.45
	title = flavor_rus.45.t
	desc = flavor_rus.45.desc
	picture = STRELTSY_MARCHING_eventPicture
	is_triggered_only = yes
	
	#A new age for Russia
	option = {
		name = flavor_rus.45.a
		change_unit_type = western
		add_country_modifier = {
			name = rus_western_military_tactics
			duration = -1
		}
		
		ai_chance = {
			factor = 1
		}
	}
}

# Technological jump
country_event = {
	id = flavor_rus.47
	title = flavor_rus.47.t
	desc = flavor_rus.47.desc
	picture = INVENTION_eventPicture
	is_triggered_only = yes
	
	#We shall push for more innovation for our administration
	option = {
		name = flavor_rus.47.a
		add_adm_power = 50
		if = {
			limit = { NOT = { adm_tech = 32 } }
			add_adm_tech = 1
		}
		change_government_reform_progress = 25
		ai_chance = {
			factor = 1
		}
	}
	
	#We shall push for more innovation for our navy
	option = {
		name = flavor_rus.47.b
		add_dip_power = 50
		if = {
			limit = { NOT = { dip_tech = 32 } }
			add_dip_tech = 1
		}
		add_navy_tradition = 20
		ai_chance = {
			factor = 0
		}
	}
	
	#We shall push for more innovation for our military
	option = {
		name = flavor_rus.47.c
		add_mil_power = 50
		if = {
			limit = { NOT = { mil_tech = 32 } }
			add_mil_tech = 1
		}
		add_army_tradition = 20
		ai_chance = {
			factor = 0
		}
	}
}

# The new Administration of the [GovernmentName]
country_event = {
	id = flavor_rus.100
	title = flavor_rus.100.t
	desc = flavor_rus.100.desc
	picture = REFORM_eventPicture
	is_triggered_only = yes

	# Have normal Claims in the Mission tree
	option = {
		name = flavor_rus.100.a
		custom_tooltip = flavor_rus.100.a.tt
		russia_region = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
				NOT = { owned_by = LIT }
				NOT = { owned_by = SWE }
			}
			add_permanent_claim = ROOT
		}
		kama_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		bashkiria_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		volga_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		kazan_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		samara_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		saratov_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		lower_don_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		astrakhan_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		add_permanent_claim_province = { province = 1777 }
		add_permanent_claim_province = { province = 2408 }
		add_permanent_claim_province = { province = 299 }

		ai_chance = {
			factor = 1
		}
	}

	# Missions no longer give perma claims
	# Get a perma buff to fabrication cost, diplomat and the state claiming ability
	option = {
		name = flavor_rus.100.b
		custom_tooltip = flavor_rus.100.b.tt

		add_country_modifier = {
			name = rus_expanded_administrative_offices
			duration = -1
		}
		russia_region = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
				NOT = { owned_by = LIT }
				NOT = { owned_by = SWE }
			}
			add_claim = ROOT
		}
		kama_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_claim = ROOT
		}
		bashkiria_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_claim = ROOT
		}
		volga_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_claim = ROOT
		}
		kazan_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_claim = ROOT
		}
		samara_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_claim = ROOT
		}
		saratov_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_claim = ROOT
		}
		lower_don_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_claim = ROOT
		}
		astrakhan_area = {
			limit = {
				NOT = { is_permanent_claim = ROOT }
				NOT = { is_core = ROOT }
			}
			add_claim = ROOT
		}
		add_claim_province = { province = 1777 }
		add_claim_province = { province = 2408 }
		add_claim_province = { province = 299 }

		ai_chance = {
			factor = 0
		}
	}
}

# Trade Development
country_event = {
	id = flavor_rus.101
	title = flavor_rus.101.t
	desc = flavor_rus.101.desc
	picture = TRADE_GOODS_eventPicture
	is_triggered_only = yes

	# Develop Novgorod
	option = {
		name = flavor_rus.101.a
		goto = 310
		310 = {
			add_base_tax = 1
			add_base_production = 1
			add_base_manpower = 1
			add_province_modifier = {
				name = rus_developed_trade_post_novgorod
				duration = -1
			}
		}

		ai_chance = {
			factor = 1
		}
	}
}

# Founding of Arkhangelsk
country_event = {
	id = flavor_rus.102
	title = flavor_rus.102.t
	desc = flavor_rus.102.desc
	picture = CITY_VIEW_eventPicture
	fire_only_once = yes
	trigger = {
		OR = {
			tag = RUS
			OR = {
				culture_group = east_slavic
				culture_group = slavic
			}
		}
		is_year = 1500
		owns = 1955
		1955 = {
			NOT = { has_province_modifier = arkhangelsk_modifier }
		}
	}
	mean_time_to_happen = {
		months = 30
	}
	goto = 1955

	# Ok
	option = {
		name = flavor_rus.102.a
		1955 = {
			rename_capital = "Arkhangelsk"
			change_province_name = "Arkhangelsk"
			add_base_tax = 2
			add_base_production = 2
			add_base_manpower = 2
			add_province_modifier = {
				name = arkhangelsk_modifier
				duration = -1
			}
		}

		ai_chance = {
			factor = 0
		}
	}
}

# The Grand Duchy of Finland
country_event = {
	id = flavor_rus.105
	title = flavor_rus.105.t
	desc = flavor_rus.105.desc
	picture = GOOD_WITH_MONARCH_eventPicture
	is_triggered_only = yes

	# Establish the autonomous Grand Duchy of Finland
	option = {
		name = flavor_rus.105.a
		hidden_effect = {
			finland_area = {
				add_core = FIN
				remove_core = ROOT 
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
			}
			bothnia_area = {
				add_core = FIN
				remove_core = ROOT 
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
			}
			1930 = {
				add_core = FIN
				remove_core = ROOT 
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
			}
			32 = {
				add_core = FIN
				remove_core = ROOT 
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
			}
			4124 = {
				add_core = FIN
				remove_core = ROOT 
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
			}
			4151 = {
				add_core = FIN
				remove_core = ROOT 
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
			}
		}
		if = {
			limit = { NOT = { exists = FIN } }
			release = FIN
			hidden_effect = {
				FIN = {
					change_government = monarchy
					add_government_reform = feudalism_reform
					if = {
						limit = { 28 = { religion = catholic } }
						change_religion = catholic
					}
					else_if = {
						limit = { 28 = { religion = protestant } }
						change_religion = protestant
					}
					else_if = {
						limit = { 28 = { religion = reformed } }
						change_religion = reformed
					}
					else = {
						change_religion = orthodox
					}
					change_primary_culture = finnish
					set_prestige_to_zero = yes
					add_adm_power = 50
					add_dip_power = 50
					add_mil_power = 50
				}
			}
		}
		if = {
			limit = { FIN = { is_subject = no } }
			if = {
				limit = { valid_for_personal_unions_trigger = yes FIN = { valid_for_personal_unions_trigger = yes } }
				create_subject = {
					who = FIN
					subject_type = personal_union
				}
			}
			else = {
				create_subject = {
					who = FIN
					subject_type = vassal
				}
			}
		}
		add_country_modifier = {
			name = rus_grand_duke_of_finland
			duration = -1
			desc = rus_grand_duke_of_finland_at
		}
		custom_tooltip = flavor_rus.105.a.tt
		ai_chance = {
			factor = 0
		}
	}

	# We will govern Finland ourselves with all means necessary
	option = {
		name = flavor_rus.105.b
		add_adm_power = 75
		ai_chance = {
			factor = 1
		}
	}
}

# Kiev under Russian rule
country_event = {
	id = flavor_rus.106
	title = flavor_rus.106.t
	desc = flavor_rus.106.desc
	picture = UNIVERSITY_eventPicture
	is_triggered_only = yes
	goto = 280
	option = {
		name = flavor_rus.106.a
		280 = {
			add_base_tax = 4
			add_base_production = 1
			add_base_manpower = 1
			add_building = cathedral
			add_province_modifier = {
				name = rus_orthodox_holy_site
				duration = -1
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = flavor_rus.106.b
		280 = {
			add_base_tax = 1
			add_base_production = 4
			add_base_manpower = 1
			add_building = stock_exchange
			add_province_modifier = {
				name = rus_center_of_commerce
				duration = -1
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = flavor_rus.106.c
		280 = {
			add_base_tax = 1
			add_base_production = 1
			add_base_manpower = 4
			add_building = ramparts
			add_province_modifier = {
				name = rus_the_west_fort
				duration = -1
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = flavor_rus.106.d
		280 = {
			add_base_tax = 2
			add_base_production = 2
			add_base_manpower = 2
			add_building = university
			add_province_modifier = {
				name = rus_kiev_mohyla_academy
				duration = -1
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Establishment of Rostov-on-Don
country_event = {
	id = flavor_rus.114
	title = flavor_rus.114.t
	desc = flavor_rus.114.desc
	picture = CITY_DEVELOPMENT_eventPicture
	trigger = {
		has_dlc = "Domination"
		tag = RUS
		owns_core_province = 286
	}
	mean_time_to_happen = {
		months = 50
	}
	fire_only_once = yes
	goto = 286

	option = {
		name = flavor_rus.114.a
		add_years_of_income = -0.2
		286 = {
			change_province_name = "Rostov-on-Don"
			rename_capital = "Rostov-on-Don"
			if = {
				limit = { NOT = { has_shipyard_building_trigger = yes } }
				add_building = shipyard
			}
			add_base_tax = 2
			add_base_production = 2
			add_base_manpower = 1
			center_of_trade = 1
		}
		ai_chance = {
			factor = 1
		}
	}
}

# The Christian border of Persia
country_event = {
	id = flavor_rus.116
	title = flavor_rus.116.t
	desc = flavor_rus.116.desc
	picture = ORTHODOX_ICON_FLAG_eventPicture
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			random_ally = {
				limit = {
					capital_scope = { region = caucasia_region }
					religion_group = ROOT
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = persia_region
						value = 20
					}
				}
				save_event_target_as = rus_persian_ally
			}
		}
	}
	#Ask our esteemed ally to kneel before the Russian throne
	option = {
		name = flavor_rus.116.a
		event_target:rus_persian_ally = {
			country_event = {
				id = flavor_rus.117
				tooltip = flavor_rus.117.tt
			}
		}

		ai_chance = {
			factor = 0
		}
	}
	#We see them as equals
	option = {
		name = flavor_rus.116.b
		event_target:rus_persian_ally = {
			add_historical_friend = ROOT
			ROOT = {
				add_historical_friend = PREV
			}
		}
		add_dip_power = 100
		4341 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 75
				key = RUS_PERSIAN_TRADE
			}
		}

		ai_chance = {
			factor = 1
		}
	}
}

# The Christian border of Persia - Asked for subjugation
country_event = {
	id = flavor_rus.117
	title = flavor_rus.117.t
	desc = flavor_rus.117.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	#Kneel before the Russian Tsardom
	option = {
		name = flavor_rus.117.a
		tooltip = {
			FROM = {
				create_subject = {
					subject_type = vassal
					who = ROOT
				}
			}
		}
		hidden_effect = {
			FROM = {
				country_event = {
					id = flavor_rus.118
				}
			}
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				total_development = 500
			}
		}
	}
	#Refuse
	option = {
		name = flavor_rus.117.b
		FROM = {
			country_event = {
				id = flavor_rus.119
			}
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { total_development = 500 }
			}
		}
	}
}

# The Christian border of Persia - Accepted
country_event = {
	id = flavor_rus.118
	title = flavor_rus.118.t
	desc = flavor_rus.118.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	#Nice
	option = {
		name = flavor_rus.118.a
		create_subject = {
			subject_type = vassal
			who = FROM
		}
		4341 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 50
				key = RUS_PERSIAN_TRADE
			}
		}

		ai_chance = {
			factor = 1
		}
	}
}

# The Christian border of Persia - Rejected
country_event = {
	id = flavor_rus.119
	title = flavor_rus.119.t
	desc = flavor_rus.119.desc
	picture = ACCUSATION_eventPicture
	is_triggered_only = yes
	#oof
	option = {
		name = flavor_rus.119.a
		persia_region = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_russian_claim = yes
		}
		4341 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 100
				key = RUS_PERSIAN_TRADE
			}
		}

		ai_chance = {
			factor = 1
		}
	}
}

# The Blessing of the Patriarchy
country_event = {
	id = flavor_rus.120
	title = "flavor_rus.EVTNAME3415"
	desc = "flavor_rus.EVTDESC3415"
	picture = ORTHODOX_eventPicture
	is_triggered_only = yes

	option = {		# Let us lead the True Faith from Moscow
		name = "flavor_rus.EVTOPTA3415"
		ai_chance = { factor = 100 }
		add_stability_or_adm_power = yes
		add_patriarch_authority = 0.1
		custom_tooltip = flavor_rus.120.a.tt
		hidden_effect = {
			every_known_country = {
				limit = {
					religion = orthodox
				}
				add_opinion = {
					who = ROOT
					modifier = rus_orthodoxy_led_from_moscow
				}
			}
		}
	}
}

# The end of the Hordes
country_event = {
	id = flavor_rus.122
	title = flavor_rus.122.t
	desc = flavor_rus.122.desc
	picture = CONQUEST_eventPicture
	is_triggered_only = yes

	option = {
		name = flavor_rus.122.a
		add_power_projection = {
			type = mission_rewards_power_projection
			amount = 100
		}
		add_country_modifier = {
			name = rus_end_of_the_horde
			duration = 36500
		}
		ai_chance = { 
			factor = 1 
		}
	}
}

# Development of the Russian Bureaucracy
country_event = {
	id = flavor_rus.123
	title = flavor_rus.123.t
	desc = flavor_rus.123.desc
	picture = REFORM_eventPicture
	is_triggered_only = yes


	option = {
		name = flavor_rus.123.a
		change_government_reform_progress = 25
		add_adm_power = 50
		add_country_modifier = {
			name = rus_bureaucratic_adm_focus
			duration = 9125
		}
		ai_chance = { 
			factor = 0
		}
	}

	option = {
		name = flavor_rus.123.b
		add_mercantilism = 2
		add_dip_power = 50
		add_country_modifier = {
			name = rus_bureaucratic_dip_focus
			duration = 9125
		}
		ai_chance = { 
			factor = 0
		}
	}

	option = {
		name = flavor_rus.123.c
		add_army_tradition = 10
		add_mil_power = 50
		add_country_modifier = {
			name = rus_bureaucratic_mil_focus
			duration = 9125
		}
		ai_chance = { 
			factor = 1
		}
	}
}

# The tysyatsky
country_event = {
	id = flavor_rus.124
	title = flavor_rus.124.t
	desc = flavor_rus.124.desc
	picture = PRINCE_AND_BOYARS_eventPicture
	trigger = {
		has_dlc = "Domination"
		tag = RUS
		NOT = { primary_culture = ruthenian }	#Ruthenian gets it for free
		NOT = { primary_culture = ruthenian_new }
		reform_level = 3
		stability = 1
		NOT = { has_country_flag = rus_had_tysyatsky_event }
	}
	mean_time_to_happen = {
		months = 50
	}

	immediate = {
		hidden_effect = {
			set_country_flag = rus_had_tysyatsky_event
		}
	}

	#Renew the tysyatsky
	option = {
		name = flavor_rus.124.a
		trigger = {
			OR = {
				AND = {
					NOT = { culture_group = east_slavic }
					NOT = { culture_group = slavic }
				}
				NOT = { government = republic }
			}
		}
		unlock_government_reform = {
			government_reform = tysyatsky_reform
		}
		if = {
			limit = {
				OR = {
					government = monarchy
					government = republic
				}
			}
			add_government_reform = tysyatsky_reform
		}
		if = {
			limit = { government = monarchy }
			add_stability = -1
		}
		ai_chance = {
			factor = 0
		}
	}

	#Abolish them and introduce the Namestnik
	option = {
		name = flavor_rus.124.b
		add_adm_power = 75
		change_government_reform_progress = 50
		unlock_government_reform = {
			government_reform = namestnik_reform
		}
		if = {
			limit = {
				OR = {
					government = monarchy
					government = republic
				}
			}
			add_government_reform = namestnik_reform
		}
		hidden_effect = {
			if = {
				limit = {
					OR = {
						culture_group = east_slavic
						culture_group = slavic
					}
					government = republic
				}
				unlock_government_reform = {
					government_reform = tysyatsky_reform
				}
			}
		}
		ai_chance = { 
			factor = 1
		}
	}
}

# Establishment of the Oprichnina
country_event = {
	id = flavor_rus.125
	title = flavor_rus.125.t
	desc = flavor_rus.125.desc
	picture = OPRICHINA_eventPicture
	fire_only_once = yes
	trigger = {
		has_dlc = "Domination"
		tag = RUS
		reform_level = 2
		monthly_mil = 8
		is_at_war = yes
	}
	mean_time_to_happen = {
		months = 24
	}
	goto = revolt_province

	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_in_capital_area = yes
					is_overseas = no
				}
				save_event_target_as = revolt_province
			}
		}
	}

	option = {
		name = flavor_rus.125.a
		unlock_government_reform = {
			government_reform = oprichnina_reform
		}
		if = {
			limit = {
				OR = {
					government = monarchy
					government = republic
				}
			}
			add_government_reform = oprichnina_reform
		}
		random = {
			reduce_stability_or_adm_power = yes
			chance = 25
		}	
		event_target:revolt_province = {
			spawn_rebels = {
				type = noble_rebels
				size = 1
			}
		}
		ai_chance = { 
			factor = 1 
		}
	}

	option = {
		name = flavor_rus.125.b
		add_mil_power = 25
		event_target:revolt_province = {
			spawn_rebels = {
				type = noble_rebels
				size = 1
			}
		}

		ai_chance = { 
			factor = 0
		}
	}
}

# Abolishment of the Mestnichestvo
country_event = {
	id = flavor_rus.126
	title = flavor_rus.126.t
	desc = flavor_rus.126.desc
	picture = PRINCE_AND_BOYARS_eventPicture
	is_triggered_only = yes

	#Good riddance!
	option = {
		name = flavor_rus.126.a
		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_chance = {
			factor = 1
		}
	}
}

# Peter the Great
country_event = {
	id = flavor_rus.127
	title = flavor_rus.127.t
	desc = flavor_rus.127.desc
	picture = REFORM_eventPicture
	fire_only_once = yes
	trigger = {
		tag = RUS
		is_year = 1600
		NOT = { is_year = 1700 } 
		government = monarchy
		is_lesser_in_union = no
		has_regency = no
		OR = {
			has_heir = no
			AND = {
				NOT = { heir_adm = 5 }
				NOT = { heir_dip = 5 }
				NOT = { heir_mil = 5 }
			}
		}
	}

	mean_time_to_happen = { months = 60 } 
	
	option = { 
		name = flavor_rus.127.a
		
		define_heir = {
			name = "Pyotr"
			dynasty = ROOT
			adm = 6 
			dip = 6
			mil = 6
			age = 15
		}
		hidden_effect = {
			add_heir_personality = reformist_personality
			set_heir_flag = peter_the_great
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = { 
		name = flavor_tur.239.b
		trigger = {
			has_heir = yes
		}
		add_heir_claim = 20
		random_list = {
			1 = { change_heir_adm = 1 }
			1 = { change_heir_dip = 1 }
			1 = { change_heir_mil = 1 }
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Peter the Great's Sweeping Reforms
country_event = {
	id = flavor_rus.128
	title = flavor_rus.128.t
	desc = flavor_rus.128.desc
	picture = REFORM_eventPicture
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
		has_ruler_flag = peter_the_great
	}

	mean_time_to_happen = { days = 1 } 
	
	option = { 
		name = flavor_rus.128.a
		add_adm_power = 200
		add_dip_power = 200
		add_mil_power = 200
		change_government_reform_progress = 75
		if = {
			limit = {
				has_government_mechanic = russian_modernization_mechanic
			}
			add_government_power = { 
				mechanic_type = russian_modernization_mechanic
				power_type = russian_modernization
				value = 50
			}
		}
		
		ai_chance = {
			factor = 1
		}
	}
}

# Catherine the Great
country_event = {
	id = flavor_rus.129
	title = flavor_rus.129.t
	desc = flavor_rus.129.desc
	picture = CATHERINE_GREAT_eventPICTURE
	fire_only_once = yes
	trigger = {
		tag = RUS
		is_year = 1700
		NOT = { is_year = 1800 } 
		government = monarchy
		is_lesser_in_union = no
		NOT = { adm = 3 }
		NOT = { dip = 3 }
		NOT = { mil = 3 }
		num_of_royal_marriages = 1
		has_regency = no
		is_female = no
		if = {
			limit = {
				has_dlc = "Rights of Man"
			}
			has_consort = no
		}

	}

	mean_time_to_happen = { months = 120 } 


	option = { 
		name = flavor_rus.129.a
		add_stability = -1
		define_ruler = {
			name = "Yekaterina Velikaya"
			dynasty = ROOT
			adm = 6
			dip = 6
			mil = 6
			age = 20
			claim = 80
			female = yes
		}
		hidden_effect = {
			add_ruler_personality = reformist_personality
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = { 
		name = flavor_rus.129.b
		trigger = {
			has_dlc = "Rights of Man"
		}
		define_consort = {
			name = "Yekaterina Velikaya"
			dynasty = ROOT
			adm = 6
			dip = 6
			mil = 6
			age = 20
			claim = 80
			female = yes
		}
		hidden_effect = {
			add_queen_personality = reformist_personality
		}
		ai_chance = {
			factor = 0
		}
	}
	
	option = { 
		name = flavor_rus.129.c
		define_advisor = {
			name = "Yekaterina"
			type = statesman
			female = yes
			cost_multiplier = 0.1
			skill = 3
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Role of the Streltsy
country_event = {
	id = flavor_rus.130
	title = flavor_rus.130.t
	desc = flavor_rus.130.desc
	picture = STRELTSY_MARCHING_eventPicture
	is_triggered_only = yes

	#Ensure regular Payment of the Streltsy
	option = {
		name = flavor_rus.130.a
		custom_tooltip = flavor_rus.130.a.tt
		add_country_modifier = {
			name = rus_ensured_regular_payment
			duration = -1
		}
		
		ai_chance = {
			factor = 1
		}
	}

	#Keep them as they are
	option = {
		name = flavor_rus.130.b
		add_mil_power = 100
		
		ai_chance = {
			factor = 1
		}
	}
}

# Streltsy demand payment - on every new ruler
country_event = {
	id = flavor_rus.131
	title = flavor_rus.131.t
	desc = flavor_rus.131.desc
	picture = STRELTSY_MARCHING_eventPicture
	is_triggered_only = yes
	trigger = {
		OR = {
			has_dlc = "Third Rome"
			has_dlc = "Domination"
		}
		has_country_modifier = rus_ensured_regular_payment
		OR = {
			num_of_streltsy = 1
			has_reform = tsardom
			has_reform = ruthenian_tsardom
			has_reform = principality
			has_reform = veche_republic
			has_reform = great_veche_republic
			has_reform = streltsy_reform
		}
	}
	mean_time_to_happen = {
		days = 1
	}

	#Pay them extra
	option = {
		name = flavor_rus.131.a
		if = {
			limit = { has_government_attribute = cheaper_streltsy }
			add_years_of_income = -0.75
		}
		else = {
			add_years_of_income = -1
		}
		add_ruler_modifier = {
			name = rus_extra_high_payment
			duration = -1
		}
		
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { years_of_income = 1 }
			}
		}
	}

	#Ensure regular Payment of the Streltsy
	option = {
		name = flavor_rus.131.b
		if = {
			limit = { has_government_attribute = cheaper_streltsy }
			add_years_of_income = -0.4
		}
		else = {
			add_years_of_income = -0.5
		}
		add_ruler_modifier = {
			name = rus_high_payment
			duration = -1
		}
		
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					NOT = { years_of_income = 0.5 }
					years_of_income = 1
				}
			}
		}
	}

	#Keep them as they are
	option = {
		name = flavor_rus.131.c
		if = {
			limit = { has_government_attribute = cheaper_streltsy }
			add_years_of_income = -0.2
		}
		else = {
			add_years_of_income = -0.25
		}
		
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				years_of_income = 0.5
			}
		}
	}

	#Do not pay them
	option = {
		name = flavor_rus.131.d
		add_ruler_modifier = {
			name = rus_no_payment
			duration = -1
		}
		random = {
			chance = 50
			country_event = {
				id = flavor_rus.132
				tooltip = flavor_rus.132.tt
			}
		}
		
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { years_of_income = 0.3 }
			}
		}
	}
}

# Streltsy revolt
country_event = {
	id = flavor_rus.132
	title = flavor_rus.132.t
	desc = flavor_rus.132.desc
	picture = REVOLUTION_eventPicture
	is_triggered_only = yes
	goto = revolt_province
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_in_capital_area = yes
					is_overseas = no
				}
				save_event_target_as = revolt_province
			}
		}
	}

	#Oh no
	option = {
		name = flavor_rus.132.a
		event_target:revolt_province = {
			spawn_rebels = {
				type = pretender_rebels
				size = 2
			}
		}
		
		ai_chance = {
			factor = 1
		}
	}
}

# The "Westernized" Empire of Russia
country_event = {
	id = flavor_rus.134
	title = flavor_rus.134.t
	desc = flavor_rus.134.desc
	picture = REFORM_eventPicture
	is_triggered_only = yes

	#Make a new flag for the Emperor!
	option = {
		name = flavor_rus.134.a
		#change_country_flag = RU2
		set_country_flag = rus_westernized_in_court
		if = {
			limit = {
				has_dlc = "The Cossacks"
				NOT = { has_estate = estate_cossacks }
			}
			unlock_estate = {
				estate = estate_cossacks
				show_conditions = yes
			}
		}
		else = {
			hidden_effect = {
				unlock_estate = {
					estate = estate_cossacks
					show_conditions = yes
				}
			}
		}
		change_technology_group = western
		add_prestige_or_monarch_power = {
			amount = 50
		}
		ai_chance = {
			factor = 1
		}
	}

	##We should keep the old flag
	#option = {
	#	name = flavor_rus.134.b
	#	set_country_flag = rus_westernized_in_court
	#	if = {
	#		limit = { technology_group = eastern }
	#		unlock_estate = {
	#			estate = estate_cossacks
	#			show_conditions = yes
	#		}
	#	}
	#	change_technology_group = western
	#	add_prestige_or_monarch_power = {
	#		amount = 50
	#	}
	#	ai_chance = {
	#		factor = 1
	#	}
	#}
}

########################################
# Modernization of Russia events
########################################

# Formation of the Russian Empire
country_event = {
	id = flavor_rus.200
	title = flavor_rus.200.t
	desc = {
		desc = flavor_rus.200.desc.a
		trigger = { NOT = { government = republic } }
	}
	desc = {
		desc = flavor_rus.200.desc.b
		trigger = { government = republic }
	}
	picture = REFORM_eventPicture
	is_triggered_only = yes

	# All hail the Emperor!
	option = {
		name = flavor_rus.200.a
		trigger = {
			NOT = { government = republic }
		}
		if = {
			limit = { NOT = { government = monarchy } }
			change_government = monarchy
		}
		add_government_reform = russian_empire_reform
		ai_chance = { 
			factor = 1 
		}
	}

	# I love democracy
	option = {
		name = flavor_rus.200.b
		trigger = {
			government = republic
		}
		add_government_reform = great_russian_republic_reform
		ai_chance = { 
			factor = 1 
		}
	}
}

# Purchase of Ideas - Trigger
country_event = {
	id = flavor_rus.294
	title = none
	desc = none
	picture = none
	hidden = yes
	is_triggered_only = yes
	option = {
		FROM = {
			country_event = {
				id = flavor_rus.295
			}
		}
		ai_chance = { 
			factor = 1 
		}
	}
}

# Purchase of Ideas - Russia pays
country_event = {
	id = flavor_rus.295
	title = flavor_rus.295.t
	desc = flavor_rus.295.desc
	picture = REFORM_eventPicture
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			export_to_variable = {
				which = money_to_transfer
				value = monthly_income
				who = ROOT
			}
			multiply_variable = {
				which = money_to_transfer
				value = 3
			}
			set_variable = {
				which = money_to_transfer_info
				which = money_to_transfer
			}
		}
	}
	option = {
		name = flavor_rus.295.a
		transfer_treasury = {
			custom_tooltip = flavor_rus.295.a.tt
			giver = ROOT
			taker = FROM
			variable = money_to_transfer
		}
		hidden_effect = {
			FROM = {
				country_event = {
					id = flavor_rus.296
				}
			}
		}
		ai_chance = { 
			factor = 1 
		}
	}
}

# Purchase of Ideas - FROM receives payment
country_event = {
	id = flavor_rus.296
	title = flavor_rus.296.t
	desc = flavor_rus.296.desc
	picture = ECONOMY_eventPicture
	is_triggered_only = yes
	option = {
		name = flavor_rus.296.a
		custom_tooltip = flavor_rus.296.a.tt
		ai_chance = { 
			factor = 1 
		}
	}
}

# Sale of Ideas - Trigger
country_event = {
	id = flavor_rus.297
	title = none
	desc = none
	picture = none
	hidden = yes
	is_triggered_only = yes
	option = {
		FROM = {
			country_event = {
				id = flavor_rus.294
			}
		}
		ai_chance = { 
			factor = 1 
		}
	}
}

########################################
# Serfdom in Russia and a what-if 
# Peasants become the new middle class
########################################

# The Peasantry is brought into Serfdom
country_event = {
	id = flavor_rus.300
	title = flavor_rus.300.t
	desc = flavor_rus.300.desc
	picture = PEASANTS_ON_STEPPES_eventPicture
	is_triggered_only = yes

	option = {		# Enserf the peasants
		name = flavor_rus.300.a
		country_event = {
			id = flavor_rus.301
			tooltip = flavor_rus.301.tt
			days = 60
			random = 30
		}
		ai_chance = {
			factor = 1
		}		
	}
}

# The Peasantry revolts!
country_event = {
	id = flavor_rus.301
	title = flavor_rus.301.t
	desc = flavor_rus.301.desc
	picture = MARCHING_PEASANTS_eventPicture
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
				}
				save_event_target_as = rus_peasant_revolt_province
			}
		}
	}

	option = {		# Crush the peasants
		name = flavor_rus.301.a
		goto = rus_peasant_revolt_province
		set_country_flag = rus_crushed_peasant_revolt
		add_estate_loyalty = {
			estate = estate_nobles
			loyalty = 10
		}
		event_target:rus_peasant_revolt_province = {
			spawn_rebels = {
				type = anti_tax_rebels
				size = 3
				win = yes
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Early idea of Freedom
country_event = {
	id = flavor_rus.303
	title = flavor_rus.303.t
	desc = flavor_rus.303.desc
	picture = ENTERING_MOSCOW_eventPicture
	is_triggered_only = yes

	option = {
		name = flavor_rus.303.a
		country_event = {
			id = flavor_rus.304
			tooltip = flavor_rus.304.tt
			days = 60
			random = 30
		}
		ai_chance = {
			factor = 1
		}		
	}
}

# The Boyars revolt!
country_event = {
	id = flavor_rus.304
	title = flavor_rus.304.t
	desc = flavor_rus.304.desc
	picture = NOBLE_ESTATE_TAKE_OVER_eventPicture
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
				}
				save_event_target_as = rus_boyars_revolt_province
			}
		}
	}

	option = {		# Crush the boyars
		name = flavor_rus.304.a
		goto = rus_boyars_revolt_province
		set_country_flag = rus_crushed_boyars_revolt
		add_stability_or_adm_power = yes
		event_target:rus_boyars_revolt_province = {
			spawn_rebels = {
				type = noble_rebels
				size = 3
				win = yes
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Legalize Serfdom
country_event = {
	id = flavor_rus.306
	title = flavor_rus.306.t
	desc = flavor_rus.306.desc
	picture = MARCHING_PEASANTS_eventPicture
	
	trigger = {
		has_dlc = "Domination"
		has_estate_privilege = estate_nobles_early_serfdom
		adm_tech = 12
	}
	
	mean_time_to_happen = {
		months = 450
	}

	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
				}
				save_event_target_as = revolt_province
			}
		}
	}

	after = {
		set_country_flag = level_two_serfdom_privileges
	}
	
	option = {		# Legalize the Serfdom
		name = flavor_rus.306.a
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_nobles_legalized_serfdom
		add_years_of_owned_provinces_production_income = {
			custom_tooltip = MONOPOLY_INCOME_GRAIN_DESC
			trigger = {
				trade_goods = grain
			}
			years = 5
		}

		ai_chance = {
			factor = 1
		}
	}
	option = {		# Accept deteriorating Economy and Burgher Uprisings
		name = flavor_rus.306.b
		goto = revolt_province
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_nobles_peasant_liberation
		event_target:revolt_province = {
			spawn_rebels = {
				type = noble_rebels
				size = 2
			}
		}
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -25
			}
		}
		ai_chance = {
			factor = 10
		}
	}
}

# Rise of the Peasantry
country_event = {
	id = flavor_rus.307
	title = flavor_rus.307.t
	desc = flavor_rus.307.desc
	picture = MERCHANTS_IN_SIBERIA_eventPicture
	
	trigger = {
		has_dlc = "Domination"
		adm_tech = 12
		has_estate_privilege = estate_nobles_increased_peasant_freedom
	}
	
	mean_time_to_happen = {
		months = 450
	}

	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
				}
				save_event_target_as = revolt_province
			}
		}
	}

	after = {
		set_country_flag = level_two_serfdom_privileges
	}
	
	option = {		# Encourage the freedom of thought of the Peasantry
		name = flavor_rus.307.a
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_nobles_peasant_liberation
		change_innovativeness = 2
		add_stability = -2

		ai_chance = {
			factor = 1
		}
	}
	option = {		# Such thoughts are dangerous for the state.
		name = flavor_rus.307.b
		goto = revolt_province
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_nobles_legalized_serfdom
		add_stability_or_adm_power = yes
		add_absolutism = 20
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = 25
			}
		}
		event_target:revolt_province = {
			spawn_rebels = {
				type = anti_tax_rebels
				size = 2
			}
		}
		ai_chance = {
			factor = 10
		}
	}
}

# The Peasantry revolts against the Serfdom!
country_event = {
	id = flavor_rus.308
	title = flavor_rus.308.t
	desc = flavor_rus.308.desc
	picture = ANGRY_MOB_eventPicture
	goto = revolt_province
	trigger = {
		has_dlc = "Domination"
		adm_tech = 17
		has_estate_privilege = estate_nobles_legalized_serfdom
		NOT = { has_country_flag = rus_pugachev_uprising }
	}
	
	mean_time_to_happen = {
		months = 60
	}

	immediate = {
		hidden_effect = {
			set_country_flag = rus_pugachev_uprising
			random_owned_province = {
				limit = {
					is_in_capital_area = yes
					is_overseas = no
				}
				save_event_target_as = revolt_province
			}
		}
	}
	
	option = {		# The Masses are moving...
		name = flavor_rus.308.a
		event_target:revolt_province = {
			spawn_rebels = {
				type = anti_tax_rebels
				size = 3
			}
		}
		custom_tooltip = flavor_rus.308.a.tt
		tooltip = {
			add_province_modifier = {
				name = rus_discontent_peasantry
				duration = 3650
			}
		}
		hidden_effect = {
			every_owned_province = {
				limit = {
					OR = {
						region = russia_region
						region = ruthenia_region
						region = ural_region
						region = crimea_region
					}
					OR = {
						trade_goods = grain
						trade_goods = livestock
						trade_goods = wool
					}
				}
				add_province_modifier = {
					name = rus_discontent_peasantry
					duration = 3650
				}
			}
		}
	}
}

# The peasantry joins the Burghers
country_event = {
	id = flavor_rus.309
	title = flavor_rus.309.t
	desc = {
		desc = flavor_rus.309.desc.a
		trigger = {
			NOT = { government = republic }
		}
	}
	desc = {
		desc = flavor_rus.309.desc.a
		trigger = {
			government = republic
		}
	}
	picture = BURGHER_ESTATE_UPSET_eventPicture
	trigger = {
		has_dlc = "Domination"
		adm_tech = 17
		has_estate_privilege = estate_nobles_peasant_liberation
		NOT = { has_country_flag = rus_rise_of_the_burghers }
		has_estate = estate_burghers
	}
	
	mean_time_to_happen = {
		months = 60
	}

	immediate = {
		hidden_effect = {
			set_country_flag = rus_rise_of_the_burghers
		}
	}
	
	option = {		# We lose the grip over our own cities...
		name = flavor_rus.309.a
		trigger = {
			NOT = { government = republic }
		}
		set_estate_privilege = estate_burghers_rise_of_the_burghers
		ai_chance = {
			factor = 1
		}
	}
	
	option = {		# Integrate these new burghers into the Republic
		name = flavor_rus.309.b
		trigger = {
			government = republic
		}
		add_republican_tradition = 10
		add_adm_power = 50
		add_dip_power = 50
		add_mil_power = 50
		
		ai_chance = {
			factor = 1
		}
	}
}

# The Reactionary Policy
country_event = {
	id = flavor_rus.310
	title = flavor_rus.310.t
	desc = flavor_rus.310.desc
	picture = FAMINE_eventPicture
	fire_only_once = yes
	goto = revolt_province
	trigger = {
		has_dlc = "Domination"
		tag = RUS
		has_estate_privilege = estate_nobles_legalized_serfdom
		had_country_flag = {
			flag = rus_pugachev_uprising
			days = 730
		}
	}
	
	mean_time_to_happen = {
		months = 64
	}

	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
				}
				save_event_target_as = revolt_province
			}
		}
	}

	after = {
		clr_country_flag = level_two_serfdom_privileges
		set_country_flag = level_three_serfdom_privileges
	}

	option = {		# Keep the Masses in Chains
		name = flavor_rus.310.a
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_nobles_total_serfdom
		add_stability_or_adm_power = yes
		event_target:revolt_province = {
			spawn_rebels = {
				type = anti_tax_rebels
				size = 2
			}
		}

		ai_chance = {
			factor = 8
		}
	}
	option = {		# Let introduce the idea of 'Freedom'
		name = flavor_rus.310.b
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_burghers_the_new_middle_class
		add_stability = -2
		event_target:revolt_province = {
			spawn_rebels = {
				type = noble_rebels
				size = 2
			}
		}
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -50
			}
		}
		ai_chance = {
			factor = 2
		}
	}

}

# Ascension of the Russian Middle Class
country_event = {
	id = flavor_rus.311
	title = flavor_rus.311.t
	desc = {
		desc = flavor_rus.311.desc.a
		trigger = {
			NOT = { government = republic }
		}
	}
	desc = {
		desc = flavor_rus.311.desc.b
		trigger = {
			government = republic
		}
	}
	picture = BURGHER_ESTATE_eventPicture
	fire_only_once = yes
	goto = revolt_province
	trigger = {
		has_dlc = "Domination"
		has_estate_privilege = estate_nobles_peasant_liberation
		had_country_flag = {
			flag = rus_rise_of_the_burghers
			days = 730
		}
	}
	
	mean_time_to_happen = {
		months = 64
	}

	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
				}
				save_event_target_as = revolt_province
			}
		}
	}

	after = {
		clr_country_flag = level_two_serfdom_privileges
		set_country_flag = level_three_serfdom_privileges
	}

	option = {		# Encourage this development
		name = flavor_rus.311.a
		event_target:revolt_province = {
			spawn_rebels = {
				type = noble_rebels
				size = 2
			}
		}
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -50
			}
		}
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_burghers_the_new_middle_class

		ai_chance = {
			factor = 8
		}
	}
	option = {		# Our own subjects are becoming a threat to us!
		name = flavor_rus.311.b
		add_stability = -2
		event_target:revolt_province = {
			spawn_rebels = {
				type = particularist_rebels
				size = 2
			}
		}
		if = {
			limit = {
				has_estate = estate_burghers
			}
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = -50
			}
		}
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_nobles_total_serfdom
		ai_chance = {
			factor = 2
		}
	}

}

# Serfdom in the Age of the Enlightenment
country_event = {
	id = flavor_rus.312	
	title = flavor_rus.312.t
	desc = flavor_rus.312.desc
	picture = MARCHING_PEASANTS_eventPicture

	trigger = {
		has_dlc = "Domination"
		has_estate_privilege = estate_nobles_total_serfdom
		has_institution = enlightenment
		NOT = { has_country_flag = final_serfdom_privileges }
	}
	
	mean_time_to_happen = {
		months = 60
	}

	after = {
		clr_country_flag = level_three_serfdom_privileges
		set_country_flag = final_serfdom_privileges
	}

	option = {		# Restrict Serfdom
		name = flavor_rus.312.a
		if = {
			limit = {
				NOT = { has_completed_all_reforms_trigger = yes }
			}
			add_reform_progress_small_effect = yes
		}
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_nobles_restricted_serfdom
		add_stability = -2
		if = {
			limit = {
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -20
			}
		}
		ai_chance = {
			factor = 90
		}
	}
	option = {		# It is perfect as it is
		name = flavor_rus.312.b
		rus_clear_peasantry_estate_privileges = yes
		set_estate_privilege = estate_nobles_devastating_serfdom
		add_stability_or_adm_power = yes
		ai_chance = {
			factor = 10
		}
	}
}

# Autocrat vs Burgher class
country_event = {
	id = flavor_rus.313	
	title = flavor_rus.313.t
	desc = flavor_rus.313.desc
	picture = BURGHER_ESTATE_UPSET_eventPicture

	trigger = {
		has_dlc = "Domination"
		has_estate_privilege = estate_burghers_the_new_middle_class
		has_institution = enlightenment
		NOT = { government = republic }
		NOT = { has_country_flag = rus_had_autocrat_vs_burgher_event }
	}
	
	mean_time_to_happen = {
		months = 60
	}

	immediate = {
		hidden_effect = {
			set_country_flag = rus_had_autocrat_vs_burgher_event
			clr_country_flag = level_three_serfdom_privileges
		}
	}

	option = {		# End the Challenge of the Burghers
		name = flavor_rus.313.a
		rus_clear_peasantry_estate_privileges = yes
		add_stability = -2
		if = {
			limit = {
				has_estate = estate_burghers
			}
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = -20
			}
		}
		add_absolutism = 50
		ai_chance = {
			factor = 90
		}
	}
	option = {		# Declare the Republic!
		name = flavor_rus.313.b
		change_government = republic
		add_stability = -1
		
		ai_chance = {
			factor = 10
		}
	}
}

# The Russian Serfdom
country_event = {
	id = flavor_rus.350
	title = flavor_rus.350.t
	desc = flavor_rus.350.desc
	picture = FAMINE_eventPicture
	trigger = {
		has_dlc = "Domination"
		tag = RUS
		NOT = { has_country_flag = rus_peasant_fate }
		has_estate = estate_nobles
	}
	
	mean_time_to_happen = {
		months = 12
	}

	option = {		# Enserf the peasants
		name = "flavor_rus.EVTOPTA3416"
		ai_chance = { factor = 75 }
		add_stability = -1
		if = {
			limit = {
				NOT = { has_estate_privilege = estate_nobles_early_serfdom }
				NOT = { has_estate_privilege = estate_nobles_increased_peasant_freedom }
			}
			set_estate_privilege = estate_nobles_early_serfdom
		}
	}
	option = {		# Do not enserf them
		name = "flavor_rus.EVTOPTB3416"
		ai_chance = { factor = 25 }
		add_stability = -1
		if = {
			limit = {
				NOT = { has_estate_privilege = estate_nobles_early_serfdom }
				NOT = { has_estate_privilege = estate_nobles_increased_peasant_freedom }
			}
			set_estate_privilege = estate_nobles_increased_peasant_freedom
		}
	}
}

# End of the Serfdom - REVOLUTION!
country_event = {
	id = flavor_rus.398
	title = flavor_rus.398.t
	desc = flavor_rus.398.desc
	picture = REVOLUTION_eventPicture
	is_triggered_only = yes
	
	option = {		# Death to the oppressors of the worker class!
		name = flavor_rus.398.a
		add_yearly_manpower = 2
		rus_clear_peasantry_estate_privileges = yes
		add_revolutionary_zeal_or_absolutism = {
			amount = 20
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Red Terror for the Peasantry
country_event = {
	id = flavor_rus.399
	title = flavor_rus.399.t
	desc = flavor_rus.399.desc
	picture = REVOLUTION_eventPicture
	is_triggered_only = yes
	
	option = {		# They are just another enemies of the revolution!
		name = flavor_rus.399.a
		add_yearly_manpower = 2
		rus_clear_peasantry_estate_privileges = yes
		add_revolutionary_zeal_or_absolutism = {
			amount = 20
		}
		ai_chance = {
			factor = 1
		}
	}
}

########################################
# Grand Embassy
########################################

# Grand Embassy
country_event = {
	id = flavor_rus.1010
	
	title = "flavor_rus.EVTNAME1010"
	desc = "flavor_rus.EVTDESC1010"
	picture = REFORM_eventPicture

	fire_only_once = yes
	
	trigger = {
		tag = RUS
		is_at_war = no
		is_monarch_leader = no
		has_regency = no
		OR = {
			ADM = 5
			DIP = 5
			MIL = 5
		}
		ADM = 3
		DIP = 3
		MIL = 3
		is_subject = no
		any_known_country = {
			capital_scope = {
				continent = europe
			}
			tech_difference = 3
			has_opinion = { who = ROOT value = 10 }
			NOT = { is_rival = ROOT }
			NOT = { is_enemy = ROOT }
		}
	}
	
	mean_time_to_happen = {
		months = 12
	}
	
	immediate = {
		set_country_flag = RUS_had_event_1010
	}
	
	option = {		# Embark on a journey through Europe
		name = "flavor_rus.EVTOPTA1010"
		ai_chance = { factor = 100 }
		set_country_flag = grand_embassy
		add_years_of_income = -0.25
		random_known_country = {
			limit = {
				capital_scope = {
					continent = europe
				}
				tech_difference = 3
				has_opinion = { who = ROOT value = 10 }
				NOT = { is_rival = ROOT }
				NOT = { is_enemy = ROOT }
			}
			country_event = { 
				id = flavor_rus.1011 
				days = 30 
				tooltip = "flavor_rus.EVTTOOLTIP1010" 
			}
		}
	}
	option = {		# Our country holds the knowledge we need
		name = "flavor_rus.EVTOPTB1010"
		ai_chance = { factor = 0 }
		add_stability_or_adm_power = yes
	}
}

# Grand Embassy Arrives in CAPITAL
country_event = {
	id = flavor_rus.1011	
	title = "flavor_rus.EVTNAME1011"
	desc = "flavor_rus.EVTDESC1011"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes
	
	immediate = {
		set_country_flag = grand_embassy
	}
	
	option = {		# Invite him to stay
		name = "flavor_rus.EVTOPTA1011"
		ai_chance = { factor = 100 }
		FROM = {
			add_opinion = {
				who = ROOT
				modifier = rus_received_grand_embassy
			}
		}
		hidden_effect = {
			country_event = { id = flavor_rus.1012 days = 30 }
		}
	}
	option = {		# Politely turn him away
		name = "flavor_rus.EVTOPTB1011"
		ai_chance = { factor = 0 }
		add_prestige = -15
		FROM = {
			add_opinion = {
				who = ROOT
				modifier = rus_rejected_grand_embassy
				years = 10
			}
		}
	}
	option = {		# Send him packing!
		name = "flavor_rus.EVTOPTC1011"
		ai_chance = { factor = 0 }
		FROM = {
			add_casus_belli = {
				type = cb_insult
				months = 24
				target = ROOT
			}
			add_opinion = {
				who = ROOT
				modifier = rus_rejected_grand_embassy
			}
		}
	}
}

# Grand Embassy in CAPITALNAME
country_event = {
	id = flavor_rus.1012	
	title = "flavor_rus.EVTNAME1012"
	desc = "flavor_rus.EVTDESC1012"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes
	
	option = {		# Invite him to stay and study our governmental institutions
		name = "flavor_rus.EVTOPTA1012"
		ai_chance = { factor = 25 }
		custom_tooltip = flavor_rus.1012.a.tt #[FromFrom.Monarch.GetName] will learn about our government institutions
		random_country = {
			limit = {
				has_country_flag = RUS_had_event_1010
			}
			add_opinion = {
				who = ROOT
				modifier = rus_invited_to_study_institutions
			}
			set_country_flag = grand_embassy_government
			hidden_effect = {
				country_event = { id = flavor_rus.1013 days = 10 }
			}
		}
	}
	option = {		# Invite him to stay and study our army
		name = "flavor_rus.EVTOPTB1012"
		ai_chance = { factor = 25 }
		custom_tooltip = flavor_rus.1012.b.tt #[FromFrom.Monarch.GetName] will learn about our army organization.
		random_country = {
			limit = {
				has_country_flag = RUS_had_event_1010
			}
			add_opinion = {
				who = ROOT
				modifier = rus_invited_to_study_institutions
			}
			set_country_flag = grand_embassy_army
			hidden_effect = {
				country_event = { id = flavor_rus.1013 days = 10 }
			}
		}
	}
	option = {		# Invite him to stay and study our navy
		name = "flavor_rus.EVTOPTC1012"
		ai_chance = { factor = 25 }
		custom_tooltip = flavor_rus.1012.c.tt #[FromFrom.Monarch.GetName] will learn about our naval organization.
		random_country = {
			limit = {
				has_country_flag = RUS_had_event_1010
			}
			add_opinion = {
				who = ROOT
				modifier = rus_invited_to_study_institutions
			}
			set_country_flag = grand_embassy_navy
			hidden_effect = {
				country_event = { id = flavor_rus.1013 days = 10 }
			}
		}
	}
	option = {		# He has overstayed his welcome...
		name = "flavor_rus.EVTOPTD1012"
		ai_chance = { factor = 25 }
		random_country = {
			limit = {
				has_country_flag = RUS_had_event_1010
			}
			add_opinion = {
				who = ROOT
				modifier = rus_rejected_grand_embassy
			}
			hidden_effect = {
				country_event = { id = flavor_rus.1014 days = 10 }
			}
		}
	}
}

# Generous Offer to Stay
country_event = {
	id = flavor_rus.1013	
	title = "flavor_rus.EVTNAME1013"
	desc = "flavor_rus.EVTDESC1013"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes
	
	option = {		# Let us stay and study their governmental institutions
		name = "flavor_rus.EVTOPTA1013"
		trigger = { has_country_flag = grand_embassy_government }
		ai_chance = { factor = 50 }
		add_years_of_income = -0.1
		capital_scope = { add_next_institution_embracement = 10 }
		hidden_effect = {
			country_event = { id = flavor_rus.1015 days = 30 }
		}
	}
	option = {		# Let us stay and study their army
		name = "flavor_rus.EVTOPTB1013"
		trigger = { has_country_flag = grand_embassy_army }
		ai_chance = { factor = 50 }
		add_years_of_income = -0.1
		capital_scope = { add_next_institution_embracement = 10 }
		hidden_effect = {
			country_event = { id = flavor_rus.1015 days = 30 }
		}
	}
	option = {		# Let us stay and study their navy
		name = "flavor_rus.EVTOPTC1013"
		trigger = { has_country_flag = grand_embassy_navy }
		ai_chance = { factor = 50 }
		add_years_of_income = -0.1
		capital_scope = { add_next_institution_embracement = 10 }
		hidden_effect = {
			country_event = { id = flavor_rus.1015 days = 30 }
		}
	}
	option = {		# No, we have other countries to visit
		name = "flavor_rus.EVTOPTD1013"
		ai_chance = { factor = 25 }
		trigger = {
			any_known_country = {
				NOT = { has_country_flag = grand_embassy }
				capital_scope = {
					continent = europe
				}
				tech_difference = 5
				has_opinion = { who = RUS value = 10 }
				NOT = { is_rival = ROOT }
				NOT = { is_enemy = ROOT }
			}
		}
		add_years_of_income = -0.1
		hidden_effect = {
			change_variable = { which = grand_embassy value = 1 }
		}
		clr_country_flag = grand_embassy_government
		clr_country_flag = grand_embassy_army
		clr_country_flag = grand_embassy_navy
		random_known_country = {
			limit = {
				NOT = { has_country_flag = grand_embassy }
				capital_scope = {
					continent = europe
				}
				tech_difference = 5
				has_opinion = { who = RUS value = 50 }
				NOT = { is_rival = ROOT }
				NOT = { is_enemy = ROOT }
			}
			country_event = { id = flavor_rus.1011 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1010" }
		}
	}
	option = {		# The time has come to return home
		name = "flavor_rus.EVTOPTE1013"
		ai_chance = { factor = 25 }
		clr_country_flag = grand_embassy_government
		clr_country_flag = grand_embassy_army
		clr_country_flag = grand_embassy_navy
		clr_country_flag = grand_embassy
	}
}

# Request to Stay Turned Down
country_event = {
	id = flavor_rus.1014	
	title = "flavor_rus.EVTNAME1014"
	desc = "flavor_rus.EVTDESC1014"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes
	
	option = {		# Very well, we have other countries to visit
		name = "flavor_rus.EVTOPTA1014"
		trigger = {
			NOT = { check_variable = { which = grand_embassy value = 6 } }
			NOT = { has_country_flag = grand_embassy }
			capital_scope = {
				continent = europe
			}
			tech_difference = 5
			has_opinion = { who = RUS value = 50 }
			NOT = { is_rival = ROOT }
			NOT = { is_enemy = ROOT }
		}
		ai_chance = { factor = 75 }
		hidden_effect = {
			change_variable = { which = grand_embassy value = 1 }
		}
		clr_country_flag = grand_embassy_government
		clr_country_flag = grand_embassy_army
		clr_country_flag = grand_embassy_navy
		random_known_country = {
			limit = {
				NOT = { has_country_flag = grand_embassy }
				capital_scope = {
					continent = europe
				}
				tech_difference = 5
				has_opinion = { who = RUS value = 50 }
				NOT = { is_rival = ROOT }
				NOT = { is_enemy = ROOT }
			}
			country_event = { id = flavor_rus.1011 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1010" }
		}
	}
	option = {		# The time has come to return home
		name = "flavor_rus.EVTOPTB1014"
		ai_chance = { factor = 25 }
		clr_country_flag = grand_embassy_government
		clr_country_flag = grand_embassy_army
		clr_country_flag = grand_embassy_navy
		clr_country_flag = grand_embassy
	}
}

# Extended Visit Pays Off
country_event = {
	id = flavor_rus.1015	
	title = "flavor_rus.EVTNAME1015"
	desc = "flavor_rus.EVTDESC1015"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			random_list = {
				25 = { set_country_flag = minor_gain }
				50 = { set_country_flag = medium_gain }
				25 = { set_country_flag = major_gain }
			}
		}
	}
	
	option = {		# Our governmental institutions will benefit from this!
		name = "flavor_rus.EVTOPTA1015"
		trigger = { has_country_flag = grand_embassy_government }
		if = {
			limit = { has_country_flag = minor_gain }
			add_adm_power = 10
		}
		if = {
			limit = { has_country_flag = medium_gain }
			add_adm_power = 30
		}
		if = {
			limit = { has_country_flag = major_gain }
			add_adm_power = 50
		}
		add_country_modifier = {
			name = western_governmental_influence
			duration = 3650
		}
		clr_country_flag = minor_gain
		clr_country_flag = medium_gain
		clr_country_flag = major_gain
		clr_country_flag = grand_embassy_government
		hidden_effect = {
			country_event = { id = flavor_rus.1016 days = 10 }
		}
	}
	option = {		# Our armed forces will benefit from this!
		name = "flavor_rus.EVTOPTB1015"
		trigger = { has_country_flag = grand_embassy_army }
		if = {
			limit = { has_country_flag = minor_gain }
			add_mil_power = 10
		}
		if = {
			limit = { has_country_flag = medium_gain }
			add_mil_power = 30
		}
		if = {
			limit = { has_country_flag = major_gain }
			add_mil_power = 50
		}
		add_country_modifier = {
			name = western_military_influence
			duration = 3650
		}
		clr_country_flag = minor_gain
		clr_country_flag = medium_gain
		clr_country_flag = major_gain
		clr_country_flag = grand_embassy_army
		hidden_effect = {
			country_event = { id = flavor_rus.1016 days = 10 }
		}
	}
	option = {		# Our navy will benefit from this!
		name = "flavor_rus.EVTOPTC1015"
		trigger = { has_country_flag = grand_embassy_navy }
		if = {
			limit = { has_country_flag = minor_gain }
			add_dip_power = 10
		}
		if = {
			limit = { has_country_flag = medium_gain }
			add_dip_power = 30
		}
		if = {
			limit = { has_country_flag = major_gain }
			add_dip_power = 50
		}
		add_country_modifier = {
			name = western_naval_influence
			duration = 3650
		}
		clr_country_flag = minor_gain
		clr_country_flag = medium_gain
		clr_country_flag = major_gain
		clr_country_flag = grand_embassy_navy
		hidden_effect = {
			country_event = { id = flavor_rus.1016 days = 10 }
		}
	}
}

# Grand Embassy Successful
country_event = {
	id = flavor_rus.1016	
	title = "flavor_rus.EVTNAME1016"
	desc = "flavor_rus.EVTDESC1016"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes
	
	option = {		# We still have other countries to visit
		name = "flavor_rus.EVTOPTA1016"
		trigger = {
			NOT = { check_variable = { which = grand_embassy value = 6 } }
			NOT = { has_country_flag = grand_embassy }
			capital_scope = {
				continent = europe
			}
			tech_difference = 5
			has_opinion = { who = ROOT value = 50 }
			NOT = { is_rival = ROOT }
			NOT = { is_enemy = ROOT }
		}
		ai_chance = { factor = 75 }
		hidden_effect = {
			change_variable = { which = grand_embassy value = 1 }
		}
		random_known_country = {
			limit = {
				NOT = { has_country_flag = grand_embassy }
				capital_scope = {
					continent = europe
				}
				tech_difference = 5
				has_opinion = { who = ROOT value = 10 }
				NOT = { is_rival = ROOT }
				NOT = { is_enemy = ROOT }
			}
			country_event = { id = flavor_rus.1011 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1010" }
		}
	}
	option = {		# The time has come to return home
		name = "flavor_rus.EVTOPTB1016"
		ai_chance = { factor = 25 }
		clr_country_flag = grand_embassy_government
	}
}

########################################
# Third Rome events by Daniel Tolman
########################################

# Decembrist Revolution - alt history
country_event = {
	id = flavor_rus.2000
	title = "flavor_rus.EVTNAME2000"
	desc = "flavor_rus.EVTDESC2000"
	picture = REVOLUTION_eventPicture
	
	is_triggered_only = yes
	major = yes
	
	fire_only_once = yes
	
	trigger = {
		tag = RUS

		revolution_event_can_happen_trigger = yes
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "flavor_rus.EVTOPTA2000"

		hidden_effect = {
			add_country_modifier = {
				name = just_had_revolution_bringing_someone_to_power_timer
				duration = 2
				hidden = yes
			}
		}
		enact_revolution_effect = yes

		random_list = {
			25 = {
				define_ruler = {
					name = "Mikhail Sergeyevich Lunin"
					change_adm = 3
					change_dip = 3
					change_mil = 3
				}
			}
			25 = {
				define_ruler = {
					name = "Pavel Pestel"
					change_adm = 3
					change_dip = 3
					change_mil = 3
				}
			}
			25 = {
				define_ruler = {
					name = "Nikita Muraynov"
					change_adm = 3
					change_dip = 3
					change_mil = 3
				}
			}
			25 = {
				define_ruler = {
					name = "Sergei Petrovich Trubetskoy"
					change_adm = 3
					change_dip = 3
					change_mil = 3
				}
			}
		}
	}
}

# Third Rome - alt history
country_event = {
	id = flavor_rus.2001
	title = "flavor_rus.EVTNAME2001"
	desc = "flavor_rus.EVTDESC2001"
	picture = BYZANTINE_EAGLE_eventPicture
	
	is_triggered_only = yes
	
	fire_only_once = yes
	
	trigger = {
		has_dlc = "Third Rome"
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "flavor_rus.EVTOPTA2001"
		trigger = {
			151 = {
				is_capital = no
			}
		}
		151 = {
			add_base_tax = 3
			add_base_production = 3
			add_base_manpower = 2
			move_capital_effect = yes
			change_religion = ROOT
			change_culture = ROOT
			rename_capital = Tsargrad
			add_province_modifier = {
				name = "third_rome_modifier"
				duration = -1
			}
		}
	}
	option = {
		name = "flavor_rus.EVTOPTB2001"
		capital_scope = {
			add_base_tax = 3
			add_base_production = 3
			add_base_manpower = 2
			add_province_modifier = {
				name = "third_rome_modifier"
				duration = -1
			}
		}
	}
}

# The Restoration of Kiev - alt history
country_event = {
	id = flavor_rus.2002
	title = "flavor_rus.EVTNAME2002"
	desc = "flavor_rus.EVTDESC2002"
	picture = ICONS_IN_CHURCH_eventPicture
	
	is_triggered_only = yes
	
	fire_only_once = yes
	
	trigger = {
		has_dlc = "Third Rome"
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "flavor_rus.EVTOPTA2002"
		if = {
			limit = {
				has_updated_culture = { culture = slavic }
			}
			if = {
				limit = { NOT = { primary_culture = ruthenian_new } }
				change_primary_culture = ruthenian_new
			}
		}
		else = {
			if = {
				limit = { NOT = { primary_culture = ruthenian } }
				change_primary_culture = ruthenian
			}	
		}
		280 = {
			move_capital_effect = yes
			add_base_tax = 4
			add_base_production = 3
			add_base_manpower = 3
		}
	}
	option = {
		name = "flavor_rus.EVTOPTB2002"
		trigger = {
			280 = {
				is_capital = no
			}
		}
		capital_scope = {
			add_base_tax = 4
			add_base_production = 3
			add_base_manpower = 3
		}
	}
}