﻿### search_filters = {FOCUS_FILTER_POLITICAL}
### search_filters = {FOCUS_FILTER_RESEARCH}
### search_filters = {FOCUS_FILTER_INDUSTRY}
### search_filters = {FOCUS_FILTER_STABILITY}
### search_filters = {FOCUS_FILTER_WAR_SUPPORT}
### search_filters = {FOCUS_FILTER_MANPOWER}
### search_filters = {FOCUS_FILTER_ANNEXATION}
### search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}
### search_filters = {FOCUS_FILTER_PROPAGANDA}
### search_filters = {FOCUS_FILTER_ARMY_XP}
### search_filters = {FOCUS_FILTER_NAVY_XP}
### search_filters = {FOCUS_FILTER_AIR_XP}
# Reminder that focus filters prio has to be handled in the generic focus file :)

focus_tree = {
	id = soviet_focus

	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = SOV
		}
	}
	
	default = no

	continuous_focus_position = { x = 55 y = 1500 }


##    ##  #######      ######  ######## ######## ########     ########     ###     ######  ##    ## 
###   ## ##     ##    ##    ##    ##    ##       ##     ##    ##     ##   ## ##   ##    ## ##   ##  
####  ## ##     ##    ##          ##    ##       ##     ##    ##     ##  ##   ##  ##       ##  ##   
## ## ## ##     ##     ######     ##    ######   ########     ########  ##     ## ##       #####    
##  #### ##     ##          ##    ##    ##       ##           ##     ## ######### ##       ##  ##   
##   ### ##     ##    ##    ##    ##    ##       ##           ##     ## ##     ## ##    ## ##   ##  
##    ##  #######      ######     ##    ######## ##           ########  ##     ##  ######  ##    ## 



 ######  #### ##     ## #### ##       ####    ###    ##    ##    #### ##    ## ########  ##     ##  ######  ######## ########  ##    ## 
##    ##  ##  ##     ##  ##  ##        ##    ## ##   ###   ##     ##  ###   ## ##     ## ##     ## ##    ##    ##    ##     ##  ##  ##  
##        ##  ##     ##  ##  ##        ##   ##   ##  ####  ##     ##  ####  ## ##     ## ##     ## ##          ##    ##     ##   ####   
##        ##  ##     ##  ##  ##        ##  ##     ## ## ## ##     ##  ## ## ## ##     ## ##     ##  ######     ##    ########     ##    
##        ##   ##   ##   ##  ##        ##  ######### ##  ####     ##  ##  #### ##     ## ##     ##       ##    ##    ##   ##      ##    
##    ##  ##    ## ##    ##  ##        ##  ##     ## ##   ###     ##  ##   ### ##     ## ##     ## ##    ##    ##    ##    ##     ##    
 ######  ####    ###    #### ######## #### ##     ## ##    ##    #### ##    ## ########   #######   ######     ##    ##     ##    ##    


	focus = {
		id = SOV_infrastructure_effort_nsb

		icon = GFX_goal_generic_road2
		x = 1
		y = 0
		cost = 5

		ai_will_do = {
			factor = 1
		}

		bypass = {
			custom_trigger_tooltip =  {
				tooltip = infrastructure_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = infrastructure
						size < 2
					}
				}
			}
		}
		

		completion_reward = { #TODO_Manu: This is just copy-pasted from the old focus -> Is this what we want?
			if = {
				limit = {
					all_owned_state = {
						infrastructure > 2
					}
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 1
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes						
					}
					set_state_flag = SOV_infrastructure_effort_3Inf
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 1
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
					}
					set_state_flag = SOV_infrastructure_effort_3Inf
				}				
			}
			random_owned_controlled_state = {
				limit = {
					infrastructure < 3
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				set_state_flag = SOV_infrastructure_effort_3Inf	
			}
			random_owned_controlled_state = {
				limit = {
					infrastructure < 3
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				set_state_flag = SOV_infrastructure_effort_3Inf	
			}
			random_owned_controlled_state = {
				limit = {
					infrastructure < 3
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				set_state_flag = SOV_infrastructure_effort_3Inf	
			}
			random_owned_controlled_state = {
				limit = {
					infrastructure < 3
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				set_state_flag = SOV_infrastructure_effort_3Inf	
			}
			#added this to motivate player to invest into industry #Fantom
			if = {
				limit = {
					has_idea = SOV_poor_railnetworks_0
				}
				swap_ideas = { 
					remove_idea = SOV_poor_railnetworks_0
					add_idea = SOV_poor_railnetworks_1
				}
				else = {
					if = {
						limit = {
							has_idea = SOV_poor_railnetworks_1
						}
						swap_ideas = { 
							remove_idea = SOV_poor_railnetworks_1 
							add_idea = SOV_poor_railnetworks_2
						}
					}
				}
			}
		}
		search_filters = {FOCUS_FILTER_INDUSTRY}
	}

	focus = {
		id = SOV_heavy_industry

		icon = GFX_goal_communist_factory
		x = 2
		y = 0
		relative_position_id = SOV_infrastructure_effort_nsb
		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = { #TODO_Manu: This is just copy-pasted from the old focus -> Is this what we want?
			IF = {
				limit = {
					any_owned_state = {
						is_controlled_by = ROOT 
						industrial_complex > 1
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
						NOT = { has_state_flag = SOV_finish_five_year_plan_2IC }
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 1
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
					set_state_flag = SOV_finish_five_year_plan_2IC
				}
			}
			ELSE = {
				random_owned_controlled_state = {
					limit = {
						# industrial_complex > 0
						free_building_slots = {
							building = industrial_complex
							size > 1
							1 = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
					set_state_flag = SOV_finish_five_year_plan_2IC
				}
			}
			IF = {
				limit = {
					check_variable = { num_owned_states > 1}
					any_owned_state = {
						is_controlled_by = ROOT 
						industrial_complex > 1
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
						NOT = { has_state_flag = SOV_finish_five_year_plan_2IC }
					}
				}
				random_owned_controlled_state = {
					limit = {
						industrial_complex > 1
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
						NOT = { has_state_flag = SOV_finish_five_year_plan_2IC }
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
					set_state_flag = SOV_finish_five_year_plan_2IC
				}
			}
			ELSE_IF = {
				limit = {
					check_variable = { num_owned_states > 1 }
				}
				random_owned_controlled_state = {
					limit = {
						# industrial_complex > 0
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
						NOT = { has_state_flag = SOV_finish_five_year_plan_2IC }
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
					set_state_flag = SOV_finish_five_year_plan_2IC
				}
			}
		}
		search_filters = {FOCUS_FILTER_INDUSTRY}
	}

	focus = {
		id = SOV_Mass_Immunizations
		icon = GFX_goal_medicine
		prerequisite = { focus = SOV_heavy_industry }
		x = 1
		y = 1
		relative_position_id = SOV_heavy_industry
		cost = 5
		ai_will_do = {
			factor = 11
		}

		available_if_capitulated = yes

		select_effect = {
			set_country_flag = SOV_mass_immunizations_happened
		}

		completion_reward = {
			if = {
				limit = {
					has_idea = SOV_risk_of_disease
				}
			 remove_ideas = SOV_risk_of_disease
			}
			if = {
				limit = {
					has_idea = SOV_proliferation_of_disease
				}
			 remove_ideas = SOV_proliferation_of_disease
			}
			if = {
				limit = {
					has_idea = SOV_widespread_outbreaks
				}
			 remove_ideas = SOV_widespread_outbreaks
			}
			add_tech_bonus = {
				name = SOV_Mass_Immunizations
				bonus = 1
				uses = 1
				category = hospital_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SOV_finish_the_five_year_plan

		icon = GFX_five_year_plan_continue
		prerequisite = { focus = SOV_infrastructure_effort_nsb }
		prerequisite = { focus = SOV_heavy_industry }
		x = 1
		y = 1
		relative_position_id = SOV_infrastructure_effort_nsb
		cost = 5

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_fyp_controlled_factories_tier_1_tt
				NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_1 }
			}
		}
		

		completion_reward = { #TODO_Manu: This is just copy-pasted from the old focus -> Is this what we want?
			random_owned_controlled_state = {
				limit = {
					industrial_complex > 0
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = SOV_finish_five_year_plan_2IC
			}
			random_owned_controlled_state = {
				limit = {
					industrial_complex > 0
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = SOV_finish_five_year_plan_2IC
			}

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = SOV_lazar_kaganovich
			if = {
				limit = {
					has_idea = SOV_poor_railnetworks_0
				}
				swap_ideas = { 
					remove_idea = SOV_poor_railnetworks_0
					add_idea = SOV_poor_railnetworks_1
				}
				else = {
					if = {
						limit = {
							has_idea = SOV_poor_railnetworks_1
						}
						swap_ideas = { 
							remove_idea = SOV_poor_railnetworks_1 
							add_idea = SOV_poor_railnetworks_2
						}
					}
				}
			}
		}
		search_filters = {FOCUS_FILTER_INDUSTRY}
	}

	focus = {
		id = SOV_improve_railway_network

		icon = GFX_focus_generic_public_works_A
		prerequisite = { focus = SOV_finish_the_five_year_plan }
		x = -2
		y = 1
		relative_position_id = SOV_finish_the_five_year_plan
		cost = 5

		ai_will_do = {
			factor = 11
		}

		completion_reward = {
			# Moscow - Rostov on Don
			build_railway = {
				path = { 9330 3356 6279 6230 6398 6341 413 3527 11475 11412 6591 3540 3519 11459 11450 11434 9417 }
			}
			# Stalingrad-Rostov on Don
			build_railway = {
				path = { 3529 9504 533 9516 509 500 11459 } #(Stalingrad - Conjunction near Millerovo)
			}
			# Stalingrad-Mikhaylovka 
			build_railway = {
				path = { 9504 3582 9436 11485 3539 9564 11408 } #(Conjunction right next to Stalingrad - Conjunction in West Saratov)
			}
			# Stalingrad - Astrakhan
			build_railway = {
				path = { 3529 11474 520 6516 6486 9455 11429 6620 9753 }
			}
			# Tbilisi - Yerevan
			build_railway = {
				path = { 1599 9702 12441 3564 12320 }
			}

			#Supply Hub in Yerevan
			230 = {
				add_building_construction = {
					type = supply_node
					level = 1
					province = 12320
					instant_build = yes
				}
			}
			#Supply Hub in Kandalaksha
			213 = {
				add_building_construction = {
					type = supply_node
					level = 1
					province = 6181
					instant_build = yes
				}
			}

			custom_effect_tooltip = available_designer
			show_ideas_tooltip = SOV_soviet_railways

			#Stops Industry slowdown events from firing
			hidden_effect = {
				set_country_flag = SOV_fixed_choo_choo
			}

			if = {
				limit = {
					has_idea = SOV_industry_slow_down
				}
				remove_ideas = SOV_industry_slow_down
			}
			remove_ideas = SOV_poor_railnetworks_2
		}
		search_filters = {FOCUS_FILTER_INDUSTRY}
	}

	focus = {
		id = SOV_third_five_year_plan

		icon = GFX_5year_plan_complete
		prerequisite = { focus = SOV_finish_the_five_year_plan }
		x = 0
		y = 1
		relative_position_id = SOV_finish_the_five_year_plan
		cost = 10

		available = {
			SOV_third_five_year_plan_available = yes
			custom_trigger_tooltip = {
				tooltip = SOV_fyp_controlled_factories_tier_2_tt
				NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_2 }
			}
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			hidden_effect = {
				add_to_variable = { SOV_fyp_production_factory_efficiency_gain_factor = 0.05 }
				add_to_variable = { SOV_fyp_consumer_goods_factor = -0.05 }
			}
			if = {
				limit = {
					has_government = communism
				}
				hidden_effect = {
					#Swap dynamic modifier to change icon
					remove_dynamic_modifier = { modifier = SOV_second_five_year_plan_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier }
				}
				custom_effect_tooltip = SOV_third_five_year_plan_ns_tt
				random_owned_controlled_state = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				add_tech_bonus = {
					name = SOV_third_five_year_plan_default
					bonus = 1
					uses = 2
					category = construction_tech
				}
			}
			else = {
				custom_effect_tooltip = SOV_third_five_year_plan_ns_alt_tt
				hidden_effect = {
					#Swap dynamic modifier to change icon
					remove_dynamic_modifier = { modifier = SOV_second_five_year_plan_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier_alt }
				}
				random_owned_controlled_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				add_tech_bonus = {
					name = SOV_third_five_year_plan_alt
					bonus = 1
					uses = 2
					category = construction_tech
				}
			}
		}
	}

	focus = {
		id = SOV_reorganize_the_pc_of_heavy_industry

		icon = GFX_goal_generic_election_chaos
		prerequisite = { focus = SOV_third_five_year_plan }
		x = -2
		y = 2
		relative_position_id = SOV_third_five_year_plan
		cost = 10

		mutually_exclusive = { focus = SOV_shift_to_armaments_production }

		available = {
			SOV_third_five_year_plan_available = yes
			custom_trigger_tooltip = {
				tooltip = SOV_fyp_controlled_factories_tier_3_tt
				NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_3 }
			}
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			hidden_effect = {
				add_to_variable = { SOV_fyp_consumer_goods_factor = -0.03 }
			}
			custom_effect_tooltip = SOV_reorganize_the_pc_of_heavy_industry_ns_tt
			if = {
				limit = {
					has_government = communism
				}
				hidden_effect = {
					#Swap dynamic modifier to change icon
					remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_third_five_year_plan_civilian_dynamic_modifier }
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				add_tech_bonus = {
					name = SOV_reorganize_the_pc_of_heavy_industry_name_default
					bonus = 1.0
					uses = 2
					category = industry
					category = electronics
				}
			}
			else = {
				hidden_effect = {
					#Swap dynamic modifier to change icon
					remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier_alt}
					add_dynamic_modifier = { modifier = SOV_third_five_year_plan_civilian_dynamic_modifier_alt }
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
				add_tech_bonus = {
					name = SOV_reorganize_the_pc_of_heavy_industry_name_alt
					bonus = 1.0
					uses = 2
					category = industry
					category = electronics
				}
			}
		}
	}

	focus = {
		id = SOV_industrial_modernization

		icon = GFX_goal_reichsautobahn
		prerequisite = { focus = SOV_reorganize_the_pc_of_heavy_industry }
		x = 0
		y = 3
		relative_position_id = SOV_reorganize_the_pc_of_heavy_industry
		cost = 10

		available = {
			SOV_third_five_year_plan_available = yes
			custom_trigger_tooltip = {
				tooltip = SOV_fyp_controlled_factories_tier_4_tt
				NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_4 }
			}
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_to_variable = { SOV_fyp_line_change_production_efficiency_factor = 0.05 }
			custom_effect_tooltip = SOV_industrial_modernization_ns_tt

			add_tech_bonus = {
				name = SOV_industrial_modernization
				ahead_reduction = 2
				bonus = 1.0
				uses = 1
				category = industry
			}
		}
	}

	focus = {
		id = SOV_increase_state_reserves

		icon = GFX_goal_oil
		prerequisite = { focus = SOV_third_five_year_plan }
		x = 0
		y = 1
		relative_position_id = SOV_third_five_year_plan
		cost = 5

		available = {
			SOV_third_five_year_plan_available = yes
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			#Modify Third Year Plan NS
			set_variable = { SOV_fyp_local_resources_factor = 0.1 }
			custom_effect_tooltip = SOV_increase_state_reserves_ns_tt

			custom_effect_tooltip = SOV_increase_state_reserves_silo_tt
			set_temp_variable = { temp_targets_index = 0 }
			
			while_loop_effect = {
				limit = {
					check_variable = { temp_targets_index = 3 compare = less_than }
					any_owned_state = {
						infrastructure < 3
						free_building_slots = {
							building = fuel_silo
							size > 0
							include_locked = yes
						}
						NOT = { has_state_flag = SOV_increase_state_reserves_flag }
					}
				}
				if = { #If possible, prio low-infrastructure states for silos
					limit = {
						any_owned_state = {
							infrastructure < 3
							free_building_slots = {
								building = fuel_silo
								size > 0
								include_locked = yes
							}
							NOT = { has_state_flag = SOV_increase_state_reserves_flag }
						}
					}
					random_owned_controlled_state = {
						limit = {
							infrastructure < 3
							free_building_slots = {
								building = fuel_silo
								size > 0
								include_locked = yes
							}
							NOT = { has_state_flag = SOV_increase_state_reserves_flag }
						}
						set_state_flag = SOV_increase_state_reserves_flag
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = fuel_silo
							level = 1
							instant_build = yes
						}
					}
				}
				else = {
					random_owned_controlled_state = {
						limit = {
							free_building_slots = {
								building = fuel_silo
								size > 0
								include_locked = yes
							}
							NOT = { has_state_flag = SOV_increase_state_reserves_flag }
						}
						set_state_flag = SOV_increase_state_reserves_flag
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = fuel_silo
							level = 1
							instant_build = yes
						}
					}
				}
				add_to_temp_variable = { temp_targets_index = 1 }
			}
			every_owned_state = { #Tooltip purposes (lets you know which states have been selected once the focus is completed)
				limit = {
					has_state_flag = SOV_increase_state_reserves_flag
				}
			}
		}
	}

	focus = {
		id = SOV_shift_to_armaments_production

		icon = GFX_focus_generic_combined_arms
		prerequisite = { focus = SOV_third_five_year_plan }
		x = 2
		y = 2
		relative_position_id = SOV_third_five_year_plan
		cost = 10

		mutually_exclusive = { focus = SOV_reorganize_the_pc_of_heavy_industry}

		available = {
			SOV_third_five_year_plan_available = yes
			custom_trigger_tooltip = {
				tooltip = SOV_fyp_controlled_factories_tier_3_tt
				NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_3 }
			}
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			hidden_effect = {
				set_variable = { SOV_fyp_production_speed_industrial_complex_factor = 0 } #Remove Civ constr speed
			}
			if = {
				limit = {
					has_government = communism
				}
				hidden_effect = {
					#Swap dynamic modifier to change icon
					remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_third_five_year_plan_military_dynamic_modifier }
				}
			}
			else = {
				hidden_effect = {
					#Swap dynamic modifier to change icon
					remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_third_five_year_plan_military_dynamic_modifier }
				}
			}
			custom_effect_tooltip = SOV_shift_to_armaments_production_ns_tt
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = SOV_shift_to_armaments_production
				bonus = 1.0
				uses = 2
				category = infantry_weapons
			}
		}
	}

	focus = {
		id = SOV_optimize_production_lines

		icon = GFX_focus_generic_tank_production
		prerequisite = { focus = SOV_shift_to_armaments_production }
		x = 0
		y = 3
		relative_position_id = SOV_shift_to_armaments_production
		cost = 10

		available = {
			SOV_third_five_year_plan_available = yes
			custom_trigger_tooltip = {
				tooltip = SOV_fyp_controlled_factories_tier_4_tt
				NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_4 }
			}
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_to_variable = { SOV_fyp_production_factory_efficiency_gain_factor = 0.05 } #Add efficiency gain
			add_to_variable = { SOV_fyp_production_factory_start_efficiency_factor = 0.05 } #Add efficiency start
			add_to_variable = { SOV_fyp_industrial_capacity_factory = 0.02 } #Add small output bonus
			custom_effect_tooltip = SOV_optimize_production_lines_ns_tt

			add_tech_bonus = {
				name = SOV_optimize_production_lines
				bonus = 1
				uses = 2
				category = cat_production
			}
		}
	}

	focus = {
		id = SOV_urbanization #Forced Urbanization
		icon = GFX_forced_urbanization
		prerequisite = { focus = SOV_industrial_modernization focus = SOV_optimize_production_lines }
		x = 0
		y = 1
		relative_position_id = SOV_optimize_production_lines
		cost = 10
		ai_will_do = {
			factor = 1000
		}
		available_if_capitulated = yes

		completion_reward = {
			add_ideas = SOV_urbanization_focus
			add_timed_idea = {
				idea = SOV_urbanization_focus_debuff
				days = 350
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = SOV_steel_casting_industry

		icon = GFX_focus_generic_steel
		prerequisite = { focus = SOV_reorganize_the_pc_of_heavy_industry focus = SOV_shift_to_armaments_production }
		x = 2
		y = 1
		relative_position_id = SOV_reorganize_the_pc_of_heavy_industry
		cost = 10

		available = {
			any_owned_state = {
				is_controlled_by = ROOT
				has_resources_amount = {
					resource = steel
					amount > 0
				}
				free_building_slots = {
					building = industrial_complex
					size > 1
					include_locked = yes
				}
			}
			SOV_third_five_year_plan_available = yes
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STEEL }

		completion_reward = {
			set_variable = { SOV_fyp_industrial_capacity_factory = 0.05 }
			set_variable = { SOV_fyp_industrial_capacity_dockyard = 0.05 }

			custom_effect_tooltip = SOV_steel_casting_industry_ns_tt

			if = {
				limit = {
					NOT = { has_tech = assembly_line_production }
				}
				add_tech_bonus = {
					name = industrial_bonus
					bonus = 1
					ahead_reduction = 1
					uses = 1
					technology = assembly_line_production
				}
			}
			if = {
				limit = {
					has_tech = assembly_line_production
				}
				add_tech_bonus = {
					name = SOV_steel_casting_industry
					bonus = 0.5
					uses = 1
					category = construction_tech
				}
			}

			random_owned_controlled_state = {
				limit = {
					has_resources_amount = {
						resource = steel
						amount > 0
					}
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_resource = {
					type = steel
					amount = 8
				}
				set_state_flag = SOV_steel_casting_industry_flag
			}
			if = {
				limit = {
					any_owned_state = {
						has_resources_amount = {
							resource = steel
							amount > 0
						}
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
						NOT = {	has_state_flag = SOV_steel_casting_industry_flag }
					}
				}
				random_owned_controlled_state = {
					limit = {
						has_resources_amount = {
							resource = steel
							amount > 0
						}
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
						NOT = {	has_state_flag = SOV_steel_casting_industry_flag }
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_resource = {
						type = steel
						amount = 8
					}
					set_state_flag = SOV_steel_casting_industry_flag
				}
			}
		}
	}

	focus = {
		id = SOV_synthetic_rubber

		icon = GFX_focus_generic_rubber
		prerequisite = { focus = SOV_steel_casting_industry }
		x = -1
		y = 1
		relative_position_id = SOV_steel_casting_industry
		cost = 5

		available = {
			has_tech = rubber_plant_a
			SOV_third_five_year_plan_available = yes
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
			has_full_control_of_state = 219 #MOSCOW
			OR = {
				has_full_control_of_state = 260 #VORONEZH
				has_full_control_of_state = 223 #TULA
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_RUBBER }

		completion_reward = {
			# ADD SYNTHETICS IN HISTORICAL STATES (VORONEZH AND TULA)
			if = {
				limit = {
					has_full_control_of_state = 260 #VORONEZH
				}
				260 = { #VORONEZH
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = rubber_refinery
						level = 1
						instant_build = yes
					}
				}
				if = {
					limit = {
						has_full_control_of_state = 254 #RYAZAN
						has_full_control_of_state = 258 #LIPETSK
					}
					# Moscow - Voronezh
					build_railway = {
						path = { 6380 6414 9348 9282 11268 9330 3356 6279 6230 6398 6341 413 3527 }
					}
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 223 #TULA
				}
				223 = { #TULA
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = rubber_refinery
						level = 1
						instant_build = yes
					}
				}
				# Moscow - Tula
				build_railway = {
					path = { 6380 6414 9348 6290 6396 6262 }
				}
			}
			add_tech_bonus = {
				name = SOV_synthetic_rubber
				bonus = 0.75
				uses = 2
				category = cat_synth_rubber
			}
		}
	}

	focus = {
		id = SOV_oil_production

		icon = GFX_goal_refining
		prerequisite = { focus = SOV_steel_casting_industry }
		x = 1
		y = 1
		relative_position_id = SOV_steel_casting_industry
		cost = 7.16

		available = {
			SOV_third_five_year_plan_available = yes
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_OIL }

		completion_reward = {
			set_variable = { SOV_fyp_fuel_gain_factor_from_states = 0.05 }
			set_variable = { SOV_fyp_production_oil_factor = 0.05 }
			custom_effect_tooltip = SOV_oil_production_ns_tt
			
			set_temp_variable = { SOV_silos_from_focus = 0 }
			every_owned_state = {
				limit ={
					is_fully_controlled_by = ROOT
					has_resources_amount = {
						resource = oil
						amount > 0
					}
					infrastructure < 3
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes						
				}
				hidden_effect = {
					if = {
						limit = {
							check_variable = { SOV_silos_from_focus = 2 compare = less_than_or_equals }
						}		
						add_extra_state_shared_building_slots = 1	
						add_building_construction = {
							type = fuel_silo
							level = 1
							instant_build = yes						
						}
						add_to_temp_variable = { SOV_silos_from_focus = 1 }
					}
				}
				custom_effect_tooltip = SOV_oil_production_silo_tt
			}
			#Build Railways in Caucasus
			if = {
				limit = {
					has_full_control_of_state = 229 #BAKU
					has_full_control_of_state = 230 #ARMENIA
					has_full_control_of_state = 231 #GEORGIA
				}
				# Baku - Tbilisi
				build_railway = {
					path = { 7661 1536 4614 4477 11645 11674 1539 11708 1599 }
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 232 #DAGESTAN
					has_full_control_of_state = 821 #CHECHNYA-INGUSHETIA
				}
				# Makhachkala (Hub province) - Grozny
				build_railway = {
					path = { 3668 3682 3672 }
				}
			}
			if = {
				limit = {
					has_country_flag = prospect_volga_ural_basin
				}
				add_resource = {
					type = oil
					amount = 2
					state = 249
				}				
			}
			if = {
				limit = {
					NOT = {
						has_country_flag = prospect_volga_ural_basin
					}
				}
				add_resource = {
					type = oil
					amount = 2
					state = 232
				}				
			}

			if = {
				limit = {
					has_full_control_of_state = 229
					NOT = {
						has_country_flag = prospect_volga_ural_basin
					}					
				}
				add_resource = {
					type = oil
					amount = 26
					state = 229
				}				
			}
			if = {
				limit = {
					AZR = {
						has_full_control_of_state = 229
						is_puppet_of = SOV
					}
					NOT = {
						has_country_flag = prospect_volga_ural_basin
					}
				}
				add_resource = {
					type = oil
					amount = 26
					state = 229
				}				
			}
			if = {
				limit = {
					ARM = {
						has_full_control_of_state = 229
						is_puppet_of = SOV
					}
					NOT = {
						has_country_flag = prospect_volga_ural_basin
					}					
				}
				add_resource = {
					type = oil
					amount = 26
					state = 229
				}				
			}

			if = {
				limit = {
					has_full_control_of_state = 651
					has_country_flag = prospect_volga_ural_basin
				}
				add_resource = {
					type = oil
					amount = 26
					state = 651
				}				
			}
		}
	}

	focus = { #unlock this focus once the war with a major is over
		id = SOV_restoration_and_development

		icon = GFX_focus_generic_modernize_industry
		prerequisite = { focus = SOV_industrial_modernization focus = SOV_optimize_production_lines }
		x = 2
		y = 1
		relative_position_id = SOV_industrial_modernization
		cost = 5

		cancel_if_invalid = no

		available = {
			SOV_fourth_five_year_plan_available = yes
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_PROPAGANDA}

		completion_reward = {
			add_timed_idea = {
				idea = SOV_restoration_and_development_idea
				days = 365
			}

			if = {
				limit = {
					has_government = communism
				}
				custom_effect_tooltip = unlock_propaganda_campaign_tt
				unlock_decision_tooltip = SOV_propaganda_rebuild_to_glory
				unlock_decision_tooltip = SOV_propaganda_peace
				unlock_decision_tooltip = SOV_propaganda_happy_life
				custom_effect_tooltip = propaganda_campaign_requirement_tt
			}
		}
	}

	focus = {
		id = SOV_fourth_five_year_plan

		icon = GFX_goal_generic_industrial_unionism
		prerequisite = { focus = SOV_restoration_and_development }
		x = 0
		y = 1
		relative_position_id = SOV_restoration_and_development
		cost = 10

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_fyp_controlled_factories_tier_5_tt
				NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_5 }
			}
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			hidden_effect = {
				add_to_variable = { SOV_fyp_consumer_goods_factor = -0.03 } #Bonus to CG
				if = {
					limit = {
						has_government = communism
					}
					#Swap dynamic modifier to change icon
					if = {
						limit = {
							has_dynamic_modifier = { modifier = SOV_third_five_year_plan_civilian_dynamic_modifier }
						}
						remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_civilian_dynamic_modifier }
					}
					else_if = {
						limit = {
							has_dynamic_modifier = { modifier = SOV_third_five_year_plan_military_dynamic_modifier }
						}
						remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_military_dynamic_modifier }
					}
					else_if = {
						limit = {
							has_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier }
						}
						remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier }
					}
					add_dynamic_modifier = { modifier = SOV_fourth_five_year_plan_dynamic_modifier }
				}
				else = {
					#Swap dynamic modifier to change icon
					if = {
						limit = {
							has_dynamic_modifier = { modifier = SOV_third_five_year_plan_civilian_dynamic_modifier_alt }
						}
						remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_civilian_dynamic_modifier_alt }
					}
					else_if = {
						limit = {
							has_dynamic_modifier = { modifier = SOV_third_five_year_plan_military_dynamic_modifier_alt }
						}
						remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_military_dynamic_modifier_alt }
					}
					else_if = {
						limit = {
							has_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier_alt }
						}
						remove_dynamic_modifier = { modifier = SOV_third_five_year_plan_dynamic_modifier_alt }
					}
					add_dynamic_modifier = { modifier = SOV_fourth_five_year_plan_dynamic_modifier_alt }
				}
			}
			custom_effect_tooltip = SOV_fourth_five_year_plan_ns_tt
		}
	}

	# focus = { MOVED INTO IRON CURTAIN
	# 	id = SOV_found_the_comecon

	# 	icon = GFX_focus_SOV_the_comecon
	# 	prerequisite = { focus = SOV_fourth_five_year_plan }
	# 	x = 0
	# 	y = 1
	# 	relative_position_id = SOV_fourth_five_year_plan
	# 	cost = 10

	# 	allow_branch = {
	# 		has_government = communism
	# 	}

	# 	available = {
	# 		num_subjects > 0
	# 		NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
	# 	}
		
	# 	search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

	# 	completion_reward = {
	# 		if = {
	# 			limit = {
	# 				num_subjects > 0
	# 			}
	# 			add_ideas = SOV_comecon_sov_default
	# 			custom_effect_tooltip = SOV_found_the_comecon_subjects_tt
	# 			every_other_country = {
	# 				limit = {
	# 					is_subject_of = ROOT
	# 				}
	# 				add_ideas = SOV_comecon_puppet_default
	# 			}

	# 			custom_effect_tooltip = SOV_found_the_comecon_program_tt
	# 			hidden_effect = {
	# 				add_to_tech_sharing_group = SOV_comecon
	# 				every_country = {
	# 					limit = {
	# 						is_subject_of = ROOT
	# 					}
	# 					add_to_tech_sharing_group = SOV_comecon
	# 				}
	# 			}
	# 		}
	# 		else = { #Early tooltip for when Soviets have no subjects
	# 			effect_tooltip = {
	# 				add_ideas = SOV_comecon_sov_default
	# 			}
	# 			custom_effect_tooltip = SOV_found_the_comecon_subjects_tt
	# 			effect_tooltip = {
	# 				add_ideas = SOV_comecon_puppet_default
	# 			}
	# 			custom_effect_tooltip = SOV_found_the_comecon_program_tt
	# 		}

	# 		unlock_decision_category_tooltip = SOV_comecon_dec_cat
	# 	}
	# }

	focus = {
		id = SOV_the_common_economic_space_initiative

		icon = GFX_goal_anschluss
		prerequisite = { focus = SOV_fourth_five_year_plan }
		x = 0
		y = 1
		relative_position_id = SOV_fourth_five_year_plan
		cost = 10

		allow_branch = {
			NOT = { has_government = communism }
		}

		available = {
			num_subjects > 0
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			if = {
				limit = {
					num_subjects > 0
				}
				add_ideas = SOV_common_economic_space_sov_default
				custom_effect_tooltip = SOV_found_the_comecon_subjects_tt
				every_other_country = {
					limit = {
						is_subject_of = ROOT
					}
					add_ideas = SOV_common_economic_space_puppet_default
				}

				custom_effect_tooltip = SOV_found_the_comecon_program_tt
				hidden_effect = {
					add_to_tech_sharing_group = SOV_common_economic_space
					every_country = {
						limit = {
							is_subject_of = ROOT
						}
						add_to_tech_sharing_group = SOV_comecon
					}
				}
			}
			else = { #Early tooltip for when Soviets have no subjects
				effect_tooltip = {
					add_ideas = SOV_common_economic_space_sov_default
				}
				custom_effect_tooltip = SOV_found_the_comecon_subjects_tt
				effect_tooltip = {
					add_ideas = SOV_common_economic_space_puppet_default
				}
				custom_effect_tooltip = SOV_found_the_comecon_program_tt
			}

			unlock_decision_category_tooltip = SOV_comecon_dec_cat
		}
	}

	focus = {
		id = SOV_no_time_for_peace

		icon = GFX_goal_soviet_rocketry
		prerequisite = { focus = SOV_fourth_five_year_plan }
		prerequisite = { focus = SOV_national_academies_of_sciences }
		x = 3
		y = 1
		relative_position_id = SOV_fourth_five_year_plan
		cost = 10
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_tech_bonus = {
				name = SOV_no_time_for_peace
				bonus = 0.50
				uses = 1
				category = nuclear
				category = rocketry
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = generic_secret_weapons_ns
			#TODO_r56 rework this ideas modifers:
			#add_ideas = SOV_no_time_for_peace_idea
			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.50
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.50
			}
		}
	}

	focus = {
		id = SOV_national_specialists

		icon = GFX_goal_generic_citizens
		prerequisite = { focus = SOV_finish_the_five_year_plan }
		x = 3
		y = 1
		relative_position_id = SOV_finish_the_five_year_plan
		cost = 5

		mutually_exclusive = { focus = SOV_foreign_experts }
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			custom_effect_tooltip = SOV_national_specialists_tt

			SOV_replace_industrial_designer = yes #"National" Industrial Designers get +5% research bonus
			hidden_effect = {
				add_ideas = SOV_national_specialists_ns
			}
		}
	}

	focus = {
		id = SOV_foreign_experts

		icon = GFX_focus_spa_the_spanish_miracle
		prerequisite = { focus = SOV_finish_the_five_year_plan }
		x = 2
		y = 0
		relative_position_id = SOV_national_specialists
		cost = 5

		mutually_exclusive = { focus = SOV_national_specialists }
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			custom_effect_tooltip = available_designer
			show_ideas_tooltip = SOV_gosproyektstroy_1
		}
	}

	focus = {
		id = SOV_eastern_development

		icon = GFX_goal_generic_construction_tools
		prerequisite = { focus = SOV_national_specialists focus = SOV_foreign_experts }
		x = 0
		y = 1
		relative_position_id = SOV_national_specialists
		cost = 5

		bypass = {
			408 = { #VLADIVOSTOK
				is_fully_controlled_by = ROOT
				NOT = {
					infrastructure < 5
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
			}
			409 = { #KHABAROVSK
				is_fully_controlled_by = ROOT
				is_fully_controlled_by = ROOT
				NOT = {
					infrastructure < 5
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
			}
			566 = { #IRKUTSK
				is_fully_controlled_by = ROOT
				is_fully_controlled_by = ROOT
				NOT = {
					infrastructure < 5
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
			}
			564 = { #ULAN UDE
				is_fully_controlled_by = ROOT
				is_fully_controlled_by = ROOT
				NOT = {
					infrastructure < 5
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
			}
		}

		available = {
			OR = {
				408 = { #VLADIVOSTOK
					is_fully_controlled_by = ROOT
				}
				409 = { #KHABAROVSK
					is_fully_controlled_by = ROOT
				}
				566 = { #IRKUTSK
					is_fully_controlled_by = ROOT
				}
				564 = { #ULAN UDE
					is_fully_controlled_by = ROOT
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			set_temp_variable = { SOV_states_targeted_eastern_development = 0 } #Used this way to prioritize between desirable states
			if = {
				limit = {
					408 = { #VLADIVOSTOK
						is_fully_controlled_by = ROOT
						infrastructure < 5
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				408 = { #VLADIVOSTOK
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				add_to_temp_variable = { SOV_states_targeted_eastern_development = 1 }
			}
			else_if = { #Irkutsk replaces Vladivostok if necessary
				limit = {
					check_variable = { SOV_states_targeted_eastern_development = 2 compare = less_than_or_equals }
					566 = { #IRKUTSK
						is_fully_controlled_by = ROOT
						infrastructure < 5
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				566 = { #IRKUTSK
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}

			if = {
				limit = {
					409 = { #KHABAROVSK
						is_fully_controlled_by = ROOT
						infrastructure < 5
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				409 = { #KHABAROVSK
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				add_to_temp_variable = { SOV_states_targeted_eastern_development = 1 }
			}
			else_if = { #Ulan Ude replaces Khabarovsk if necessary
				limit = {
					check_variable = { SOV_states_targeted_eastern_development = 2 compare = less_than_or_equals }
					564 = { #ULAN UDE
						is_fully_controlled_by = ROOT
						infrastructure < 5
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				564 = { #ULAN UDE
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = SOV_develop_the_urals

		icon = GFX_goal_generic_light_industry
		prerequisite = { focus = SOV_national_specialists focus = SOV_foreign_experts }
		x = 2
		y = 0
		relative_position_id = SOV_eastern_development
		cost = 5

		bypass = {
			572 = { #CHELYABISNK
				is_fully_controlled_by = ROOT
				NOT = {
					infrastructure < 5
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
			}
			573 = { #ZLATOUST
				is_fully_controlled_by = ROOT
				is_fully_controlled_by = ROOT
				NOT = {
					infrastructure < 5
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
			}
			582 = { #MAGNITOGORSK
				is_fully_controlled_by = ROOT
				is_fully_controlled_by = ROOT
				NOT = {
					infrastructure < 5
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
			}
			653 = { #SVERDLOVSK
				is_fully_controlled_by = ROOT
				is_fully_controlled_by = ROOT
				NOT = {
					infrastructure < 5
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
			}
		}

		available = {
			OR = {
				572 = { #CHELYABISNK
					is_fully_controlled_by = ROOT
				}
				573 = { #ZLATOUST
					is_fully_controlled_by = ROOT
				}
				582 = { #MAGNITOGORSK
					is_fully_controlled_by = ROOT
				}
				653 = { #SVERDLOVSK
					is_fully_controlled_by = ROOT
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			set_temp_variable = { SOV_states_targeted_eastern_development = 0 } #Used this way to prioritize between desirable states
			if = {
				limit = {
					572 = { #CHELYABISNK
						is_fully_controlled_by = ROOT
						infrastructure < 5
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				572 = { #CHELYABISNK
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				add_to_temp_variable = { SOV_states_targeted_eastern_development = 1 }
			}
			else_if = { #Magnitogorsk replaces Chelyabinsk if necessary
				limit = {
					check_variable = { SOV_states_targeted_eastern_development = 2 compare = less_than_or_equals }
					582 = { #MAGNITOGORSK
						is_fully_controlled_by = ROOT
						infrastructure < 5
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				582 = { #MAGNITOGORSK
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				add_resource = {
					type = oil
					amount = 2
					state = 582
				}
			}

			if = {
				limit = {
					573 = { #ZLATOUST
						is_fully_controlled_by = ROOT
						infrastructure < 5
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				573 = { #ZLATOUST
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				add_resource = {
					type = chromium
					amount = 3
					state = 573
				}
				add_to_temp_variable = { SOV_states_targeted_eastern_development = 1 }
			}
			else_if = { #Sverdlovsk replaces Zlatoust if necessary
				limit = {
					check_variable = { SOV_states_targeted_eastern_development = 2 compare = less_than_or_equals }
					653 = { #SVERDLOVSK
						is_fully_controlled_by = ROOT
						infrastructure < 5
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				653 = { #SVERDLOVSK
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
			add_resource = {
				type = aluminium
				amount = 1
				state = 581
			}
		}
	}

	focus = {
		id = SOV_the_ussr_academy_of_sciences

		icon = GFX_goal_SOV_education_initiative
		prerequisite = { focus = SOV_eastern_development }
		prerequisite = { focus = SOV_develop_the_urals }
		x = 1
		y = 1
		relative_position_id = SOV_eastern_development
		cost = 5
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_research_slot = 1
			if = {
				limit = {
					any_country = {
						SOV_is_valid_academy_of_sciences_target = yes
					}
				}
				if = { #ALT IDEOLOGY
					limit = {
						NOT = { has_government = communism }
					}
					add_to_tech_sharing_group = SOV_imperial_academies_of_sciences_joint_program
					every_country = {
						limit = {
							SOV_is_valid_academy_of_sciences_target = yes
						}
						add_to_tech_sharing_group = SOV_imperial_academies_of_sciences_joint_program
					}
				}
				else = { #DEFAULT COMMUNISM
					add_to_tech_sharing_group = SOV_soviet_academies_of_sciences_joint_program
					every_country = {
						limit = {
							SOV_is_valid_academy_of_sciences_target = yes
						}
						add_to_tech_sharing_group = SOV_soviet_academies_of_sciences_joint_program
					}
				}
			}
			if = { #ALT IDEOLOGY
				limit = {
					NOT = { has_government = communism }
				}
				hidden_effect = {
					add_dynamic_modifier = { modifier = SOV_ussr_academy_of_sciences_dynamic_modifier_alt }
				}
				effect_tooltip = { add_ideas = SOV_national_academy_of_sciences_alt_fake }
			}
			else = { #DEFAULT COMMUNISM
				hidden_effect = {
					add_dynamic_modifier = { modifier = SOV_ussr_academy_of_sciences_dynamic_modifier }
				}
				effect_tooltip = { add_ideas = SOV_national_academy_of_sciences_fake }
			}
		}
	}
	focus = {
		id = SOV_Social_Welfare
		icon = GFX_social_welfare
		prerequisite = { focus = SOV_the_ussr_academy_of_sciences }
		x = -1
		y = 1
		relative_position_id = SOV_the_ussr_academy_of_sciences
		cost = 5
		ai_will_do = {
			factor = 11
		}

		available = {
			if = {
				limit = {
					is_ai = no
				}
				custom_trigger_tooltip = {
					tooltip = SOV_fyp_controlled_factories_tier_3_tt
					NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_2 }
				}
				surrender_progress < 0.25 #listen if you wanted this long to take this you fucked up
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = SOV_fyp_controlled_factories_tier_3_tt
					NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_2 }
				}
				surrender_progress < 0.25 
			}
		}


		bypass = {
			NOT = { has_government = communism }
		}

		completion_reward = {
			add_political_power = 25
			add_ideas = SOV_social_welfare_focus
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}


	focus = {
		id = SOV_Invest_in_Engineering
		icon = GFX_focus_generic_socialist_science
		prerequisite = { focus = SOV_the_ussr_academy_of_sciences }
		x = 1
		y = 1
		relative_position_id = SOV_the_ussr_academy_of_sciences
		cost = 5
		ai_will_do = {
			factor = 10
		}

		available = {
			if = {
				limit = {
					is_ai = no
				}
				custom_trigger_tooltip = {
					tooltip = SOV_fyp_controlled_factories_tier_3_tt
					NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_2 }
				}
				surrender_progress < 0.25 #listen if you wanted this long to take this you fucked up
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = SOV_fyp_controlled_factories_tier_3_tt
					NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_2 }
				}
				surrender_progress < 0.25 
			}
		}

		completion_reward = {
			add_ideas = SOV_invest_in_engineering_focus
			custom_effect_tooltip = generic_skip_one_line_tt
			add_tech_bonus = {
				name = electronics_bonus
				bonus = 0.25
				uses = 1
				category = electronics
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.25
			}
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.25
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = { 
					ROOT = {
						has_character = SOV_nikolai_dukhov
					}
				}
				ROOT = { 
					SOV_nikolai_dukhov = {
						add_scientist_xp = {
							experience = 250
							specialization = specialization_land
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			if = {
				limit = { 
					ROOT = {
						has_character = SOV_vladimir_kotelnikov
					}
				}
				ROOT = { 
					SOV_vladimir_kotelnikov = {
						add_scientist_xp = {
							experience = 250
							specialization = specialization_air 
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}

		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SOV_national_academies_of_sciences

		icon = GFX_focus_research2
		prerequisite = { focus = SOV_the_ussr_academy_of_sciences }
		x = 0
		y = 3
		relative_position_id = SOV_the_ussr_academy_of_sciences
		cost = 5
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			custom_effect_tooltip = SOV_national_academies_of_sciences_tt
		}
	}

	focus = {
		id = SOV_progress_cult
		icon = GFX_goal_supremacy_of_will
		prerequisite = { focus = SOV_national_academies_of_sciences }
		x = 0
		y = 1
		relative_position_id = SOV_national_academies_of_sciences
		cost = 14.30
		ai_will_do = {
			factor = 7
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_fyp_controlled_factories_tier_5_tt
				NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_5 }
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			add_ideas = progress_cult_focus_2
			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.25
			}
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.25
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.25
			}
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.25
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SOV_transformation_of_nature

		icon = GFX_SOV_transformation_of_nature_ccp_2d_sov_compatibility
		prerequisite = { focus = SOV_fourth_five_year_plan }
		prerequisite = { focus = SOV_national_academies_of_sciences }
		x = 2
		y = 0
		relative_position_id = SOV_no_time_for_peace
		cost = 10

		allow_branch = {
			has_government = communism
		}

		available = {
			196 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			251 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			217 = {
				is_controlled_by_ROOT_or_subject = yes
			}
			245 = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {

			hidden_effect = {
				IF = {
					limit = {
						has_country_leader = {
							ruling_only = yes
							character = SOV_iosif_stalin
						}	
					}
					set_province_name = {
						id = 3555
						name = SOV_stalingrad_hydro_station
					}
				}
				ELSE = {
					set_province_name = {
						id = 3555
						name = SOV_volgograd_hydro_station
					}
				}
				set_province_name = {
					id = 6275
					name = SOV_kuybyshev_hydro_station
				}
				set_province_name = {
					id = 737
					name = SOV_kakhovka_dam
				}
				set_province_name = {
					id = 3478
					name = SOV_tsimlyanskoye_hydroelectric_station
				}
			}

			add_ideas = SOV_transformation_of_nature
			custom_effect_tooltip = generic_skip_one_line_tt

			217 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 3555
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
			196 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 737
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
			245 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 3478
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
			251 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 6275
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
		}
	}

	focus = {
		id = SOV_transformation_of_nature_alt

		icon = GFX_goal_generic_construction2
		prerequisite = { focus = SOV_fourth_five_year_plan }
		prerequisite = { focus = SOV_national_academies_of_sciences }
		x = 2
		y = 0
		relative_position_id = SOV_no_time_for_peace
		cost = 10

		allow_branch = {
			NOT = { has_government = communism }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_ideas = SOV_transformation_of_nature
			if = {
				limit = {
					has_full_control_of_state = 404
				}
				add_resource = {
					type = rubber
					amount = 8
					state = 404
				}
			}
		}
	}


   ###    #### ########   ######  ########     ###    ######## ######## 
  ## ##    ##  ##     ## ##    ## ##     ##   ## ##   ##          ##    
 ##   ##   ##  ##     ## ##       ##     ##  ##   ##  ##          ##    
##     ##  ##  ########  ##       ########  ##     ## ######      ##    
#########  ##  ##   ##   ##       ##   ##   ######### ##          ##    
##     ##  ##  ##    ##  ##    ## ##    ##  ##     ## ##          ##    
##     ## #### ##     ##  ######  ##     ## ##     ## ##          ##    



	focus = {
		id = SOV_transpolar_flights

		icon = GFX_goal_generic_air_fighter2
		x = 10
		y = 0
		relative_position_id = SOV_infrastructure_effort_nsb
		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_war = no
		}

		bypass = {
			AND = {
				date > 1939.1.1
				has_war = yes
			}
		}

		completion_reward = {
			air_experience = 5
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				add_tech_bonus = {
					name = SOV_transpolar_flights
					bonus = 1.0
					uses = 1
					category = cat_scout_plane
				}				
			}
			add_doctrine_cost_reduction = {
				name = SOV_transpolar_flights
				uses = 1
				cost_reduction = 0.5
				category = air_doctrine
            }
			add_timed_idea = {
				idea = SOV_transpolar_flights_idea
				days = 435
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP }
	}

	focus = {
		id = SOV_expand_the_aircraft_industry

		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = SOV_transpolar_flights }
		x = -1
		y = 1
		relative_position_id = SOV_transpolar_flights
		cost = 10

		available = {
			any_owned_state = {
				is_fully_controlled_by = ROOT
				free_building_slots = {
					building = arms_factory
					size > 1
					include_locked = yes
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			set_variable = { SOV_soviet_airforce_aircraft_manufacturer_cost_factor = -0.25 }
			custom_effect_tooltip = SOV_expand_the_aircraft_industry_ns_tt

			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				if = {
					limit = {
						air_base < 9
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
				else = {
					ROOT = {
						random_owned_controlled_state = {
							limit = {
								air_base < 9
							}
							add_building_construction = {
								type = air_base
								level = 2
								instant_build = yes
							}
						}
					}
				}
			}

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}	
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = SOV_okb_19_organization
				mio:SOV_okb_19_organization = {
					add_mio_funds = 500
				}
			}		
		}
	}

	focus = {
		id = SOV_modernize_aircraft_facilities

		icon = GFX_SOV_modernize_aircraft_facilities_ccp_2d_sov_compatibility
		prerequisite = { focus = SOV_expand_the_aircraft_industry }
		x = -1
		y = 1
		relative_position_id = SOV_expand_the_aircraft_industry
		cost = 10

		completion_reward = {
			add_to_variable = { SOV_soviet_airforce_air_fuel_consumption_factor = -0.05 }
			add_to_variable = { SOV_soviet_airforce_air_range_factor = 0.05 }
			add_to_variable = { SOV_soviet_airforce_air_agility_factor = 0.05 }
			custom_effect_tooltip = SOV_modernize_aircraft_facilities_ns_tt

			custom_effect_tooltip = SOV_modernize_aircraft_facilities_tt
			hidden_effect = {
				IF = {
					limit = { 
						260 = {
							is_fully_controlled_by = ROOT
							air_facility < 1
							land_facility < 1
							naval_facility < 1
							nuclear_facility < 1
						}
					}

					260 = {
						add_building_construction = {
							type = air_facility
							level = 1
							instant_build = yes
							province = 9448 # East of Voronezh
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_merge_aircraft_plants

		icon = GFX_focus_SOV_merge_plants
		prerequisite = { focus = SOV_modernize_aircraft_facilities }
		x = -1
		y = 2
		relative_position_id = SOV_modernize_aircraft_facilities
		cost = 5

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				every_military_industrial_organization = {
					limit = {
						has_mio_trait = SOV_mio_trait_merge_plant_no_28 #All Aircraft MIOs have this trait
					}
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_28
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_150
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_vef_plant
				}
			}
			else = {
				custom_effect_tooltip = SOV_merge_aircraft_plants_tt
			}
		}
	}

	focus = {
		id = SOV_found_the_jet_institute

		icon = GFX_goal_generic_air_jet_new
		prerequisite = { focus = SOV_the_ussr_academy_of_sciences }
		prerequisite = { focus = SOV_merge_aircraft_plants }
		x = 0
		y = 2
		relative_position_id = SOV_merge_aircraft_plants
		cost = 10
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_tech_bonus = {
				name = SOV_found_the_jet_institute
				bonus = 1.0
				uses = 2
				category = jet_technology
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.50
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = r56_generic_jet_idea
		}
	}

	focus = {
		id = SOV_increase_aircraft_production

		icon = GFX_focus_generic_aircraft_production
		prerequisite = { focus = SOV_expand_the_aircraft_industry }
		x = 0
		y = 2
		relative_position_id = SOV_expand_the_aircraft_industry
		cost = 10

		mutually_exclusive = { focus = SOV_intensify_pilot_training_program }

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			hidden_effect = {
				#This handles the equipment bonus that's not supported by dynamic modifiers
				add_ideas = SOV_increased_aircraft_production_ns_bonus
				add_to_variable = { SOV_soviet_airforce_air_accidents_factor = 0.05 }
			}

			hidden_effect = {
				if = { #DEFAULT COMMIE
					limit = {
						has_government = communism
					}
					#Swap dynamic modifiers to show the bonus equipment custom tooltip
					remove_dynamic_modifier = { modifier = SOV_soviet_airforce_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_soviet_airforce_aircraft_production_focus_dynamic_modifier }
				}
				else = { #ALT IDEOLOGY
					#Swap dynamic modifiers to show the bonus equipment custom tooltip
					remove_dynamic_modifier = { modifier = SOV_soviet_airforce_dynamic_modifier_alt }
					add_dynamic_modifier = { modifier = SOV_soviet_airforce_aircraft_production_focus_dynamic_modifier_alt }
				}
			}
			
			custom_effect_tooltip = SOV_increase_aircraft_production_ns_tt

			add_tech_bonus = {
				name = SOV_increase_aircraft_production
				bonus = 1.0
				uses = 2
				category = light_air
			}
		}
	}

	focus = {
		id = SOV_foster_flying_clubs

		icon = GFX_focus_SOV_flying_clubs
		prerequisite = { focus = SOV_transpolar_flights }
		x = 1
		y = 1
		relative_position_id = SOV_transpolar_flights
		cost = 5
		
		search_filters = {FOCUS_FILTER_AIR_XP}

		completion_reward = {
			add_to_variable = { SOV_soviet_airforce_air_accidents_factor = -0.25 }
			add_to_variable = { SOV_soviet_airforce_air_ace_generation_chance_factor = 0.25 }
			add_to_variable = { SOV_soviet_airforce_air_weather_penalty = -0.1 }
			add_to_variable = { SOV_soviet_airforce_air_training_xp_gain_factor = 0.1 }
			custom_effect_tooltip = SOV_foster_flying_clubs_ns_tt

			air_experience = 25
		}
	}

	focus = {
		id = SOV_women_in_aviation

		icon = GFX_focus_SOV_women_in_aviation
		prerequisite = { focus = SOV_foster_flying_clubs }
		x = 1
		y = 1
		relative_position_id = SOV_foster_flying_clubs
		cost = 5

		available = {
			OR = {
				has_completed_focus = SOV_the_path_of_marxism_leninism
				has_completed_focus = SOV_womens_fascist_movement
			}
		}
		
		search_filters = {FOCUS_FILTER_AIR_XP}

		completion_reward = {
			add_to_variable = { SOV_soviet_airforce_air_ace_generation_chance_factor = 0.25 }
			add_to_variable = { SOV_soviet_airforce_air_weather_penalty = -0.05 }
			add_to_variable = { SOV_soviet_airforce_air_mission_xp_gain_factor = 0.05 }
			add_to_variable = { SOV_soviet_airforce_air_training_xp_gain_factor = 0.05 }
			custom_effect_tooltip = SOV_women_in_aviation_ns_tt

			air_experience = 25
			set_rule = {
				can_generate_female_aces = yes
			}
		}
	}

	focus = {
		id = SOV_raskovas_aviation_group

		icon = GFX_women_in_aviation
		prerequisite = { focus = SOV_women_in_aviation }
		x = 1
		y = 1
		relative_position_id = SOV_women_in_aviation
		cost = 10

		available = {
			any_enemy_country = {
				SOV_is_major_not_original_sov = yes
			}
			has_full_control_of_state = 219 #MOSCOW
		}
		
		search_filters = {FOCUS_FILTER_AIR_XP}

		completion_reward = {
			add_to_variable = { SOV_soviet_airforce_air_night_penalty = -0.2 }
			add_to_variable = { SOV_soviet_airforce_air_wing_xp_loss_when_killed_factor = -0.1 }
			set_variable = { SOV_soviet_airforce_air_strategic_bomber_night_penalty = -0.1 }
			custom_effect_tooltip = SOV_raskovas_aviation_group_ns_tt

			custom_effect_tooltip = SOV_night_witches_nsb_tt
			hidden_effect = {
				if = {
					limit = {
						has_dlc = "By Blood Alone"
					}
					create_equipment_variant = {
						name = "U-2" #
						type = small_plane_cas_airframe_0
						modules = {
							fixed_main_weapon_slot = bomb_locks
							fixed_auxiliary_weapon_slot_1 = empty
							engine_type_slot = engine_1_1x
							special_type_slot_1 = non_strategic_materials_small
						}
					}
					create_equipment_variant = {
						name = "Pe-2" #
						type = small_plane_cas_airframe_2
						modules = {
							fixed_main_weapon_slot = small_bomb_bay
							fixed_auxiliary_weapon_slot_1 = light_mg_2x
							engine_type_slot = engine_2_2x
							special_type_slot_1 = lmg_defense_turret
							special_type_slot_2 = dive_brakes_small
						}
					}
					create_equipment_variant = {
						name = "Yak-1" #
						type = small_plane_airframe_1
						modules = {
							fixed_main_weapon_slot = aircraft_cannon_1_1x
							fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
							engine_type_slot = engine_2_1x
							special_type_slot_1 = non_strategic_materials_small
						}
					}
					if = {
						limit = {
							NOT = { has_government = communism }
						}
						
						load_oob = "SOV_night_witches_nsb_alt_bba"
						else = {
							load_oob = "SOV_night_witches_nsb_bba" #nested here because otherwise it is considered a nested else for the higher level if
						}
					}
				}
				else_if = { #ALT IDEOLOGY
					limit = {
						NOT = { has_government = communism }
					}
					load_oob = "SOV_night_witches_nsb_alt"
				}
				else = { #DEFAULT COMMUNISM
					load_oob = "SOV_night_witches_nsb"
				}
			}
		}
	}

	focus = {
		id = SOV_intensify_pilot_training_program

		icon = GFX_goal_generic_air_doctrine
		prerequisite = { focus = SOV_foster_flying_clubs }
		x = 0
		y = 2
		relative_position_id = SOV_foster_flying_clubs
		cost = 10

		mutually_exclusive = { focus = SOV_increase_aircraft_production }

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
		}
		
		search_filters = {FOCUS_FILTER_AIR_XP}

		completion_reward = {
			add_to_variable = { SOV_soviet_airforce_air_accidents_factor = -0.25 }
			add_to_variable = { SOV_soviet_airforce_air_ace_generation_chance_factor = 0.15 }
			add_to_variable = { SOV_soviet_airforce_air_night_penalty = -0.1 }
			add_to_variable = { SOV_soviet_airforce_air_weather_penalty = -0.15 }
			add_to_variable = { SOV_soviet_airforce_air_wing_xp_loss_when_killed_factor = -0.15 }
			add_to_variable = { SOV_soviet_airforce_air_fuel_consumption_factor = 0.1 }
			custom_effect_tooltip = SOV_intensify_pilot_training_program_ns_tt

			air_experience = 50
		}
	}

	focus = {
		id = SOV_expand_aviation_institutes

		icon = GFX_focus_generic_military_academy
		prerequisite = { focus = SOV_expand_the_aircraft_industry focus = SOV_foster_flying_clubs }
		x = 1
		y = 1
		relative_position_id = SOV_expand_the_aircraft_industry
		cost = 5
		
		search_filters = {FOCUS_FILTER_AIR_XP}

		completion_reward = {
			add_to_variable = { SOV_soviet_airforce_air_accidents_factor = -0.25 }
			add_to_variable = { SOV_soviet_airforce_air_weather_penalty = -0.1 }
			add_to_variable = { SOV_soviet_airforce_air_training_xp_gain_factor = 0.05 }
			add_to_variable = { SOV_soviet_airforce_air_wing_xp_loss_when_killed_factor = -0.15 }
			custom_effect_tooltip = SOV_expand_aviation_institutes_ns_tt
		}
	}

	focus = {
		id = SOV_ground_support

		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = SOV_increase_aircraft_production focus = SOV_intensify_pilot_training_program }
		x = 0
		y = 1
		relative_position_id = SOV_increase_aircraft_production
		cost = 10

		mutually_exclusive = { focus = SOV_long_range_aircraft }
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_to_variable = { SOV_soviet_airforce_air_cas_present_factor = 0.1 }
			custom_effect_tooltip = SOV_ground_support_ns_tt

			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = SOV_ground_support
					bonus = 0.75
					uses = 2
					technology = aa_cannon_1
					technology = aa_cannon_2
				}
				add_tech_bonus = {
					name = SOV_ground_support
					bonus = 0.75
					uses = 1
					category = medium_air
				}
			}
			else = {
				add_tech_bonus = {
					name = SOV_ground_support
					bonus = 0.75
					uses = 2
					category = light_fighter
					category = cas_bomber
				}
			}

		}
	}

	focus = {
		id = SOV_long_range_aircraft

		icon = GFX_goal_generic_air_bomber
		prerequisite = { focus = SOV_increase_aircraft_production focus = SOV_intensify_pilot_training_program }
		x = 0
		y = 1
		relative_position_id = SOV_intensify_pilot_training_program
		cost = 10

		mutually_exclusive = { focus = SOV_ground_support }
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_to_variable = { SOV_soviet_airforce_strategic_bomb_visibility = -0.1 }
			custom_effect_tooltip = SOV_long_range_aircraft_ns_tt

			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = SOV_long_range_aircraft
					bonus = 0.75
					uses = 2
					category = heavy_air
					category = medium_air
				}
			}
			else = {
				add_tech_bonus = {
					name = SOV_long_range_aircraft
					bonus = 0.75
					uses = 2
					category = cat_heavy_fighter
					category = tactical_bomber
					category = cat_strategic_bomber
				}
			}

		}
	}

	focus = {
		id = SOV_the_modern_war_in_the_skies

		icon = GFX_goal_generic_CAS
		prerequisite = { focus = SOV_ground_support focus = SOV_long_range_aircraft }
		x = 1
		y = 1
		relative_position_id = SOV_ground_support
		cost = 10
		
		search_filters = {FOCUS_FILTER_AIR_XP}

		completion_reward = {
			add_to_variable = { SOV_soviet_airforce_air_night_penalty = -0.1 }
			add_to_variable = { SOV_soviet_airforce_air_mission_efficiency = 0.1 } 
			custom_effect_tooltip = SOV_the_modern_war_in_the_skies_ns_tt

			air_experience = 50
		}
	}



##    ##    ###    ##     ## ##    ## 
###   ##   ## ##   ##     ##  ##  ##  
####  ##  ##   ##  ##     ##   ####   
## ## ## ##     ## ##     ##    ##    
##  #### #########  ##   ##     ##    
##   ### ##     ##   ## ##      ##    
##    ## ##     ##    ###       ##    


	focus = {
		id = SOV_expand_the_red_fleet

		icon = GFX_goal_generic_build_navy
		x = 6
		y = 0
		relative_position_id = SOV_transpolar_flights
		cost = 5

		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			navy_experience = 25
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = ships_bonus
				bonus = 1.0
				uses = 2
				category = naval_equipment
			}
		}
	}

	focus = {
		id = SOV_reinforce_western_naval_bases

		icon = GFX_focus_SOV_reinforce_western_naval_bases
		prerequisite = { focus = SOV_expand_the_red_fleet }
		x = -3
		y = 1
		relative_position_id = SOV_expand_the_red_fleet
		cost = 5

		available = {
			195 = { #LENINGRAD
				is_owned_and_controlled_by = ROOT
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			195 = { #LENINGRAD
				if = {
					limit = {
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = coastal_bunker
					level = 2
					instant_build = yes
					province = 3151
				}
				if = {
					limit = {
						ROOT = { has_tech = radio_detection }
						radar_station < 1
					}
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
				}
				else = {
					custom_effect_tooltip = SOV_reinforce_western_naval_bases_radar_tt
				}
				set_state_flag = SOV_naval_bases_reinforced_flag
			}
			
			custom_effect_tooltip = SOV_reinforce_western_naval_bases_other_states_tt

			if = { #HELSINKI (UUSIMAA)
				limit = {
					has_full_control_of_state = 111
				}
				111 = {
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 11105
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #TALLIN (HARNU)
				limit = {
					has_full_control_of_state = 812
				}
				812 = {
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 3152
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #RIGA
				limit = {
					has_full_control_of_state = 808
				}
				808 = {
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 9340
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #PALANGA (ŽEMAITIJA)
				limit = {
					has_full_control_of_state = 189
				}
				189 = {
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 6314
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
		}
	}

	focus = {
		id = SOV_reinforce_northern_naval_bases

		icon = GFX_focus_SOV_reinforce_northern_naval_bases
		prerequisite = { focus = SOV_expand_the_red_fleet }
		x = -1
		y = 1
		relative_position_id = SOV_expand_the_red_fleet
		cost = 5

		available = {
			OR = {
				213 = { #MURMANSK
					is_owned_and_controlled_by = ROOT
				}
				214 = { #ARKHANGELSK
					is_owned_and_controlled_by = ROOT
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			if = { #MURMANSK - Improved naval base + AA + coastal fort
				limit = {
					has_full_control_of_state = 213
				}
				213 = {
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 3134
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 3134
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #ARKHANGELSK - Improved naval base + Severodvinsk Naval Base + AA + coastal fort
				limit = {
					has_full_control_of_state = 214
				}
				214 = {
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 1
						instant_build = yes
						province = 3338
					}
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 312
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 3338
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 312
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
		}
	}

	focus = {
		id = SOV_reinforce_southern_naval_bases

		icon = GFX_focus_SOV_reinforce_southern_naval_bases
		prerequisite = { focus = SOV_expand_the_red_fleet }
		x = 1
		y = 1
		relative_position_id = SOV_expand_the_red_fleet
		cost = 5

		available = {
			OR = {
				192 = { #ODESSA
					is_owned_and_controlled_by = ROOT
				}
				137 = { #CRIMEA
					is_owned_and_controlled_by = ROOT
				}
				218 = { #ROSTOV
					is_owned_and_controlled_by = ROOT
				}
				234 = { #KRASNODAR
					is_owned_and_controlled_by = ROOT
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			if = { #ODESSA - Improved naval base + AA + coastal fort
				limit = {
					has_full_control_of_state = 192
				}
				192 = {
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 11670
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 11670
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #SEVASTOPOL (CRIMEA) - Extra AA + coastal fort
				limit = {
					has_full_control_of_state = 137
				}
				137 = {
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 3
						instant_build = yes
						province = 3686
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #ROSTOV - Improved naval base + AA + coastal fort
				limit = {
					has_full_control_of_state = 218
				}
				218 = {
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 9417
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 9417
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #KRASNODAR - Improved naval base + AA + coastal fort
				limit = {
					has_full_control_of_state = 234
				}
				234 = {
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 719
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 719
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
		}
	}

	focus = {
		id = SOV_reinforce_caspian_naval_bases

		icon = GFX_goal_coastal_navy
		prerequisite = { focus = SOV_reinforce_southern_naval_bases focus = SOV_reinforce_eastern_naval_bases }
		x = 1
		y = 1
		relative_position_id = SOV_reinforce_southern_naval_bases
		cost = 5

		available = {
			OR = {
				229 = { #ODESSA
					is_owned_and_controlled_by = ROOT
				}
				584 = { #CRIMEA
					is_owned_and_controlled_by = ROOT
				}
				587 = { #ROSTOV
					is_owned_and_controlled_by = ROOT
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			if = { #BAKU - Improved naval base + AA + coastal fort
				limit = {
					has_full_control_of_state = 229
				}
				229 = {
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 7661
					}
					add_building_construction = {
						type = coastal_bunker
						level = 3
						instant_build = yes
						province = 7661
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #KRASNOVODSK - Improved naval base + coastal fort
				limit = {
					has_full_control_of_state = 584
				}
				584 = {
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 7477
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 7477
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #MELOVOYE - Improved naval base + coastal fort
				limit = {
					has_full_control_of_state = 587
				}
				587 = {
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 1517
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 1517
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
		}
	}

	focus = {
		id = SOV_reinforce_eastern_naval_bases

		icon = GFX_focus_SOV_reinforce_eastern_naval_bases
		prerequisite = { focus = SOV_expand_the_red_fleet }
		x = 3
		y = 1
		relative_position_id = SOV_expand_the_red_fleet
		cost = 5

		available = {
			OR = {
				408 = { #VLADIVOSTOK
					is_owned_and_controlled_by = ROOT
				}
				409 = { #KHABAROVSK
					is_owned_and_controlled_by = ROOT
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			if = { #VLADIVOSTOK - Improved naval base + AA + coastal fort
				limit = {
					has_full_control_of_state = 408
				}
				408 = {
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 957
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 957
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
			if = { #VLADIVOSTOK - Improved naval base + AA + coastal fort
				limit = {
					has_full_control_of_state = 409
				}
				409 = {
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 9604
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 9604
					}
					set_state_flag = SOV_naval_bases_reinforced_flag
				}
			}
		}
	}

	focus = {
		id = SOV_expand_shipbuilding_plants

		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = SOV_reinforce_western_naval_bases focus = SOV_reinforce_northern_naval_bases focus = SOV_reinforce_southern_naval_bases focus = SOV_reinforce_eastern_naval_bases }
		x = 1
		y = 1
		relative_position_id = SOV_reinforce_northern_naval_bases
		cost = 10
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			custom_effect_tooltip = SOV_expand_shipbuilding_plants_tt
			every_owned_state = {
				limit = {
					has_state_flag = SOV_naval_bases_reinforced_flag
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				if = {
					limit = {
						state = 195 #LENINGRAD - Gets 2 dockyards instead of 1
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}
				}
				else = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
			
		}
	}

	focus = {
		id = SOV_merge_naval_plants

		icon = GFX_focus_SOV_merge_plants
		prerequisite = { focus = SOV_expand_shipbuilding_plants }
		x = -1
		y = 2
		relative_position_id = SOV_expand_shipbuilding_plants
		cost = 5

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				if = {
					limit = {
						has_dlc = "Man the Guns"
					}
					mio:SOV_nevskoye_design_bureau_organization = {
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_370
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_5
					}

					mio:SOV_rubin_design_bureau_organization = {
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_370
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_363
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_190
					}

					mio:SOV_black_sea_shipyard_organization = {
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_mariupol_plant
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_leninskaya_kuznitsa_plant
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_340
					}

					mio:SOV_sevastopol_marine_plant_organization = {
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_mariupol_plant
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_200
					}
				}
				else = {
					mio:SOV_nevskoye_design_bureau_organization = {
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_370_no_mtg
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_5
					}

					mio:SOV_rubin_design_bureau_organization = {
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_370_no_mtg
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_363
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_190
					}

					mio:SOV_black_sea_shipyard_organization = {
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_mariupol_plant_no_mtg
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_leninskaya_kuznitsa_plant
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_340
					}

					mio:SOV_sevastopol_marine_plant_organization = {
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_mariupol_plant_no_mtg
						unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_200
					}
				}
				
			}
			else = {
				custom_effect_tooltip = SOV_merge_naval_plants_tt
			}
		}
	}


	focus = {
		id = SOV_pc_of_the_ussr_navy

		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = SOV_expand_the_red_fleet }
		x = 4
		y = 2
		relative_position_id = SOV_expand_the_red_fleet
		cost = 5
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			hidden_effect = {
				if = {
					limit = {
						has_government = communism
					}
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_dynamic_modifier }
				}
				else = {
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_dynamic_modifier_alt }
				}
			}
			custom_effect_tooltip = SOV_pc_of_the_ussr_navy_ns_tt

			if = {
				limit = {
					has_government = communism
				}
				add_tech_bonus = {
					name = SOV_the_red_fleet_dynamic_modifier
					bonus = 1.0
					uses = 2
					category = ship_modules_tech
				}
			}
			else = {
				add_tech_bonus = {
					name = SOV_the_red_fleet_dynamic_modifier_alt
					bonus = 1.0
					uses = 2
					category = ship_modules_tech
				}
			}
		}
	}


	focus = {
		id = SOV_surface_warfare

		icon = GFX_focus_generic_destroyer
		prerequisite = { focus = SOV_pc_of_the_ussr_navy }
		x = -2
		y = 1
		relative_position_id = SOV_pc_of_the_ussr_navy
		cost = 10

		mutually_exclusive = { focus = SOV_submarine_warfare }
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			hidden_effect = {
				if = { #DEFAULT COMMIE
					limit = {
						has_government = communism
					}
					#Swap dynamic modifier to change dynamic modifier's custom tooltip
					remove_dynamic_modifier = { modifier = SOV_the_red_fleet_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_surface_1_dynamic_modifier }
				}
				else = { #ALT IDEOLOGY
					#Swap dynamic modifier to change dynamic modifier's custom tooltip
					remove_dynamic_modifier = { modifier = SOV_the_red_fleet_dynamic_modifier_alt }
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_surface_1_dynamic_modifier_alt }
				}
				#This handles the equipment bonus that's not supported by dynamic modifiers
				add_ideas = SOV_red_fleet_surface_bonus_1
			}
			custom_effect_tooltip = SOV_surface_warfare_ns_tt

			navy_experience = 15

			add_tech_bonus = {
				name = SOV_surface_warfare
				bonus = 1.0
				uses = 1
				category = dd_tech
			}
		}
	}

	focus = {
		id = SOV_submarine_warfare

		icon = GFX_goal_generic_navy_submarine
		prerequisite = { focus = SOV_pc_of_the_ussr_navy }
		x = 2
		y = 1
		relative_position_id = SOV_pc_of_the_ussr_navy
		cost = 10

		mutually_exclusive = { focus = SOV_surface_warfare }
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			hidden_effect = {
				if = { #DEFAULT COMMIE
					limit = {
						has_government = communism
					}
					#Swap dynamic modifier to change dynamic modifier's custom tooltip
					remove_dynamic_modifier = { modifier = SOV_the_red_fleet_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_submarine_1_dynamic_modifier }
				}
				else = { #ALT IDEOLOGY
					#Swap dynamic modifier to change dynamic modifier's custom tooltip
					remove_dynamic_modifier = { modifier = SOV_the_red_fleet_dynamic_modifier_alt }
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_submarine_1_dynamic_modifier_alt }
				}
				
				#This handles the equipment bonus that's not supported by dynamic modifiers
				add_ideas = SOV_red_fleet_submarine_bonus_1
			}
			custom_effect_tooltip = SOV_submarine_warfare_ns_tt

			navy_experience = 15

			add_tech_bonus = {
				name = SOV_submarine_warfare
				bonus = 1.0
				uses = 1
				category = ss_tech
			}
		}
	}

	focus = {
		id = SOV_offensive_maritime_strategy

		icon = GFX_goal_generic_battleship
		prerequisite = { focus = SOV_surface_warfare }
		x = -1
		y = 1
		relative_position_id = SOV_surface_warfare
		cost = 10

		available = {
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				has_tech = basic_ship_hull_heavy
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			hidden_effect = {
				if = { #DEFAULT COMMIE
					limit = {
						has_government = communism
					}
					#Swap dynamic modifier to change dynamic modifier's custom tooltip
					remove_dynamic_modifier = { modifier = SOV_the_red_fleet_surface_1_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_surface_2_dynamic_modifier }
				}
				else = { #ALT IDEOLOGY
					#Swap dynamic modifier to change dynamic modifier's custom tooltip
					remove_dynamic_modifier = { modifier = SOV_the_red_fleet_surface_1_dynamic_modifier_alt }
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_surface_2_dynamic_modifier_alt }
				}
				
				#Hidden National Spirits handle the equipment bonus that's not supported by dynamic modifiers
				swap_ideas = {
					remove_idea = SOV_red_fleet_surface_bonus_1
					add_idea = SOV_red_fleet_surface_bonus_2
				}
			}
			custom_effect_tooltip = SOV_offensive_maritime_strategy_ns_tt

			navy_experience = 25

			add_tech_bonus = {
				name = SOV_offensive_maritime_strategy
				bonus = 1.0
				uses = 1
				category = ca_tech
				category = cl_tech
			}

			#Kronshtadt Class Battlecruiser
			if = {
				limit = {
					NOT = { has_dlc = "Man the Guns" }
				}
				add_tech_bonus = {
					name = SOV_offensive_maritime_strategy
					bonus = 3.0
					uses = 1
					category = bc_tech	
				}
			}
			else = {
				create_equipment_variant = {
					name = "Kronshtadt Class"		
					type = ship_hull_heavy_2
					name_group = SOV_BC_HISTORICAL
					parent_version = 0
					modules = {
						fixed_ship_battery_slot = ship_heavy_battery_1
						fixed_ship_anti_air_slot = ship_anti_air_1
						fixed_ship_fire_control_system_slot = ship_fire_control_system_0
						fixed_ship_radar_slot = empty
						fixed_ship_engine_slot = heavy_ship_engine_2
						fixed_ship_secondaries_slot = ship_secondaries_1
						fixed_ship_armor_slot = ship_armor_bc_2
						front_1_custom_slot = ship_heavy_battery_1
						mid_1_custom_slot = ship_secondaries_1
						mid_2_custom_slot = ship_anti_air_1
						rear_1_custom_slot = ship_airplane_launcher_1
					}
				}

				#Line Production
				add_equipment_production = {
					equipment = {
						type = ship_hull_heavy_2
						creator = "SOV"
						version_name = "Kronshtadt Class"
					}
					requested_factories = 1
					progress = 0.50
					amount = 1 #Tooltip purposes
				}

				#Line Production
				add_equipment_production = {
					equipment = {
						type = ship_hull_heavy_2
						creator = "SOV"
						version_name = "Kronshtadt Class"
					}
					requested_factories = 1
					progress = 0.35
					amount = 1
				}
			}
			
		}
	}

	focus = {
		id = SOV_an_oceangoing_navy

		icon = GFX_goal_generic_large_fleet
		prerequisite = { focus = SOV_surface_warfare focus = SOV_submarine_warfare }
		x = 1
		y = 1
		relative_position_id = SOV_surface_warfare
		cost = 8

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				has_tech = basic_ship_hull_heavy
			}
		}
		
		search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			navy_experience = 25
			add_tech_bonus = {
				name = SOV_an_oceangoing_navy
				bonus = 1.0
				uses = 2
				category = bb_tech
			}

			#Sovietsky Soyuz Super-Heavy Battleship
			if = {
				limit = {
					NOT = { has_dlc = "Man the Guns" }
				}
				add_tech_bonus = {
					name = SOV_an_oceangoing_navy
					bonus = 3.0
					uses = 1
					category = shbb_tech	
				}
			}
			else = {
				#Grant SHBB Tech and required battery modules (not fire control)
				if = {
					limit = {
						NOT = { has_tech = ship_hull_super_heavy }
					}
					hidden_effect = {
						set_technology = {
							ship_hull_super_heavy = 1
						}
					}
					custom_effect_tooltip = SOV_an_oceangoing_navy_shbb_tt
				}
				create_equipment_variant = { #TODO_Manu: Engine should be 3 (but also should Yamato's)
					name = "Sovetsky Soyuz Class"
					type = ship_hull_super_heavy_1
					name_group = SOV_STATES
					parent_version = 0
					modules = {
						fixed_ship_battery_slot = ship_super_heavy_battery_1
						fixed_ship_anti_air_slot = ship_anti_air_2
						fixed_ship_fire_control_system_slot = ship_fire_control_system_1
						fixed_ship_radar_slot = empty
						fixed_ship_engine_slot = heavy_ship_engine_2
						fixed_ship_secondaries_slot = ship_secondaries_2
						fixed_ship_armor_slot = ship_armor_shbb
						front_1_custom_slot = ship_anti_air_2
						front_2_custom_slot = empty
						mid_1_custom_slot = empty
						mid_2_custom_slot = ship_secondaries_2
						mid_3_custom_slot = ship_secondaries_2
						rear_1_custom_slot = ship_super_heavy_battery_1
						rear_2_custom_slot = ship_airplane_launcher_1
					}
				}
				#Line Production
				add_equipment_production = {
					equipment = {
						type = ship_hull_super_heavy_1
						creator = "SOV"
						version_name = "Sovetsky Soyuz Class"
					}
					requested_factories = 1
					progress = 0.50
					amount = 1
				}
				add_equipment_production = {
					equipment = {
						type = ship_hull_super_heavy_1
						creator = "SOV"
						version_name = "Sovetsky Soyuz Class"
					}
					requested_factories = 1
					progress = 0.25
					amount = 1
				}
				add_equipment_production = {
					equipment = {
						type = ship_hull_super_heavy_1
						creator = "SOV"
						version_name = "Sovetsky Soyuz Class"
					}
					requested_factories = 1
					progress = 0.25
					amount = 1
				}
			}
		}
	}

	focus = {
		id = SOV_improve_our_naval_doctrine
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = SOV_surface_warfare focus = SOV_submarine_warfare }
		x = 2
		y = 2
		relative_position_id = SOV_surface_warfare
		cost = 10

		available_if_capitulated = yes


		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				all_owned_state = {
					OR = {
						is_coastal = no
						dockyard < 1
					}
				}
			}
		}

		completion_reward = {
			navy_experience = 25
			add_tech_bonus = {
				name = SOV_improve_our_naval_doctrine
				bonus = 1
				uses = 2
				category = naval_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SOV_mine_warfare

		icon = GFX_focus_generic_mine_warfare
		prerequisite = { focus = SOV_surface_warfare focus = SOV_submarine_warfare }
		x = -1
		y = 1
		relative_position_id = SOV_submarine_warfare
		cost = 10
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_ideas = SOV_mine_warfare_ns

			add_tech_bonus = {
				name = SOV_mine_warfare
				bonus = 1.0
				uses = 2
				category = naval_mines
			}
		}
	}

	focus = {
		id = SOV_long_range_raiders

		icon = GFX_goal_generic_navy_anti_submarine
		prerequisite = { focus = SOV_submarine_warfare }
		x = 1
		y = 1
		relative_position_id = SOV_submarine_warfare
		cost = 10
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			hidden_effect = {
				if = { #DEFAULT COMMIE
					limit = {
						has_government = communism
					}
					#Swap dynamic modifier to change dynamic modifier's custom tooltip
					remove_dynamic_modifier = { modifier = SOV_the_red_fleet_submarine_1_dynamic_modifier }
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_submarine_2_dynamic_modifier }
				}
				else = { #ALT IDEOLOGY
					#Swap dynamic modifier to change dynamic modifier's custom tooltip
					remove_dynamic_modifier = { modifier = SOV_the_red_fleet_submarine_1_dynamic_modifier_alt }
					add_dynamic_modifier = { modifier = SOV_the_red_fleet_submarine_2_dynamic_modifier_alt }
				}
				
				#Hidden National Spirits handle the equipment bonus that's not supported by dynamic modifiers
				swap_ideas = {
					remove_idea = SOV_red_fleet_submarine_bonus_1
					add_idea = SOV_red_fleet_submarine_bonus_2
				}
			}
			custom_effect_tooltip = SOV_submarine_warfare_ns_tt

			navy_experience = 25

			add_tech_bonus = {
				name = SOV_long_range_raiders
				ahead_reduction = 2
				uses = 1
				category = ss_tech
			}
			set_technology = { cruiser_submarines = 1 }

			###########
			### MTG ###
			###########
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				create_equipment_variant = {
					name = "K Class"
					type = ship_hull_cruiser_submarine
					name_group = SOV_SS_CLASS_K
					parent_version = 0
					modules = {
						fixed_ship_torpedo_slot = ship_torpedo_sub_2
						fixed_ship_engine_slot = sub_ship_engine_2
						front_1_custom_slot = ship_mine_layer_sub
						mid_1_custom_slot = empty
						rear_1_custom_slot = ship_torpedo_sub_2
					}
				}
				#Line Production
				add_equipment_production = {
					equipment = {
						type = ship_hull_cruiser_submarine
						creator = "SOV"
						version_name = "K Class"
					}
					name = "K-1"
					requested_factories = 1
					progress = 0.35
					amount = 1
				}
				add_equipment_production = {
					equipment = {
						type = ship_hull_cruiser_submarine
						creator = "SOV"
						version_name = "K Class"
					}
					name = "K-2"
					requested_factories = 1
					progress = 0.35
					amount = 1
				}
			}

			##############
			### NO MTG ###
			##############
			else = {
				if = { #Submarine 3 if available
					limit = {
						has_tech = improved_submarine
					}
					add_equipment_production = {
						equipment = {
							type = submarine_3
							creator = "SOV"
							version_name = "K Class"
						}
						requested_factories = 1
						progress = 0.35
						amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = submarine_3
							creator = "SOV"
							version_name = "K Class"
						}
						requested_factories = 1
						progress = 0.35
						amount = 1
					}
				}
				else = { #Submarine 2 as default
					add_equipment_production = {
						equipment = {
							type = submarine_2
							creator = "SOV"
							version_name = "K Class"
						}
						requested_factories = 1
						progress = 0.35
						amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = submarine_2
							creator = "SOV"
							version_name = "K Class"
						}
						requested_factories = 1
						progress = 0.35
						amount = 1
					}
				}
			}
		}
	}

	focus = {
		id = SOV_advanced_maneuvers

		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = SOV_expand_shipbuilding_plants }
		prerequisite = { focus = SOV_an_oceangoing_navy }
		x = 0
		y = 3
		relative_position_id = SOV_expand_shipbuilding_plants
		cost = 8

		available = {
		}
		
		search_filters = {FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			set_variable = { SOV_red_fleet_naval_coordination = 0.1 }
			set_variable = { SOV_red_fleet_navy_visibility = -0.05 }
			set_variable = { SOV_red_fleet_positioning = 0.1 }
			set_variable = { SOV_red_fleet_screening_efficiency = 0.1 }
			custom_effect_tooltip = SOV_advanced_maneuvers_ns_tt

			navy_experience = 50
		}
	}

	focus = {
		id = SOV_expand_the_morskaya_aviatsiya

		icon = GFX_goal_generic_navy_carrier
		prerequisite = { focus = SOV_increase_aircraft_production focus = SOV_intensify_pilot_training_program }
		prerequisite = { focus = SOV_advanced_maneuvers }
		x = -2
		y = 1
		relative_position_id = SOV_advanced_maneuvers
		cost = 10
		
		search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			navy_experience = 25
			air_experience = 25
			add_tech_bonus = {
				name = SOV_expand_the_morskaya_aviatsiya
				bonus = 1
				uses = 2
				category = cv_tech
				category = naval_air
			}

			###########
			### MTG ###
			###########
			if = { #MTG 
				limit = {
					has_dlc = "Man the Guns"
				}
				if = {
					limit = { #Carrier 4 
						has_tech = advanced_ship_hull_carrier
					}
					#Equipment Variant
					create_equipment_variant = {
						name = "Project 71 Class"
						type = ship_hull_carrier_3
						name_group = SOV_CV_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_deck_slot_1 = ship_deck_space
							fixed_ship_deck_slot_2 = ship_deck_space
							fixed_ship_anti_air_slot = ship_anti_air_2
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = carrier_ship_engine_4
							fixed_ship_secondaries_slot = ship_secondaries_1
							front_1_custom_slot = ship_deck_space
						}
					}
					#Line Production
					add_equipment_production = {
						equipment = {
							type = ship_hull_carrier_3
							creator = "SOV"
							version_name = "Project 71 Class"
						}
						name = "Siberia"
						requested_factories = 1
						progress = 0.45
						amount = 1
					}
				}
				else_if = {
					limit = { #Carrier 3
						has_tech = improved_ship_hull_carrier
					}
					#Equipment Variant
					create_equipment_variant = {
						name = "Project 71 Class"
						type = ship_hull_carrier_2
						name_group = SOV_CV_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_deck_slot_1 = ship_deck_space
							fixed_ship_deck_slot_2 = ship_deck_space
							fixed_ship_anti_air_slot = ship_anti_air_2
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = carrier_ship_engine_3
							fixed_ship_secondaries_slot = ship_secondaries_1
							front_1_custom_slot = ship_deck_space
						}
					}
					#Line Production
					add_equipment_production = {
						equipment = {
							type = ship_hull_carrier_2
							creator = "SOV"
							version_name = "Project 71 Class"
						}
						name = "Siberia"
						requested_factories = 1
						progress = 0.45
						amount = 1
					}
				}
				else_if = {
					limit = { #Carrier 2
						has_tech = basic_ship_hull_carrier
					}
					#Equipment Variant
					create_equipment_variant = {
						name = "Project 71 Class"
						type = ship_hull_carrier_1
						name_group = SOV_CV_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_deck_slot_1 = ship_deck_space
							fixed_ship_deck_slot_2 = ship_deck_space
							fixed_ship_anti_air_slot = ship_anti_air_2
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = carrier_ship_engine_2
							fixed_ship_secondaries_slot = ship_secondaries_1
							front_1_custom_slot = ship_deck_space
						}
					}
					#Line Production
					add_equipment_production = {
						equipment = {
							type = ship_hull_carrier_1
							creator = "SOV"
							version_name = "Project 71 Class"
						}
						name = "Siberia"
						requested_factories = 1
						progress = 0.45
						amount = 1
					}
				}
				else = {  #Carrier 1
					if = {
						limit = {
							NOT = { has_tech = early_ship_hull_carrier }
						}
						set_technology = { early_ship_hull_carrier = 1 }
					}
					#Equipment Variant
					create_equipment_variant = {
						name = "Project 71 Class"
						type = ship_hull_carrier_conversion_ca
						name_group = SOV_CV_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_deck_slot_1 = ship_deck_space
							fixed_ship_deck_slot_2 = ship_deck_space
							fixed_ship_anti_air_slot = ship_anti_air_2
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = carrier_ship_engine_1
							fixed_ship_secondaries_slot = ship_secondaries_1
						}
					}
					#Line Production
					add_equipment_production = {
						equipment = {
							type = ship_hull_carrier_conversion_ca
							creator = "SOV"
							version_name = "Project 71 Class"
						}
						name = "Siberia"
						requested_factories = 1
						progress = 0.45
						amount = 1
					}
				}
			}

			##############
			### NO MTG ###
			##############
			else = {
				if = {
					limit = { #Carrier 4 
						has_tech = advanced_carrier
					}
					add_equipment_production = {
						equipment = {
							type = carrier_4
							creator = "SOV"
							version_name = "Project 71 Class"
						}
						requested_factories = 1
						progress = 0.45
						amount = 1
					}
				}
				else_if = {
					limit = { #Carrier 3
						has_tech = improved_carrier
					}
					add_equipment_production = {
						equipment = {
							type = carrier_3
							creator = "SOV"
							version_name = "Project 71 Class"
						}
						requested_factories = 1
						progress = 0.45
						amount = 1
					}
				}
				else_if = {
					limit = { #Carrier 2
						has_tech = basic_carrier
					}
					add_equipment_production = {
						equipment = {
							type = carrier_2
							creator = "SOV"
							version_name = "Project 71 Class"
						}
						requested_factories = 1
						progress = 0.45
						amount = 1
					}
				}
				else = {  #Carrier 1
					if = {
						limit = {
							NOT = { has_tech = early_carrier }
						}
						set_technology = { early_carrier = 1 }
					}
					add_equipment_production = {
						equipment = {
							type = carrier_1
							creator = "SOV"
							version_name = "Project 71 Class"
						}
						requested_factories = 1
						progress = 0.45
						amount = 1
					}
				}
			}
		}
	}

	focus = {
		id = SOV_naval_infantry

		icon = GFX_goal_generic_amphibious_assault
		prerequisite = { focus = SOV_advanced_maneuvers }
		x = 0
		y = 1
		relative_position_id = SOV_advanced_maneuvers
		cost = 10
		
		search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP FOCUS_FILTER_ARMY_XP}

		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_potential_special_forces_tree = yes
				add_doctrine_cost_reduction = {
					name = SOV_naval_infantry
					cost_reduction = 0.25
					uses = 2
					category = special_forces_doctrine
				}
			}
			else = {
				set_variable = { SOV_red_fleet_naval_invasion_capacity = 10 }
				set_variable = { SOV_red_fleet_invasion_preparation = -0.1 }
				set_variable = { SOV_red_fleet_special_forces_cap = 0.1 }
				custom_effect_tooltip = SOV_naval_infantry_ns_tt
				
				add_tech_bonus = {
					name = SOV_naval_infantry
					bonus = 1
					uses = 1
					category = marine_tech
				}
			}

			navy_experience = 25
			army_experience = 25
		}
	}



##     ## #### ##       #### ########    ###    ########  ##    ## 
###   ###  ##  ##        ##     ##      ## ##   ##     ##  ##  ##  
#### ####  ##  ##        ##     ##     ##   ##  ##     ##   ####   
## ### ##  ##  ##        ##     ##    ##     ## ########     ##    
##     ##  ##  ##        ##     ##    ######### ##   ##      ##    
##     ##  ##  ##        ##     ##    ##     ## ##    ##     ##    
##     ## #### ######## ####    ##    ##     ## ##     ##    ##    



	focus = {
		id = SOV_found_the_pcdi

		icon = GFX_goal_generic_gun_purchase
		x = 15
		y = 0
		relative_position_id = SOV_expand_the_red_fleet
		cost = 5

		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			hidden_effect = {
				add_dynamic_modifier = { modifier = SOV_defense_industry_dynamic_modifier }
			}
			custom_effect_tooltip = SOV_found_the_pcdi_ns_tt
		}
	}

	focus = {
		id = SOV_pc_of_mechanical_engineering

		icon = GFX_goal_generic_production2
		prerequisite = { focus = SOV_found_the_pcdi }
		x = -5
		y = 1
		relative_position_id = SOV_found_the_pcdi
		cost = 5

		available = {
			has_full_control_of_state = 219 #MOSCOW
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_to_variable = { SOV_defense_industry_production_factory_max_efficiency_factor = 0.05 }
			custom_effect_tooltip = SOV_pc_of_mechanical_engineering_ns_tt

			if = { #DEFAULT COMMIE
				limit = {
					has_government = communism
				}
				add_tech_bonus = {
					name = SOV_pc_of_mechanical_engineering_name_default
					bonus = 1
					uses = 2
					category = motorized_equipment
					category = infantry_weapons
				}
			}
			else = { #ALT IDEOLOGY
				add_tech_bonus = {
					name = SOV_pc_of_mechanical_engineering_name_alt
					bonus = 1
					uses = 2
					category = motorized_equipment
					category = infantry_weapons
				}
			}
			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = SOV_superior_war_machines

		icon = GFX_focus_generic_tank_production
		prerequisite = { focus = SOV_pc_of_mechanical_engineering }
		x = -1
		y = 1
		relative_position_id = SOV_pc_of_mechanical_engineering
		cost = 10

		available = {
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				has_tech = improved_medium_tank_chassis
			}
			else = {
				has_tech = improved_medium_tank
			}
		}
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			set_variable = { SOV_defense_industry_tank_manufacturer_cost_factor = -0.25 }
			custom_effect_tooltip = SOV_superior_war_machines_ns_tt

			add_tech_bonus = {
				name = SOV_superior_war_machines
				bonus = 0.75
				uses = 2
				category = armor
			}
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				#T-34 tank template
				if = {
					limit = {
						OR = {
							has_tech = artillery3
							has_tech = antitank3
						}
					}
					create_equipment_variant = {
						name = "T-34"
						type = medium_tank_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_two_man_tank_turret
							suspension_type_slot = tank_christie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = sloped_armor
						}
						upgrades = {
							tank_nsb_engine_upgrade = 10
							tank_nsb_armor_upgrade = 7
						}
						icon = "GFX_SOV_improved_medium_tank_medium"
					}
				}
				else_if = {
					limit = {
						OR = {
							has_tech = artillery1
							has_tech = antitank1
						}
					}
					create_equipment_variant = {
						name = "T-34"
						type = medium_tank_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon
							turret_type_slot = tank_medium_two_man_tank_turret
							suspension_type_slot = tank_christie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = sloped_armor
						}
						upgrades = {
							tank_nsb_engine_upgrade = 10
							tank_nsb_armor_upgrade = 7
						}
						icon = "GFX_SOV_improved_medium_tank_medium"
					}
				}
				else_if = { #Why? You ruined your T-34
					limit = {
						has_tech = interwar_artillery
					}
					create_equipment_variant = {
						name = "T-34"
						type = medium_tank_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_small_cannon_2
							turret_type_slot = tank_medium_two_man_tank_turret
							suspension_type_slot = tank_christie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = sloped_armor
						}
						upgrades = {
							tank_nsb_engine_upgrade = 10
							tank_nsb_armor_upgrade = 7
						}
						icon = "GFX_SOV_improved_medium_tank_medium"
					}
				}
				else = { #Don't do this to yourself dude
					create_equipment_variant = {
						name = "T-34"
						type = medium_tank_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_small_cannon
							turret_type_slot = tank_medium_two_man_tank_turret
							suspension_type_slot = tank_christie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = sloped_armor
						}
						upgrades = {
							tank_nsb_engine_upgrade = 10
							tank_nsb_armor_upgrade = 7
						}
						icon = "GFX_SOV_improved_medium_tank_medium"
					}
				}
			}
			
			#SU-85/100 tank template (AT)
			if = {
				limit = {
					has_tech = antitank5
				}
				create_equipment_variant = {
					name = "SU-100"
					type = medium_tank_destroyer_chassis_2
					parent_version = 0
					modules = {
						main_armament_slot = tank_high_velocity_cannon_3
						turret_type_slot = tank_medium_fixed_superstructure_turret
						suspension_type_slot = tank_christie_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = sloped_armor
					}
					upgrades = {
						tank_nsb_engine_upgrade = 10
						tank_nsb_armor_upgrade = 8
					}
					icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_SOV_medium_tank_03_TD.dds"	#changed it, for the icon was apparently missing
				}
			}
			else_if = {
				limit = {
					has_tech = antitank2
				}
				create_equipment_variant = {
					name = "SU-100"
					type = medium_tank_destroyer_chassis_2
					parent_version = 0
					modules = {
						main_armament_slot = tank_high_velocity_cannon_2
						turret_type_slot = tank_medium_fixed_superstructure_turret
						suspension_type_slot = tank_christie_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = sloped_armor
					}
					upgrades = {
						tank_nsb_engine_upgrade = 10
						tank_nsb_armor_upgrade = 8
					}
					icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_SOV_medium_tank_02_TD.dds"	#changed it, for the icon was apparently missing
				}
			}
			else_if = { #You really should invest some time in research AT...
				limit = {
					has_tech = interwar_antitank
				}
				create_equipment_variant = {
					name = "SU-85"
					type = medium_tank_destroyer_chassis_2
					parent_version = 0
					modules = {
						main_armament_slot = tank_high_velocity_cannon
						turret_type_slot = tank_medium_fixed_superstructure_turret
						suspension_type_slot = tank_christie_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = sloped_armor
					}
					upgrades = {
						tank_nsb_engine_upgrade = 10
						tank_nsb_armor_upgrade = 8
					}
					icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_SOV_medium_tank_01_TD.dds"	#changed it, for the icon was apparently missing
				}
			}
			else = { #This is just blasphemy
				create_equipment_variant = {
					name = "SU-85"
					type = medium_tank_destroyer_chassis_2
					parent_version = 0
					modules = {
						main_armament_slot = tank_heavy_cannon
						turret_type_slot = tank_medium_fixed_superstructure_turret
						suspension_type_slot = tank_christie_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = sloped_armor
					}
					upgrades = {
						tank_nsb_engine_upgrade = 10
						tank_nsb_armor_upgrade = 8
					}
					icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_SOV_medium_tank_01_TD.dds"	#changed it, for the icon was apparently missing
				}
			}
		}
	}

	focus = {
		id = SOV_the_means_to_wage_war

		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = SOV_pc_of_mechanical_engineering }
		x = 1
		y = 1
		relative_position_id = SOV_pc_of_mechanical_engineering
		cost = 10
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			set_variable = { SOV_defense_industry_materiel_manufacturer_cost_factor = -0.25 }
			custom_effect_tooltip = SOV_the_means_to_wage_war_ns_tt

			add_tech_bonus = {
				name = SOV_the_means_to_wage_war
				bonus = 0.75
				uses = 2
				category = support_tech
			}
		}
	}

	focus = {
		id = SOV_soviet_artillery

		icon = GFX_goal_generic_army_artillery
		prerequisite = { focus = SOV_superior_war_machines }
		x = -1
		y = 1
		relative_position_id = SOV_superior_war_machines
		cost = 10

		available = {
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			if = {
				limit = {
					has_government = communism
				}
				add_tech_bonus = {
					name = SOV_soviet_artillery_tech_bonus_name_default
					bonus = 0.75
					uses = 1
					ahead_reduction = 1
					category = artillery
				}
			}
			else  ={
				add_tech_bonus = {
					name = SOV_soviet_artillery_tech_bonus_name_alt
					bonus = 0.75
					uses = 1
					ahead_reduction = 1
					category = artillery
				}
			}
			
			if = { # 2 Mils in Chelyabinsk
				limit = {
					has_full_control_of_state = 572
					572 = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
				}
				572 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			else = { # If Chelyabinsk not available, then 1 Mil elsewhere
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						arms_factory > 1
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}

			add_ideas = SOV_defense_industry_artillery_bonus

			#SU-122 tank template (SPG)
			if = {
				limit = {
					has_tech = artillery4
				}
				create_equipment_variant = {
					name = "SU-122"
					type = medium_tank_artillery_chassis_2
					parent_version = 0
					modules = {
						main_armament_slot = tank_heavy_howitzer
						turret_type_slot = tank_medium_fixed_superstructure_turret
						suspension_type_slot = tank_bogie_suspension
						armor_type_slot = tank_riveted_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = sloped_armor
					}
					upgrades = {
						tank_nsb_engine_upgrade = 10
						tank_nsb_armor_upgrade = 8
					}
					icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_SOV_medium_tank_03_SPA.dds"	#changed it, for the icon was apparently missing
				}
			}
			else_if = {
				limit = {
					has_tech = artillery1
				}
				create_equipment_variant = {
					name = "SU-122"
					type = medium_tank_artillery_chassis_2
					parent_version = 0
					modules = {
						main_armament_slot = tank_medium_howitzer_2
						turret_type_slot = tank_medium_fixed_superstructure_turret
						suspension_type_slot = tank_bogie_suspension
						armor_type_slot = tank_riveted_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = sloped_armor
					}
					upgrades = {
						tank_nsb_engine_upgrade = 10
						tank_nsb_armor_upgrade = 8
					}
					icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_SOV_medium_tank_02_SPA.dds"	#changed it, for the icon was apparently missing
				}
			}
			else = { #You really need some arty research
				create_equipment_variant = {
					name = "SU-122"
					type = medium_tank_artillery_chassis_2
					parent_version = 0
					modules = {
						main_armament_slot = tank_medium_howitzer
						turret_type_slot = tank_medium_fixed_superstructure_turret
						suspension_type_slot = tank_bogie_suspension
						armor_type_slot = tank_riveted_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = sloped_armor
					}
					upgrades = {
						tank_nsb_engine_upgrade = 10
						tank_nsb_armor_upgrade = 8
					}
					icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_SOV_medium_tank_01_SPA.dds"	#changed it, for the icon was apparently missing
				}
			}
		}
	}
	
	focus = {
		id = SOV_sing_katyusha_sing_focus
		icon = GFX_goal_soviet_rocketry
		prerequisite = { focus = SOV_soviet_artillery }
		available = {
			any_other_country = {
				is_major = yes
				has_war_with = ROOT
			}
			has_tech = motorized_rocket_unit
		}
		x = 0
		y = 2
		relative_position_id = SOV_soviet_artillery
		cost = 5
		ai_will_do = {
			factor = 5
		}

		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:SOV_gaz_organization = {
					add_mio_funds = 500

					complete_mio_trait = SOV_mio_trait_katyusha_rocket_production
				}						
			}
			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = SOV_voronezh_komintern_factory
				custom_effect_tooltip = manufacturer_applies_bonus_instantly_tooltip				
			}


			add_ideas = SOV_sing_katyusha_sing

		}
	}

	focus = {
		id = SOV_pc_of_mortar_armament

		icon = GFX_goal_generic_occupy_start_war
		prerequisite = { focus = SOV_pc_of_mechanical_engineering }
		x = 0
		y = 2
		relative_position_id = SOV_pc_of_mechanical_engineering
		cost = 10

		available = {
			has_full_control_of_state = 219 #MOSCOW
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_to_variable = { SOV_defense_industry_breakthrough_factor = 0.05 }
			add_to_variable = { SOV_defense_industry_army_artillery_defence_factor = 0.05 }
			custom_effect_tooltip = SOV_pc_of_mortar_armament_ns_tt

			if = { #DEFAULT COMMIE
				limit = {
					has_government = communism
				}
				add_tech_bonus = {
					name = SOV_pc_of_mortar_armament_name_default
					bonus = 0.75
					uses = 1
					category = artillery
				}
			}
			else = { #ALT IDEOLOGY
				add_tech_bonus = {
					name = SOV_pc_of_mortar_armament_name_alt
					bonus = 0.75
					uses = 1
					category = artillery
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = SOV_development_of_tankograd

		icon = GFX_goal_SOV_tankograd
		prerequisite = { focus = SOV_the_means_to_wage_war }
		x = 1
		y = 1
		relative_position_id = SOV_the_means_to_wage_war
		cost = 10

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			custom_trigger_tooltip = {
				tooltip = SOV_fyp_controlled_factories_tier_4_tt
				NOT = { num_of_controlled_factories < SOV_fyp_factory_requirement_tier_4 }
			}
			#TODO_Manu: This could require X num of factories to have been relocated
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ARMY_XP}

		completion_reward = {
			add_to_variable = { SOV_defense_industry_land_equipment_upgrade_xp_cost = -0.1 }
			custom_effect_tooltip = SOV_development_of_tankograd_ns_tt

			custom_effect_tooltip = SOV_development_of_tankograd_factories_tt
			#This is just for tooltip purposes
			effect_tooltip = {
				every_owned_state = {
					limit = {
						is_on_continent = asia
						arms_factory > 2
						free_building_slots = {
							building = arms_factory
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}

			#Actual effects
			set_temp_variable = { temp_targets_index = 0 }
			while_loop_effect = {
				limit = {
					check_variable = { temp_targets_index = 10 compare = less_than }
				}
				hidden_effect = {
					random_owned_state = {
						limit = {
							is_on_continent = asia
							arms_factory > 2
							free_building_slots = {
								building = arms_factory
								size > 1
								include_locked = yes
							}
							NOT = { has_state_flag = SOV_development_of_tankograd_flag }
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = arms_factory
							level = 1
							instant_build = yes
						}
						set_state_flag = SOV_development_of_tankograd_flag
						add_to_temp_variable = { SOV.temp_targets_index = 1 }
						log = "Round [?SOV.temp_targets_index]"
					}
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = r56_SOV_development_of_tankograd_tt
			hidden_effect = {
				IF = {
					limit = { 
						572 = {
							is_fully_controlled_by = ROOT
							air_facility < 1
							land_facility < 1
							naval_facility < 1
							nuclear_facility < 1
						}
					}

					572 = {
						add_building_construction = {
							type = land_facility
							level = 1
							instant_build = yes
							province = 9292 # Chelyabinsk
						}
					}
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = {
				localization_key = available_scientist_one_line_tt
				CHARACTER = SOV_joseph_yakovlevich_kotin
			}	
		}
	}

	focus = {
		id = SOV_mass_tank_production
		icon = GFX_focus_generic_tank_production
		prerequisite = { focus = SOV_development_of_tankograd }
		x = 0
		y = 2
		cost = 10
		ai_will_do = {
			factor = 20			
		}
		relative_position_id = SOV_development_of_tankograd
		cancel_if_invalid = no
		available = {
			OR = {
				has_idea = war_economy
				has_idea = tot_economic_mobilisation
			}
			has_war = yes
			any_enemy_country = {
				is_major = yes
			}
		}

		completion_reward = {
			add_ideas = SOV_mass_tank_procution_idea
		}
	}

	focus = {
		id = SOV_merge_tank_and_materiel_plants

		icon = GFX_focus_SOV_merge_plants
		prerequisite = { focus = SOV_development_of_tankograd focus = SOV_pc_of_mortar_armament focus = SOV_soviet_artillery }

		x = 0
		y = 1
		relative_position_id = SOV_pc_of_mortar_armament
		cost = 5

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				#TANKS
				every_military_industrial_organization = {
					limit = {
						has_mio_trait = SOV_mio_trait_merge_plant_no_174 #All Tank MIOs have this trait
					}
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_174
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_112
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_ural_heavy_machine_building_plant
				}

				#MATERIEL
				every_military_industrial_organization = {
					limit = {
						has_mio_trait = SOV_mio_trait_merge_nkmz_plant #All Materiel MIOs have this trait
					}
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_nkmz_plant
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_magnitogorsk_metallurgical_plant
				}
				mio:SOV_grabin_design_bureau_organization = {
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_172
				}
				mio:SOV_tula_arms_plant_organization = {
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_plant_no_622
				}
				mio:SOV_gaz_organization = {
					unlock_mio_trait_tooltip = SOV_mio_trait_merge_automobile_tool_plant
				}
			}
			else = {
				custom_effect_tooltip = SOV_merge_tank_and_materiel_plants_tt
			}
		}
	}

	focus = {
		id = SOV_mass_firearms_production
		icon = GFX_goal_ammunitions
		prerequisite = { focus = SOV_merge_tank_and_materiel_plants }
		available = {
			any_other_country = {
				is_major = yes
				has_war_with = ROOT
			}
			OR = {
				has_idea = war_economy
				has_idea = tot_economic_mobilisation
			}			
		}
		x = 0
		y = 1
		relative_position_id = SOV_merge_tank_and_materiel_plants
		cost = 5	#was 10
		ai_will_do = {
			factor = 55
		}

		available_if_capitulated = yes

		completion_reward = {
			add_ideas = SOV_mass_firearms_production
		}
	}
	focus = {
		id = SOV_shocktroops
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = SOV_mass_firearms_production }
		available = {
			any_other_country = {
				is_major = yes
				has_war_with = ROOT
			}
			OR = {
				has_idea = war_economy
				has_idea = tot_economic_mobilisation
			}			
		}
		x = 0
		y = 1
		relative_position_id = SOV_mass_firearms_production
		cost = 10
		ai_will_do = {
			factor = 55
		}

		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = special_forces_bonus
				bonus = 1
				uses = 2

				category = r56_shock_infantry_tech
			}
			add_tech_bonus = {
				name = special_forces_bonus
				bonus = 1.0
				uses = 2
				category = r56_special_forces_training_tech 
			}
		}
	}

	focus = {
		id = SOV_strengthen_the_mobilization_plan
		icon = GFX_focus_SOV_mobilization_plan
		x = 7
		y = 0
		relative_position_id = SOV_found_the_pcdi
		cost = 5

		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_MANPOWER}

		completion_reward = {
			add_to_variable = { SOV_the_red_army_experience_gain_army_factor = 0.10 }
			add_to_variable = { SOV_the_red_army_mobilization_speed = 0.05 }
			add_to_variable = { SOV_the_red_army_conscription_factor = 0.03 }
			custom_effect_tooltip = SOV_strengthen_the_mobilization_plan_ns_tt
		}
	}

	focus = {
		id = SOV_military_engineering_university
		icon = GFX_focus_generic_military_academy
		prerequisite = { focus = SOV_found_the_pcdi }
		prerequisite = { focus = SOV_strengthen_the_mobilization_plan }
		x = 3
		y = 1
		relative_position_id = SOV_found_the_pcdi
		cost = 5

		completion_reward = {
			add_to_variable = { SOV_defense_industry_production_speed_coastal_bunker_factor = 0.05 }
			add_to_variable = { SOV_defense_industry_production_speed_bunker_factor = 0.05 }
			add_to_variable = { SOV_defense_industry_max_dig_in_factor = 0.05 }
			custom_effect_tooltip = SOV_military_engineering_university_ns_tt

			custom_effect_tooltip = generic_skip_one_line_tt

			add_tech_bonus = {
				bonus = 1
				uses = 1
				category = armor
			}
		}
	}

	focus = {
		id = SOV_leningrad_polytechnical_institute
		icon = GFX_focus_research
		prerequisite = { focus = SOV_the_means_to_wage_war }
		prerequisite = { focus = SOV_military_engineering_university }
		x = 2
		y = 2
		relative_position_id = SOV_the_means_to_wage_war
		cost = 5
		dynamic = yes 
		available = {
			has_completed_focus = SOV_pc_of_mechanical_engineering	#that way it is 140 days instead of possible 70
			has_war_with_major = yes
		}
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = SOV_soviet_atomic_bomb_project
		icon = GFX_focus_wonderweapons
		prerequisite = { focus = SOV_leningrad_polytechnical_institute }
		x = 0
		y = 2
		relative_position_id = SOV_leningrad_polytechnical_institute
		cost = 10

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_national_academies_of_sciences_available_tt
				set_temp_variable = { SOV_current_academies = SOV_academy_of_sciences_research_speed_factor } #This is a factor (0.X value)
				multiply_temp_variable = { SOV_current_academies = 100 } #Now it is possible to track the current number of civs
				check_variable = { SOV_current_academies = SOV_academies_required_for_atomic_bomb_project compare = greater_than_or_equals }
			}
			is_subject = no
		}
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			IF = {
				limit = {
					NOT = {
						has_tech = atomic_research
					}
				}
				add_tech_bonus = {
					name = SOV_soviet_atomic_bomb_project_tech_bonus_name
					bonus = 1
					uses = 1
					ahead_reduction = 1
					category = nuclear
				}
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.5
				}
			}
			ELSE = {
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.8
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = { 
					588 = {
						is_fully_controlled_by = ROOT
					}
				}
				custom_effect_tooltip = SOV_soviet_atomic_bomb_project_tt
			}
			hidden_effect = {
				IF = {
					limit = { 
						588 = {
							is_fully_controlled_by = ROOT
							air_facility < 1
							land_facility < 1
							naval_facility < 1
							nuclear_facility < 1
						}
					}

					588 = {
						add_building_construction = {
							type = nuclear_facility
							level = 1
							instant_build = yes
							province = 7350 # Kurchatov
						}
						add_victory_points = {
							province = 7350
							value = 1
						}	
					}
				}
			}

		

			if = {
				limit = {
					has_dlc = "La Resistance"
				}

				custom_effect_tooltip = generic_skip_one_line_tt
				
				create_operative_leader = {
					name = "Ursula Kuczynski"
					GFX = GFX_Portrait_ursula_kuczynski
					female = yes
					traits = { operative_safe_cracker operative_infiltrator }
					bypass_recruitment = no
					available_to_spy_master = yes
					nationalities = { SOV GER }
				}
				add_ideas = SOV_soviet_atomic_bomb_project_ns
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = SOV_soviet_atomic_bomb_project_unlock_operation_tt

			custom_effect_tooltip = generic_skip_one_line_tt
			
			#Junior Scientists Only, no XP for Grandpa Ioffe :(
			if = {
				limit = { 
					ROOT = {
						has_character = SOV_igor_kurchatov 
					}
				}
				ROOT = { 
					SOV_igor_kurchatov  = {
						add_scientist_xp = {
							experience = 250
							specialization = specialization_nuclear
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			if = {
				limit = { 
					ROOT = {
						has_character = SOV_yulii_khariton 
					}
				}
				ROOT = { 
					SOV_yulii_khariton  = {
						add_scientist_xp = {
							experience = 250
							specialization = specialization_nuclear
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			if = {
				limit = { 
					ROOT = {
						has_character = SOV_yakov_zeldovich
					}
				}
				ROOT = { 
					SOV_yakov_zeldovich  = {
						add_scientist_xp = {
							experience = 250
							specialization = specialization_nuclear
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
		
		}
	}

	focus = {
		id = SOV_move_industry_to_the_urals
		icon = GFX_goal_reichsautobahn
		prerequisite = { focus = SOV_military_engineering_university }
		x = -4
		y = 1
		relative_position_id = SOV_military_engineering_university
		cost = 10

		available = {
			has_full_control_of_state = 219 #MOSCOW
			has_equipment = { train_equipment > 119 } #20 trains per factory
			OR = {
				threat > 0.85
				any_enemy_country = {
					SOV_is_major_not_original_sov = yes
					capital_scope = {
						is_on_continent = europe
					}
				}
			}
		}

		select_effect = {
			add_equipment_to_stockpile = {
				type = train_equipment
				amount = SOV_industrial_relocation_trains_focus_negative
				producer = SOV
			}
			#Factories are removed immediately to keep consistency with how decisions work
			219 = { #Moscow
				remove_building = {
					type = arms_factory
					level = 1
				}
				remove_building = {
					type = industrial_complex
					level = 1
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 195
				}
				195 = { #Leningrad
					remove_building = {
						type = arms_factory
						level = 1
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 202
				}
				202 = { #Kiev
					remove_building = {
						type = arms_factory
						level = 1
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			hidden_effect = {
				add_equipment_to_stockpile = {
					type = train_equipment
					amount = SOV_industrial_relocation_trains_focus
					producer = SOV
				}
			}
			custom_effect_tooltip = SOV_focus_select_effect_tt
			effect_tooltip = {
				219 = { #Moscow
					remove_building = {
						type = arms_factory
						level = 1
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				if = {
					limit = {
						has_full_control_of_state = 195
					}
					195 = { #Leningrad
						remove_building = {
							type = arms_factory
							level = 1
						}
						remove_building = {
							type = industrial_complex
							level = 1
						}
					}
				}
				if = {
					limit = {
						has_full_control_of_state = 202
					}
					202 = { #Kiev
						remove_building = {
							type = arms_factory
							level = 1
						}
						remove_building = {
							type = industrial_complex
							level = 1
						}
					}
				}
			}
			custom_effect_tooltip = SOV_move_industry_to_the_urals_trains_tt

			custom_effect_tooltip = SOV_focus_complete_effect_tt
			unlock_decision_category_tooltip = SOV_industry_relocation

			random_controlled_state = {
				limit = {
					SOV_is_industrial_relocation_destiny_state = yes
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			
				hidden_effect = {
					damage_building = { type = arms_factory damage = 0.5 }
					damage_building = { type = industrial_complex damage = 0.5 }
				}
			}
			if = {
				limit = {
					ROOT = { has_full_control_of_state = 195 } #Leningrad
				}
				random_controlled_state = { #Different State please thanks
					limit = {
						NOT = { state = 195 }
						SOV_is_industrial_relocation_destiny_state = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				
					hidden_effect = {
						damage_building = { type = arms_factory damage = 0.5 }
						damage_building = { type = industrial_complex damage = 0.5 }
					}
				}
			}
			if = {
				limit = {
					ROOT = { has_full_control_of_state = 202 } #Leningrad
				}
				random_controlled_state = { #Different State please thanks
					limit = {
						NOT = { state = 202 }
						SOV_is_industrial_relocation_destiny_state = yes
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				
					hidden_effect = {
						damage_building = { type = arms_factory damage = 0.5 }
						damage_building = { type = industrial_complex damage = 0.5 }
					}
				}
			}
			custom_effect_tooltip = SOV_relocate_industry_repair_tt
		}
	}

	focus = {
		id = SOV_arms_purchases_in_the_us
		text = FRA_arms_purchases_in_the_us
		icon = GFX_Goal_USA_arsenal_of_democracy
		prerequisite = { focus = SOV_found_the_pcdi }
		x = -2
		y = 1

		relative_position_id = SOV_found_the_pcdi
		cost = 5
		ai_will_do = {
			factor = 75
			modifier = {
				factor = 0
				NOT = { has_war_with = GER }
			}
		}

		available = {
			has_defensive_war = yes
			any_other_country = {
				is_major = yes
				has_war_with = ROOT
			}
			USA_can_sell_weapons_trigger = yes
		}

		completion_reward = {
			USA = { country_event = lar_arms_purchases.1 }
			custom_effect_tooltip = if_they_accept_tt
			unlock_decision_category_tooltip = SOV_weapons_purchases_category
		}
		search_filters = { FOCUS_FILTER_MILITARY_EQUIPMENT }
	}
	focus = {
		id = SOV_lease_british_planes
		icon = GFX_goal_fighters_uk
		prerequisite = { focus = SOV_found_the_pcdi }
		x = 1
		y = 1

		relative_position_id = SOV_found_the_pcdi
		cost = 5
		ai_will_do = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { has_war_with = GER }
			}
		}


		available = {
			has_defensive_war = yes
			any_other_country = {
				is_major = yes
				has_war_with = ROOT
			}
			ENG_can_sell_weapons_trigger = yes		
		}

		available_if_capitulated = yes

		completion_reward = {
			ENG = { country_event = lar_arms_purchases.1 }
			custom_effect_tooltip = if_they_accept_tt
			unlock_decision_tooltip = SOV_order_fighters_in_ENG
			unlock_decision_tooltip = SOV_order_bombers_in_ENG
		}
		search_filters = { FOCUS_FILTER_MILITARY_EQUIPMENT }
	}

	focus = {
		id = SOV_the_molotov_line
		icon = GFX_goal_generic_fortification
		prerequisite = { focus = SOV_military_engineering_university }
		x = -1
		y = 1
		relative_position_id = SOV_military_engineering_university
		cost = 10

		mutually_exclusive = { focus = SOV_improve_the_stalin_line }

		available = {
			OR = {
				has_full_control_of_state = 188
				has_full_control_of_state = 189
				has_full_control_of_state = 814
				has_full_control_of_state = 935
				has_full_control_of_state = 95
				has_full_control_of_state = 97
				has_full_control_of_state = 94
				has_full_control_of_state = 93
				has_full_control_of_state = 91
				has_full_control_of_state = 89
				has_full_control_of_state = 80
				has_full_control_of_state = 78
				has_full_control_of_state = 766
			}
		}

		completion_reward = {
			custom_effect_tooltip = SOV_the_molotov_line_tt

			### LITHUANIA ###
			if = { #If Memel is controlled, then add forts in Memel, if not, then go to Zemaitija
				limit = {
					188 = { is_fully_controlled_by = ROOT }
				}
				custom_effect_tooltip = SOV_molotov_line_forts_3
				hidden_effect = {
					188 = {
						add_building_construction = {
							type = bunker
							level = 3
							province = {
								id = 3288
							}
							instant_build = yes
						}
					}
				}
			}
			else = {
				189 = { #ZEMAITIJA
					if = {
						limit = { is_fully_controlled_by = ROOT }
						custom_effect_tooltip = SOV_molotov_line_forts_3
						hidden_effect = {
							add_building_construction = {
								type = bunker
								level = 1
								province = {
									id = 6314
									id = 9499
									id = 3337
								}
								instant_build = yes
							}
						}
					}
				}
			}
			814 = { #Suduva
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_2
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 6407
								id = 11312
								id = 6281
							}
							instant_build = yes
						}
					}
				}
			}

			### POLAND ###
			97 = { #Grodno
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_1
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 13269
							}
							instant_build = yes
						}
					}
				}
			}
			95 = { #Nowogrodek
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_1
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 13206
							}
							instant_build = yes
						}
					}
				}
			}
			97 = { #Bialystok
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_6
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 347
								id = 11357
								id = 11329
								id = 11274
								id = 290
							}
							instant_build = yes
						}
					}
				}
			}
			94 = { #Polesie
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_2
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 3392
								id = 6546
							}
							instant_build = yes
						}
					}
				}
			}
			93 = { #Wolyn
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_2
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 11441
								id = 422
							}
							instant_build = yes
						}
					}
				}
			}
			91 = { #Lwow
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_2
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 536
								id = 9468
							}
							instant_build = yes
						}
					}
				}
			}
			89 = { #Stanislawow
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_4
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 6431
								id = 6460
								id = 9425
								id = 3743
							}
							instant_build = yes
						}
					}
				}
			}

			### ROMANIA ###
			80 = { #Bucovina
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_2
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 9548
								id = 577
							}
							instant_build = yes
						}
					}
				}
			}
			### ROMANIA ###
			78 = { #Bessarabia
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_5
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 3407
								id = 3577
								id = 565
								id = 3707
								id = 3724
							}
							instant_build = yes
						}
					}
				}
			}
			766 = { #Southern Bessarabia
				if = {
					limit = { is_fully_controlled_by = ROOT }
					custom_effect_tooltip = SOV_molotov_line_forts_2
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 3704
								id = 3701
							}
							instant_build = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_improve_the_stalin_line
		icon = GFX_goal_fortify_the_westwall
		prerequisite = { focus = SOV_military_engineering_university }
		x = 1
		y = 1
		relative_position_id = SOV_military_engineering_university
		cost = 10

		mutually_exclusive = { focus = SOV_the_molotov_line }

		completion_reward = {
			209 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_building_construction = {
						type = bunker
						level = 6
						province = 415
						instant_build = yes
					}
				}
			}
			210 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_building_construction = {
						type = bunker
						level = 4
						province = 3333
						instant_build = yes
					}
				}
			}
			207 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_building_construction = {
						type = bunker
						level = 4
						province = 3219
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 4
						province = 6371
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 4
						province = 6220
						instant_build = yes
					}
				}
			}
			206 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_building_construction = {
						type = bunker
						level = 4
						province = 11370
						instant_build = yes
					}
				}
			}
			202 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_building_construction = {
						type = bunker
						level = 7
						province = 525
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 7
						province = 3494
						instant_build = yes
					}
				}

			}
			203 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_building_construction = {
						type = bunker
						level = 7
						province = 11409
						instant_build = yes
					}
				}
			}
			834 ={
				if = {
					limit = { is_controlled_by = ROOT }
					add_building_construction = {
						type = bunker
						level = 5
						province = 754
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 5
						province = 741
						instant_build = yes
					}
				}
			}
			192 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_building_construction = {
						type = bunker
						level = 5
						province = 11670
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = SOV_the_defense_of_moscow
		icon = GFX_focus_SOV_the_defense_of_moscow
		prerequisite = { focus = SOV_move_industry_to_the_urals focus = SOV_improve_the_stalin_line focus = SOV_the_molotov_line }
		x = 2
		y = 1
		relative_position_id = SOV_move_industry_to_the_urals
		cost = 5

		available = {
			219 = {
				is_controlled_by = ROOT
				OR = {
					any_neighbor_state = {
						NOT = { is_controlled_by = ROOT }
					}

					SOV = { surrender_progress > 0.1 } #Keep an eye on this, might be too cheesy
				}
			}
		}
		
		bypass = {
			219 = {
				NOT = {
					is_controlled_by = ROOT
				}
			}
		}

		completion_reward = {
			army_experience = 15
			division_template = {
				name = "Vspomogatel'nyye Sily Oborony"
				priority = 1
				division_names_group = SOV_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
					infantry = { x = 0 y = 3 }
					
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
					infantry = { x = 1 y = 3 }
				}
				support = {
					engineer = { x = 0 y = 0 }
					artillery = { x = 0 y = 1 }
				}
			}
			division_template = {
				name = "Vspomogatel'naya Bronetankovaya Sila"
				priority = 1
				division_names_group = SOV_INF_01
				regiments = {
					light_armor = { x = 0 y = 0 }
					light_armor = { x = 0 y = 1 }

					light_armor = { x = 1 y = 0 }
					light_armor = { x = 1 y = 1 }

					cavalry = { x = 2 y = 0 }
					cavalry = { x = 2 y = 1 }
				}
			}
			219 = {
				custom_effect_tooltip = SOV_defense_of_moscow_forts
				custom_effect_tooltip = SOV_defense_divisions_12
				hidden_effect = {
					219 = {
						create_unit = {
							division = "name = \"1ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"2ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"3ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"4ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"5ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"6ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"7ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"8ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"9ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"10ya Vspomogatel'nyye sily oborony Moskvy\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"1ya Moskva Vspomogatel'naya bronetankovaya sila\" division_template = \"Vspomogatel'naya Bronetankovaya Sila\" start_experience_factor = 0 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
						create_unit = {
							division = "name = \"2ya Moskva Vspomogatel'naya bronetankovaya sila\" division_template = \"Vspomogatel'naya Bronetankovaya Sila\" start_experience_factor = 0 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = SOV
						}
					}
				}
				hidden_effect = {
					if = {
						limit = {
							ROOT = { controls_province = 3391 }
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 3391
							instant_build = yes
						}
					}
					if = {
						limit = {
							ROOT = { controls_province = 6414 }
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 6414
							instant_build = yes
						}
					}
					if = {
						limit = {
							ROOT = { controls_province = 9348 }
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 9348
							instant_build = yes
						}
					}
					if = {
						limit = {
							ROOT = { controls_province = 301 }
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 301
							instant_build = yes
						}
					}
					if = {
						limit = {
							ROOT = { controls_province = 9378 }
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 9378
							instant_build = yes
						}
					}
					if = {
						limit = {
							ROOT = { controls_province = 6283 }
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 6283
							instant_build = yes
						}
					}
					if = {
						limit = {
							ROOT = { controls_province = 3259 }
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 3259
							instant_build = yes
						}
					}
					if = {
						limit = {
							ROOT = { controls_province = 11282 }
						}
						add_building_construction = {
							type = bunker
							level = 3
							province = 11282
							instant_build = yes
						}
					}
					if = {
						limit = {
							ROOT = { controls_province = 6380 }
						}
						add_building_construction = {
							type = bunker
							level = 4
							province = 6380
							instant_build = yes
						}
					}
					if = {
						limit = {
							difficulty > 1
							SOV = {
								is_ai = yes
							}
							GER = {
								is_ai = yes
							}
						}
						ROOT = {
							add_offsite_building = {
								type = arms_factory level = 1
							}
							add_equipment_to_stockpile = {
								type = infantry_equipment
								amount = 750
								producer = SOV
							}
							add_equipment_to_stockpile = { 
								type = support_equipment_1
								amount = 50
								producer = SOV
							}
							add_equipment_to_stockpile = {
								type = artillery_equipment
								amount = 25
								producer = SOV
							}
							add_equipment_to_stockpile = {
								type = motorized_equipment
								amount = 50
								producer = SOV
							}
							add_equipment_to_stockpile = {
								type = anti_air_equipment
								amount = 25
								producer = SOV
							}
							add_equipment_to_stockpile = {
								type = train_equipment
								amount = 5
								producer = SOV
							}		
						}
					}				
				}
			}
		}
		search_filters = {FOCUS_FILTER_ARMY_XP}
	}

	focus = {
		id = SOV_move_capital_to_sverdlovsk
		icon = GFX_goal_plan
		prerequisite = { focus = SOV_the_defense_of_moscow focus = SOV_far_east_fortification }
		x = -1
		y = 1

		relative_position_id = SOV_the_defense_of_moscow
		cost = 5
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0
				NOT = { has_war_with = GER }
			}
		}

		available = {
			SOV = { surrender_progress > 0.4 }
			219 = {
				NOT = {
					is_controlled_by = ROOT
				}
			}
			653 = {
				is_owned_and_controlled_by = SOV
			}
		}

		bypass = {
			ROOT = {
				AND = {	
					surrender_progress > 0.5
					NOT = {
						653 = {
							is_owned_and_controlled_by = SOV
						}
					}
				}
			}
		}

		completion_reward = {
			army_experience = 10
			custom_effect_tooltip = SOV_move_capital_to_sverdlovsk_effect
			add_victory_points = {
				province = 1821
				value = 15    
			}			
			custom_effect_tooltip = SOV_defense_divisions_4
			hidden_effect = {
				set_capital = { state = 653 }				
				653 = {
					add_building_construction = {#new supply source, so they don't struggle
						type = infrastructure
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 4
						province = 1821
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 10133
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 12567
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = 9553
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = 307
						instant_build = yes
					}
					create_unit = {
						division = "name = \"1ya Vspomogatel'nyye sily oborony Sverdlovsk\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"2ya Vspomogatel'nyye sily oborony Sverdlovsk\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"3ya Vspomogatel'nyye sily oborony Sverdlovsk\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"1ya Sverdlovsk Vspomogatel'naya bronetankovaya sila\" division_template = \"Vspomogatel'naya Bronetankovaya Sila\" start_experience_factor = 0 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					add_extra_state_shared_building_slots = 4
					set_state_flag = SOV_capital_moved_1
				}
			}
			hidden_effect = { #Soviet AI bailout
				if = {
					limit = {
						difficulty > 1
						SOV = {
							is_ai = yes
						}
						GER = {
							is_ai = yes
						}
					}
					ROOT = {
						add_offsite_building = {
							type = arms_factory level = 3
						}
					}
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = 2500
						producer = SOV
					}
					add_equipment_to_stockpile = { 
						type = support_equipment_1
						amount = 100
						producer = SOV
					}
					add_equipment_to_stockpile = {
						type = artillery_equipment
						amount = 75
						producer = SOV
					}
					add_equipment_to_stockpile = {
						type = motorized_equipment
						amount = 100
						producer = SOV
					}
					add_equipment_to_stockpile = {
						type = anti_air_equipment
						amount = 25
						producer = SOV
					}
					add_equipment_to_stockpile = {
						type = train_equipment
						amount = 10
						producer = SOV
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER }
	}

	focus = { #Focus here more for the AI then the Player - SpicyAlfredo
		id = SOV_till_the_bitter_end
		icon = GFX_goal_communist_latin_america
		prerequisite = { focus = SOV_move_capital_to_sverdlovsk }
		x = 0
		y = 1

		relative_position_id = SOV_move_capital_to_sverdlovsk 
		cost = 5
		ai_will_do = {
			factor = 99
			modifier = {
				factor = 0
				NOT = { has_war_with = GER }
			}
		}

		available = {
			ROOT = { 
				surrender_progress > 0.55
				has_government = communism
			}
			has_defensive_war = yes
			any_other_country = {
				is_major = yes
				has_war_with = ROOT
				has_government = fascism
			}
			219 = {
				NOT = {
					is_controlled_by = ROOT
				}
			}
			195 = {
				NOT = {
					is_controlled_by = ROOT
				}
			}
			217 = {
				NOT = {
					is_controlled_by = ROOT
				}
			}
			137 = {
				NOT = {
					is_controlled_by = ROOT
				}
			}
		}
		
		completion_reward = { #Time Buff, but also giving useful hubs when pushed back
			if = {
				limit = {
					GER = {
						has_war_with = ROOT
						has_government = fascism
					}
				}
				custom_effect_tooltip = SOV_till_the_bitter_end_tt
				set_global_flag = R56_SOV_till_the_bitter_end_flag #sets AI strat
			}
			army_experience = 10
			if = {
				limit = {
					ROOT = {
						has_full_control_of_state = 572
					}
				}
				add_victory_points = {
					province = 9292
					value = 5
				}	
				IF = {
					limit = {
						572 = {
							is_controlled_by = ROOT 
							industrial_complex > 0
							free_building_slots = {
								building = industrial_complex
								size > 0
								include_locked = yes
							}
						}
					}
					572 = {
						add_extra_state_shared_building_slots = 1
					}
				}
				572 = {
					add_building_construction = {
						type = bunker
						level = 1
						province = 9292
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					can_build_railway = {
						start_state = 572
						target_state = 402
					}
				}
				build_railway = {
					level = 1
					fallback = yes
					path = { 9292 10213 12229 7429 7233 10196 12227 4394 10253 }
					start_state = 572
    				target_state = 402
				}
			}
			if = {
				limit = {
					can_build_railway = {
						start_state = 583
						target_state = 582
					}
					ROOT = {
						has_full_control_of_state = 582
					}
				}
				add_victory_points = {
					province = 10256
					value = 2
				}	
				582 = {
					add_extra_state_shared_building_slots = 1
				}
				582 = {
					add_building_construction = {
						type = supply_node
						level = 1
						instant_build = yes
						province = 10256
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = 10256
						instant_build = yes
					}
				}
				build_railway = {
					level = 1
					fallback = yes
					path = { 7429 4411 10256 }
					start_state = 583
    				target_state = 582
				}
			}
			if = {
				limit = {
					ROOT = {
						has_full_control_of_state = 406
					}
				}
				add_victory_points = {
					province = 3618
					value = 2
				}
				406 = {
					add_extra_state_shared_building_slots = 1
				}
				406 = {
					add_building_construction = {
						type = naval_base
						level = 1
						instant_build = yes
						province = 3618
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = 3618
						instant_build = yes
					}
				}
			}	
			add_timed_idea = { #Stablize! 
				idea = r56_til_the_bitter_end_idea
				days = 35
			}
			hidden_effect = { #Soviet AI bailout
				if = {
					limit = {
						difficulty > 1
						SOV = {
							is_ai = yes
						}
						GER = {
							is_ai = yes
						}
						FIN = {
							is_ai = yes
						}
					}
					ROOT = { #AI needs to stablize or it's game over
						add_offsite_building = {
							type = arms_factory level = 5
						}
						add_equipment_to_stockpile = {
							type = infantry_equipment
							amount = 2750
							producer = SOV
						}
						add_equipment_to_stockpile = { 
							type = support_equipment_1
							amount = 300
							producer = SOV
						}
						add_equipment_to_stockpile = {
							type = artillery_equipment
							amount = 250
							producer = SOV
						}
						add_equipment_to_stockpile = {
							type = motorized_equipment
							amount = 100
							producer = SOV
						}
						add_equipment_to_stockpile = {
							type = anti_air_equipment
							amount = 100
							producer = SOV
						}
						add_equipment_to_stockpile = {
							type = train_equipment
							amount = 25
							producer = SOV
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_far_east_fortification
		icon = GFX_goal_fortify_the_westwall
		prerequisite = { focus = SOV_move_industry_to_the_urals }
		x = 0
		y = 1
		relative_position_id = SOV_move_industry_to_the_urals
		cost = 10

		completion_reward = {
			563 = { #CHITA
				if = {
					limit = { is_controlled_by = ROOT }
					custom_effect_tooltip = SOV_far_east_fortification_forts_4
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 4719
								id = 12622
							}
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = {
								id = 10559
							}
							instant_build = yes
						}
					}
				}
			}
			561 = { #AMUR
				if = {
					limit = { is_controlled_by = ROOT }
					custom_effect_tooltip = SOV_far_east_fortification_forts_4
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 12543
								id = 7851
								id = 10678
							}
							instant_build = yes
						}
						add_building_construction = { #Set like this for stupid tooltip purposes
							type = bunker
							level = 1
							province = {
								id = 12657
							}
							instant_build = yes
						}
					}
				}
			}
			657 = { #BIROBIDZHAN
				if = {
					limit = { is_controlled_by = ROOT }
					custom_effect_tooltip = SOV_far_east_fortification_forts_10
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 10655
								id = 7801
								id = 10722
								id = 7672
							}
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = {
								id = 7763
								id = 4725
								id = 4805
							}
							instant_build = yes
						}
					}
				}
			}
			409 = { #KHABAROVSK
				if = {
					limit = { is_controlled_by = ROOT }
					custom_effect_tooltip = SOV_far_east_fortification_forts_4
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 2
							province = {
								id = 12189
							}
							instant_build = yes
						}
						add_building_construction = {  #Set like this for stupid tooltip purposes
							type = bunker
							level = 2
							province = {
								id = 10466
							}
							instant_build = yes
						}
					}
				}
			}
			408 = { #VLADIVOSTOK
				if = {
					limit = { is_controlled_by = ROOT }
					custom_effect_tooltip = SOV_far_east_fortification_forts_10
					hidden_effect = {
						add_building_construction = {
							type = bunker
							level = 1
							province = {
								id = 11643
								id = 6686
								id = 664
								id = 6684
								id = 3787
								id = 6838
							}
							instant_build = yes
						}
						add_building_construction = {
							type = bunker
							level = 2
							province = {
								id = 3977
								id = 957
							}
							instant_build = yes
						}
					}
				}
			}
			# Other possible Provinces
			#11879 (Border Conflict with Japan) 1755 (North Sakhalin)
		}
	}

	focus = {
		id = SOV_impregnable_forts
		icon = GFX_goal_generic_fortify_city
		prerequisite = { focus = SOV_improve_the_stalin_line focus = SOV_the_molotov_line }
		x = 1
		y = 1
		relative_position_id = SOV_improve_the_stalin_line
		cost = 10

		completion_reward = {
			if = {
				limit = {
					has_full_control_of_state = 195 #LENINGRAD
				}
				195 = { #LENINGRAD
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = {
							id = 3151
							id = 6174
						}
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 3
						province = {
							id = 3151
							id = 6174
						}
						instant_build = yes
					}
					add_dynamic_modifier = { modifier = SOV_krasnaya_gorka_battery scope = SOV }
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 208 #LUGA
				}
				208 = { #LUGA
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 9097
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 3
						province = 9097
						instant_build = yes
					}
					add_dynamic_modifier = { modifier = SOV_seraya_loshad_battery scope = SOV }
				}
			}

			if = {
				limit = {
					has_full_control_of_state = 137 #CRIMEA
				}
				137 = { #CRIMEA
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 3686
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 3
						province = 3686
						instant_build = yes
					}
					add_dynamic_modifier = { modifier = SOV_armored_battery_35 scope = SOV }
				}
			}
		}
	}

	
	focus = {
		id = SOV_defense_of_stalingrad
		icon = GFX_goal_generic_construct_military
		prerequisite = { focus = SOV_impregnable_forts }
		available = {
			217 = {
				is_controlled_by = ROOT
				OR = {
					SOV = { surrender_progress > 0.15 }
					any_neighbor_state = {
						NOT = { is_controlled_by = ROOT }
					}
				}
			}
		}
		bypass = {
			NOT = { 217 = { is_owned_and_controlled_by = ROOT } }
		}
		x = 0
		y = 1
		relative_position_id = SOV_impregnable_forts
		cost = 5
		ai_will_do = {
			factor = 4 #high importance
			modifier = {
				217 = {
					any_neighbor_state = {
						NOT = { is_controlled_by = ROOT }
					}
				}
				factor = 3 #more natural barriers
			}
		}

		completion_reward = {
			army_experience = 10
			217 = {
				custom_effect_tooltip = SOV_defense_of_stalingrad_forts
				custom_effect_tooltip = SOV_defense_divisions		
				hidden_effect = {
					create_unit = {
						division = "name = \"1ya Vspomogatel'nyye sily oborony Stalingradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"2ya Vspomogatel'nyye sily oborony Stalingradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"3ya Vspomogatel'nyye sily oborony Stalingradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"4ya Vspomogatel'nyye sily oborony Stalingradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"5ya Vspomogatel'nyye sily oborony Stalingradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"6ya Vspomogatel'nyye sily oborony Stalingradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"7ya Vspomogatel'nyye sily oborony Stalingradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"1ya Stalingradskaya Vspomogatel'naya bronetankovaya sila\" division_template = \"Vspomogatel'naya Bronetankovaya Sila\" start_experience_factor = 0 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 9501
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 3555
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 11484
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 11474
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 498
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 6527
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 9504
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 4
						province = 3529
						instant_build = yes
					}
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SOV_protect_the_white_sea_baltic_canal
		icon = GFX_focus_generic_provoke_border_clashes
		prerequisite = { focus = SOV_the_molotov_line focus = SOV_improve_the_stalin_line }
		x = -1
		y = 1
		relative_position_id = SOV_improve_the_stalin_line
		cost = 5

		completion_reward = {
			if = {
				limit = {
					has_full_control_of_state = 215 #ONEGA
				}
				215 = { #ONEGA
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = {
							id = 9045
							id = 3078
							id = 11212
						}
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 1
						province = 9045
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 216 #OLONETS
				}
				216 = { #OLONETS
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = {
							id = 92
							id = 11092
						}
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 264 #TIKHVIN
				}
				264 = { #TIKHVIN
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = {
							id = 9082
							id = 9190
							id = 11059
						}
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 195 #LENINGRAD
				}
				195 = { #LENINGRAD
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 1
						province = {
							id = 149
							id = 11068
							id = 79
						}
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = SOV_defense_of_leningrad
		icon = GFX_focus_generic_coastal_fort
		prerequisite = { focus = SOV_protect_the_white_sea_baltic_canal }
		available = {
			195 = {
				is_controlled_by = ROOT
				OR = {
					SOV = { surrender_progress > 0.15 }
					any_neighbor_state = {
						NOT = { is_controlled_by = ROOT }
					}
				}
			}
		}
		bypass = {
			NOT = { 195 = { is_owned_and_controlled_by = ROOT } }
		}
		x = 0
		y = 1
		relative_position_id = SOV_protect_the_white_sea_baltic_canal
		cost = 5
		ai_will_do = {
			factor = 3 #slightly lower importance
			modifier = {
				195 = {
					any_neighbor_state = {
						NOT = { is_controlled_by = ROOT }
					}
				}
				factor = 4 #but less barriers
			}
		}

		completion_reward = {
			army_experience = 10
			195 = {
				custom_effect_tooltip = SOV_defense_of_leningrad_forts
				custom_effect_tooltip = SOV_defense_divisions
				hidden_effect = {
					create_unit = {
						division = "name = \"1ya Vspomogatel'nyye sily oborony Leningradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"2ya Vspomogatel'nyye sily oborony Leningradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"3ya Vspomogatel'nyye sily oborony Leningradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"4ya Vspomogatel'nyye sily oborony Leningradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"5ya Vspomogatel'nyye sily oborony Leningradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"6ya Vspomogatel'nyye sily oborony Leningradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"7ya Vspomogatel'nyye sily oborony Leningradskaya\" division_template = \"Vspomogatel'nyye Sily Oborony\" start_experience_factor = 0.1 start_equipment_factor = 0.75 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					create_unit = {
						division = "name = \"1ya Leningradskaya Vspomogatel'naya bronetankovaya sila\" division_template = \"Vspomogatel'naya Bronetankovaya Sila\" start_experience_factor = 0 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
						owner = SOV
					}
					add_building_construction = {
						type = bunker
						level = 2
						province = 6174
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 2
						province = 79
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 2
						province = 11068
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 4
						province = 149
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 4
						province = 3151
						instant_build = yes
					}
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = SOV_the_road_of_life
		icon = GFX_focus_SOV_the_road_of_life
		prerequisite = { focus = SOV_the_defense_of_moscow focus = SOV_defense_of_leningrad }
		x = -1
		y = 1
		relative_position_id = SOV_defense_of_leningrad
		cost = 5

		available = {
			OR = {
				195 = { #LENINGRAD
					is_controlled_by = ROOT
					any_neighbor_state = {
						is_owned_by = ROOT
						NOT = { is_fully_controlled_by = ROOT }
					}
				}
				219 = { #MOSCOW
					is_controlled_by = ROOT
					any_neighbor_state = {
						is_owned_by = ROOT
						NOT = { is_fully_controlled_by = ROOT }
					}
				}
				217 = { #STALINGRAD
					is_controlled_by = ROOT
					any_neighbor_state = {
						is_owned_by = ROOT
						NOT = { is_fully_controlled_by = ROOT }
					}
				}
				137 = { #SEVASTOPOL
					is_controlled_by = ROOT
					any_neighbor_state = {
						is_owned_by = ROOT
						NOT = { is_fully_controlled_by = ROOT }
					}
				}
				202 = { #Kiev
					is_controlled_by = ROOT
					any_neighbor_state = {
						is_owned_by = ROOT
						NOT = { is_fully_controlled_by = ROOT }
					}
				}
			}
		}

		completion_reward = {
			add_timed_idea = {
				idea = SOV_the_road_of_life_ns
				days = 730
			}
		}
	}

	focus = {
		id = SOV_restore_cossack_units
		icon = GFX_focus_SOV_restore_cossack_units
		prerequisite = { focus = SOV_strengthen_the_mobilization_plan }
		x = -1
		y = 1
		relative_position_id = SOV_strengthen_the_mobilization_plan
		cost = 5

		mutually_exclusive = { focus = SOV_cohesion_first }

		completion_reward = {
			add_to_variable = { SOV_the_red_army_modifier_army_sub_unit_cavalry_speed_factor = 0.05 }
			add_to_variable = { SOV_the_red_army_cavalry_attack_factor = 0.05 }
			custom_effect_tooltip = SOV_restore_cossack_units_ns_tt

			show_unit_leaders_tooltip = SOV_lev_dovator

			#Spawn Cossack divisions
			custom_effect_tooltip = SOV_restore_cossack_units_spawn_tt
			hidden_effect = {
				division_template = {
					name = "Kazachya Kavaleryskaya Diviziya"
					division_names_group = SOV_CAV_02

					regiments = {
						cavalry = { x = 0 y = 0 }
						cavalry = { x = 0 y = 1 }
						cavalry = { x = 1 y = 0 }
						cavalry = { x = 1 y = 1 }
						mot_artillery_brigade = { x = 2 y = 0 }
						light_armor = { x = 3 y = 0 }
					}
					support = {
						engineer = { x = 0 y = 0 }
						artillery = { x = 0 y = 1 }
						recon = { x = 0 y = 2 }
					}
				}

				capital_scope = {
					#Cossack Cavalry
					create_unit = { 
						division = "name = \"4ya Donskaya Kazachya Kav. Div.\" division_template = \"Kazachya Kavaleryskaya Diviziya\" start_experience_factor = 0.8 start_equipment_factor = 1.0" owner = ROOT
					}
					create_unit = { 
						division = "name = \"6ya Kubansko-Terskaya Kazachya Kav. Div.\" division_template = \"Kazachya Kavaleryskaya Diviziya\" start_experience_factor = 0.8 start_equipment_factor = 1.0" owner = ROOT
					}
					create_unit = { 
						division = "name = \"10ya Tersko-Stavropolskaya Kazachya Kav. Div\" division_template = \"Kazachya Kavaleryskaya Diviziya\" start_experience_factor = 0.8 start_equipment_factor = 1.0" owner = ROOT
					}
					create_unit = { 
						division = "name = \"12ya Kubanskaya Kazachya Kav. Div.\" division_template = \"Kazachya Kavaleryskaya Diviziya\" start_experience_factor = 0.8 start_equipment_factor = 1.0" owner = ROOT
					}

					#Cossack Infantry
					create_unit = {
						division = "name = \"13ya Donskaya Kazachya Div.\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.7 start_equipment_factor = 1.0" owner = ROOT
					}
				}
			}
		}
	}

	focus = {
		id = SOV_cohesion_first
		icon = GFX_focus_secret_rearmament
		prerequisite = { focus = SOV_strengthen_the_mobilization_plan }
		x = 1
		y = 1
		relative_position_id = SOV_strengthen_the_mobilization_plan
		cost = 5

		mutually_exclusive = { focus = SOV_restore_cossack_units }

		available = {
		}

		completion_reward = {
			add_to_variable = { SOV_the_red_army_army_org_factor = 0.05 }
			add_to_variable = { SOV_the_red_army_training_time_factor = 0.1 }
			custom_effect_tooltip = SOV_cohesion_first_ns_tt
		}
	}

	focus = {
		id = SOV_rehabilitated_military
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = SOV_restore_cossack_units focus = SOV_cohesion_first }
		x = 0
		y = 2
		relative_position_id = SOV_strengthen_the_mobilization_plan
		cost = 10

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
		}

		completion_reward = {
			add_to_variable = { SOV_the_red_army_experience_gain_army_factor = 0.20 }
			add_to_variable = { SOV_the_red_army_army_org_factor = 0.05 }
			custom_effect_tooltip = SOV_rehabilitated_military_ns_tt

			add_ideas = SOV_rehabilitated_military_ns
		}
	}

	focus = {
		id = SOV_military_reorganization
		icon = GFX_focus_generic_military_mission
		prerequisite = { focus = SOV_rehabilitated_military }
		x = 0
		y = 2
		relative_position_id = SOV_rehabilitated_military
		cost = 10

		select_effect = {
			add_ideas = SOV_military_reorganization_ns
		}
		
		search_filters = {FOCUS_FILTER_ARMY_XP}

		completion_reward = {
			#Tooltip purposes (Select Effect)
			custom_effect_tooltip = SOV_focus_select_effect_tt
			effect_tooltip = {
				add_ideas = SOV_military_reorganization_ns
			}

			#(Complete Effect)
			custom_effect_tooltip = SOV_focus_complete_effect_tt
			hidden_effect = {
				remove_ideas = SOV_military_reorganization_ns
			}

			add_to_variable = { SOV_the_red_army_unit_infantry_design_cost_factor = -0.1 }
			add_to_variable = { SOV_the_red_army_unit_artillery_brigade_design_cost_factor = -0.1 }
			custom_effect_tooltip = SOV_military_reorganization_ns_tt

			army_experience = 50
			add_command_power = 25
		}
	}

	focus = {
		id = SOV_desperate_measures
		icon = GFX_goal_manpower
		prerequisite = { focus = SOV_strengthen_the_mobilization_plan }
		x = 3
		y = 2
		relative_position_id = SOV_strengthen_the_mobilization_plan
		cost = 5

		available = {
			any_enemy_country = {
				SOV_is_major_not_original_sov = yes
			}
		}

		completion_reward = {
			add_timed_idea = {
				idea = SOV_desperate_measures_ns
				days = 365
			}

			custom_effect_tooltip = SOV_desperate_measures_decisions_unlocked_tt
		}
	}

	focus = {
		id = SOV_an_adaptable_army
		icon = GFX_focus_prc_infiltration
		prerequisite = { focus = SOV_rehabilitated_military }
		prerequisite = { focus = SOV_desperate_measures }
		x = 1
		y = 1
		relative_position_id = SOV_rehabilitated_military
		cost = 10

		completion_reward = {
			add_to_variable = { SOV_the_red_army_heat_attrition_factor = -0.1 }
			add_to_variable = { SOV_the_red_army_winter_attrition_factor = -0.1 }
			add_to_variable = { SOV_the_red_army_acclimatization_cold_climate_gain_factor = 0.15 }
			add_to_variable = { SOV_the_red_army_acclimatization_hot_climate_gain_factor = 0.15 }
			add_to_variable = { SOV_the_red_army_terrain_penalty_reduction = 0.05 }
			custom_effect_tooltip = SOV_an_adaptable_army_ns_tt
		}
	}

	focus = {
		id = SOV_lessons_of_war
		icon = GFX_goal_generic_army_elite
		prerequisite = { focus = SOV_rehabilitated_military }
		prerequisite = { focus = SOV_desperate_measures }
		x = 0
		y = 1
		relative_position_id = SOV_desperate_measures
		cost = 5

		available = {
			NOT = { has_idea = SOV_desperate_measures_ns }
		}
		
		search_filters = {FOCUS_FILTER_ARMY_XP}

		completion_reward = {
			
			add_to_variable = { SOV_the_red_army_army_org_factor = 0.05 }
			add_to_variable = { SOV_the_red_army_experience_gain_army_factor = 0.10 }
			set_variable = { SOV_the_red_army_experience_loss_factor = 0 }

			custom_effect_tooltip = SOV_lessons_of_war_ns_tt

			unlock_decision_tooltip = SOV_order_227
			custom_effect_tooltip = SOV_lessons_of_war_unlock_military_operations_tt

			custom_effect_tooltip = SOV_lessons_of_war_cowed_trait_tt
			hidden_effect = {
				every_army_leader = {
					limit = {
						has_trait = trait_SOV_cowed_by_stalin_army
					}
					remove_unit_leader_trait =  trait_SOV_cowed_by_stalin_army
				}
				every_navy_leader = {
					limit = {
						has_trait = trait_SOV_cowed_by_stalin_navy
					}
					remove_unit_leader_trait =  trait_SOV_cowed_by_stalin_navy
				}
			}
		}
	}

	focus = {
		id = SOV_penal_battalions
		icon = GFX_focus_SOV_penal_battalions
		prerequisite = { focus = SOV_desperate_measures }
		x = 2
		y = 1
		relative_position_id = SOV_desperate_measures
		cost = 5

		available = {
			has_war = yes
		}

		completion_reward = {
			#Spawn Penal divisions
			custom_effect_tooltip = SOV_penal_battalions_spawn_tt
			hidden_effect = {
				set_technology = { penal_infantry = 1 popup = no }

				division_template = {
					name = "Shtrafnaya Chast"
					division_names_group = SOV_PEN_01
					is_locked = yes

					regiments = {
						penal_battalion = { x = 0 y = 0 }
						penal_battalion = { x = 0 y = 1 }
						penal_battalion = { x = 0 y = 2 }
						penal_battalion = { x = 1 y = 0 }
						penal_battalion = { x = 1 y = 1 }
						penal_battalion = { x = 1 y = 2 }
						penal_battalion = { x = 2 y = 0 }
						penal_battalion = { x = 2 y = 1 }
						penal_battalion = { x = 2 y = 2 }
					}
					support = {
						artillery = { x = 0 y = 0 }
					}
				}

				SOV_spawn_penal_divisions_effect = yes
			}
		}
	}

	focus = {
		id = SOV_organization_of_the_partisans
		icon = GFX_focus_focus_fra_maquis
		prerequisite = { focus = SOV_lessons_of_war }
		x = -1
		y = 1
		relative_position_id = SOV_lessons_of_war
		cost = 10

		available = {
			any_owned_state = {
				controller = {
					has_war_with = ROOT
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_PROPAGANDA}

		completion_reward = {
			add_to_variable = { SOV_the_red_army_operative_slot  = 1 }
			custom_effect_tooltip = SOV_organization_of_the_partisans_ns_tt

			if = {
				limit = {
					has_government = communism
				}
				show_unit_leaders_tooltip = SOV_vasily_korzh
				show_unit_leaders_tooltip = SOV_sidor_kovpak
			}

			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				if = {
					limit = {
						has_government = communism
					}
					create_operative_leader = {
						name = "Dmitry Medvedev"
						GFX = GFX_Portrait_dmitry_medvedev
						female = yes
						traits = { operative_demolition_expert operative_commando }
						bypass_recruitment = no
						available_to_spy_master = yes
						nationalities = { SOV }
					}
				}

				add_timed_idea = {
					idea = SOV_central_headquarters_of_the_partisan_movement
					days = 720
				}
			}
			else = {
				add_timed_idea = {
					idea = SOV_central_headquarters_of_the_partisan_movement_no_lar
					days = 720
				}
			}

			if = {
				limit = {
					has_government = communism
				}
				custom_effect_tooltip = unlock_propaganda_campaign_tt
				unlock_decision_tooltip = SOV_propaganda_glory_to_partisans
				unlock_decision_tooltip = SOV_propaganda_death_to_invaders
				custom_effect_tooltip = propaganda_campaign_requirement_tt
			}
		}
	}
	focus = {
		id = SOV_smersh
		icon = GFX_goal_generic_spy_connection
		prerequisite = { focus = SOV_lessons_of_war }
		x = 2
		y = 1
		relative_position_id = SOV_lessons_of_war
		cost = 10
		
		search_filters = {FOCUS_FILTER_PROPAGANDA FOCUS_FILTER_ESPIONAGE }

		completion_reward = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				add_ideas = SOV_smersh
			}
			else = {
				add_ideas = SOV_smersh_no_lar
			}

			if = {
				limit = {
					has_government = communism
				}
				custom_effect_tooltip = unlock_propaganda_campaign_tt
				unlock_decision_tooltip = SOV_propaganda_treacherous_enemy
				unlock_decision_tooltip = SOV_propaganda_do_not_blab
				custom_effect_tooltip = propaganda_campaign_requirement_tt
			}
		}
	}

	focus = {
		id = SOV_barrier_troops
		icon = GFX_focus_generic_manpower
		prerequisite = { focus = SOV_smersh }
		x = 0
		y = 1
		relative_position_id = SOV_smersh
		cost = 5

		completion_reward = {
			add_to_variable = { SOV_the_red_army_army_org_regain = 0.1 }
			custom_effect_tooltip = SOV_barrier_troops_ns_tt
		}
	}

	focus = {
		id = SOV_partisan_suppression
		icon = GFX_goal_crush_resistance
		prerequisite = { focus = SOV_barrier_troops }
		x = 0
		y = 1
		relative_position_id = SOV_barrier_troops
		cost = 10
		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes

		completion_reward = {
			add_ideas = partisan_suppression_focus
			add_tech_bonus = {
				name = mp_tech_bonus_name
				bonus = 1
				uses = 1
				category = military_police_tech
			}		
		}
	}

	focus = {
		id = SOV_experts_in_camouflage
		icon = GFX_goal_infantry_flames
		prerequisite = { focus = SOV_military_reorganization }
		x = -1
		y = 1
		relative_position_id = SOV_military_reorganization
		cost = 5

		completion_reward = {
			add_to_variable = { SOV_the_red_army_cas_damage_reduction = 0.05 }
			add_to_variable = { SOV_the_red_army_max_dig_in = 5 }
			add_to_variable = { SOV_the_red_army_dig_in_speed_factor = 0.05 }
			custom_effect_tooltip = SOV_experts_in_camouflage_ns_tt
		}
	}

	focus = {
		id = SOV_keep_commissars_organization
		icon = GFX_goal_red_army
		prerequisite = { focus = SOV_military_reorganization }
		prerequisite = { focus = SOV_lessons_of_war }
		x = 1
		y = 1
		relative_position_id = SOV_military_reorganization
		cost = 10

		mutually_exclusive = { focus = SOV_swap_to_political_advisors }

		allow_branch = {
			NOT = {
				has_government = fascism
				has_government = neutrality
			}
		}

		bypass = {
			has_completed_focus = SOV_depoliticize_the_military
		}

		completion_reward = {
			if = {
				limit = {
					has_idea = SOV_politicized_military
				}
				swap_ideas = {
					remove_idea = SOV_politicized_military
					add_idea = SOV_politicized_military_keep
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_politicized_military_humanism
				}
				swap_ideas = {
					remove_idea = SOV_politicized_military_humanism
					add_idea = SOV_politicized_military_keep_humanism
				}
			}
		}
	}

	focus = {
		id = SOV_adjoined_battle_priests
		icon = GFX_focus_GRE_an_orthodox_state
		prerequisite = { focus = SOV_military_reorganization }
		prerequisite = { focus = SOV_lessons_of_war }
		x = 1
		y = 1
		relative_position_id = SOV_military_reorganization
		cost = 10

		mutually_exclusive = { focus = SOV_swap_to_political_advisors }

		allow_branch = {
			OR = {
				has_government = fascism
				has_government = neutrality
			}
		}

		available = {
			has_completed_focus = SOV_church_candidates
		}

		bypass = {
			has_completed_focus = SOV_depoliticize_the_military
			has_completed_focus = SOV_socialist_humanism
		}

		completion_reward = {
			if = {
				limit = {
					has_idea = SOV_politicized_military
				}
				swap_ideas = {
					remove_idea = SOV_politicized_military
					add_idea = SOV_politicized_military_battle_priests
				}
			}
			else_if = { #Just in case weird shit happens
				limit = {
					has_idea = SOV_politicized_military_humanism
				}
				swap_ideas = {
					remove_idea = SOV_politicized_military_humanism
					add_idea = SOV_politicized_military_battle_priests
				}
			}
		}
	}

	focus = {
		id = SOV_swap_to_political_advisors
		icon = GFX_postive_heroism
		prerequisite = { focus = SOV_military_reorganization }
		prerequisite = { focus = SOV_lessons_of_war }
		x = 3
		y = 1
		relative_position_id = SOV_military_reorganization
		cost = 10

		mutually_exclusive = { focus = SOV_keep_commissars_organization focus = SOV_adjoined_battle_priests }

		bypass = {
			has_completed_focus = SOV_depoliticize_the_military
		}
		
		search_filters = {FOCUS_FILTER_ARMY_XP}

		completion_reward = {
			if = {
				limit = {
					has_idea = SOV_politicized_military
				}
				swap_ideas = {
					remove_idea = SOV_politicized_military
					add_idea = SOV_politicized_military_swap
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_politicized_military_humanism
				}
				swap_ideas = {
					remove_idea = SOV_politicized_military_humanism
					add_idea = SOV_politicized_military_swap_humanism
				}
			}
			else = { #To prevent the ugly "No current effects" tooltip if other focus taken
				effect_tooltip = {
					swap_ideas = {
						remove_idea = SOV_politicized_military
						add_idea = SOV_politicized_military_swap
					}
				}
			}
		}
	}

	focus = {
		id = SOV_the_glory_of_the_red_army
		icon = GFX_focus_SOV_the_glory_of_the_red_army_communism
		prerequisite = { focus = SOV_keep_commissars_organization focus = SOV_swap_to_political_advisors focus = SOV_adjoined_battle_priests }
		x = 1
		y = 1
		relative_position_id = SOV_keep_commissars_organization
		cost = 10

		allow_branch = {
			NOT = {
				has_government = fascism
				has_government = neutrality
			}
		}

		available = {
			any_enemy_country = {
				SOV_is_major_not_original_sov = yes
			}
			surrender_progress < 0.05
		}
		
		search_filters = {FOCUS_FILTER_ARMY_XP}

		completion_reward = {
			add_to_variable = { SOV_the_red_army_special_forces_cap = 0.1 }
			add_to_variable = { SOV_the_red_army_land_doctrine_cost_factor = -0.1 }
			custom_effect_tooltip = SOV_the_glory_of_the_red_army_ns_tt

			army_experience = 75
			
			show_unit_leaders_tooltip = SOV_pavel_rybalko
			
			#New
			hidden_effect = {
				set_technology = { masterful_blitz = 1 popup = no }
			}
			custom_effect_tooltip = SOV_the_glory_of_the_red_army_masterful_blitz_tactic_tt
		}
	}

	focus = {
		id = SOV_the_glory_of_the_red_army_alt
		icon = GFX_focus_SOV_the_glory_of_the_red_army_alternative
		prerequisite = { focus = SOV_keep_commissars_organization focus = SOV_swap_to_political_advisors focus = SOV_adjoined_battle_priests }
		x = 1
		y = 1
		relative_position_id = SOV_keep_commissars_organization
		cost = 10

		allow_branch = {
			OR = {
				has_government = fascism
				has_government = neutrality
			}
		}

		available = {
			any_enemy_country = {
				SOV_is_major_not_original_sov = yes
			}
			surrender_progress < 0.05
		}
		
		search_filters = {FOCUS_FILTER_ARMY_XP}

		completion_reward = {
			add_to_variable = { SOV_the_red_army_special_forces_cap = 0.1 }
			add_to_variable = { SOV_the_red_army_land_doctrine_cost_factor = -0.1 }
			custom_effect_tooltip = SOV_the_glory_of_the_red_army_ns_tt

			army_experience = 75

			#New
			hidden_effect = {
				set_technology = { masterful_blitz = 1 popup = no }
			}
			custom_effect_tooltip = SOV_the_glory_of_the_red_army_masterful_blitz_tactic_tt
		}
	}




########   #######  ##       #### ######## ####  ######     ###    ##       
##     ## ##     ## ##        ##     ##     ##  ##    ##   ## ##   ##       
##     ## ##     ## ##        ##     ##     ##  ##        ##   ##  ##       
########  ##     ## ##        ##     ##     ##  ##       ##     ## ##       
##        ##     ## ##        ##     ##     ##  ##       ######### ##       
##        ##     ## ##        ##     ##     ##  ##    ## ##     ## ##       
##         #######  ######## ####    ##    ####  ######  ##     ## ######## 



	focus = {
		id = SOV_the_path_of_marxism_leninism
		icon = GFX_focus_SOV_the_path_of_marxism_leninism
		x = 16
		y = 0
		offset = {
			x = -8
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = SOV_beaten_but_not_defeated
			}
		}
		relative_position_id = SOV_strengthen_the_mobilization_plan
		cost = 5

		mutually_exclusive = { focus = SOV_beaten_but_not_defeated }
		mutually_exclusive = { focus = SOV_form_a_fifth_column }

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = SOV_the_hands_do }
				NOT = { has_completed_focus = SOV_form_a_fifth_column }
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			add_political_power = 25

			SOV_paranoia_low_decrease_effect = yes
			###### REMOVED DEPENDENCY FOR TESTING#################	
			#IF = {
			#	limit = { has_dlc = "No Step Back"}
			#	mark_focus_tree_layout_dirty = yes
			#}
		}
	}

	focus = {
		id = SOV_the_centre
		icon = GFX_goal_stalin
		prerequisite = { focus = SOV_the_path_of_marxism_leninism }
		x = -8
		y = 1
		offset = {
			x = 8
			y = 1
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = SOV_beaten_but_not_defeated
				NOT = { has_completed_focus = SOV_the_hands_do }
			}
		}
		relative_position_id = SOV_the_path_of_marxism_leninism
		cost = 5

		mutually_exclusive = { focus = SOV_the_right_opposition focus = SOV_the_left_opposition }

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					AND = {
						has_completed_focus = SOV_the_left_opposition
						has_completed_focus = SOV_left_opposition_coup
					}
					AND = {
						has_completed_focus = SOV_the_right_opposition
						has_completed_focus = SOV_coup_detat
					}
					AND = {
						has_completed_focus = SOV_beaten_but_not_defeated
						has_completed_focus = SOV_the_hands_do
					}
					has_completed_focus = SOV_form_a_fifth_column
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA FOCUS_FILTER_STABILITY}

		completion_reward = {
			hidden_effect = {
				add_dynamic_modifier = { modifier = SOV_the_politburo_good_dynamic_modifier }
			}
			custom_effect_tooltip = SOV_the_centre_ns_tt

			add_political_power = 25
			add_stability = 0.05
			set_division_template_lock = {
				division_template = "NKVD Pogranichnaya Diviziya"
				is_locked = no
			}

			SOV_paranoia_low_decrease_effect = yes
			mark_focus_tree_layout_dirty = yes
		}
	}

	focus = {
		id = SOV_socialism_in_one_country
		icon = GFX_focus_SOV_socialism_in_one_country
		prerequisite = { focus = SOV_the_centre }
		x = -1
		y = 1
		relative_position_id = SOV_the_centre
		cost = 5
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			add_ideas = SOV_socialism_in_one_country_idea
			add_to_variable = { SOV_the_politburo_communism_drift = 0.05 }
			add_to_variable = { SOV_the_politburo_drift_defence_factor = 0.05 } 
			add_to_variable = { SOV_the_politburo_defensive_war_stability_factor = 0.25 } 
			custom_effect_tooltip = SOV_socialism_in_one_country_ns_tt

			add_political_power = 25

			SOV_paranoia_low_decrease_effect = yes
		}
	}

	focus = {
		id = SOV_the_stalin_constitution
		icon = GFX_generic_goal_communist_reforms
		prerequisite = { focus = SOV_the_centre }
		x = 1
		y = 1
		relative_position_id = SOV_the_centre
		cost = 5
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_to_variable = { SOV_the_politburo_political_power_factor = 0.05 }
			add_to_variable = { SOV_the_politburo_drift_defence_factor = 0.05 } 
			custom_effect_tooltip = SOV_the_stalin_constitution_ns_tt

			add_political_power = 50
			add_stability = 0.05

			SOV_paranoia_low_decrease_effect = yes
		}
	}

	focus = {
		id = SOV_the_zinovyevite_terrorist_center
		icon = GFX_focus_SOV_purge_zinovyevists
		prerequisite = { focus = SOV_the_stalin_constitution }
		x = 0
		y = 1
		relative_position_id = SOV_the_stalin_constitution
		cost = 5
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		select_effect = {
			set_country_flag = SOV_paranoia_do_not_cancel_focus_flag #This focus cannot be canceled
		}

		completion_reward = {
			clr_country_flag = SOV_paranoia_do_not_cancel_focus_flag
			set_country_flag = { flag = SOV_paranoia_random_purge_cooldown_from_focus_flag days = 15 } #Used to prevent random purges from popping up while this is active
			set_country_flag = SOV_first_moscow_trial_flag #Used to unlock the next purge focus

			add_political_power = 25

			SOV_paranoia_high_increase_effect = yes
			
			#HISTORICAL
			#Zinovyev
			if = {
				limit = {
					has_character = SOV_grigory_zinovyev
				}
				SOV_grigory_zinovyev = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#Kamenev
			if = {
				limit = {
					has_character = SOV_lev_kamenev
				}
				SOV_lev_kamenev = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#Smirnov
			if = {
				limit = {
					has_character = SOV_ivan_smirnov
				}
				SOV_ivan_smirnov = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}

			#NOT-SO-HISTORICAL
			#Sokolnikov
			if = {
				limit = {
					has_character = SOV_grigory_sokolnikov
				}
				SOV_grigory_sokolnikov = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#Shlyapnikov
			if = {
				limit = {
					has_character = SOV_aleksandr_shlyapnikov
				}
				SOV_aleksandr_shlyapnikov = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			
			custom_effect_tooltip = SOV_will_trigger_a_great_purge_tt
			hidden_effect = {
				set_country_flag = SOV_purge_event_unavoidable_flag #No way to avoid this purge. This people are about to be purged and there's nothing you can do for them.
				SOV_trigger_great_purge_moscow_trial_effect = yes #FIRST MOSCOW TRIAL -> Zinovyev & friends
			}
			custom_effect_tooltip = SOV_trigger_first_moscow_trial_tt
			hidden_effect = {
				NOR = {
					country_event = { id = naw_norway.100 days = 60 random_days = 30 }	#condemnation of trials by Norway
				}
			}
		}
	}

	focus = {
		id = SOV_secure_the_administration
		icon = GFX_focus_generic_soviet_politics
		prerequisite = { focus = SOV_the_zinovyevite_terrorist_center }
		x = -1
		y = 1
		relative_position_id = SOV_the_zinovyevite_terrorist_center
		cost = 5

		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			add_to_variable = { SOV_the_politburo_economy_cost_factor = -0.2 }
			add_to_variable = { SOV_the_politburo_trade_laws_cost_factor = -0.2 }
			add_to_variable = { SOV_the_politburo_mobilization_laws_cost_factor = -0.2 }
			custom_effect_tooltip = SOV_secure_the_administration_ns_tt

			add_political_power = 25

			SOV_paranoia_medium_decrease_effect = yes
		}
	}

	focus = {
		id = SOV_the_collectivization_process
		icon = GFX_focus_prc_agrarian_socialism
		prerequisite = { focus = SOV_socialism_in_one_country }
		prerequisite = { focus = SOV_secure_the_administration }
		x = 0
		y = 3
		relative_position_id = SOV_socialism_in_one_country
		cost = 10

		completion_reward = {
			add_to_variable = { SOV_the_politburo_good_consumer_goods_factor = -0.02 }
			add_to_variable = { SOV_the_politburo_production_speed_buildings_factor = 0.05 } 
			add_to_variable = { SOV_the_politburo_global_building_slots_factor = 0.1 } 
			custom_effect_tooltip = SOV_the_collectivization_process_ns_tt

			add_stability = -0.05
			add_war_support = -0.05

			if = { #Target a rural state with no civs
				limit = {
					any_owned_state = {
						OR = {
							has_state_category = town #Developed Rural Region
							has_state_category = rural #Rural Region
						}
						is_fully_controlled_by = ROOT
						industrial_complex < 1
						arms_factory < 1
						dockyard < 1
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
				}
				random_owned_state = {
					limit = {
						OR = {
							has_state_category = town #Developed Rural Region
							has_state_category = rural #Rural Region
						}
						is_fully_controlled_by = ROOT
						industrial_complex < 1
						arms_factory < 1
						dockyard < 1
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
			else_if = { #Failsafe 1: Target a random rural state
				limit = {
					any_owned_state = {
						OR = {
							has_state_category = town #Developed Rural Region
							has_state_category = rural #Rural Region
						}
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
				}
				random_owned_state = {
					limit = {
						OR = {
							has_state_category = town #Developed Rural Region
							has_state_category = rural #Rural Region
						}
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
			else_if = { #Failsafe 2: Target a random state
				limit = {
					any_owned_state = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}

			SOV_paranoia_medium_decrease_effect = yes
		}
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_SOV_POLITICAL_PARANOIA}
	}

	focus = {
		id = SOV_the_anti_soviet_trotskyist_center
		icon = GFX_focus_SOV_purge_trotskyists
		prerequisite = { focus = SOV_the_zinovyevite_terrorist_center }
		x = 0
		y = 2
		relative_position_id = SOV_the_zinovyevite_terrorist_center
		cost = 5

		available = {
			has_country_flag = {
				flag = SOV_first_moscow_trial_flag
				days > 175
			}
			custom_trigger_tooltip = {
				tooltip = SOV_last_purge_focus_days_tt
				has_country_flag = {
					flag = SOV_first_moscow_trial_flag
					days > 175
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		select_effect = {
			set_country_flag = SOV_paranoia_do_not_cancel_focus_flag #This focus cannot be canceled
		}

		completion_reward = {
			clr_country_flag = SOV_paranoia_do_not_cancel_focus_flag
			set_country_flag = { flag = SOV_paranoia_random_purge_cooldown_from_focus_flag days = 15 } #Used to prevent random purges from popping up while this is active
			set_country_flag = SOV_second_moscow_trial_flag #Used to unlock the next purge focus

			add_political_power = 25

			SOV_paranoia_high_increase_effect = yes

			#HISTORICAL
			#Radek
			if = {
				limit = {
					has_character = SOV_karl_radek
				}
				SOV_karl_radek = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#NOT-SO-HISTORICAL
			#Smilga
			if = {
				limit = {
					has_character = SOV_ivar_smilga
				}
				SOV_ivar_smilga = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#Preobrazhensky
			if = {
				limit = {
					has_character = SOV_yevgeny_preobrazhensky
				}
				SOV_yevgeny_preobrazhensky = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#Ryutin
			if = {
				limit = {
					has_character = SOV_martemyan_ryutin
				}
				SOV_martemyan_ryutin = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#Ustryalov
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				if = {
					limit = {
						has_character = SOV_nikolay_ustryalov
					}
					SOV_nikolay_ustryalov = {
						set_character_flag = SOV_targeted_for_purge_flag
					}
				}
				else = {
					SOV_add_random_character_to_purge_targets_effect = yes
				}
			}

			custom_effect_tooltip = SOV_will_trigger_a_great_purge_tt
			hidden_effect = {
				set_country_flag = SOV_purge_event_unavoidable_flag #No way to avoid this purge. This people are about to be purged and there's nothing you can do for them.
				SOV_trigger_great_purge_moscow_trial_effect = yes #SECOND MOSCOW TRIAL -> Left Opposition
			}
			custom_effect_tooltip = SOV_trigger_second_moscow_trial_tt

			hidden_effect = {
				swap_ruler_traits = {
					remove = stalin_political_paranoia
					add = stalin_political_paranoia_advanced
				}
				add_to_variable = { SOV_paranoia_weekly_modifiers_amount = 1 }
				SOV_paranoia_modifier_update_gui_tooltip = yes
			}		
			custom_effect_tooltip = SOV_increase_weekly_paranoia_in_trait_tt
		}
	}

	focus = {
		id = SOV_the_workers_dictatorship
		icon = GFX_focus_spr_masters_of_our_own_fate
		prerequisite = { focus = SOV_the_anti_soviet_trotskyist_center }
		x = 0
		y = 1
		relative_position_id = SOV_the_anti_soviet_trotskyist_center
		cost = 5
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			add_to_variable = { SOV_the_politburo_political_power_factor = 0.05 }
			add_to_variable = { SOV_the_politburo_max_surrender_limit_offset = 0.05 }
			custom_effect_tooltip = SOV_the_workers_dictatorship_ns_tt

			add_political_power = 50

			SOV_paranoia_low_decrease_effect = yes
		}
	}

	focus = {
		id = SOV_organization_centralization_discipline
		icon = GFX_focus_SOV_organization_centralization_discipline
		prerequisite = { focus = SOV_the_collectivization_process }
		prerequisite = { focus = SOV_the_workers_dictatorship }
		x = -2
		y = 1
		relative_position_id = SOV_the_workers_dictatorship
		cost = 5
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			add_to_variable = { SOV_the_politburo_max_command_power = 20 }
			add_to_variable = { SOV_the_politburo_mobilization_speed = 0.05 }
			custom_effect_tooltip = SOV_organization_centralization_discipline_ns_tt

			add_political_power = 50

			SOV_paranoia_medium_decrease_effect = yes
		}
	}

	focus = {
		id = SOV_war_economy
		icon = GFX_goal_generic_trade
		prerequisite = { focus = SOV_organization_centralization_discipline }
		x = 0
		y = 1
		relative_position_id = SOV_organization_centralization_discipline
		cost = 6
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			custom_effect_tooltip = SOV_war_economy_stability_tt
			if = {
				limit = {
					has_war = no
				}
				add_stability = -0.1
			}
			else = {
				custom_effect_tooltip = SOV_war_economy_stability_war_tt
			}
			if = {
				limit = {
					NOT = { has_idea = war_economy }
					NOT = { has_idea = tot_economic_mobilisation }
				}
				add_ideas = war_economy
			}
			if = {
				limit = {
					217 = {
						is_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 2
							include_locked = yes
						}
					}
				}
				217 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
			else = {
				random_controlled_state = {
					limit = {
						arms_factory > 2
						free_building_slots = {
							building = arms_factory
							size > 2
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
			random_controlled_state = {
				limit = {
					arms_factory > 2
					free_building_slots = {
						building = arms_factory
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = SOV_the_military_conspiracy
		icon = GFX_focus_SOV_military_purge
		prerequisite = { focus = SOV_the_workers_dictatorship }
		x = 0
		y = 2
		relative_position_id = SOV_the_anti_soviet_trotskyist_center
		cost = 5

		available = {
			has_country_flag = {
				flag = SOV_second_moscow_trial_flag
				days > 175
			}
			custom_trigger_tooltip = {
				tooltip = SOV_last_purge_focus_days_military_tt
				has_country_flag = {
					flag = SOV_second_moscow_trial_flag
					days > 175
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		select_effect = {
			set_country_flag = SOV_paranoia_do_not_cancel_focus_flag #This focus cannot be canceled
		}

		completion_reward = {
			clr_country_flag = SOV_paranoia_do_not_cancel_focus_flag
			set_country_flag = { flag = SOV_paranoia_random_purge_cooldown_from_focus_flag days = 15 } #Used to prevent random purges from popping up while this is active
			set_country_flag = SOV_trial_of_the_generals_flag #Used to unlock the next purge focus

			add_political_power = 25

			SOV_paranoia_high_increase_effect = yes

			#Historical
			if = {
				limit = {
					has_character = SOV_mikhail_tukhachevsky
				}
				SOV_mikhail_tukhachevsky = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			
			#Historical	- more comrades of Tukhachevsky getting purged...
			if = {
				limit = {
					has_character = SOV_august_kork
					SOV_august_kork = {
						SOV_character_can_be_purged = yes
					}
				}
				SOV_august_kork = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}

			#Historical	- more comrades of Tukhachevsky getting purged...
			if = {
				limit = {
					has_character = SOV_robert_eidemann
					SOV_robert_eidemann = {
						SOV_character_can_be_purged = yes
					}
				}
				SOV_robert_eidemann = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}

			#Historical	- more comrades of Tukhachevsky getting purged...
			if = {
				limit = {
					has_character = SOV_boris_feldman
					SOV_boris_feldman = {
						SOV_character_can_be_purged = yes
					}
				}
				SOV_boris_feldman = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}

			#Historical	- more comrades of Tukhachevsky getting purged...
			if = {
				limit = {
					has_character = SOV_iona_yakir
					SOV_iona_yakir = {
						SOV_character_can_be_purged = yes
					}
				}
				SOV_iona_yakir = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#NOT-SO-HISTORICAL
			#Removed Yegorov, since he was purged in 1939 and was marked as "non-historical" - Fantom
			#Blyukher
			if = {
				limit = {
					has_character = SOV_vasily_blyukher
				}
				SOV_vasily_blyukher = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#Primakov
			if = {
				limit = {
					has_character = SOV_vitaly_primakov
				}
				SOV_vitaly_primakov = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}			

			custom_effect_tooltip = SOV_will_trigger_a_great_purge_tt
			hidden_effect = {
				set_country_flag = SOV_purge_event_unavoidable_flag #No way to avoid this purge. This people are about to be purged and there's nothing you can do for them.
				SOV_great_purge_army_trial_of_the_generals_effect = yes #TRIAL OF THE GENERALS -> Tukhachevsky
			}

			set_country_flag = SOV_stalinist_military_flag #New Generals have more chances of being Stalinists after this
		}
	}

	focus = {
		id = SOV_the_bloc_of_rights_and_trotskyites
		icon = GFX_focus_SOV_purge_bukharinists
		prerequisite = { focus = SOV_the_military_conspiracy }
		x = 0
		y = 1
		relative_position_id = SOV_the_military_conspiracy
		cost = 5

		available = {
			has_country_flag = {
				flag = SOV_trial_of_the_generals_flag
				days > 175
			}
			custom_trigger_tooltip = {
				tooltip = SOV_last_purge_focus_days_rights_tt
				has_country_flag = {
					flag = SOV_trial_of_the_generals_flag
					days > 175
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		select_effect = {
			set_country_flag = SOV_paranoia_do_not_cancel_focus_flag #This focus cannot be canceled
		}

		completion_reward = {
			clr_country_flag = SOV_paranoia_do_not_cancel_focus_flag
			set_country_flag = { flag = SOV_paranoia_random_purge_cooldown_from_focus_flag days = 15 } #Used to prevent random purges from popping up while this is active
			set_country_flag = SOV_third_moscow_trial_flag #Used to unlock the next purge focus

			add_political_power = 25

			#HISTORICAL
			#Bukharin
			if = {
				limit = {
					has_character = SOV_nikolay_bukharin
				}
				SOV_nikolay_bukharin = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#Rykov
			if = {
				limit = {
					has_character = SOV_aleksey_rykov
				}
				SOV_aleksey_rykov = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#NOT-SO-HISTORICAL
			#Tomsky
			if = {
				limit = {
					has_character = SOV_mikhail_tomsky
				}
				SOV_mikhail_tomsky = {
					set_character_flag = SOV_targeted_for_purge_flag
				}
			}
			else = {
				SOV_add_random_character_to_purge_targets_effect = yes
			}
			#Litvinov was not purged, so why put him there? Died 1951... - Fantom

			custom_effect_tooltip = SOV_will_trigger_a_great_purge_tt
			hidden_effect = {
				set_country_flag = SOV_purge_event_unavoidable_flag #No way to avoid this purge. This people are about to be purged and there's nothing you can do for them.
				SOV_trigger_great_purge_moscow_trial_effect = yes #THIRD MOSCOW TRIAL -> Right Opposition
			}
			custom_effect_tooltip = SOV_trigger_third_moscow_trial_tt

			SOV_remove_paranoia_effect = yes #REMOVE PARANOIA SYSTEM
		}
	}

	focus = {
		id = SOV_behead_the_snake
		icon = GFX_focus_SOV_behead_the_snake
		prerequisite = { focus = SOV_the_military_conspiracy }
		x = 2
		y = 1
		relative_position_id = SOV_the_military_conspiracy
		cost = 5

		available = {
			has_government = communism
		}
		
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				custom_effect_tooltip = SOV_behead_the_snake_lar_tt
				create_operative_leader = {
					name = "Ramón Mercader"
					GFX = GFX_portrait_SOV_ramon_mercader
					traits = { operative_tough operative_infiltrator }
					bypass_recruitment = no
					available_to_spy_master = yes
					nationalities = { SOV SPR MEX }
				}

				#Extra operative slot
				set_variable = { SOV_the_politburo_operative_slot = 1 }
				custom_effect_tooltip = SOV_behead_the_snake_ns_tt
			}
			else = {
				custom_effect_tooltip = SOV_behead_the_snake_no_lar_tt
			}

			SOV_paranoia_high_decrease_effect = yes
		}
	}

	focus = {
		id = SOV_stalins_cult_of_personality
		icon = GFX_focus_SOV_stalins_cult_of_personality
		prerequisite = { focus = SOV_the_bloc_of_rights_and_trotskyites }
		x = 2
		y = 1
		relative_position_id = SOV_the_bloc_of_rights_and_trotskyites
		cost = 5

		mutually_exclusive = {
			focus = SOV_prepare_to_hunt_the_bear
		}

		available = {
			has_country_flag = {
				flag = SOV_third_moscow_trial_flag
				days > 175
			}
			custom_trigger_tooltip = {
				tooltip = SOV_last_purge_focus_days_cult_tt
				has_country_flag = {
					flag = SOV_third_moscow_trial_flag
					days > 175
				}
			}
			has_completed_focus = SOV_expand_the_agitprop
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_PROPAGANDA}

		completion_reward = {
			add_political_power = 25

			custom_effect_tooltip = unlock_propaganda_campaign_tt
			unlock_decision_tooltip = SOV_propaganda_stalin
			custom_effect_tooltip = propaganda_campaign_requirement_tt
		}
	}

	focus = {
		id = SOV_prepare_to_hunt_the_bear
		icon = GFX_goal_SOV_trot_destalinization
		prerequisite = { focus = SOV_the_bloc_of_rights_and_trotskyites }
		x = -3
		y = 1
		relative_position_id = SOV_the_bloc_of_rights_and_trotskyites
		cost = 5

		mutually_exclusive = {
			focus = SOV_stalins_cult_of_personality
		}

		available = {
			is_subject = no
			has_country_leader = {
				character = SOV_iosif_stalin
				ruling_only = yes
			}
			any_army_leader = {
				has_trait = trait_SOV_cowed_by_stalin_army
			}
		}
		

		completion_reward = {
			add_stability = 0.05
			add_war_support = -0.1
			add_popularity = {
				ideology = communism
				popularity = 0.15
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SOV_look_to_the_east
		icon = GFX_goal_generic_communist_secret_police
		prerequisite = { focus = SOV_prepare_to_hunt_the_bear }
		x = -1
		y = 1
		relative_position_id = SOV_prepare_to_hunt_the_bear
		cost = 5

		available = {
			is_subject = no
		}
		
		completion_reward = {
			add_political_power = 50
			unlock_decision_tooltip = SOV_contact_lyushkov_group_in_far_east
			unlock_decision_tooltip = SOV_provide_intel_to_the_japanese
			unlock_decision_tooltip = SOV_recruit_white_emigres_in_manchuria
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SOV_freedom_of_debate_unity_of_action
		icon = GFX_goal_FRA_pcf_sfio_coalition
		prerequisite = { focus = SOV_prepare_to_hunt_the_bear focus = SOV_stalins_cult_of_personality }
		x = 1
		y = 1
		relative_position_id = SOV_prepare_to_hunt_the_bear
		cost = 10
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_to_variable = { SOV_the_politburo_political_power_factor = 0.05 }
			add_to_variable = { SOV_the_politburo_political_advisor_cost_factor = -0.15 }
			custom_effect_tooltip = SOV_freedom_of_debate_unity_of_action_ns_tt

			add_political_power = 50
			add_stability = 0.05
			add_war_support = 0.05
		}
	}

	focus = {
		id = SOV_forge_new_future
		icon = GFX_goal_nikita_khrushchev
		prerequisite = { focus = SOV_freedom_of_debate_unity_of_action }
		mutually_exclusive = {
			focus = SOV_military_chairman
			focus = SOV_prolong_the_stalin_legacy
		}
		x = -2
		y = 1
		relative_position_id = SOV_freedom_of_debate_unity_of_action
		cost = 5

		available = { has_global_flag = stalin_dead }
		
		completion_reward = {
			add_stability = 0.05
			add_country_leader_role = {
				character = SOV_nikita_khrushchyov
				country_leader = {
					ideology = marxism
					traits = { veteran_communist political_commissar }
					expire = "1965.3.1.1"
				}
				promote_leader = yes 
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_military_chairman
		icon = GFX_focus_generic_military_dictatorship
		prerequisite = { focus = SOV_freedom_of_debate_unity_of_action }
		mutually_exclusive = {
			focus = SOV_forge_new_future
			focus = SOV_prolong_the_stalin_legacy
		}
		x = 0
		y = 1
		relative_position_id = SOV_freedom_of_debate_unity_of_action
		cost = 5
		available = {
			has_global_flag = stalin_dead
			threat > 0.6
		}
		completion_reward = {
			add_war_support = 0.05
			if = {
				limit = {
					has_character = SOV_georgy_zhukov
					SOV_georgy_zhukov = { is_field_marshal = yes }
				}
				add_country_leader_role = {
					character = SOV_georgy_zhukov
					country_leader = {
						ideology = marxism
						traits = { stalin_great_commander army_connections incompetent_leader }
						expire = "1965.3.1.1"
					}
					promote_leader = yes
				}
			}
			else_if = {
				limit = {
					has_character = SOV_kliment_voroshilov
					SOV_kliment_voroshilov = { is_field_marshal = yes }
				}
				add_country_leader_role = {
					character = SOV_kliment_voroshilov
					country_leader = {
						ideology = marxism
						traits = { stalin_great_commander army_connections incompetent_leader }
						expire = "1965.3.1.1"
					}
					promote_leader = yes
				}
			}
			else_if = {
				limit = {
					has_character = SOV_semyon_budyonny
					SOV_semyon_budyonny = { is_field_marshal = yes }
				}
				add_country_leader_role = {
					character = SOV_semyon_budyonny
					country_leader = {
						ideology = marxism
						traits = { stalin_great_commander army_connections incompetent_leader }
						expire = "1965.3.1.1"
					}
					promote_leader = yes
				}
			}
			else_if = {
				limit = { any_army_leader = { is_field_marshal = yes } }
				ROOT = {
					random_unit_leader = {
						limit = { is_field_marshal = yes }
						add_country_leader_role = {
							country_leader = {
								ideology = marxism
								traits = { stalin_great_commander army_connections incompetent_leader }
								expire = "1965.1.1.1"
							}
							promote_leader = yes 
						}
					}
				}
			}
			else = {
				ROOT = {
					random_unit_leader = {
						add_country_leader_role = {
							country_leader = {
								ideology = marxism
								traits = { stalin_great_commander army_connections incompetent_leader }
								expire = "1965.1.1.1"
							}
							promote_leader = yes 
						}
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = SOV_prolong_the_stalin_legacy
		icon = GFX_goal_generic_communism
		prerequisite = { focus = SOV_freedom_of_debate_unity_of_action }
		mutually_exclusive = {
			focus = SOV_forge_new_future
			focus = SOV_military_chairman
		}
		available = { has_global_flag = stalin_dead }
		
		x = 2
		y = 1
		relative_position_id = SOV_freedom_of_debate_unity_of_action
		cost = 7.2

		ai_will_do = {
			factor = 1000
		}

		completion_reward = {
			add_stability = 0.025
			add_war_support = 0.025
			effect_tooltip = {
				add_country_leader_role = {
					character = SOV_georgy_malenkow
					country_leader = {
						ideology = stalinism
						traits = { veteran_communist captain_of_industry }
						expire = "1965.3.1.1"
					}
					promote_leader = yes 
				}
			}
			hidden_effect = {
				set_country_flag = purge_beria
				SOV_georgy_malenkow = {
					remove_country_leader_role = {
						ideology = marxism
					}
					add_country_leader_role = {
						character = SOV_georgy_malenkow
						country_leader = {
							ideology = stalinism
							traits = { veteran_communist captain_of_industry }
							expire = "1965.3.1.1"
						}
						promote_leader = yes 
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_denounce_stalinist_crimes
		icon = GFX_fifth_column
		prerequisite = {
			focus = SOV_forge_new_future
			focus = SOV_military_chairman
		}
		mutually_exclusive = { focus = SOV_rehabilitate_stalins_legacy }
		x = 1
		y = 1
		relative_position_id = SOV_forge_new_future
		cost = 5
		
		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_propaganda_campaigns_taken_5_or_greater_tt
				check_variable = { SOV_propaganda_campaigns_taken = 5 compare = greater_than_or_equals }
			}
		}

		completion_reward = {
			add_timed_idea = {
				idea = SOV_destalinization
				days = 1095
			}
			add_popularity = {
				ideology = communism 
				popularity = -0.1
			}
			add_popularity = {
				ideology = democratic 
				popularity = 0.1
			}
			add_threat = -20
			custom_effect_tooltip = SOV_international_revolutionary_marxist_centre_stalinists_tt
			every_other_country = {
				limit = {
					has_country_leader_ideology = stalinism
				}
				add_opinion_modifier = { modifier = large_decrease target = ROOT }
				add_ai_strategy = {	#they will hate us
					type = antagonize
					id = ROOT
					value = 50
				}
			}
			custom_effect_tooltip = SOV_every_nation_with_negative_opinion_against_us_tt
			every_other_country = {
				limit = {
					NOT = {
						has_war_with = ROOT
					}
					OR = {
						has_government = democratic
						has_opinion = {
							target = ROOT
							value < 1
						}
					}
				}
				add_opinion_modifier = { modifier = small_increase target = ROOT }
				add_ai_strategy = {	#they will hate us
					type = befriend
					id = ROOT
					value = 20		#small token of friendship
				}
			}
		}
	}

	focus = {
		id = SOV_strike_the_NKVD_positions
		icon = GFX_focus_SOV_the_last_purge
		prerequisite = { focus = SOV_denounce_stalinist_crimes }
		x = 0
		y = 1
		relative_position_id = SOV_denounce_stalinist_crimes
		cost = 5
		ai_will_do = {
			factor = 1000
		}
		completion_reward = {
			add_political_power = 50
			add_timed_idea = {
				idea = r56_nkvd_cleanup
				days = 160
			}
			if = { limit = { has_character = SOV_genrikh_yagoda } retire_character = SOV_genrikh_yagoda }
			if = { limit = { has_character = SOV_nikolay_yezhov } retire_character = SOV_nikolay_yezhov }
			if = { limit = { has_character = SOV_lavrenty_beriya } retire_character = SOV_lavrenty_beriya }
			if = { limit = { has_character = SOV_mikhail_frinovsky } retire_character = SOV_mikhail_frinovsky }
			custom_effect_tooltip = SOV_lessons_of_war_cowed_trait_tt
			hidden_effect = {
				every_army_leader = {
					limit = {
						has_trait = trait_SOV_cowed_by_stalin_army
					}
					remove_unit_leader_trait =  trait_SOV_cowed_by_stalin_army
				}
				every_navy_leader = {
					limit = {
						has_trait = trait_SOV_cowed_by_stalin_navy
					}
					remove_unit_leader_trait =  trait_SOV_cowed_by_stalin_navy
				}
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SOV_rehabilitate_stalins_legacy
		icon = GFX_goal_stalin
		prerequisite = {
			focus = SOV_military_chairman
			focus = SOV_prolong_the_stalin_legacy
		}
		mutually_exclusive = { focus = SOV_denounce_stalinist_crimes }
		x = -1
		y = 1
		relative_position_id = SOV_prolong_the_stalin_legacy
		cost = 5
		ai_will_do = {
			factor = 1000
		}
		completion_reward = {
			add_political_power = 100
			add_war_support = 0.075
			custom_effect_tooltip = "sets your subideology to Stalinism if it isn't already"
			if = {
				limit = {
					has_government = communism
				}
				set_country_leader_ideology = stalinism
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SOV_the_construction_of_communism
		icon = GFX_focus_ger_great_red_menace
		prerequisite = { focus = SOV_stalins_cult_of_personality focus = SOV_prepare_to_hunt_the_bear }
		x = -2
		y = 1
		relative_position_id = SOV_stalins_cult_of_personality
		cost = 10

		available = {
			num_subjects > 0
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_to_variable = { SOV_the_politburo_opinion_gain_monthly_same_ideology_factor = 0.25 }
			custom_effect_tooltip = SOV_the_construction_of_communism_ns_tt

			if = {
				limit = {
					num_subjects > 0
				}
				every_subject_country = {
					add_autonomy_score = {
						value = -100
						localization = SOV_the_construction_of_communism
					}
				}
			}
			else = {
				custom_effect_tooltip = SOV_the_construction_of_communism_puppet_autonomy_tt
			}

			custom_effect_tooltip = SOV_the_construction_of_communism_railways_tt
			#Build railway from Moscow to Puppets
			hidden_effect = { #Hiidden for tooltip reasons
				every_subject_country = {
					limit = {
						capital_scope = {
							OR = {
								is_on_continent = europe
								is_on_continent = asia
								is_on_continent = middle_east
							}
						}
					}

					if = {
						limit = {
							can_build_railway = {
								start_state = ROOT.capital
								target_state = THIS.capital
								build_only_on_allied = yes
							}
						}
						build_railway = {				
							start_state = ROOT.capital
							target_state = THIS.capital
							build_only_on_allied = yes
						}
					}		
				}
			}
		}
	}

	focus = {
		id = SOV_they_will_know_fear
		icon = GFX_focus_generic_army_tanks2
		prerequisite = { focus = SOV_stalins_cult_of_personality }
		x = 0
		y = 1
		relative_position_id = SOV_stalins_cult_of_personality
		cost = 5

		available = {
			has_defensive_war = yes
			has_tech = advanced_heavy_tank_chassis
		}
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_tech_bonus = {
				name = SOV_they_will_know_fear
				bonus = 1
				uses = 2
				category = armor
			}

			# IS-2 tank template
			if = {
				limit = {
					OR = {
						has_tech = antiair2
						has_tech = antitank2
					}
				}
				create_equipment_variant = {
					name = "IS-2"
					type = heavy_tank_chassis_3
					parent_version = 0
					modules = {
						main_armament_slot = tank_heavy_cannon_2
						turret_type_slot = tank_heavy_three_man_tank_turret
						suspension_type_slot = tank_torsion_bar_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = tank_radio_1
						special_type_slot_2 = sloped_armor
						special_type_slot_3 = smoke_launchers
					}
					upgrades = {
						tank_nsb_engine_upgrade = 8
						tank_nsb_armor_upgrade = 6
					}
					icon = "gfx/interface/technologies/SOV_adv_heavy_tank.dds"
				}
			}
			else_if = {
				limit = {
					OR = {
						has_tech = interwar_antiair
						has_tech = interwar_antitank
					}
				}
				create_equipment_variant = {
					name = "IS-2"
					type = heavy_tank_chassis_3
					parent_version = 0
					modules = {
						main_armament_slot = tank_heavy_cannon
						turret_type_slot = tank_heavy_three_man_tank_turret
						suspension_type_slot = tank_torsion_bar_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = tank_radio_1
						special_type_slot_2 = sloped_armor
						special_type_slot_3 = smoke_launchers
					}
					upgrades = {
						tank_nsb_engine_upgrade = 8
						tank_nsb_armor_upgrade = 6
					}
					icon = "gfx/interface/technologies/SOV_adv_heavy_tank.dds"
				}
			}
			add_tech_bonus = {
				name = GER_counter_sloped_armor
				bonus = 1
				uses = 1
				category = cat_anti_tank
			}
			if = {
				limit = {
					NOT = {
						has_dlc = "No Step Back"
					}
				}
				add_tech_bonus = {
					name = SOV_they_will_know_fear
					bonus = 2
					uses = 1
					technology = improved_light_td
					technology = advanced_light_td
				}
				add_tech_bonus = {
					name = SOV_they_will_know_fear
					bonus = 2
					uses = 1
					technology = basic_medium_td
					technology = improved_medium_td
					technology = advanced_medium_td
				}
				add_tech_bonus = {
					name = SOV_they_will_know_fear
					bonus = 2
					uses = 1
					technology = basic_heavy_td
					technology = improved_heavy_td
					technology = advanced_heavy_td
				}				
			}
		}
	}
	
	focus = {
		id = SOV_the_faithful_servant_of_lenin
		icon = GFX_goal_lenin3
		prerequisite = {
			focus = SOV_stalins_cult_of_personality
			focus = SOV_forge_new_future
			focus = SOV_military_chairman
			focus = SOV_prolong_the_stalin_legacy
		}
		x = -1
		y = 3
		relative_position_id = SOV_stalins_cult_of_personality
		cost = 5

		mutually_exclusive = { focus = SOV_inheritor_of_the_mantle_of_lenin }

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_propaganda_campaigns_taken_5_or_greater_tt
				check_variable = { SOV_propaganda_campaigns_taken = 5 compare = greater_than_or_equals }
			}
		}
		
		search_filters = {FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_stability = 0.1
			add_country_leader_trait = stalin_servant_of_lenin
		}
	}

	focus = {
		id = SOV_inheritor_of_the_mantle_of_lenin
		icon = GFX_focus_generic_support_the_left_right
		prerequisite = { focus = SOV_stalins_cult_of_personality }
		x = 1
		y = 3
		relative_position_id = SOV_stalins_cult_of_personality
		cost = 5

		mutually_exclusive = { focus = SOV_the_faithful_servant_of_lenin }

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_propaganda_campaigns_taken_5_or_greater_tt
				check_variable = { SOV_propaganda_campaigns_taken = 5 compare = greater_than_or_equals }
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT}

		completion_reward = {
			add_war_support = 0.05
			add_country_leader_trait = stalin_inheritor_of_lenin
		}
	}

	focus = {
		id = SOV_brilliant_genius
		icon = GFX_focus_generic_socialist_science
		prerequisite = { focus = SOV_inheritor_of_the_mantle_of_lenin }
		x = 1
		y = 1
		relative_position_id = SOV_inheritor_of_the_mantle_of_lenin
		cost = 10
		
		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_propaganda_campaigns_taken_10_or_greater_tt
				check_variable = { SOV_propaganda_campaigns_taken = 10 compare = greater_than_or_equals }
			}
		}
		
		search_filters = {FOCUS_FILTER_RESEARCH}

		completion_reward = {
			#Academies of Sciences decisions are 50% cheaper
			divide_variable = { SOV_national_academy_of_sciences_construction_cost = 2 }
			custom_effect_tooltip = SOV_brilliant_genius_academies_of_sciences_tt

			if = {
				limit = {
					has_completed_focus = SOV_leader_of_the_party_and_the_people
				}
				swap_ruler_traits = {
					remove = stalin_inheritor_of_lenin_leader
					add = stalin_inheritor_of_lenin_final
				}
			}
			else = {
				swap_ruler_traits = {
					remove = stalin_inheritor_of_lenin
					add = stalin_inheritor_of_lenin_genius
				}
			}
		}
	}

	focus = {
		id = SOV_ban_excessive_hero_worship
		icon = GFX_focus_renounce_the_treaty_of_trianon
		prerequisite = { focus = SOV_the_faithful_servant_of_lenin }
		x = -1
		y = 1
		relative_position_id = SOV_the_faithful_servant_of_lenin
		cost = 10

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_propaganda_campaigns_taken_10_or_greater_tt
				check_variable = { SOV_propaganda_campaigns_taken = 10 compare = greater_than_or_equals }
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY}

		completion_reward = {
			custom_effect_tooltip = SOV_ban_excessive_hero_worship_dec_cost_tt
			SOV_foreign_politics_decision_cost_reduction_effect = yes

			if = {
				limit = {
					has_completed_focus = SOV_leader_of_the_party_and_the_people
				}
				swap_ruler_traits = {
					remove = stalin_servant_of_lenin_leader
					add = stalin_servant_of_lenin_final
				}
			}
			else = {
				swap_ruler_traits = {
					remove = stalin_servant_of_lenin
					add = stalin_servant_of_lenin_worship
				}
			}
			if = { #demoting to simulate the Malenkows desire to oppose the Leningrads defenders and power struggle - Fantom
				limit = {
					SOV_georgy_zhukov = {
						NOT = { has_character_flag = SOV_character_purged_flag }
						is_field_marshal = yes
					}
				}
				SOV_georgy_zhukov = {
					demote_leader = yes
				}
				random_unit_leader = {
					limit = {
						NOT = { has_character_flag = SOV_character_purged_flag }
						is_field_marshal = yes
					}
					demote_leader = yes
				}
			}
			else = {
				random_unit_leader = {
					limit = {
						NOT = { has_character_flag = SOV_character_purged_flag }
						is_field_marshal = yes
					}
					demote_leader = yes
				}
				random_unit_leader = {
					limit = {
						NOT = { has_character_flag = SOV_character_purged_flag }
						is_field_marshal = yes
					}
					demote_leader = yes
				}
			}
		}
	}

	focus = {
		id = SOV_leader_of_the_party_and_the_people
		icon = GFX_focus_YUG_pan_slavic_congress
		prerequisite = { focus = SOV_inheritor_of_the_mantle_of_lenin focus = SOV_the_faithful_servant_of_lenin }
		x = -1
		y = 1
		relative_position_id = SOV_inheritor_of_the_mantle_of_lenin
		cost = 5
		
		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_propaganda_campaigns_taken_10_or_greater_tt
				check_variable = { SOV_propaganda_campaigns_taken = 10 compare = greater_than_or_equals }
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_political_power = 50

			#Swap Stalin's Trait
			if = { #INHERITOR BRANCH
				limit = {
					has_completed_focus = SOV_inheritor_of_the_mantle_of_lenin
				}
				if = {
					limit = {
						has_completed_focus = SOV_brilliant_genius
					}
					swap_ruler_traits = {
						remove = stalin_inheritor_of_lenin_genius
						add = stalin_inheritor_of_lenin_final
					}
				}
				else = {
					swap_ruler_traits = {
						remove = stalin_inheritor_of_lenin
						add = stalin_inheritor_of_lenin_leader
					}
				}
			}
			else_if = { #SERVANT BRANCH
				limit = {
					has_completed_focus = SOV_the_faithful_servant_of_lenin
				}
				if = {
					limit = {
						has_completed_focus = SOV_ban_excessive_hero_worship
					}
					swap_ruler_traits = {
						remove = stalin_servant_of_lenin_worship
						add = stalin_servant_of_lenin_final
					}
				}
				else = {
					swap_ruler_traits = {
						remove = stalin_servant_of_lenin
						add = stalin_servant_of_lenin_leader
					}
				}
			}
			else = {
				custom_effect_tooltip = SOV_leader_of_the_party_and_the_people_trait_tt
			}
		}
	}
	
	focus = {
		id = SOV_great_commander
		icon = GFX_focus_SOV_builder_of_the_red_army
		prerequisite = { focus = SOV_inheritor_of_the_mantle_of_lenin }
		prerequisite = { focus = SOV_leader_of_the_party_and_the_people }
		x = 1
		y = 1
		relative_position_id = SOV_leader_of_the_party_and_the_people
		cost = 5

		mutually_exclusive = { focus = SOV_architect_of_communism }
		
		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_propaganda_campaigns_taken_15_or_greater_tt
				check_variable = { SOV_propaganda_campaigns_taken = 15 compare = greater_than_or_equals }
			}
		}
		
		search_filters = {FOCUS_FILTER_WAR_SUPPORT}

		completion_reward = {
			add_country_leader_trait = stalin_great_commander
			if = {
				limit = {
					has_country_leader = {
						character = SOV_iosif_stalin
						ruling_only = yes
					}
				}
				add_field_marshal_role = {
					character = "SOV_iosif_stalin"
					traits={ old_guard politically_connected media_personality harsh_leader }
					skill=3
					attack_skill=1
					defense_skill=3
					planning_skill=3
					logistics_skill=3
					legacy_id=0
				}
			}
		}
	}

	focus = {
		id = SOV_architect_of_communism
		icon = GFX_goal_generic_soviet_construction
		prerequisite = { focus = SOV_the_faithful_servant_of_lenin }
		prerequisite = { focus = SOV_leader_of_the_party_and_the_people }
		mutually_exclusive = {
			focus = SOV_great_commander
		}
		x = -1
		y = 1
		relative_position_id = SOV_leader_of_the_party_and_the_people
		cost = 5

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_propaganda_campaigns_taken_15_or_greater_tt
				check_variable = { SOV_propaganda_campaigns_taken = 15 compare = greater_than_or_equals }
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_country_leader_trait = stalin_architect_of_communism
		}
	}

	focus = {
		id = SOV_father_of_nations
		icon = GFX_focus_SOV_father_of_nations
		prerequisite = { focus = SOV_leader_of_the_party_and_the_people }
		x = 0
		y = 2
		relative_position_id = SOV_leader_of_the_party_and_the_people
		cost = 10

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_propaganda_campaigns_taken_20_or_greater_tt
				check_variable = { SOV_propaganda_campaigns_taken = 20 compare = greater_than_or_equals }
			}
		}
		
		search_filters = {FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY}

		completion_reward = {
			swap_ruler_traits = {
				remove = stalin_heart_of_steel
				add = stalin_father_of_nations
			}
			hidden_effect = {
				play_song = "comintern_war_1" #TODO_Manu: Too abrupt (just like speeches) -> Pending feedback for removal
			}
		}
	}

################################################################################################################

#   ### ### ###      ##  ###  ###   ##   ## ### ### ###  ##  #  #     ### #   #  ##  #   #  #  ## ### #   # ### 
#   #   #    #      #  # #  # #  # #  # #    #   #   #  #  # ## #     #    # #  #  # #   #  # #    #  #   # #   
#   ##  ##   #      #  # ###  ###  #  #  #   #   #   #  #  # # ##     ##    #   #    #   #  #  #   #   # #  ##  
#   #   #    #      #  # #    #    #  #   #  #   #   #  #  # #  #     #    # #  #  # #   #  #   #  #   # #  #   
### ### #    #       ##  #    #     ##  ##  ###  #  ###  ##  #  #     ### #   #  ##  ###  ##  ##  ###   #   ### 

################################################################################################################
	
	focus = {
		id = SOV_the_left_opposition
		icon = GFX_goal_SOV_trotsky_victory
		prerequisite = { focus = SOV_the_path_of_marxism_leninism }
		mutually_exclusive = { focus = SOV_the_right_opposition focus = SOV_the_centre }
		x = 2
		y = 1
		offset = {
			x = -7
			y = 0
			trigger = {
				OR = {
					has_completed_focus = SOV_left_opposition_coup 
					has_completed_focus = SOV_coup_detat
				}
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}
		relative_position_id = SOV_the_path_of_marxism_leninism
		cost = 5

		available = {
			SOV_soviet_civil_war_not_started = yes 
			custom_trigger_tooltip = {
				tooltip = SOV_no_major_purge_tt		
				check_variable = { SOV_great_purge_counter < 1 }
			}
		}
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = SOV_the_centre } 
				NOT = { has_completed_focus = SOV_beaten_but_not_defeated }
				NOT = { has_completed_focus = SOV_form_a_fifth_column }
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_political_power = 75
			# SOV_paranoia_high_increase_effect = yes 
			custom_effect_tooltip = SOV_the_left_opposition_tt
			set_variable = { SOV_left_opposition_army_support = 0.25 }
			set_variable = { SOV_left_opposition_navy_support = 0.05 }
			set_variable = { SOV_left_opposition_air_support = 0.15 }
			hidden_effect = {
				# Factionalism start modifier
				add_dynamic_modifier = { modifier = SOV_factionalism_modifier }
				country_event = {
					id = NSB_soviet_paranoia_system_events.01
					hours = 6 
					random_hours = 24
				}
				random_owned_state = {
					limit = {
						NOT = { state = 214 }
						NOT = { state = 192 }
						NOT = { state = 651 }
						NOT = { state = 137 }
						NOT = { state = 405 }
						NOT = { state = 571 }
					}
					set_state_flag = SOV_stalinist_state 
				}
				# Launch the first Stalinist counter measures
				SOV_launch_stalinist_counter_measure = yes
				SOV_get_centre_military_support = yes 
			}
		}
	}

	focus = {
		id = SOV_the_fourth_international 
		icon = GFX_goal_support_fourth_int
		prerequisite = { focus = SOV_the_left_opposition }
		x = -4
		y = 1
		relative_position_id = SOV_the_left_opposition
		cost = 5

		bypass = { has_global_flag = SOV_soviet_civil_war }

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_major_purge_tt		
				check_variable = { SOV_great_purge_counter > 0 }
			}
			SOV_soviet_civil_war_not_started = yes 
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			add_political_power = 120
			SOV_paranoia_low_increase_effect = yes

			news_event = { id = nsb_news.200 hours = 2 random_hours = 2 }			
		}
	}

	focus = {
		id = SOV_bring_old_trotskyists_back 
		icon = GFX_generic_goal_communist_reforms
		prerequisite = { focus = SOV_the_left_opposition }
		x = -2 
		y = 1
		relative_position_id = SOV_the_left_opposition
		cost = 5
		bypass = {
			custom_trigger_tooltip = {
				tooltip = SOV_bring_old_trotskyists_back_trigger_tt
				NOT = { has_character = SOV_karl_radek }
				NOT = { has_character = SOV_yevgeny_preobrazhensky }
			}
		}

		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			custom_effect_tooltip = SOV_bring_old_trotskyists_back_effect_tt #Radek and Preobrazhensky already set as algined to left oppo
			SOV_paranoia_low_increase_effect = yes 
		}
	}

	
	focus = {
		id = SOV_organize_the_wreckers
		icon = GFX_focus_SOV_organize_wreckers
		prerequisite = { focus = SOV_the_left_opposition }
		x = 1
		y = 1
		relative_position_id = SOV_the_left_opposition
		cost = 10

		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			set_country_flag = SOV_organize_wreckers_flag
			add_political_power = 50
			custom_effect_tooltip = SOV_organize_the_wreckers_tt
		}
	}

	focus = {
		id = SOV_integrate_smirnovs_bloc
		icon = GFX_goal_arrests
		prerequisite = { focus = SOV_the_left_opposition }
		x = 0
		y = 2
		relative_position_id = SOV_the_left_opposition
		cost = 5

		available = {
			SOV_soviet_civil_war_not_started = yes 
			SOV_has_selected_hq = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
				SOV_ivan_smirnov = { has_character_flag = SOV_character_purged_flag }
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_medium_increase_effect = yes 
			add_political_power = 50
			custom_effect_tooltip = SOV_integrate_smirnovs_bloc_tt
			hidden_effect = {
				#Liberate and exile advisors
				SOV_ivan_smirnov = { #Already set as algined to left oppo
					clr_character_flag = SOV_imprisoned_flag
					set_character_flag = SOV_exiled_flag
					set_portraits = {
						army = {
							small = "GFX_idea_SOV_ivan_smirnov"
						}
					}
				}
				SOV_ivar_smilga = { #Already set as algined to left oppo
					clr_character_flag = SOV_imprisoned_flag
					set_character_flag = SOV_exiled_flag
					set_portraits = {
						army = {
							small = "GFX_idea_SOV_ivar_smilga"
						}
					}
				}
				SOV_aleksandr_shlyapnikov = { #Already set as algined to left oppo
					clr_character_flag = SOV_imprisoned_flag
					set_character_flag = SOV_exiled_flag
					set_portraits = {
						army = {
							small = "GFX_idea_SOV_aleksandr_shlyapnikov"
						}
					}
				}

				# Add support in armed forces
				add_to_variable = { SOV_left_opposition_army_support = 0.05 }
				add_to_variable = { SOV_left_opposition_navy_support = 0.05 } 
				add_to_variable = { SOV_left_opposition_air_support = 0.05 }
				# Set a few states to join 
				random_owned_state = {
					limit = { 
						OR = {
							state = 399
							state = 398
							state = 400
							state = 406 
							state = 402
							state = 407
						}
						#NOT = { has_state_flag = SOV_left_opposition_state }
						#NOT = { has_state_flag = SOV_right_opposition_state }
						#NOT = { has_state_flag = SOV_stalinist_state }
					}
					# set_state_flag = SOV_left_opposition_state 
					set_state_flag = SOV_opposition_partisans_flag 
				}
				random_owned_state = {
					limit = { 
						OR = {
							state = 399
							state = 398
							state = 400
							state = 406 
							state = 402
							state = 407
						}
						#NOT = { has_state_flag = SOV_left_opposition_state }
						#NOT = { has_state_flag = SOV_right_opposition_state }
						#NOT = { has_state_flag = SOV_stalinist_state }
					}
					#set_state_flag = SOV_left_opposition_state 
					set_state_flag = SOV_opposition_partisans_flag 
				}
			}
		}
	}

	focus = {
		id = SOV_left_eliminate_right
		icon = GFX_focus_SOV_purge_bukharinists
		prerequisite = { focus = SOV_the_left_opposition }
		mutually_exclusive = { focus = SOV_cooperation_against_stalin }
		x = 2
		y = 2
		relative_position_id = SOV_the_left_opposition
		cost = 5

		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_high_increase_effect = yes 
			
			# Target Right Opposition politician
			custom_effect_tooltip = SOV_left_eliminate_right_tt
			# custom_effect_tooltip = SOV_divert_purge_attention_tt
			# Modify factionalism 
			custom_effect_tooltip = SOV_eliminate_opposition_factionalism_tt
			add_to_variable = { SOV_factionalism_political_power_factor = 0.05 }
			
			SOV_nikolay_bukharin = { set_character_flag = SOV_potential_target_flag }
			SOV_mikhail_tomsky = { set_character_flag = SOV_potential_target_flag }
			SOV_aleksey_rykov = { set_character_flag = SOV_potential_target_flag }
			
		}
	}

	focus = {
		id = SOV_committee_in_exile
		icon = GFX_goal_generic_secret_documents
		prerequisite = { focus = SOV_the_fourth_international focus = SOV_bring_old_trotskyists_back }	#changed so one can potentially rush it if needed
		x = 1
		y = 2
		relative_position_id = SOV_the_fourth_international
		cost = 10	#not worth of 70 days

		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		bypass = { has_global_flag = SOV_soviet_civil_war }
		
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_low_increase_effect = yes
			custom_effect_tooltip = SOV_committee_in_exile_tt
		}
	}

	focus = {
		id = SOV_approach_tukhachevsky
		icon = GFX_focus_SOV_approach_tukahchevsky
		prerequisite = { focus = SOV_integrate_smirnovs_bloc }
		x = -1
		y = 1
		relative_position_id = SOV_integrate_smirnovs_bloc
		cost = 3

		available = {
			SOV_soviet_civil_war_not_started = yes

		}
		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
				NOT = { has_character = SOV_mikhail_tukhachevsky }
			}
		}
		
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_low_increase_effect = yes
			custom_effect_tooltip = SOV_approach_tukhachevsky_tt
			hidden_effect = {
				SOV_mikhail_tukhachevsky = {
					add_unit_leader_trait = trait_SOV_trotskyist
					remove_unit_leader_trait = trait_SOV_stalinist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				SOV_august_kork = {
					add_unit_leader_trait = trait_SOV_trotskyist
					remove_unit_leader_trait = trait_SOV_stalinist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				SOV_boris_feldman = {
					add_unit_leader_trait = trait_SOV_trotskyist
					remove_unit_leader_trait = trait_SOV_stalinist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				random_unit_leader = {
					limit = {
						NOT = { has_trait = trait_SOV_trotskyist }
						NOT = { has_trait = trait_SOV_stalinist }
						NOT = { has_trait = trait_SOV_bukharinist }
						NOT = { has_trait = trait_SOV_monarchist_sympathizer }
					}
					add_unit_leader_trait = trait_SOV_trotskyist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				random_unit_leader = {
					limit = {
						NOT = { has_trait = trait_SOV_trotskyist }
						NOT = { has_trait = trait_SOV_stalinist }
						NOT = { has_trait = trait_SOV_bukharinist }
						NOT = { has_trait = trait_SOV_monarchist_sympathizer }
					}
					add_unit_leader_trait = trait_SOV_trotskyist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				random_unit_leader = {
					limit = {
						NOT = { has_trait = trait_SOV_trotskyist }
						NOT = { has_trait = trait_SOV_stalinist }
						NOT = { has_trait = trait_SOV_bukharinist }
						NOT = { has_trait = trait_SOV_monarchist_sympathizer }
					}
					add_unit_leader_trait = trait_SOV_trotskyist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				# Add support in armed forces
				add_to_variable = { SOV_left_opposition_army_support = 0.07 }
				add_to_variable = { SOV_left_opposition_navy_support = 0.05 } 
				add_to_variable = { SOV_left_opposition_air_support = 0.05 }
				# add another state for Partisans
				random_owned_state = {
					limit = { 
						OR = {
							state = 236
							state = 406
							state = 407
							state = 249 
							state = 250
							state = 401
							state = 194
							state = 201
							state = 204
							state = 206
						}
						NOT = { has_state_flag = SOV_left_opposition_state }
						NOT = { has_state_flag = SOV_right_opposition_state }
						NOT = { has_state_flag = SOV_stalinist_state }
						NOT = { has_state_flag = SOV_opposition_partisans_flag }
					}
					set_state_flag = SOV_opposition_partisans_flag
				}
				SOV_get_centre_military_support = yes 
			}

		}
	}

	focus = {
		id = SOV_approach_primakov
		icon = GFX_focus_SOV_approach_primakov
		prerequisite = { focus = SOV_integrate_smirnovs_bloc }
		x = 1
		y = 1
		relative_position_id = SOV_integrate_smirnovs_bloc
		cost = 3

		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
				NOT = { has_character = SOV_vitaly_primakov }
			}
		}
		
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_low_increase_effect = yes
			custom_effect_tooltip = SOV_approach_primakov_tt
			hidden_effect = {
				SOV_vitaly_primakov = {
					add_unit_leader_trait = trait_SOV_trotskyist
					remove_unit_leader_trait = trait_SOV_stalinist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				SOV_iona_yakir = {
					add_unit_leader_trait = trait_SOV_trotskyist
					remove_unit_leader_trait = trait_SOV_stalinist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				SOV_robert_eidemann = {
					add_unit_leader_trait = trait_SOV_trotskyist
					remove_unit_leader_trait = trait_SOV_stalinist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				random_unit_leader = {
					limit = {
						NOT = { has_trait = trait_SOV_trotskyist }
						NOT = { has_trait = trait_SOV_stalinist }
						NOT = { has_trait = trait_SOV_bukharinist }
						NOT = { has_trait = trait_SOV_monarchist_sympathizer }
					}
					add_unit_leader_trait = trait_SOV_trotskyist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				random_unit_leader = {
					limit = {
						NOT = { has_trait = trait_SOV_trotskyist }
						NOT = { has_trait = trait_SOV_stalinist }
						NOT = { has_trait = trait_SOV_bukharinist }
						NOT = { has_trait = trait_SOV_monarchist_sympathizer }
					}
					add_unit_leader_trait = trait_SOV_trotskyist
					set_character_flag = SOV_aligned_left_opposition_flag
				}
				
				# Add support in armed forces
				add_to_variable = { SOV_left_opposition_army_support = 0.08 }
				add_to_variable = { SOV_left_opposition_navy_support = 0.05 } 
				add_to_variable = { SOV_left_opposition_air_support = 0.1 }
				# add another state for partisans
				random_owned_state = {
					limit = { 
						OR = {
							state = 234
							state = 227
							state = 235
							state = 238 
							state = 237
						}
						NOT = { has_state_flag = SOV_left_opposition_state }
						NOT = { has_state_flag = SOV_right_opposition_state }
						NOT = { has_state_flag = SOV_stalinist_state }
						NOT = { has_state_flag = SOV_opposition_partisans_flag }
					}
					set_state_flag = SOV_opposition_partisans_flag 
				}
				SOV_get_centre_military_support = yes 
			}

		}
	}

	focus = {
		id = SOV_funds_for_the_cause
		icon = GFX_goal_generic_economics_reform
		prerequisite = { focus = SOV_approach_tukhachevsky focus = SOV_approach_primakov focus = SOV_committee_in_exile }
		x = -1
		y = 1
		relative_position_id = SOV_approach_tukhachevsky
		cost = 5

		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			custom_effect_tooltip = SOV_funds_for_the_cause_tt
			add_political_power = 50
			every_other_country = {
				limit = {
					NOT = { is_in_faction_with = ROOT }
					OR = {
						is_major = yes
						tag = MEX
					}
					OR = { 
						has_government = democratic 
						has_government = communism
					}
				}
				country_event = {
					id = NSB_soviet_civil_war_common.118
					days = 3
					random_days = 5
				}

			}
		}
	}

	focus = {
		id = SOV_left_opposition_coup
		icon = GFX_goal_ussr_revolt
		prerequisite = { focus = SOV_approach_tukhachevsky focus = SOV_approach_primakov}
		x = 1
		y = 2
		relative_position_id = SOV_approach_tukhachevsky
		cost = 5

		available = {
			SOV_soviet_civil_war_not_started = yes 
			if = {
				limit = { 
					is_ai = yes
					has_war = yes
				}
				date > 1940.1.1 #Some event spawned wars need to be given a chance to breathe for a bit, if they've happened by the time we get here. Beyond a certain date, we stop caring.		
			}
		}
		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_war = yes
			}	
		}

		completion_reward = {
			SOV_opposition_support_medium_increase_effect = yes
			custom_effect_tooltip = SOV_left_opposition_coup_tt
			add_to_variable = { SOV.SOV_left_opposition_army_support = 0.05 }
			add_to_variable = { SOV.SOV_left_opposition_navy_support = 0.05 }
			add_to_variable = { SOV.SOV_left_opposition_air_support = 0.05 }
			hidden_effect = {
				country_event = {
					id = NSB_soviet_communist_civil_war.001
					hours = 1
				}
				SOV_get_centre_military_support = yes 
			}
			custom_effect_tooltip = SOV_exiled_advisors_available_tt
			IF = {
				limit = { has_idea = trotskyite_plot_nsb }
				effect_tooltip = { 
					remove_ideas = trotskyite_plot_nsb
				}
			}
			mark_focus_tree_layout_dirty = yes
		}
	}

	focus = {
		id = SOV_the_vanguard_of_the_true_revolution
		icon = GFX_focus_spr_torchbearers_of_tomorrow
		prerequisite = { focus = SOV_left_opposition_coup }
		prerequisite = { focus = SOV_funds_for_the_cause }
		x = 0
		y = 2
		relative_position_id = SOV_funds_for_the_cause
		cost = 10

		available = {
			has_global_flag = SOV_soviet_civil_war 
			NOT = { has_global_flag = SOV_soviet_civil_war_over }
		}

		completion_reward = {
			every_other_country = {
				limit = { 
					NOT = { has_war_with = ROOT }
					communism > 0.05 
				}
				country_event = {
					id = NSB_soviet_communist_civil_war.004
					days = 2
				}
			}
			hidden_effect  ={
				country_event = {
					id = NSB_soviet_communist_civil_war.005
					days = 18 # should be at least 13 days more than the other event
				}
			}
		}
	}

	focus = {
		id = SOV_long_live_the_workers_government
		icon = GFX_focus_generic_join_comintern
		prerequisite = { focus = SOV_left_opposition_coup }
	
		x = 2
		y = 1
		relative_position_id = SOV_left_opposition_coup
		cost = 5

		available = {
			has_global_flag = SOV_soviet_civil_war_over
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_timed_idea = {
				idea = SOV_workers_government_idea
				days = 365
			}
			add_stability = 0.1
			add_political_power = 100
			set_rule = { can_join_factions = yes }
			set_rule = { can_create_factions = yes }
			create_faction = FOURTH_INTERNATIONAL_FACTION
			hidden_effect = { #this pre-NSB event changes PRC back to its previous more pro-Trotsky leader
				PRC = {
					if = {
						limit ={
							has_government = communism
							NOT = {
								has_country_flag = PRC_zxl_purge
							}
						}
						country_event = { id = prc.66 days = 2 }
					}
				}
			}
		}
	}

	focus = {
		id = SOV_left_purges
		icon = GFX_focus_SOV_the_last_purge
		prerequisite = { focus = SOV_left_opposition_coup }
		mutually_exclusive = { focus = SOV_return_democracy_to_the_party }
		x = 4
		y = 1
		relative_position_id = SOV_left_opposition_coup
		cost = 10

		available = {
			has_global_flag = SOV_soviet_civil_war_over
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			custom_effect_tooltip = SOV_left_purges_tt
			IF = { limit = { has_character = SOV_nikolay_bukharin } retire_character = SOV_nikolay_bukharin }
			IF = { limit = { has_character = SOV_aleksey_rykov } retire_character = SOV_aleksey_rykov }
			IF = { limit = { has_character = SOV_mikhail_tomsky } retire_character = SOV_mikhail_tomsky }
			IF = { limit = { has_character = SOV_grigory_zinovyev } retire_character = SOV_grigory_zinovyev }
			IF = { limit = { has_character = SOV_martemyan_ryutin } retire_character = SOV_martemyan_ryutin }
			IF = { limit = { has_character = SOV_mikhail_kalinin } retire_character = SOV_mikhail_kalinin }
			IF = { limit = { has_character = SOV_nikita_khrushchyov } retire_character = SOV_nikita_khrushchyov }
			IF = { limit = { has_character = SOV_vsevolod_merkulov } retire_character = SOV_vsevolod_merkulov }
			set_variable = { SOV_factionalism_political_power_factor = 0 }
			custom_effect_tooltip = SOV_left_right_purges_factionalism_tt
		}	
	}

	focus = {
		id = SOV_trotskyite_narrative
		icon = GFX_goal_support_fourth_int
		prerequisite = { focus = SOV_left_purges } 
		x = 1
		y = 1
		relative_position_id = SOV_left_purges
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		completion_reward = {
			add_ideas = SOV_trotskyite_narrative
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_the_builder_of_the_red_army
		icon = GFX_focus_SOV_builder_of_the_red_army
		prerequisite = { focus = SOV_long_live_the_workers_government }
		x = -1
		y = 1
		relative_position_id = SOV_long_live_the_workers_government
		mutually_exclusive = { focus = SOV_reigniting_the_revolutionary_spirit }
		cost = 9

		available = {
			SOV_lev_trotsky = {	is_country_leader = yes }
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_ARMY_XP}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			army_experience = 50
			add_tech_bonus = {
				name = SOV_the_builder_of_the_red_army
				ahead_reduction = 1
				uses = 2
				category = artillery
				category = infantry_weapons 
			}
			add_field_marshal_role = {
				character = SOV_lev_trotsky
				traits = { media_personality organisational_leader }
				skill = 4
				attack_skill = 3
				defense_skill = 2
				planning_skill = 4
				logistics_skill = 4
			}
			
		}
	}

	focus = {
		id = SOV_reigniting_the_revolutionary_spirit
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = SOV_long_live_the_workers_government }
		x = 1
		y = 1
		relative_position_id = SOV_long_live_the_workers_government
		mutually_exclusive = { focus = SOV_the_builder_of_the_red_army }
		cost = 9
		
		search_filters = {FOCUS_FILTER_MANPOWER}

		completion_reward = {
			add_timed_idea = {
				idea = SOV_revolutionary_spirit_idea
				days = 365
			}
		}
	}

	focus = {
		id = SOV_the_permanent_revolution
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = SOV_left_opposition_coup }
		prerequisite = { focus = SOV_committee_in_exile }
		x = 0
		y = 4
		relative_position_id = SOV_committee_in_exile
		
		cost = 5

		available = {
			has_global_flag = SOV_soviet_civil_war_over
		}

		completion_reward = {
			custom_effect_tooltip = SOV_the_permanent_revolution_decisions_tt
			division_template = { #Template for Permanent Revolution decisions
				name = "Trotskyist Revolutionary Militias"
				priority = 1
				is_locked = yes
				division_names_group = SOV_INF_02
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
				}
			}

			IF = {
				limit = {
					SOV_lev_trotsky = { is_country_leader = yes }
				}
				if = {
					limit = { 
						has_dlc = "La Resistance"
					}
					remove_country_leader_trait = permanent_revolutionary #might have to be changed to be different for DLC
					add_country_leader_trait = triumphant_revolutionary_LaR
				}			
				else = {
					remove_country_leader_trait = permanent_revolutionary
					add_country_leader_trait = triumphant_revolutionary
				}
			}
			ELSE = {
				effect_tooltip = {
					custom_effect_tooltip = SOV_the_permanent_revolution_trotsky_trait_tt
					if = {
						limit = { 
							has_dlc = "La Resistance"
						}
						add_trait = {
							character = SOV_lev_trotsky
							slot = country_leader
							trait = triumphant_revolutionary_LaR
						}
					}			
					else = {
						add_trait = {
							character = SOV_lev_trotsky
							slot = country_leader
							trait = triumphant_revolutionary
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_world_revolution
		icon = GFX_goal_spread_communism
		prerequisite = { focus = SOV_the_permanent_revolution }
		x = -2
		y = 1
		relative_position_id = SOV_the_permanent_revolution

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			hidden_effect = {
				news_event = { id = r56.soviet.29 days = 1 }
				every_country = {
					IF = {
						limit = {
							NOT = {
								has_government = communism
							}
						}
						add_timed_idea = { idea = comintern_influence days = 365 }
						add_opinion_modifier = { target = SOV modifier = medium_decrease }
					}
				}
			}
			add_named_threat = { threat = 5 name = SOV_world_revolution_t }
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_intelligence_agency = yes
					}
				}
				create_intelligence_agency = yes
			}			
			if = {
				limit = {
					has_dlc = "La Resistance" 
				}
				add_ideas = SOV_world_revolution_idea_LaR
			}
			else = {
				add_ideas = SOV_world_revolution_idea
			}
			custom_effect_tooltip = SOV_world_revolution_tt
			hidden_effect = {
				every_other_country = {
					limit = {
						exists = yes
						NOT = {
							has_government = ROOT
							is_in_faction_with = ROOT
						}
					}
					ROOT = { #Makes Trotskye cray cray
						add_ai_strategy = {
							type = antagonize
							id = PREV
							value = 250
						}
						add_ai_strategy = {
							type = declare_war
							id = PREV
							value = 25
						}
						add_ai_strategy = {
							type = conquer
							id = PREV
							value = 10
						}
					}
				}
				every_other_country = {
					limit = {
						exists = yes
						has_government = ROOT
						has_war = no
						is_in_faction = no
					}
					ROOT = { #Makes Trotskye want friends, alot of friends
						add_ai_strategy = {
							type = alliance
							id = PREV
							value = 250
						}
						add_ai_strategy = {
							type = befriend
							id = PREV
							value = 25
						}
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_ESPIONAGE }
	}

	focus = {
		id = SOV_ideological_propaganda
		icon = GFX_focus_propaganda_soviet
		prerequisite = { focus = SOV_world_revolution }
		x = 0
		y = 2
		relative_position_id = SOV_world_revolution

		cost = 5

		ai_will_do = {
			factor = 2
		}

		allow_branch = { #this check makes it seperate from the other allow_branch checks, that made it appear randomly
			has_dlc = "La Resistance"
			NOT = {
				has_completed_focus = SOV_the_centre
				has_completed_focus = SOV_the_right_opposition
				has_completed_focus = SOV_beaten_but_not_defeated
				has_completed_focus = SOV_form_a_fifth_column
			}
		}

		available = {
			has_intelligence_agency = yes
		}


		completion_reward = {
			upgrade_intelligence_agency = upgrade_psycho_warfare
			add_ideas = r56_clandestine_propaganda_techniques
		}
		search_filters = { FOCUS_FILTER_ESPIONAGE }
	}	
	focus = {
		id = SOV_depoliticize_the_military
		icon = GFX_focus_generic_little_entente
		prerequisite = { focus = SOV_the_builder_of_the_red_army focus = SOV_reigniting_the_revolutionary_spirit }
		x = -1
		y = 1
		relative_position_id = SOV_the_builder_of_the_red_army
		
		cost = 8
		
		search_filters = {FOCUS_FILTER_ARMY_XP}

		completion_reward = {
			add_to_variable = { SOV_the_red_army_max_command_power_mult = 0.1 }
			custom_effect_tooltip = SOV_depoliticize_the_military_ns_tt

			army_experience = 150

			if = {
				limit = {
					has_idea = SOV_politicized_military
				}
				remove_ideas = SOV_politicized_military
			}
			else_if = {
				limit = {
					has_idea = SOV_politicized_military_keep
				}
				remove_ideas = SOV_politicized_military_keep
			}
			else_if = {
				limit = {
					has_idea = SOV_politicized_military_swap
				}
				remove_ideas = SOV_politicized_military_swap
			}

			if = {
				limit = {
					has_idea = SOV_anti_soviet_military_thinking_banned_army
				}
				remove_ideas = SOV_anti_soviet_military_thinking_banned_army
			}
			if = {
				limit = {
					has_idea = SOV_anti_soviet_military_thinking_banned_navy
				}
				remove_ideas = SOV_anti_soviet_military_thinking_banned_navy
			}
			if = {
				limit = {
					has_idea = SOV_anti_soviet_military_thinking_banned_airforce
				}
				remove_ideas = SOV_anti_soviet_military_thinking_banned_airforce
			}		
		}
	}

	focus = {
		id = SOV_a_gun_in_every_hand
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = SOV_depoliticize_the_military }
		x = 0
		y = 1
		relative_position_id = SOV_depoliticize_the_military

		cost = 10

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_ideas =	SOV_a_gun_in_every_hand_idea
		}
	}

	focus = {
		id = SOV_system_decentralization
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = SOV_the_builder_of_the_red_army focus = SOV_reigniting_the_revolutionary_spirit }
		x = 1
		y = 1
		relative_position_id = SOV_the_builder_of_the_red_army
		
		cost = 10
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT}

		completion_reward = {
			add_popularity = {
				ideology = communism 
				popularity = 0.1
			}
			add_ideas = SOV_system_decentralization_idea
		}
	}

	focus = {
		id = SOV_strengthen_heavy_industry 
		icon = GFX_goal_generic_soviet_construction
		prerequisite = { focus = SOV_the_builder_of_the_red_army focus = SOV_reigniting_the_revolutionary_spirit }
		x = 1
		y = 1
		relative_position_id = SOV_reigniting_the_revolutionary_spirit
		
		cost = 10

		available = {
			has_global_flag = SOV_soviet_civil_war_over
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_tech_bonus = {
				name = SOV_strengthen_heavy_industry
				ahead_reduction = 1
				uses = 2
				category = industry
				category = infantry_weapons 
			}
			random_owned_controlled_state = {
				prioritize = { 252 254 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 256 239 260 }
				limit = {
					free_building_slots = {
						building = industrial_complex 
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex 
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 195 214 213 408 137 }
				limit = {
					free_building_slots = {
						building = dockyard  
						size > 1
						include_locked = yes
					}
					is_coastal = yes 
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard  
					level = 2
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
		id = SOV_localized_quality_control
		icon = GFX_goal_sov_soviet_ind_upgrade
		prerequisite = { focus = SOV_strengthen_heavy_industry }
		x = 0
		y = 1
		relative_position_id = SOV_strengthen_heavy_industry
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = infantry_weapons_bonus
				bonus = 0.5
				uses = 2
				category = infantry_weapons
			}
			add_ideas = SOV_quality_control
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SOV_a_global_class_struggle
		icon = GFX_focus_ger_great_red_menace
		prerequisite = { focus = SOV_the_permanent_revolution }
		x = 0
		y = 1
		relative_position_id = SOV_the_permanent_revolution
		
		cost = 10

		available = {
			surrender_progress < 0.15
		}
		completion_reward = {
			add_ideas = SOV_state_of_perpetual_warfare_idea
			if = {
				limit = {
					OR = {
						has_idea = war_economy
						has_idea = tot_economic_mobilisation
						}
					}
					add_political_power = 125
				}
			if = {
				limit = {
						has_idea = partial_economic_mobilisation
					}
				swap_ideas = { remove_idea = partial_economic_mobilisation add_idea = war_economy }
			}
			if = {
				limit = {
						has_idea = low_economic_mobilisation
					}
				swap_ideas = { remove_idea = low_economic_mobilisation add_idea = war_economy  }
			}
			if = {
				limit = {
						has_idea = civilian_economy
					}
				swap_ideas = { remove_idea = civilian_economy add_idea = war_economy  }
			}
			custom_effect_tooltip = SOV_a_global_class_struggle_decision_tt
		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = SOV_all_power_to_the_soviets
		icon = GFX_goal_support_communism
		prerequisite = { focus = SOV_system_decentralization }
		x = 0
		y = 1
		relative_position_id = SOV_system_decentralization
		
		cost = 10
		
		search_filters = {FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_ideas = SOV_the_local_soviets_idea
		}
	}

	focus = {
		id = SOV_regional_development
		icon = GFX_focus_generic_soviet_politics
		prerequisite = { focus = SOV_all_power_to_the_soviets }
		x = 0
		y = 1
		relative_position_id = SOV_all_power_to_the_soviets
		mutually_exclusive = { focus = SOV_strengthen_the_trade_unions }
		offset = {
			x = -1
			y = 0
			trigger = {
				NOT = { has_dlc = "No Step Back"}
			}
		}
		
		cost = 10
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_political_power = 150 
			every_owned_state = {
				limit = {
					OR = {
						state = 202 # Kiev
						state = 229 # Azerbaijan
						state = 230 # Armenia
						state = 231 # Georgia
						state = 405 # Tashkent
						state = 408 # Vladivostok
						state = 584 # Askabad
						state = 586 # Alma Ata
						state = 654 # Oyrot
						state = 732 # Pamir
						state = 743 # Tojikiston
						state = 206 # Minsk
					}
					free_building_slots = {
					    building = industrial_complex 
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
			}
		}
	}

	focus = {
		id = SOV_autonomous_soviet_republics
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = SOV_regional_development }
		x = 0
		y = 1
		relative_position_id = SOV_regional_development
		
		cost = 10

		completion_reward = {
			custom_effect_tooltip = SOV_autonomous_soviet_republics_tt
			# Georgia
			IF = {
				limit = {
					231 = { is_owned_and_controlled_by = ROOT }
					GEO = {
						exists = no
					}
				}
				release_autonomy = {
					target = GEO
					autonomy_state = autonomy_puppet
					freedom_level = 0.5
				}
				GEO = {
					add_ideas = {
						SOV_system_decentralization_idea
						SOV_the_local_soviets_idea
					}
				}
			}
			# Armenia
			IF = {
				limit = {
					230 = { is_owned_and_controlled_by = ROOT }
					ARM = {
						exists = no
					}
				}
				release_autonomy = {
					target = ARM
					autonomy_state = autonomy_puppet
					freedom_level = 0.5
				}
				ARM = {
					add_ideas = {
						SOV_system_decentralization_idea
						SOV_the_local_soviets_idea
					}
				}
			}

			# Azerbaijan
			IF = {
				limit = {
					229 = { is_owned_and_controlled_by = ROOT }
					AZR = {
						exists = no
					}
				}
				release_autonomy = {
					target = AZR
					autonomy_state = autonomy_puppet
					freedom_level = 0.5
				}
				AZR = {
					add_ideas = {
						SOV_system_decentralization_idea
						SOV_the_local_soviets_idea
					}
				}
			}

			# Belarus
			IF = {
				limit = {
					206 = { is_owned_and_controlled_by = ROOT }
					BLR = {
						exists = no
					}
				}
				release_autonomy = {
					target = BLR
					autonomy_state = autonomy_puppet
					freedom_level = 0.5
				}
				BLR = {
					add_ideas = {
						SOV_system_decentralization_idea
						SOV_the_local_soviets_idea
					}
				}
			}
		}
	}


	focus = {
		id = SOV_international_union_of_soviet_republics
		icon = GFX_focus_SOV_international_union_of_soviet_republics
		prerequisite = { focus = SOV_autonomous_soviet_republics }
		x = 0
		y = 1
		relative_position_id = SOV_autonomous_soviet_republics 
		
		cost = 10
		
		search_filters = {FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_to_variable = { SOV_factionalism_overlord_trade_cost_factor = -0.10 } 
			add_to_variable = { SOV_factionalism_popularity_stability_cost_factor = 0.10 } 
			custom_effect_tooltip = SOV_international_union_of_soviet_republics_tt 
			every_country = {
				limit = { is_subject_of = ROOT }
				add_ideas = { SOV_puppet_international_of_soviet_republics_idea }
				custom_effect_tooltip = SOV_international_union_of_soviet_republics_puppet_tt
				hidden_effect = {
					random_owned_controlled_state = {
						limit = { is_capital = yes }
						add_building_construction = {
						    type = industrial_complex
							level = 1
							instant_build = yes
						}
						add_building_construction = {
						    type = arms_factory
							level = 1
							instant_build = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_the_onslaught_on_colonialism
		icon = GFX_goal_tfv_saf_anti_colonialist_crusade
		prerequisite = { focus = SOV_a_global_class_struggle }
		x = -1
		y = 1
		relative_position_id = SOV_a_global_class_struggle 
		
		cost = 10

		available = {	
			surrender_progress < 0.05
		}

		completion_reward = {
			custom_effect_tooltip = SOV_the_onslaught_on_colonialism_decision_tt
		}
	}

	focus = {
		id = SOV_carry_revolution_east
		icon = GFX_focus_usa_focus_on_asia
		prerequisite = { focus = SOV_a_global_class_struggle }
		x = 1
		y = 1
		relative_position_id = SOV_a_global_class_struggle
		
		cost = 10

		available = {
			surrender_progress < 0.05
		}

		completion_reward = {
			custom_effect_tooltip = SOV_carry_revolution_east_decision_tt
		}
	}

	focus = {
		id = SOV_the_end_of_the_imperialist_era
		icon = GFX_focus_por_latin_american_communism
		prerequisite = { focus = SOV_the_onslaught_on_colonialism focus = SOV_carry_revolution_east }
		x = 1
		y = 1
		relative_position_id = SOV_the_onslaught_on_colonialism
		
		cost = 10

		available = {
			surrender_progress < 0.05
		}

		completion_reward = {
			custom_effect_tooltip = SOV_the_end_of_the_imperialist_era_decision_tt
		}
	}

	focus = {
		id = SOV_workers_of_the_world_unite
		icon = GFX_goal_generic_multinational_army
		prerequisite = { focus = SOV_the_end_of_the_imperialist_era }
		x = 0
		y = 1
		relative_position_id = SOV_the_end_of_the_imperialist_era

		cost = 10

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_ideas =	SOV_workers_of_the_world_unite_idea
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

########################################################################################################

###  ###  ##  #  # ###      ##  ###  ###   ##   ## ### ### ###  ##  #  #     #  # #  # ###  ##  #  # ### 
#  #  #  #    #  #  #      #  # #  # #  # #  # #    #   #   #  #  # ## #     #  # ## #  #  #  # #  # #   
###   #  # ## ####  #      #  # ###  ###  #  #  #   #   #   #  #  # # ##     #  # # ##  #  #  # #  # ##  
#  #  #  #  # #  #  #      #  # #    #    #  #   #  #   #   #  #  # #  #     #  # #  #  #   ##  #  # #   
#  # ###  ##  #  #  #       ##  #    #     ##  ##  ###  #  ###  ##  #  #      ##  #  # ###    #  ##  ### 

########################################################################################################

	focus = {
		id = SOV_the_right_opposition
		icon = GFX_focus_SOV_bukharinists
		prerequisite = { focus = SOV_the_path_of_marxism_leninism }
		allow_branch = { 
			has_dlc = "No Step Back"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = SOV_the_centre }
				NOT = { has_completed_focus = SOV_beaten_but_not_defeated }
			}
		}
		mutually_exclusive = { focus = SOV_the_left_opposition focus = SOV_the_centre}
		x = 15
		y = 0
		relative_position_id = SOV_the_left_opposition
		cost = 5
		available = {
			SOV_soviet_civil_war_not_started = yes 
			custom_trigger_tooltip = {
				tooltip = SOV_no_major_purge_tt		
				check_variable = { SOV_great_purge_counter < 1 }
			}
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_political_power = 75
			# SOV_paranoia_medium_increase_effect = yes 
			custom_effect_tooltip = SOV_the_right_opposition_tt
			set_variable = { SOV_right_opposition_army_support = 0.1 }
			set_variable = { SOV_right_opposition_navy_support = 0.05 }
			set_variable = { SOV_right_opposition_air_support = 0.1 }
			hidden_effect = {
				# Factionalism start modifier
				add_dynamic_modifier = { modifier = SOV_factionalism_modifier }
				country_event = {
					id = NSB_soviet_paranoia_system_events.01
					hours = 6 
					random_hours = 24
				}
				random_owned_state = {
					limit = {
						NOT = { state = 214 }
						NOT = { state = 192 }
						NOT = { state = 651 }
						NOT = { state = 137 }
						NOT = { state = 405 }
						NOT = { state = 571 }
					}
					set_state_flag = SOV_stalinist_state 
				}
				# Launch the first Stalinist counter measures
				SOV_launch_stalinist_counter_measure = yes
				SOV_get_centre_military_support = yes 
			}

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = SOV_nikolay_bukharin
			show_ideas_tooltip = SOV_aleksey_rykov
			show_ideas_tooltip = SOV_mikhail_tomsky
		}
	}

	focus = {
		id = SOV_the_need_for_policy_changes
		icon = GFX_focus_hol_abandon_the_gold_standard
		prerequisite = { focus = SOV_the_right_opposition }
		x = 0
		y = 1
		relative_position_id = SOV_the_right_opposition
		cost = 5
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA} 

		completion_reward = {
			SOV_paranoia_low_increase_effect = yes 
			add_political_power = 75
			custom_effect_tooltip = SOV_the_need_for_policy_changes_tt
		}
	}

	focus = {
		id = SOV_reverse_the_collectivization_process
		icon = GFX_goal_generic_farm_tractor
		prerequisite = { focus = SOV_the_right_opposition }
		x = 2
		y = 1
		relative_position_id = SOV_the_right_opposition
		cost = 10
		available = {
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA FOCUS_FILTER_STABILITY}

		completion_reward = {
			SOV_paranoia_medium_increase_effect = yes 
			add_popularity = {
				ideology = democratic 
				popularity = 0.10
			}
			
			custom_effect_tooltip = SOV_reverse_the_collectivization_process_tt
			add_to_variable = { SOV_factionalism_building_slots_factor = -0.1 }
			add_to_variable = { SOV_factionalism_popularity_stability_cost_factor = 0.1 }
		}
	}

	focus = {
		id = SOV_organize_uprisings_in_the_country
		icon = GFX_goal_generic_revolt
		prerequisite = { focus = SOV_the_need_for_policy_changes }
		x = -2
		y = 1
		relative_position_id = SOV_the_need_for_policy_changes
		cost = 6
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_low_increase_effect = yes 
			add_stability = -0.05
			hidden_effect = {
				country_event = {
					id = NSB_soviet_communist_civil_war.007
					days = 5
					random_days = 3
				}
			}
			
			custom_effect_tooltip = SOV_organize_uprisings_in_the_country_tt
		}
	}

	focus = {
		id = SOV_dissent_in_the_party
		icon = GFX_goal_generic_election_chaos
		prerequisite = { focus = SOV_the_need_for_policy_changes }
		x = 0
		y = 1
		relative_position_id = SOV_the_need_for_policy_changes
		cost = 5
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_medium_increase_effect = yes 
			add_political_power = 100
			SOV_opposition_support_high_increase_effect = yes 
		}
	}

	focus = {
		id = SOV_eliminate_the_left
		icon = GFX_focus_SOV_purge_trotskyists
		prerequisite = { focus = SOV_the_need_for_policy_changes }
		mutually_exclusive = { focus = SOV_cooperation_against_stalin }
		x = -4
		y = 1
		relative_position_id = SOV_the_need_for_policy_changes
		cost = 5
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_high_increase_effect = yes 
			custom_effect_tooltip = SOV_eliminate_the_left_tt
			# custom_effect_tooltip = SOV_divert_purge_attention_tt
			custom_effect_tooltip = SOV_eliminate_opposition_factionalism_tt
			add_to_variable = { SOV_factionalism_political_power_factor = 0.05 }
			
			SOV_karl_radek = { set_character_flag = SOV_potential_target_flag }
			SOV_ivar_smilga = { set_character_flag = SOV_potential_target_flag }
			SOV_yevgeny_preobrazhensky = { set_character_flag = SOV_potential_target_flag }
			
		}
	}

	focus = {
		id = SOV_concessions_to_foreign_powers
		icon = GFX_focus_CZE_german_puppet
		prerequisite = { focus = SOV_reverse_the_collectivization_process }
		mutually_exclusive = { focus = SOV_covert_support_for_spanish_poum }
		x = -1
		y = 2
		offset = {
			x = 1
			y = -1 
			trigger = {
				NOT = { has_dlc = "La Resistance" }
			}
		}
		relative_position_id = SOV_reverse_the_collectivization_process
		cost = 5
		available = {
			NOT = { has_country_flag = SOV_soviet_civil_war_over } # you should be able to do this during the CW as well
			SOV_has_selected_hq = yes 
		}

		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_low_increase_effect = yes 
			custom_effect_tooltip = SOV_concessions_to_foreign_powers_tt
		}
	}

	focus = {
		id = SOV_covert_support_for_spanish_poum
		icon = GFX_focus_SOV_support_spanish_poum
		prerequisite = { focus = SOV_reverse_the_collectivization_process }
		mutually_exclusive = { focus = SOV_concessions_to_foreign_powers }
		x = 1
		y = 2
		relative_position_id = SOV_reverse_the_collectivization_process
		cost = 5
		available = {
			SOV_soviet_civil_war_not_started = yes
			NOT = { has_global_flag = scw_over } #Allowed Soviets to do this before SCW starts, so that they can make Spanish AI go POUM
			OR = {
				NOT = { has_global_flag = SPR_anarchist_uprising_flag }
				AND = {
					country_exists = SPC
					NOT = { has_war_with = SPC }
					SPC = { has_completed_focus = SPR_the_anti_fascist_workers_revolution }
				}
			}
			
		}
		allow_branch = {
			has_dlc = "La Resistance"
			has_dlc = "No Step Back"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = SOV_the_centre } 
				NOT = { has_completed_focus = SOV_beaten_but_not_defeated }
			}
		}
		bypass = {
			SPR = { #Tooltip purposes
				OR = {
					has_global_flag = scw_over
					AND = {
						has_global_flag = SPR_anarchist_uprising_flag
						OR = {
							NOT = { SPC = { has_completed_focus = SPR_the_anti_fascist_workers_revolution } }
							NOT = { country_exists = SPC }
						}
					}
				}
			}
		}
		                
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_low_increase_effect = yes 

			set_global_flag = SOV_covert_support_for_poum_flag
			custom_effect_tooltip = SOV_covert_support_for_spanish_poum_tt
			unlock_decision_category_tooltip = SOV_soviet_aid_to_poum_decision_category

			custom_effect_tooltip = SOV_if_poum_wins_tt
		}
	}

	focus = {
		id = SOV_undermine_stalins_authority
		icon = GFX_focus_ger_bulwark_against_bolshevism
		prerequisite = { focus = SOV_organize_uprisings_in_the_country }
		x = -1
		y = 1
		relative_position_id = SOV_organize_uprisings_in_the_country
		cost = 6
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_medium_increase_effect = yes 
			SOV_iosif_stalin = {
				swap_country_leader_traits = { remove = stalin_political_paranoia add = stalin_authority_undermined }
			}
			add_to_variable = { SOV_paranoia_weekly_modifiers_amount = 1 }
			SOV_paranoia_modifier_update_gui_tooltip = yes
			custom_effect_tooltip = SOV_undermine_stalins_authority_paranoia_tt 
		}
	}

	focus = {
		id = SOV_clandestine_cells
		icon = GFX_goal_infantry_flames
		prerequisite = { focus = SOV_organize_uprisings_in_the_country }
		x = 1
		y = 1
		relative_position_id = SOV_organize_uprisings_in_the_country
		cost = 6
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_political_power = 50 
			custom_effect_tooltip = SOV_clandestine_cells_tt
			set_country_flag = SOV_organize_wreckers_flag
		}
	}

	focus = {
		id = SOV_the_plan_for_the_coup
		icon = GFX_goal_generic_armed_protest
		prerequisite = { focus = SOV_undermine_stalins_authority focus = SOV_clandestine_cells }
		x = 1
		y = 1
		relative_position_id = SOV_undermine_stalins_authority
		cost = 5
		available = {
			SOV_soviet_civil_war_not_started = yes 
			NOT = { has_idea = SOV_lavrenty_beriya }
		}

		completion_reward = {
			custom_effect_tooltip = SOV_the_plan_for_the_coup_tt 
		}
	}

	focus = {
		id = SOV_the_socialist_bulwark
		icon = GFX_goal_FRA_help_the_spanish_republicans
		prerequisite = { focus = SOV_covert_support_for_spanish_poum }
		x = 0
		y = 2
		relative_position_id = SOV_covert_support_for_spanish_poum
		cost = 5
		available = {
			has_global_flag = SOV_soviet_civil_war_over 
			custom_trigger_tooltip = {
				tooltip = SOV_poum_exists_tt
				SPC = { 
					exists = yes 
					has_completed_focus = SPR_the_anti_fascist_workers_revolution
				}
			}
		}

		search_filters = { FOCUS_FILTER_ALLIANCE }

		completion_reward = {
			add_political_power = 75
			add_stability = 0.1
			add_war_support	= 0.1
			IF = { 
				limit = { 
					NOT = { has_rule = can_join_factions } 
				} 
				set_rule = { can_join_factions = yes } 
			}
		
			#Join SCW if still ongoing
			if = {
				limit = {
					SPR_scw_in_progress = yes
				}
				if = {
					limit = { country_exists = SPA }
					add_to_war = { targeted_alliance = SPC enemy = SPA hostility_reason = asked_to_join }
				}
				if = {
					limit = { country_exists = SPC }
					add_to_war = { targeted_alliance = SPC enemy = SPD hostility_reason = asked_to_join }
				}
				if = {
					limit = { country_exists = SPB }
					add_to_war = { targeted_alliance = SPC enemy = SPB hostility_reason = asked_to_join }
				}
				effect_tooltip = {
					give_military_access = SPC
					SPC = { give_military_access = ROOT }
				}
				hidden_effect = {
					diplomatic_relation = {
						country = SPC
						relation = military_access
						active = yes
					}
					SPC = {
						diplomatic_relation = {
							country = SOV
							relation = military_access
							active = yes
						}
					}
				}
			}
			else_if = {
				limit = {
					NOT = { has_global_flag = scw_over }
				}
				custom_effect_tooltip = SOV_the_socialist_bulwark_join_war_tt
			}

			#Invite to faction if SCW is over
			if = {
				limit = {
					is_in_faction = yes
					NOT = { is_in_faction_with = SPC }
					has_global_flag = scw_over
				}
				SPC = {
					country_event = { id = generic.5 hours = 8 random_hours = 4 }
				}
			}
		}
	}

	focus = {
		id = SOV_coup_detat
		icon = GFX_focus_spr_masters_of_our_own_fate
		prerequisite = { focus = SOV_dissent_in_the_party }
		x = 0
		y = 3
		relative_position_id = SOV_dissent_in_the_party
		cost = 3
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		completion_reward = {
			# Stalin dead
			IF = {
				limit = {
					NOT = { has_character = SOV_iosif_stalin }
				}
				custom_effect_tooltip = SOV_coup_detat_success_tt
				hidden_effect = {
					set_global_flag = SOV_soviet_civil_war_over
					SOV_remove_paranoia_effect = yes 
					country_event = {
						id = NSB_soviet_communist_civil_war.002
						hours = 1
					}
					# Renaming of cities
					country_event = {
						id = NSB_soviet_civil_war_common.010
						days = 14
						random_days = 7
					}
					# Bring Exiled Characters back
					hidden_effect = {
						every_character = {
							limit = {
								has_character_flag = SOV_exiled_flag
								has_character_flag = SOV_aligned_right_opposition_flag
							}
							clr_character_flag = SOV_exiled_flag
						}
					}
				}
			}
			
			# NOT Ready
			ELSE = {
				SOV_opposition_support_medium_increase_effect = yes
				custom_effect_tooltip = SOV_coup_detat_civil_war_tt
				add_to_variable = { SOV.SOV_right_opposition_army_support = 0.1 }
				add_to_variable = { SOV.SOV_right_opposition_navy_support = 0.1 }
				add_to_variable = { SOV.SOV_right_opposition_air_support = 0.1 }
				hidden_effect = {
					country_event = {
						id = NSB_soviet_communist_civil_war.003
						hours = 1
					}
				}
				SOV_get_centre_military_support = yes 
			}
			custom_effect_tooltip = SOV_exiled_advisors_available_tt

			mark_focus_tree_layout_dirty = yes
		}
	}

	focus = {
		id = SOV_right_purges
		icon = GFX_focus_SOV_the_last_purge
		prerequisite = { focus = SOV_coup_detat }
		mutually_exclusive = { focus = SOV_return_democracy_to_the_party }
		x = -4
		y = 1
		relative_position_id = SOV_coup_detat
		cost = 10
		available = {
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			
			custom_effect_tooltip = SOV_right_purges_tt
			IF = { limit = { has_character = SOV_lev_trotsky } SOV_lev_trotsky = { retire = yes } }
			IF = { limit = { has_character = SOV_ivan_smirnov } SOV_ivan_smirnov = { retire = yes } }
			IF = { limit = { has_character = SOV_ivar_smilga } SOV_ivar_smilga = { retire = yes } }
			IF = { limit = { has_character = SOV_aleksandr_shlyapnikov } SOV_aleksandr_shlyapnikov = { retire = yes } }
			custom_effect_tooltip = SOV_left_right_purges_factionalism_tt
			set_variable = { SOV_factionalism_political_power_factor = 0 }

			IF = { 
				limit = { has_idea = trotskyite_plot_nsb}
				remove_ideas = trotskyite_plot_nsb
			}
		}
	}

	focus = {
		id = SOV_the_power_of_the_peasantry
		icon = GFX_focus_SOV_breadbasket_of_the_union
		prerequisite = { focus = SOV_coup_detat }
		x = -2
		y = 1
		relative_position_id = SOV_coup_detat
		cost = 8
		available = {
			NOT = { has_global_flag = SOV_soviet_civil_war_over }
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER}

		completion_reward = {
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
			add_timed_idea = {
				idea = SOV_support_of_the_peasants_idea
				days = 365
			}
		}
	}

	focus = {
		id = SOV_curtailment_of_the_collective_farms
		icon = GFX_focus_renounce_the_treaty_of_trianon
		prerequisite = { focus = SOV_coup_detat }
		x = 2
		y = 1
		relative_position_id = SOV_coup_detat
		cost = 8
		available = {
		}
		                
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER}

		completion_reward = {
			custom_effect_tooltip = SOV_curtailment_of_the_collective_farms_tt
			add_ideas = SOV_curtailment_collective_farms_idea
		}
	}

	focus = {
		id = SOV_administrative_reforms
		icon = GFX_generic_goal_communist_reforms
		prerequisite = { focus = SOV_curtailment_of_the_collective_farms }
		mutually_exclusive = { focus = SOV_a_new_theory_of_revolution }
		x = -4
		y = 1
		relative_position_id = SOV_curtailment_of_the_collective_farms
		cost = 8
		available = {
			has_character = SOV_aleksey_rykov
		}
		                
		search_filters = {FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_stability = 0.05
			add_ideas = SOV_administrative_reforms_idea
		}
	}

	focus = {
		id = SOV_a_new_theory_of_revolution
		icon = GFX_goal_generic_farming
		prerequisite = { focus = SOV_curtailment_of_the_collective_farms }
		mutually_exclusive = { focus = SOV_administrative_reforms }
		x = -2
		y = 1
		relative_position_id = SOV_curtailment_of_the_collective_farms
		cost = 8
		available = {
			SOV_nikolay_bukharin = { is_country_leader = yes }
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_political_power = 75
			IF = {
				limit = { has_character = SOV_nikolay_bukharin }
				if = {
					limit = {
						SOV_nikolay_bukharin = { is_country_leader = yes }
					}
					swap_ruler_traits = {
						remove = defender_of_the_peasantry
						add = hero_of_the_peasantry
					}
				}
				else = {
					effect_tooltip = {
						add_trait = {
							character = SOV_nikolay_bukharin
							slot = country_leader
							trait = hero_of_the_peasantry
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_back_to_the_nep
		icon = GFX_goal_generic_major_diplo
		prerequisite = { focus = SOV_curtailment_of_the_collective_farms }
		x = 1
		y = 1
		relative_position_id = SOV_curtailment_of_the_collective_farms
		cost = 10
		available = {
			has_war = no
		}
		                
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY}

		completion_reward = {
			custom_effect_tooltip = SOV_back_to_the_nep_new_economy_law
			add_ideas = new_economic_policy
			add_stability = 0.05
			add_popularity = {
				ideology = democratic 
				popularity = -0.1
			}
		}
	}

	focus = {
		id = SOV_planned_economy
		icon = GFX_social_welfare
		prerequisite = { focus = SOV_back_to_the_nep }
		x = -2
		y = 1
		relative_position_id = SOV_back_to_the_nep
		cost = 5
		available = {
		}
		                
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			if = {
				limit = {
					num_subjects > 0
				}
				every_subject_country = {
					country_event = { id = NSB_soviet_planned_economy.1 }
					effect_tooltip = {
						add_tech_bonus = {
							name = SOV_planned_economy
							bonus = 1.0
							uses = 2
							category = industry
						}
						add_ideas = new_economic_policy
					}
				}
			}
			else = {
				custom_effect_tooltip = SOV_planned_economy_subjects_tt
				effect_tooltip = {
					country_event = { id = NSB_soviet_planned_economy.1 }
					add_tech_bonus = {
						name = SOV_planned_economy
						bonus = 1.0
						uses = 2
						category = industry
					}
					add_ideas = new_economic_policy
				}
			}
			
			custom_effect_tooltip = SOV_planned_economy_dynamic_modifier_tt
			hidden_effect = {
				add_dynamic_modifier = { modifier = SOV_planned_economy_dynamic_modifier }
			}
		}
	}

	focus = {
		id = SOV_paced_industrialization
		icon = GFX_goal_sov_soviet_ind_upgrade
		prerequisite = { focus = SOV_back_to_the_nep }
		x = 0
		y = 1
		relative_position_id = SOV_back_to_the_nep
		cost = 10
		available = {
		}
		                
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 252 254 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 256 239 260 }
				limit = {
					free_building_slots = {
						building = industrial_complex 
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex 
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = SOV_the_trade_union_as_labor_organizer
		icon = GFX_goal_generic_consumer_goods
		prerequisite = { focus = SOV_back_to_the_nep }
		x = 2
		y = 1
		relative_position_id = SOV_back_to_the_nep
		cost = 7
		available = {
			has_idea = SOV_mikhail_tomsky
		}
		                
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			remove_trait = {
				character = SOV_mikhail_tomsky
				slot = political_advisor
				trait = right_trade_unionist
			}
			add_trait = {
				character = SOV_mikhail_tomsky
				slot = political_advisor
				trait = chair_of_the_unions
			}
		}
	}

	focus = {
		id = SOV_incorporate_local_organizations
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = SOV_administrative_reforms focus = SOV_a_new_theory_of_revolution }
		x = 0
		y = 2
		relative_position_id = SOV_administrative_reforms
		cost = 5
		available = {

		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_ideas = SOV_local_organizations_idea
			if = {
				limit = {
					has_idea = SOV_anti_soviet_military_thinking_banned_army
				}
				remove_ideas = SOV_anti_soviet_military_thinking_banned_army
			}
			if = {
				limit = {
					has_idea = SOV_anti_soviet_military_thinking_banned_navy
				}
				remove_ideas = SOV_anti_soviet_military_thinking_banned_navy
			}
			if = {
				limit = {
					has_idea = SOV_anti_soviet_military_thinking_banned_airforce
				}
				remove_ideas = SOV_anti_soviet_military_thinking_banned_airforce
			}
		}
	}

	focus = {
		id = SOV_for_the_common_good
		icon = GFX_focus_eng_concessions_to_the_trade_unions
		prerequisite = { focus = SOV_incorporate_local_organizations }
		prerequisite = { focus = SOV_international_revolutionary_marxist_centre }
		x = 0
		y = 1
		relative_position_id = SOV_incorporate_local_organizations
		cost = 10

		mutually_exclusive = { focus = SOV_strengthen_the_trade_unions }

		available = {
			is_faction_leader = yes
		}

		completion_reward = {
			every_subject_country = {
				country_event = { id = NSB_soviet_for_the_common_good.1 hours = 4 }

				custom_effect_tooltip = if_they_accept
				effect_tooltip = {
					add_ideas = SOV_for_the_common_good_subjects
					add_autonomy_score = {
						value = -100
						localization = SOV_for_the_common_good
					}
				}
			}

			every_other_country = {
				limit = {
					is_in_faction_with = ROOT
					is_subject = no
				}
				country_event = { id = NSB_soviet_for_the_common_good.1 hours = 4 }

				custom_effect_tooltip = if_they_accept
				effect_tooltip = {
					add_ideas = SOV_for_the_common_good_allies
					add_relation_modifier = {
						target = ROOT
						modifier = SOV_for_the_common_good_relation
					}
				}
			}
		}
	}

	focus = {
		id = SOV_victory_over_devastation #SOV_get_rich_develop_the_country
		icon = GFX_focus_generic_support_the_left_right
		prerequisite = { focus = SOV_for_the_common_good }
		x = 0
		y = 1
		relative_position_id = SOV_for_the_common_good
		cost = 10
		available = {

		}

		completion_reward = {
			set_variable = { SOV_planned_economy_party_popularity_stability_factor = 0.15 } #Victory Over Devastation
			set_variable = { SOV_planned_economy_max_surrender_limit_offset = 0.1 } #Victory Over Devastation
			set_variable = { SOV_planned_economy_industry_repair_factor = 0.1 } #Victory Over Devastation
			set_variable = { SOV_planned_economy_consumer_goods_factor = -0.02 } #Victory Over Devastation
			custom_effect_tooltip = SOV_victory_over_devastation_tt

			#Industrial Relocation duration halved
			divide_variable = { SOV_industrial_relocation_days = 2 }
			custom_effect_tooltip = SOV_victory_over_devastation_industrial_relocation_tt
		}
	}

	focus = {
		id = SOV_socialist_humanism
		icon = GFX_focus_research #GFX_focus_generic_socialist_science
		prerequisite = { focus = SOV_victory_over_devastation }
		x = 0
		y = 1
		relative_position_id = SOV_victory_over_devastation
		cost = 10
		available = {

		}
		                
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_stability = 0.1
			add_war_support = -0.1
			add_research_slot = 1

			if = {
				limit = {
					has_idea = SOV_politicized_military
				}
				swap_ideas = {
					remove_idea = SOV_politicized_military
					add_idea = SOV_politicized_military_humanism
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_politicized_military_keep
				}
				swap_ideas = {
					remove_idea = SOV_politicized_military_keep
					add_idea = SOV_politicized_military_keep_humanism
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_politicized_military_swap
				}
				swap_ideas = {
					remove_idea = SOV_politicized_military_swap
					add_idea = SOV_politicized_military_swap_humanism
				}
			}
		}
	}

	focus = {
		id = SOV_international_revolutionary_marxist_centre
		icon = GFX_focus_spr_unify_the_london_bureau
		prerequisite = { focus = SOV_a_new_theory_of_revolution focus = SOV_administrative_reforms }
		prerequisite = { focus = SOV_planned_economy }
		x = 0
		y = 2
		relative_position_id = SOV_a_new_theory_of_revolution
		cost = 5
		available = {
			surrender_progress < 0.1
			OR = {
				is_faction_leader = yes
				is_in_faction = no
			}
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_political_power = 75
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
			IF = {
				limit = {
					NOT = { has_completed_focus = SOV_the_socialist_bulwark }
				}
				set_rule = { can_join_factions = yes }
			}

			if = {
				limit = {
					is_faction_leader = yes
				}
				set_faction_name = SOV_international_revolutionary_marxist_centre_faction_name
			}
			else_if = {
				limit = {
					is_in_faction = no
				}
				create_faction = SOV_international_revolutionary_marxist_centre_faction_name
				every_subject_country = {
					ROOT = { add_to_faction = PREV }
				}
			}

			every_other_country = {
				limit = {
					is_in_faction_with = ROOT
					NOT = { has_country_leader_ideology = stalinism }
				}
				set_country_leader_ideology = marxism
				custom_effect_tooltip = SOV_international_revolutionary_marxist_centre_marxism_tt
			}
			
			if = {
				limit = {
					any_other_country = {
						has_government = communism
						NOT = { has_country_leader_ideology = stalinism }
						is_in_faction = no
						NOT = { has_war_with = ROOT }
					}
				}
				custom_effect_tooltip = SOV_international_revolutionary_marxist_centre_allies_tt
				every_other_country = {
					limit = {
						has_government = communism
						NOT = { has_country_leader_ideology = stalinism }
						is_in_faction = no
						NOT = { has_war_with = ROOT }
					}
					add_opinion_modifier = { modifier = SOV_international_socialist_association target = ROOT }
					country_event = { id = generic.5 hours = 8 random_hours = 8 }
				}
			}
			else = {
				custom_effect_tooltip = SOV_international_revolutionary_marxist_centre_no_allies_tt
				effect_tooltip = {
					every_other_country = {
						limit = {
							has_government = communism
							NOT = { has_country_leader_ideology = stalinism }
							is_in_faction = no
							NOT = { has_war_with = ROOT }
						}
						add_opinion_modifier = { modifier = SOV_international_socialist_association target = ROOT }
						country_event = { id = generic.5 hours = 8 random_hours = 8 }
					}
				}
			}
			
			
			if = { #Stalinists hate us
				limit = {
					any_other_country = {
						has_country_leader_ideology = stalinism
					}
				}
				custom_effect_tooltip = SOV_international_revolutionary_marxist_centre_stalinists_tt
				every_other_country = {
					limit = {
						has_country_leader_ideology = stalinism
					}
					add_opinion_modifier = { modifier = SOV_international_socialist_association_bad target = ROOT }
				}
			}
			else = {
				custom_effect_tooltip = SOV_international_revolutionary_marxist_centre_stalinists_tt
				every_other_country = {
					limit = {
						has_country_leader_ideology = stalinism
					}
					add_opinion_modifier = { modifier = SOV_international_socialist_association_bad target = ROOT }
				}
			}
		}
	}

	focus = {
		id = SOV_a_sustainable_economy
		icon = GFX_focus_prc_agrarian_socialism
		prerequisite = { focus = SOV_paced_industrialization }
		x = 0
		y = 1
		relative_position_id = SOV_paced_industrialization
		cost = 10
		available = {
			has_idea = new_economic_policy
		}
		                
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			swap_ideas = {
				remove_idea = new_economic_policy
				add_idea = new_economic_policy_2
			}
		}
	}

	focus = {
		id = SOV_the_enemies_of_the_people
		icon = GFX_focus_spr_the_anti_fascist_workers_revolution
		prerequisite = { focus = SOV_international_revolutionary_marxist_centre }
		x = 0
		y = 1
		relative_position_id = SOV_international_revolutionary_marxist_centre
		cost = 10
		available = {
			surrender_progress < 0.05
		}

		completion_reward = {

			every_other_country = {
				limit = {
					is_neighbor_of = ROOT 
					OR = {
						has_government = fascism
						has_government = neutrality
					}
				}
				ROOT = {
					create_wargoal = {
						type = puppet_wargoal_focus
						target = PREV
					}
				}
			}
			
			every_country = {
				limit = { 
					OR = {
						tag = ROOT 
						is_in_faction_with = ROOT 
					}
				}
				add_timed_idea = {
					idea = SOV_enemies_of_the_people_idea
					days = 365
				}
			}
			
		}
	}

	focus = {
		id = SOV_proclaim_soviet_hegemony
		icon = GFX_focus_SOV_proclaim_soviet_hegemony
		prerequisite = { focus = SOV_the_enemies_of_the_people }
		x = 0
		y = 1
		relative_position_id = SOV_the_enemies_of_the_people
		cost = 10
		available = {
			surrender_progress < 0.01
		}
		                
		search_filters = {FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_war_support = 0.1
			add_timed_idea = {
				idea = SOV_soviet_hegemony_idea
				days = 730
			}

		}
	}





################################################################################################################################

###  ###  ##  #  # ###     #   ### ### ###      ##  ###  ###   ##   ## ### ### ###  ##  #  #      ##   ##  #   # #   #  ##  #  # 
#  #  #  #    #  #  #      #   #   #    #      #  # #  # #  # #  # #    #   #   #  #  # ## #     #  # #  # ## ## ## ## #  # ## # 
###   #  # ## ####  #      #   ##  ##   #      #  # ###  ###  #  #  #   #   #   #  #  # # ##     #    #  # # # # # # # #  # # ## 
#  #  #  #  # #  #  #      #   #   #    #      #  # #    #    #  #   #  #   #   #  #  # #  #     #  # #  # #   # #   # #  # #  # 
#  # ###  ##  #  #  #      ### ### #    #       ##  #    #     ##  ##  ###  #  ###  ##  #  #      ##   ##  #   # #   #  ##  #  # 

################################################################################################################################

	focus = {
		id = SOV_military_support
		icon = GFX_goal_generic_red_commando
		prerequisite = { focus = SOV_the_left_opposition focus = SOV_the_right_opposition } 
		x = 9
		y = 1
		relative_position_id = SOV_the_left_opposition
		mutually_exclusive = { focus = SOV_divert_attention_towards_military }
		cost = 10
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		                
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_medium_increase_effect = yes
			custom_effect_tooltip = SOV_military_support_tt 
			hidden_effect = {
				IF = {
					limit = {
						SOV_is_left_opposition = yes 
					}
					add_to_variable = { SOV_left_opposition_army_support = 0.07}
					clamp_variable = {
						var = SOV.SOV_left_opposition_army_support
						max = 0.9
						min = 0.1
					}
				}
				ELSE_IF = {
					limit = {
						SOV_is_right_opposition = yes
					}
					add_to_variable = { SOV_right_opposition_army_support = 0.05 }
					clamp_variable = {
						var = SOV.SOV_right_opposition_army_support
						max = 0.9
						min = 0.1
					}
				}
				SOV_get_centre_military_support = yes 

				IF = { #Align a valid Field Marshal, if possible
					limit = {
						any_army_leader = {
							is_field_marshal = yes
							NOT = { is_character = SOV_mikhail_tukhachevsky } #Has his own focus in the left oppo, probably wouldn't go with the right oppo straight away
							NOT = { has_trait = trait_SOV_stalinist }
							NOT = { has_trait = trait_SOV_bukharinist }
							NOT = { has_trait = trait_SOV_trotskyist }
							NOT = { has_trait = trait_SOV_monarchist_sympathizer }
						}
					}
					random_army_leader = {
						limit = {
							is_field_marshal = yes
							NOT = { is_character = SOV_mikhail_tukhachevsky } #Has his own focus in the left oppo, probably wouldn't go with the right oppo straight away
							NOT = { has_trait = trait_SOV_stalinist }
							NOT = { has_trait = trait_SOV_bukharinist }
							NOT = { has_trait = trait_SOV_trotskyist }
							NOT = { has_trait = trait_SOV_monarchist_sympathizer }
						}
						IF = {
							limit = {
								SOV_is_left_opposition = yes 
							}
							add_unit_leader_trait = trait_SOV_trotskyist
							set_character_flag = SOV_aligned_left_opposition_flag
						}
						ELSE_IF = {
							limit = {
								SOV_is_right_opposition = yes
							}
							add_unit_leader_trait = trait_SOV_bukharinist
							set_character_flag = SOV_aligned_right_opposition_flag
						}
					}
				}
				ELSE = {
					random_army_leader = {
						limit = {
							NOT = { is_character = SOV_mikhail_tukhachevsky } #Has his own focus in the left oppo, probably wouldn't go with the right oppo straight away
							NOT = { is_character = SOV_vitaly_primakov } #Has his own focus in the left oppo, probably wouldn't go with the right oppo straight away
							NOT = { has_trait = trait_SOV_stalinist }
							NOT = { has_trait = trait_SOV_bukharinist }
							NOT = { has_trait = trait_SOV_trotskyist }
							NOT = { has_trait = trait_SOV_monarchist_sympathizer }
							
						}
						IF = {
							limit = {
								SOV_is_left_opposition = yes 
							}
							add_unit_leader_trait = trait_SOV_trotskyist
							set_character_flag = SOV_aligned_left_opposition_flag
						}
						ELSE_IF = {
							limit = {
								SOV_is_right_opposition = yes
							}
							add_unit_leader_trait = trait_SOV_bukharinist
							set_character_flag = SOV_aligned_right_opposition_flag
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_divert_attention_towards_military
		icon = GFX_focus_SOV_military_purge
		prerequisite = { focus = SOV_the_left_opposition focus = SOV_the_right_opposition } 
		mutually_exclusive = { focus = SOV_military_support }
		x = 11
		y = 1
		relative_position_id = SOV_the_left_opposition
		cost = 5
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			custom_effect_tooltip = SOV_divert_purge_attention_tt
			hidden_effect = {
				SOV_pick_regular_purge_army_type_effect = yes 
			}
		}
	}

	focus = {
		id = SOV_gain_support_from_party_members
		icon = GFX_focus_generic_soviet_politics
		prerequisite = { focus = SOV_the_left_opposition focus = SOV_the_right_opposition } 
		x = 7
		y = 1
		relative_position_id = SOV_the_left_opposition
		cost = 5
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA FOCUS_FILTER_STABILITY}

		completion_reward = {
			SOV_paranoia_low_increase_effect = yes 
			add_political_power = 100
			custom_effect_tooltip = SOV_gain_support_from_party_members_tt
			
			hidden_effect = {
				if = {
					limit = {
						SOV_is_left_opposition = yes 
					}
					SOV_mikhail_kalinin = {
						set_character_flag = SOV_aligned_left_opposition_flag
						clr_character_flag = SOV_safe_from_purge_flag
					}
					SOV_vsevolod_merkulov = {
						set_character_flag = SOV_aligned_left_opposition_flag
						clr_character_flag = SOV_safe_from_purge_flag
					}
					SOV_nikita_khrushchyov = {
						set_character_flag = SOV_aligned_left_opposition_flag
						clr_character_flag = SOV_safe_from_purge_flag
					}
				}
			}
		}
	}

	focus = {
		id = SOV_sway_the_railway_workers
		icon = GFX_focus_generic_public_works_A
		prerequisite = { focus = SOV_the_left_opposition focus = SOV_the_right_opposition } 
		x = 3
		y = 1
		relative_position_id = SOV_the_left_opposition
		cost = 5
		available = {
			SOV_has_selected_hq = yes 
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			SOV_paranoia_very_low_increase_effect = yes 
			custom_effect_tooltip = SOV_sway_the_railway_workers_tt
			set_country_flag = SOV_supply_hub_flag
		}
	}

	focus = {
		id = SOV_infiltrate_the_nkvd
		icon = GFX_goal_HON_nkvd_assistance
		prerequisite = { focus = SOV_the_left_opposition focus = SOV_the_right_opposition } 
		x = 5
		y = 1
		relative_position_id = SOV_the_left_opposition
		cost = 6
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_low_decrease_effect = yes 
			custom_effect_tooltip = SOV_infiltrate_the_nkvd_tt
			set_country_flag = SOV_nkvd_aligned_flag
			IF = {
				limit = { SOV_is_right_opposition = yes }
				custom_effect_tooltip = SOV_infiltrate_the_nkvd_coup_tt
			}
		}
	}

	focus = {
		id = SOV_cooperation_against_stalin
		icon = GFX_goal_generic_national_unity
		prerequisite = { focus = SOV_gain_support_from_party_members }
		mutually_exclusive = { focus = SOV_left_eliminate_right focus = SOV_eliminate_the_left}
		x = 0
		y = 1
		relative_position_id = SOV_gain_support_from_party_members
		cost = 5	#was 10, forcing you to rush the focus if you wanted to get Zinoviets in charge 
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_medium_increase_effect = yes 
			IF = {
				limit = {
					SOV_is_left_opposition = yes 
				}
				custom_effect_tooltip = SOV_cooperation_against_stalin_left_tt
				hidden_effect = {
					SOV_nikolay_bukharin = {
						set_character_flag = SOV_aligned_left_opposition_flag
					}
					SOV_aleksey_rykov = {
						set_character_flag = SOV_aligned_left_opposition_flag
					}
				}
			}
			ELSE_IF = {
				limit = {
					SOV_is_right_opposition = yes 
				}
				custom_effect_tooltip = SOV_cooperation_against_stalin_right_tt
				hidden_effect = {
					SOV_karl_radek = {
						set_character_flag = SOV_aligned_right_opposition_flag
					}
					SOV_yevgeny_preobrazhensky = {
						set_character_flag = SOV_aligned_right_opposition_flag
					}
				}
			}
			ELSE = {
				custom_effect_tooltip = SOV_cooperation_against_stalin_other_tt
			}
			# Modify Factionalism - change tooltip if changing values!!!
			custom_effect_tooltip = SOV_cooperation_against_stalin_factionalism_tt 
			add_to_variable = { SOV_factionalism_political_advisor_cost_factor = -0.15 }
			add_to_variable = { SOV_factionalism_political_power_factor = -0.05 }
			add_to_variable = { SOV_factionalism_popularity_stability_cost_factor = -0.1 }
		}
	}

	focus = {
		id = SOV_align_the_zinovyevites
		icon = GFX_focus_SOV_zinovyevists
		prerequisite = { focus = SOV_cooperation_against_stalin }
		x = -1
		y = 1
		relative_position_id = SOV_cooperation_against_stalin
		cost = 5
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_medium_increase_effect = yes 
			custom_effect_tooltip = SOV_align_the_zinovyevites_tt
			# Modify Factionalism - change tooltip if changing values!!!
			custom_effect_tooltip = SOV_align_the_zinovyevites_factionalism_tt
			add_to_variable = { SOV_factionalism_political_power_factor = -0.05 }

			hidden_effect = {
				if = {
					limit = {
						SOV_is_left_opposition = yes 
					}
					SOV_grigory_zinovyev = {
						set_character_flag = SOV_aligned_left_opposition_flag
						clr_character_flag = SOV_imprisoned_flag
						set_character_flag = SOV_exiled_flag
						set_portraits = {
							army = {
								small = "GFX_idea_SOV_grigory_zinovyev"
							}
						}
					}
					SOV_lev_kamenev = {
						set_character_flag = SOV_aligned_left_opposition_flag
						clr_character_flag = SOV_imprisoned_flag
						set_character_flag = SOV_exiled_flag
						set_portraits = {
							army = {
								small = "GFX_idea_SOV_lev_kamenev"
							}
						}
					}
				}
				else_if = {
					limit = {
						SOV_is_right_opposition = yes 
					}
					SOV_grigory_zinovyev = {
						set_character_flag = SOV_aligned_right_opposition_flag
						clr_character_flag = SOV_imprisoned_flag
						set_character_flag = SOV_exiled_flag
						set_portraits = {
							army = {
								small = "GFX_idea_SOV_grigory_zinovyev"
							}
						}
					}
					SOV_lev_kamenev = {
						set_character_flag = SOV_aligned_right_opposition_flag
						clr_character_flag = SOV_imprisoned_flag
						set_character_flag = SOV_exiled_flag
						set_portraits = {
							army = {
								small = "GFX_idea_SOV_lev_kamenev"
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_liberate_ryutin
		icon = GFX_goal_generic_prison_break
		prerequisite = { focus = SOV_cooperation_against_stalin }
		x = 1
		y = 1
		relative_position_id = SOV_cooperation_against_stalin
		cost = 5	#a single advisor is too costly for 70-days focus
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}
		                
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_medium_increase_effect = yes 
			custom_effect_tooltip = SOV_liberate_ryutin_tt 
			IF = {
				limit = { SOV_is_left_opposition = yes }
				566 = { set_state_flag = SOV_left_opposition_state }
				hidden_effect = {
					SOV_martemyan_ryutin = {
						set_character_flag = SOV_aligned_left_opposition_flag
						clr_character_flag = SOV_imprisoned_flag
						set_character_flag = SOV_exiled_flag
						set_portraits = {
							army = {
								small = "GFX_idea_SOV_martemyan_ryutin"
							}
						}
					}
				}
			}
			ELSE_IF = {
				limit = { SOV_is_right_opposition = yes }
				566 = { set_state_flag = SOV_right_opposition_state }
				hidden_effect = {
					SOV_martemyan_ryutin = {
						set_character_flag = SOV_aligned_right_opposition_flag
						clr_character_flag = SOV_imprisoned_flag
						set_character_flag = SOV_exiled_flag
						set_portraits = {
							army = {
								small = "GFX_idea_SOV_martemyan_ryutin"
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_return_democracy_to_the_party
		icon = GFX_goal_generic_neutrality_focus
		prerequisite = { focus = SOV_cooperation_against_stalin }
		mutually_exclusive = { focus = SOV_left_purges focus = SOV_right_purges }
		x = 0
		y = 4
		relative_position_id = SOV_cooperation_against_stalin
		cost = 7
		available = {
			has_global_flag = SOV_soviet_civil_war_over
		}

		completion_reward = {
			# Modify Factionalism - change tooltip if changing values!!!
			custom_effect_tooltip = SOV_return_democracy_to_the_party_factionalism_tt
			add_to_variable = { SOV_factionalism_political_power_factor = -0.05 }
			IF = {
				limit = { SOV_is_left_opposition = yes }
				custom_effect_tooltip = SOV_return_democracy_to_the_party_unlock_right_tt 
			}
			ELSE = {
				custom_effect_tooltip = SOV_return_democracy_to_the_party_unlock_left_tt
			}
			IF = { 
				limit = { has_idea = trotskyite_plot_nsb}
				remove_ideas = trotskyite_plot_nsb 
			}
			hidden_effect = {
				set_portraits = {
					character = SOV_ivan_smirnov
					army = {
						small = "GFX_idea_SOV_ivan_smirnov"
					}
				}
				set_portraits = {
					character = SOV_ivar_smilga
					army = {
						small = "GFX_idea_SOV_ivar_smilga"
					}
				}
				set_portraits = {
					character = SOV_aleksandr_shlyapnikov
					army = {
						small = "GFX_idea_SOV_aleksandr_shlyapnikov"
					}
				}
				IF = {
					limit = { SOV_is_right_opposition = yes }
					every_character = {
						IF = {
							limit = {
								has_character_flag = SOV_exiled_flag
								has_character_flag = SOV_aligned_left_opposition_flag
							}
							clr_character_flag = SOV_exiled_flag
						}
						#-> Without this, only Lev Trotsky is available, because the other ones from the Left are still in prison <><>
						IF = {
							limit = {
								has_character_flag = SOV_imprisoned_flag
								has_character_flag = SOV_aligned_left_opposition_flag
							}
							clr_character_flag = SOV_imprisoned_flag
						}
					}
				}
				ELSE_IF = {
					limit = { SOV_is_left_opposition = yes }
					every_character = {
						IF = {
							limit = {
								has_character_flag = SOV_exiled_flag
								has_character_flag = SOV_aligned_right_opposition_flag
							}
							clr_character_flag = SOV_exiled_flag
						}
						#-> Unsure if anyone from the Right is in prison - won't hurt to check <><>
						IF = {
							limit = {
								has_character_flag = SOV_imprisoned_flag
								has_character_flag = SOV_aligned_right_opposition_flag
							}
							clr_character_flag = SOV_imprisoned_flag
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_begin_destalinization
		icon = GFX_fifth_column
		prerequisite = { focus = SOV_return_democracy_to_the_party }
		x = 0
		y = 1
		relative_position_id = SOV_return_democracy_to_the_party
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = mp_tech_bonus_name
				bonus = 1
				uses = 1
				category = military_police_tech
			}
			add_timed_idea = {
				idea = SOV_destalinization
				days = 100
			}
		}
	}

	focus = {
		id = SOV_conduct_nationwide_inspections
		icon = GFX_goal_generic_commie_investments
		prerequisite = { focus = SOV_begin_destalinization }

		x = 0
		y = 1
		relative_position_id = SOV_begin_destalinization
		cost = 10
		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_political_power = 125
			add_timed_idea = {
				idea = SOV_nationwide_inspections_1
				days = 45
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_status_of_labour_unions
		icon = GFX_focus_eng_concessions_to_the_trade_unions
		prerequisite = { focus = SOV_conduct_nationwide_inspections }
		x = -1
		y = 1
		relative_position_id = SOV_conduct_nationwide_inspections
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		completion_reward = {
			add_ideas = SOV_status_of_labour_unions_idea
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_recalibration_of_quotas
		icon = GFX_goal_stock_exchange
		prerequisite = { focus =  SOV_conduct_nationwide_inspections }
		x = 1
		y = 1
		relative_position_id = SOV_conduct_nationwide_inspections
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1
				uses = 1
				category = industry
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SOV_strengthen_the_trade_unions
		icon = GFX_focus_generic_treaty
		prerequisite = { focus = SOV_all_power_to_the_soviets focus = SOV_incorporate_local_organizations }
		x = 6
		y = 1
		offset = {
			x = -5
			y = 0
			trigger = {
				NOT = { has_dlc = "No Step Back" }
			}
		}
		relative_position_id = SOV_all_power_to_the_soviets
		mutually_exclusive = { focus = SOV_regional_development }
		cost = 10

		mutually_exclusive = { focus = SOV_for_the_common_good }
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_political_power = 70
			add_popularity = {
				ideology = communism 
				popularity = 0.05
			}
			add_ideas = SOV_strong_trade_unions_idea
			
		}
	}

	focus = {
		id = SOV_the_peoples_revolution
		icon = GFX_focus_por_workers_of_iberia
		prerequisite = { focus = SOV_strengthen_the_trade_unions }
		x = 0
		y = 1
		relative_position_id = SOV_strengthen_the_trade_unions
		cost = 10
		available = {
		}
		                
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER}

		completion_reward = {
			add_popularity = {
				ideology = communism 
				popularity = 0.1
			}
			add_ideas = SOV_the_peoples_revolution_idea
		}
	}

	focus = {
		id = SOV_the_supreme_soviet
		icon = GFX_focus_SOV_the_supreme_soviet
		prerequisite = { focus = SOV_the_peoples_revolution }
		x = 0
		y = 1
		relative_position_id = SOV_the_peoples_revolution
		cost = 10
		available = {
			has_government = communism
		}
		                
		search_filters = {FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_country_leader_role = {
				character = "SOV_supreme_soviet"
				country_leader = {
					ideology = marxism
					traits = { strong_party_discipline }
					expire = "1965.3.1.1"
				}
				promote_leader = yes 
			}
			custom_effect_tooltip = SOV_factionalism_removed_tt
			hidden_effect = { #inproper tooltip
				remove_dynamic_modifier = { modifier = SOV_factionalism_modifier }
			}

			if = {
				limit = {
					ROOT = {
						has_cosmetic_tag = SOV_greater_russia_cos
					}
				}

				set_cosmetic_tag = SOV_greater_russia_supreme_cos

				else = {
					set_cosmetic_tag = SOV_supreme_soviet_cos
				}
			}
		}
	}
	

######################################################################################################################################

#### ##    ## ######## ######## ########  ##    ##    ###    ##             ###    ######## ########    ###    #### ########   ######  
 ##  ###   ##    ##    ##       ##     ## ###   ##   ## ##   ##            ## ##   ##       ##         ## ##    ##  ##     ## ##    ## 
 ##  ####  ##    ##    ##       ##     ## ####  ##  ##   ##  ##           ##   ##  ##       ##        ##   ##   ##  ##     ## ##       
 ##  ## ## ##    ##    ######   ########  ## ## ## ##     ## ##          ##     ## ######   ######   ##     ##  ##  ########   ######  
 ##  ##  ####    ##    ##       ##   ##   ##  #### ######### ##          ######### ##       ##       #########  ##  ##   ##         ## 
 ##  ##   ###    ##    ##       ##    ##  ##   ### ##     ## ##          ##     ## ##       ##       ##     ##  ##  ##    ##  ##    ## 
#### ##    ##    ##    ######## ##     ## ##    ## ##     ## ########    ##     ## ##       ##       ##     ## #### ##     ##  ######  
	


	focus = {
		id = SOV_addressing_internal_affairs
		icon = GFX_focus_generic_self_management
		prerequisite = { focus = SOV_the_path_of_marxism_leninism }
		x = 24
		y = 1
		offset = {
			x = -7
			y = 0
			trigger = { #Basic offset to compensate for missing Bukharinist branch
				NOT = { has_dlc = "No Step Back" }
			}
		}
		offset = {
			x = -19
			y = 0
			trigger = { #Trotskyist branch hides
				NOT = { has_dlc = "No Step Back" }
				has_completed_focus = SOV_the_centre 
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}
		offset = {
			x = -7
			y = 0
			trigger = { # Stalinist branch hides
				NOT = { has_dlc = "No Step Back" }
				has_completed_focus = SOV_the_left_opposition
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}
		offset = {
			x = -26
			y = 0
			trigger = {
				has_dlc = "No Step Back"
				has_completed_focus = SOV_the_centre
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}
		offset = {
			x = -7
			y = 0
			trigger = {
				has_dlc = "No Step Back"
				OR = {
					AND = {
						has_completed_focus = SOV_the_left_opposition
						has_completed_focus = SOV_left_opposition_coup
					}
					AND = {
						has_completed_focus = SOV_the_right_opposition
						has_completed_focus = SOV_coup_detat
					}
				}
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		relative_position_id = SOV_the_path_of_marxism_leninism
		cost = 5

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = SOV_beaten_but_not_defeated }
				NOT = { has_completed_focus = SOV_form_a_fifth_column }
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_political_power = 50
			add_stability = 0.1
		}
	}

	focus = {
		id = SOV_nkvd_primacy
		icon = GFX_goal_HON_nkvd_assistance
		prerequisite = { focus = SOV_addressing_internal_affairs }
		x = -2
		y = 1
		relative_position_id = SOV_addressing_internal_affairs
		cost = 5

		completion_reward = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_intelligence_agency = yes
					}
				}
				create_intelligence_agency = yes				
			}			
			add_ideas = SOV_nkvd_nsb
			add_tech_bonus = {
				name = mp_tech_bonus_name
				bonus = 1
				uses = 1
				category = military_police_tech
			}			
			SOV_paranoia_medium_increase_effect = yes
		}
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA FOCUS_FILTER_RESEARCH FOCUS_FILTER_ESPIONAGE}
	}
		

	focus = {
		id = SOV_the_new_soviet_woman
		icon = GFX_goal_womens_rights
		prerequisite = { focus = SOV_addressing_internal_affairs }
		x = 2
		y = 1
		relative_position_id = SOV_addressing_internal_affairs
		cost = 5
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_political_power = 70
			add_stability = 0.1
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
		}
	}

	focus = {
		id = SOV_expand_the_agitprop
		icon = GFX_goal_generic_army_mobilization2
		prerequisite = { focus = SOV_addressing_internal_affairs }
		x = 0
		y = 1
		relative_position_id = SOV_addressing_internal_affairs
		cost = 5
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_PROPAGANDA}

		completion_reward = {
			add_political_power = 25
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}

			hidden_effect = {
				SOV_unlock_propaganda_campaign_slot_effect = yes
			}
			unlock_decision_category_tooltip = SOV_propaganda_campaigns
		}
	}

	focus = {
		id = SOV_positive_heroism
		icon = GFX_postive_heroism
		prerequisite = { focus = SOV_expand_the_agitprop }
		x = -2
		y = 1
		relative_position_id = SOV_expand_the_agitprop
		cost = 10

		mutually_exclusive = { focus = SOV_collectivist_propaganda }
		
		search_filters = {FOCUS_FILTER_PROPAGANDA}

		completion_reward = {
			add_political_power = 25
			custom_effect_tooltip = available_military_high_command
			show_ideas_tooltip = konstantin_rokossovsky 
			custom_effect_tooltip = available_theorist
			show_ideas_tooltip = georgy_zhukov

			custom_effect_tooltip = unlock_propaganda_campaign_tt
			unlock_decision_tooltip = SOV_propaganda_heroes_forward
			custom_effect_tooltip = unlock_propaganda_campaign_slot_tt
			SOV_unlock_propaganda_campaign_slot_effect = yes

			custom_effect_tooltip = kamikaze_focus_tooltip
			hidden_effect = {
				set_rule = {
					can_use_kamikaze_pilots = yes
				}
			}
		}
	}

	focus = {
		id = SOV_revive_the_stakhanovite_movement
		icon = GFX_goal_italy_establish_the_sme
		prerequisite = { focus = SOV_positive_heroism }
		x = 0
		y = 1
		relative_position_id = SOV_positive_heroism
		cost = 10
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_ideas = SOV_stakhanovite_movement
		}
	}

	focus = {
		id = SOV_war_heroes
		icon = GFX_goal_ivan_konev
		prerequisite = { focus = SOV_revive_the_stakhanovite_movement }
		x = 0
		y = 1
		relative_position_id = SOV_revive_the_stakhanovite_movement
		cost = 5

		completion_reward = {
			add_ideas = SOV_war_heroes_ns

			if = {
				limit = {
					SOV_georgy_zhukov = {
						NOT = { has_character_flag = SOV_character_purged_flag }
						is_corps_commander = yes
					}
				}
				SOV_georgy_zhukov = {
					promote_leader = yes
				}
			}
			else = {
				random_army_leader = {
					limit = {
						NOT = { has_character_flag = SOV_potential_target_flag }
						is_corps_commander = yes
						NOT = { is_character = SOV_konstantin_rokossovsky }
						NOT = { is_character = SOV_ivan_konev }
					}
					promote_leader = yes
				}
			}
			if = {
				limit = {
					SOV_konstantin_rokossovsky = {
						NOT = { has_character_flag = SOV_character_purged_flag }
						is_corps_commander = yes
					}
				}
				SOV_konstantin_rokossovsky = {
					promote_leader = yes
				}
			}
			else = {
				random_army_leader = {
					limit = {
						NOT = { has_character_flag = SOV_potential_target_flag }
						is_corps_commander = yes
						NOT = { is_character = SOV_georgy_zhukov }
						NOT = { is_character = SOV_ivan_konev }
					}
					promote_leader = yes
				}
			}
			if = {
				limit = {
					SOV_ivan_konev = {
						NOT = { has_character_flag = SOV_character_purged_flag }
						is_corps_commander = yes
					}
				}
				SOV_ivan_konev = {
					promote_leader = yes
				}
			}
			else = {
				random_army_leader = {
					limit = {
						NOT = { has_character_flag = SOV_potential_target_flag }
						is_corps_commander = yes
						NOT = { is_character = SOV_georgy_zhukov }
						NOT = { is_character = SOV_konstantin_rokossovsky }
					}
					promote_leader = yes
				}
			}
		}
	}

	focus = {
		id = SOV_collectivist_propaganda
		icon = GFX_goal_generic_worker_support
		prerequisite = { focus = SOV_expand_the_agitprop }
		x = 0
		y = 1
		relative_position_id = SOV_expand_the_agitprop
		cost = 10

		mutually_exclusive = { focus = SOV_positive_heroism }
		
		search_filters = {FOCUS_FILTER_MANPOWER FOCUS_FILTER_PROPAGANDA}

		completion_reward = {
			add_political_power = 25
			add_ideas = SOV_collectivist_propaganda_ns

			custom_effect_tooltip = unlock_propaganda_campaign_tt
			unlock_decision_tooltip = SOV_propaganda_for_the_motherland
			custom_effect_tooltip = unlock_propaganda_campaign_slot_tt
			SOV_unlock_propaganda_campaign_slot_effect = yes
		}
	}

	focus = {
		id = SOV_socialist_emulation
		icon = GFX_goal_generic_soviet_construction
		prerequisite = { focus = SOV_collectivist_propaganda }
		x = 0
		y = 1
		relative_position_id = SOV_collectivist_propaganda
		cost = 10
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			add_ideas = SOV_socialist_emulation_1_ns
		}
	}

	focus = {
		id = SOV_socialist_realism
		icon = GFX_focus_YUG_pan_slavic_congress
		prerequisite = { focus = SOV_socialist_emulation }
		x = 0
		y = 1
		relative_position_id = SOV_socialist_emulation
		cost = 10
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL}

		completion_reward = {
			swap_ideas = {
				remove_idea = SOV_socialist_emulation_1_ns
				add_idea = SOV_socialist_emulation_2_ns
			}
		}
	}

	focus = {
		id = SOV_the_komsomol
		icon = GFX_goal_communist_revolt
		prerequisite = { focus = SOV_expand_the_agitprop }
		x = 2
		y = 1
		relative_position_id = SOV_expand_the_agitprop
		cost = 5
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_PROPAGANDA}

		completion_reward = {
			add_political_power = 50
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}

			custom_effect_tooltip = unlock_propaganda_campaign_tt
			unlock_decision_tooltip = SOV_propaganda_knowledge
			unlock_decision_tooltip = SOV_propaganda_builders_of_communism
			unlock_decision_tooltip = SOV_propaganda_sweep_scum_out
			custom_effect_tooltip = unlock_propaganda_campaign_slot_tt
			SOV_unlock_propaganda_campaign_slot_effect = yes
		}
	}

	focus = {
		id = SOV_militarized_schools
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = SOV_the_komsomol }
		x = 0
		y = 2
		relative_position_id = SOV_the_komsomol
		cost = 7.2
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 15
				has_war = yes
			}				
		}

		available_if_capitulated = yes

		completion_reward = {
			army_experience = 5
			every_army_leader = {
				add_planning = 1
			}
			add_ideas = militarized_schools
			add_doctrine_cost_reduction = {
				name = SOV_militarized_schools
				uses = 1
				cost_reduction = 0.5
				category = land_doctrine
            }
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = SOV_patriarch_of_all_russia
		icon = GFX_focus_SOV_patriarch_of_all_russia
		prerequisite = { focus = SOV_war_heroes focus = SOV_socialist_realism }
		x = 1
		y = 1
		relative_position_id = SOV_war_heroes
		cost = 5
		
		search_filters = {FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_stability = 0.1

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = SOV_patriarch_sergy
		}
	}



########  #######  ########  ######## ####  ######   ##    ##     ######   #######  ##     ## ##     ## #### ######## 
##       ##     ## ##     ## ##        ##  ##    ##  ###   ##    ##    ## ##     ## ###   ### ###   ###  ##  ##       
##       ##     ## ##     ## ##        ##  ##        ####  ##    ##       ##     ## #### #### #### ####  ##  ##       
######   ##     ## ########  ######    ##  ##   #### ## ## ##    ##       ##     ## ## ### ## ## ### ##  ##  ######   
##       ##     ## ##   ##   ##        ##  ##    ##  ##  ####    ##       ##     ## ##     ## ##     ##  ##  ##       
##       ##     ## ##    ##  ##        ##  ##    ##  ##   ###    ##    ## ##     ## ##     ## ##     ##  ##  ##       
##        #######  ##     ## ######## ####  ######   ##    ##     ######   #######  ##     ## ##     ## #### ######## 



	focus = {
		id = SOV_the_comintern
		icon = GFX_goal_generic_communist_pride
		prerequisite = { focus = SOV_the_path_of_marxism_leninism }
		x = 9
		y = 0
		relative_position_id = SOV_addressing_internal_affairs
		cost = 6

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = SOV_beaten_but_not_defeated }
				NOT = { has_completed_focus = SOV_form_a_fifth_column }
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_political_power = 50
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
		}
	}

	focus = {
		id = SOV_development_aid_for_eastern_allies
		icon = GFX_goal_generic_construct_civilian
		prerequisite = { focus = SOV_the_comintern }
		x = -5
		y = 1
		relative_position_id = SOV_the_comintern
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}

		available = {
			any_allied_country = {
				capital_scope = { is_on_continent = asia }
				is_major = no
			}
			num_of_civilian_factories_available_for_projects > 2
			is_subject = no
		}

		select_effect = {
			add_ideas = SOV_development_of_eastern_allies
		}

		completion_reward = {
			#Tooltip purposes (Select Effect)
			custom_effect_tooltip = SOV_focus_select_effect_tt
			effect_tooltip = {
				add_ideas = SOV_development_of_eastern_allies
			}

			#(Complete Effect)
			custom_effect_tooltip = SOV_focus_complete_effect_tt
			every_other_country = {
				limit = {
					is_in_faction_with = ROOT
					capital_scope = { is_on_continent = asia }
					is_major = no
				}
				country_event = { id = NSB_soviet_foreign_politics_events.10 hours = 2 random_hours = 1 }
				custom_effect_tooltip = if_they_accept
				custom_effect_tooltip = SOV_development_aid_for_eastern_allies_tt
			}
			hidden_effect = {
				remove_ideas = SOV_development_of_eastern_allies
			}
		}
	}

	focus = {
		id = SOV_war_measures_in_the_east
		icon = GFX_goal_generic_peasant_army
		prerequisite = { focus = SOV_development_aid_for_eastern_allies }
		x = 0
		y = 1
		relative_position_id = SOV_development_aid_for_eastern_allies
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			custom_effect_tooltip = SOV_war_measures_scope_tt
			every_other_country = {
				limit = {
					is_in_faction_with = ROOT
					capital_scope = { is_on_continent = asia }
					is_major = no
				}
				country_event = { id = NSB_soviet_foreign_politics_events.11 hours = 2 random_hours = 1 }
				custom_effect_tooltip = if_they_accept
				effect_tooltip = {
					add_timed_idea = { idea = SOV_war_measures_allies days = 1095 }
				}
			}
		}
	}

	focus = {
		id = SOV_annex_tannu_tuva
		icon = GFX_focus_generic_treaty
		prerequisite = { focus = SOV_war_measures_in_the_east }
		x = -1
		y = 1
		relative_position_id = SOV_war_measures_in_the_east
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = { 
			is_subject = no
			TAN = {
				has_government = ROOT
				exists = yes
				OR = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				is_neighbor_of = ROOT
			}
			if = {
				limit = {
					MON = {
						has_completed_focus = MON_cooperation_with_kuomintang
					}
				}
				NOT = {
					has_active_mission = MON_the_fate_of_tuva
				}
			}
		}

		bypass = {
			any_country = {
				OR = {
					tag = ROOT
					is_subject_of = ROOT
				}
				controls_state = 329
			}
		}
		
		search_filters = {FOCUS_FILTER_ANNEXATION}

		completion_reward = {
			TAN = {	country_event = { id = soviet.14 } }
		}
	}

	focus = {
		id = SOV_fortify_mongolian_border
		icon = GFX_goal_generic_construct_military
		prerequisite = { focus = SOV_war_measures_in_the_east }
		x = 1
		y = 1
		relative_position_id = SOV_war_measures_in_the_east
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			MON = {
				is_in_faction_with = ROOT
				has_full_control_of_state = 330
				has_full_control_of_state = 819
				has_full_control_of_state = 817
				has_full_control_of_state = 818

			}
			is_subject = no
		}

		completion_reward = {
			MON = { country_event = { id = NSB_soviet_foreign_politics_events.12 hours = 2 random_hours = 1 } }
			custom_effect_tooltip = if_they_accept
			custom_effect_tooltip = SOV_fortify_mongolian_border_forts_tt
		}
	}

	focus = {
		id = SOV_send_military_advisors_to_spain
		icon = GFX_focus_intervention_spain_republic
		prerequisite = { focus = SOV_the_comintern }
		x = -3
		y = 1
		relative_position_id = SOV_the_comintern
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			has_civil_war = no
			OR = {
				has_completed_focus = SOV_the_centre
				has_completed_focus = SOV_the_left_opposition
				has_completed_focus = SOV_the_right_opposition
			}
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				SPR_scw_in_progress = yes
				if = {
					limit = {
						NOT = { has_global_flag = spanish_civil_war }
					}
					custom_trigger_tooltip = {
					    tooltip = POR_spr_tooltip_country_exist_tt
					    country_exists = SPR
				    }
				    custom_trigger_tooltip = {
					    tooltip = POR_spr_tooltip_at_peace_tt
						NOT = { has_war_with = SPR }
				    }
				}
				else = {
					if = {
						limit = {
							has_completed_focus = SOV_covert_support_for_spanish_poum
						}
						country_exists = SPC
						NOT = { has_war_with = SPC }
					}
					else = {
						country_exists = SPD
						NOT = { has_war_with = SPD }
					}
				}
			}
			else = {
				any_other_country = {
					original_tag = SPR
					has_civil_war = yes
					NOT = { has_war_with = ROOT }
					OR = {
						has_government = democratic
						has_government = communism
					}
				}
			}
			has_government = communism
			is_subject = no
		}

		completion_reward = {
			add_timed_idea = { idea = SOV_military_advisors_in_spain days = 1095 }
			
			if = {
				limit = {
					has_dlc = "La Resistance"
					has_completed_focus = SOV_covert_support_for_spanish_poum
					has_completed_focus = SOV_coup_detat
					has_global_flag = SPR_anarchist_uprising_flag
					country_exists = SPC
					SPC = { has_completed_focus = SPR_the_anti_fascist_workers_revolution }
				}
				SPC = {
					hidden_effect = { country_event = { id = NSB_soviet_foreign_politics_events.20 hours = 2 random_hours = 1 } }
					effect_tooltip = { add_timed_idea = {idea = SOV_soviet_advisors_spr days = 1095 } }
				}
			}
			else_if = {
				limit = {
					has_dlc = "La Resistance"
					country_exists = SPD
				}
				SPD = {
					hidden_effect = { country_event = { id = NSB_soviet_foreign_politics_events.20 hours = 2 random_hours = 1 } }
					effect_tooltip = { add_timed_idea = {idea = SOV_soviet_advisors_spr days = 1095 } }
				}
			}
			else_if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = { country_exists = SPD }
				}
				custom_effect_tooltip = SOV_aid_republican_spain_tt
				effect_tooltip = { add_timed_idea = {idea = SOV_soviet_advisors_spr days = 1095 } }
			}
			else = {
				random_country = {
					limit = {
						original_tag = SPR
						has_civil_war = yes
						OR = {
							has_government = communism
							has_government = democratic
						}
					}
					hidden_effect = { country_event = { id = NSB_soviet_foreign_politics_events.20 hours = 2 random_hours = 1 } }
					effect_tooltip = { add_timed_idea = {idea = SOV_soviet_advisors_spr days = 1095 } }
				}
			}
			# A Spanish General will join the USSR if his side loses the SCW
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				custom_effect_tooltip = SOV_send_military_advisors_to_spain_generals_tt
				set_country_flag = SOV_spanish_refugee_generals_welcome_flag
			}
		}
	}

	focus = {
		id = SOV_policy_of_collective_security
		icon = GFX_goal_anschluss
		prerequisite = { focus = SOV_the_comintern }
		x = -1
		y = 1
		relative_position_id = SOV_the_comintern
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_policy_of_individual_security }
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_political_power = 35
			if = {
				limit = {
					SOV_maksim_litvinov = {
						NOT = {
							has_character_flag = SOV_targeted_for_purge_flag
						}
					}
				}
				custom_effect_tooltip = available_political_advisor
				show_ideas_tooltip = SOV_maksim_litvinov
			}
		}
	}

	focus = {
		id = SOV_anti_fascist_policies
		icon = GFX_focus_generic_anti_fascist_diplomacy
		prerequisite = { focus = SOV_policy_of_collective_security }
		x = 0
		y = 1
		relative_position_id = SOV_policy_of_collective_security
		cost = 5
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
				
		search_filters = {FOCUS_FILTER_PROPAGANDA}

		completion_reward = {
			add_named_threat = { threat = 0.2 name = SOV_anti_fascist_diplomacy_t }
			if = {
				limit = {
						has_idea = civilian_economy
					}
				swap_ideas = { remove_idea = civilian_economy add_idea = low_economic_mobilisation  }
			}
			every_other_country = {
				limit = {
					is_major = yes
					OR = {
						has_government = democratic
						has_government = communism
					}
					NOT = { has_war_with = ROOT }
				}
				add_opinion_modifier = { target = SOV modifier = SOV_anti_fascist_policies_good } 
			}

			every_other_country = {
				limit = {
					is_major = yes
					has_government = fascism
				}
				add_opinion_modifier = { target = SOV modifier = SOV_anti_fascist_policies_bad } 
			}

			if = {
				limit = {
					has_dlc = "La Resistance"
					AST = {
						NOT = { has_government = communism }
					} 	
				}
				create_operative_leader = {
					name = "Rupert Lockwood"
					portrait_path = gfx/leaders/Europe/portrait_europe_generic_operative_male_10.dds 
					traits = {  }
					bypass_recruitment = no
					available_to_spy_master = yes
					female = yes
					nationalities = { SOV AST }
				}					
			}

			if = {
				limit = {
					has_government = communism
				}
				custom_effect_tooltip = unlock_propaganda_campaign_tt
				unlock_decision_tooltip = SOV_propaganda_anti_fascism
				custom_effect_tooltip = propaganda_campaign_requirement_tt
			}
		}
	}

	focus = {
		id = SOV_seek_a_defense_pact_with_the_allies
		icon = GFX_focus_hol_the_fourth_ally
		prerequisite = { focus = SOV_anti_fascist_policies }
		x = 0
		y = 1
		relative_position_id = SOV_anti_fascist_policies
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		bypass = {
			OR = {
				NOT = { country_exists = FRA }
				FRA = { has_capitulated = yes }
			}
			NOT = {
				any_other_country = {
					is_faction_leader = yes
					SOV_is_valid_collective_security_target = yes
				}
			}
		}

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			is_subject = no
		}

		completion_reward = {
			if = { #FRA is default target
				limit = {
					country_exists = FRA
					FRA = {	SOV_is_valid_collective_security_target = yes }
				}
				set_variable = { SOV_collective_security_target = FRA }
				FRA = { country_event = { id = NSB_soviet_policies_of_collective_security.1 hours = 8 random_hours = 4 } }
			}
			else_if = { #ENG is first fallback target
				limit = {
					country_exists = ENG
					is_faction_leader = yes
					ENG = {	SOV_is_valid_collective_security_target = yes }
				}
				set_variable = { SOV_collective_security_target = FRA }
				ENG = { country_event = { id = NSB_soviet_policies_of_collective_security.1 hours = 8 random_hours = 4 } }
			}
			else_if = { #Non-Fascist European faction leader is next
				limit = {
					any_country = {
						is_faction_leader = yes
						capital_scope = { is_on_continent = europe }
						SOV_is_valid_collective_security_target = yes
					}
				}
				random_other_country = {
					limit = {
						is_faction_leader = yes
						capital_scope = { is_on_continent = europe }
						SOV_is_valid_collective_security_target = yes
					}
					ROOT = { set_variable = { SOV_collective_security_target = PREV } }
					country_event = { id = NSB_soviet_policies_of_collective_security.1 hours = 8 random_hours = 4 }
				}
			}
			else_if = { #Alright I don't really care anymore, pick whoever is left alive
				limit = {
					any_other_country = {
						is_faction_leader = yes
						SOV_is_valid_collective_security_target = yes
					}
				}
				random_other_country = {
					limit = {
						is_faction_leader = yes
						SOV_is_valid_collective_security_target = yes
					}
					ROOT = { set_variable = { SOV_collective_security_target = PREV } }
					country_event = { id = NSB_soviet_policies_of_collective_security.1 hours = 8 random_hours = 4 }
				}
			}

			custom_effect_tooltip = SOV_seek_a_defense_pact_with_the_allies_event_effects_tt

			if = {
				limit = {
					country_exists = POL
					POL = { SOV_is_valid_collective_security_target = yes }
					var:SOV_collective_security_target = {
						capital_scope = { is_on_continent = europe }
					}
				}
				custom_effect_tooltip = SOV_seek_a_defense_pact_with_the_allies_poland_tt
			}
		}
	}

	focus = {
		id = SOV_the_khakimov_proposal
		icon = GFX_focus_generic_befriend_saudi_arabia
		prerequisite = { focus = SOV_seek_a_defense_pact_with_the_allies }
		x = -1
		y = 1
		relative_position_id = SOV_seek_a_defense_pact_with_the_allies
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			is_subject = no
			country_exists = SAU
			NOT = { has_war_with = SAU }
		}

		completion_reward = {
			SAU = {
				add_ideas = SOV_ambassador_karim_khakimov #adds +35 communism acceptance and -50 for other ideologies
				add_opinion_modifier = { target = SOV modifier = SOV_cordial_relations_developed_by_soviet_diplomat } 
				hidden_effect = {
					country_event = { id = NSB_soviet_foreign_politics_events.211 hours = 8 random_hours = 4 }
				}
			}
			activate_targeted_decision = { target = SAU decision = SOV_pressure_country_government_middle_east }
			activate_targeted_decision = { target = SAU decision = SOV_promote_ideology_rallies_middle_east }
		}
	}

	focus = {
		id = SOV_eradicate_western_fascism
		icon = GFX_focus_focus_fra_fascist_threat
		prerequisite = { focus = SOV_seek_a_defense_pact_with_the_allies }
		x = 0
		y = 2
		relative_position_id = SOV_seek_a_defense_pact_with_the_allies
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			any_country = {
				OR = {
					tag = ENG
					tag = FRA
					tag = GER
					tag = ITA
				}
				has_government = fascism
				is_major = yes
			}
			is_subject = no
		}

		completion_reward = {
			add_timed_idea = { idea = SOV_face_western_fascism_ns days = 365 }
			
			if = {
				limit = {
					ENG = {
						has_government = fascism
					}
				}
				hidden_effect = { add_ideas = SOV_targeted_bonus_against_ENG }
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ENG
				}
			}
			if = {
				limit = {
					FRA = {
						has_government = fascism
					}
				}
				hidden_effect = { add_ideas = SOV_targeted_bonus_against_FRA }
				create_wargoal = {
					type = puppet_wargoal_focus
					target = FRA
				}
			}
			if = {
				limit = {
					GER = {
						has_government = fascism
					}
				}
				hidden_effect = { add_ideas = SOV_targeted_bonus_against_GER }
				create_wargoal = {
					type = puppet_wargoal_focus
					target = GER
				}
			}
			if = {
				limit = {
					ITA = {
						has_government = fascism
					}
				}
				hidden_effect = { add_ideas = SOV_targeted_bonus_against_ITA }
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ITA
				}
			}
		}
	}

	focus = {
		id = SOV_policy_of_individual_security
		icon = GFX_goal_generic_defence
		prerequisite = { focus = SOV_the_comintern }
		x = 1
		y = 1
		relative_position_id = SOV_the_comintern
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_policy_of_collective_security }
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_political_power = 35

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = SOV_vyacheslav_molotov
		}
	}

	focus = {
		id = SOV_approach_germany
		icon = GFX_goal_germanic_brotherhood_full
		prerequisite = { focus = SOV_policy_of_individual_security }
		prerequisite = { focus = SOV_anti_capitalist_policies }
		x = 0
		y = 2
		relative_position_id = SOV_policy_of_individual_security
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			country_exists = GER
			GER = { SOV_is_valid_subject = yes }
			NOT = { has_war_with = GER }
			is_subject = no
		}

		bypass = {
			NOT = { country_exists = GER }
		}

		completion_reward = {
			GER = { country_event = { id = NSB_soviet_soviet_german_trade_agreement.1 hours = 1 } }

			custom_effect_tooltip = if_they_accept #This will also make GER more likely to take Molotov-Ribbentrop pact and less to take Anti-Soviet Pact
			effect_tooltip = {
				if = {
					limit = {
						has_dlc = "Man the Guns"
					}
					if = {
						limit = {
							NOT = { has_tech = basic_ship_hull_cruiser }
						}
						set_technology = { basic_ship_hull_cruiser = 1 }
					}
					if = {
						limit = {
							NOT = { has_tech = basic_cruiser_armor_scheme }
						}
						set_technology = { basic_cruiser_armor_scheme = 1 }
					}
					if = {
						limit = {
							has_tech = basic_medium_battery
						}
						create_equipment_variant = {
							name = "Hipper Class"
							type = ship_hull_cruiser_2
							name_group = SOV_CA_HISTORICAL
							parent_version = 0
							modules = {
								fixed_ship_battery_slot = ship_medium_battery_2
								fixed_ship_anti_air_slot = ship_anti_air_1
								fixed_ship_fire_control_system_slot = ship_fire_control_system_0
								fixed_ship_radar_slot = empty
								fixed_ship_engine_slot = cruiser_ship_engine_1
								fixed_ship_secondaries_slot = empty
								fixed_ship_armor_slot = ship_armor_cruiser_2
								front_1_custom_slot = ship_anti_air_1
								mid_1_custom_slot = ship_torpedo_1
								mid_2_custom_slot = ship_airplane_launcher_1
								rear_1_custom_slot = ship_medium_battery_2
							}
						}
					}
					else = {
						create_equipment_variant = {
							name = "Hipper Class"
							type = ship_hull_cruiser_2
							name_group = SOV_CA_HISTORICAL
							parent_version = 0
							modules = {
								fixed_ship_battery_slot = ship_medium_battery_1
								fixed_ship_anti_air_slot = ship_anti_air_1
								fixed_ship_fire_control_system_slot = ship_fire_control_system_0
								fixed_ship_radar_slot = empty
								fixed_ship_engine_slot = cruiser_ship_engine_1
								fixed_ship_secondaries_slot = empty
								fixed_ship_armor_slot = ship_armor_cruiser_2
								front_1_custom_slot = ship_anti_air_1
								mid_1_custom_slot = ship_torpedo_1
								mid_2_custom_slot = ship_airplane_launcher_1
								rear_1_custom_slot = ship_medium_battery_1
							}
						}
					}
					
					# CA: Lützow -> Petropavlovsk
					add_equipment_production = {
						equipment = {
							type = ship_hull_cruiser_2
							creator = "SOV"
							version_name = "Hipper Class"
						}
						name = "Petropavlovsk"
						requested_factories = 1
						progress = 0.5
						amount = 1
					}

					if = { #Default name
						limit = {
							has_government = communism
						}
						add_tech_bonus = {
							name = NSB_soviet_soviet_german_trade_agreement_tech_bonus_name
							bonus = 0.5
							uses = 2
							category = ship_modules_tech
							category = bb_tech
							category = dd_tech
						}
					}
					else = { #Alt name
						add_tech_bonus = {
							name = NSB_soviet_soviet_german_trade_agreement_tech_bonus_name_alt
							bonus = 0.5
							uses = 2
							category = ship_modules_tech
							category = bb_tech
							category = dd_tech
						}
					}
				}
				else = { #No MTG
					if = {
						limit = {
							NOT = { has_tech = basic_heavy_cruiser }
						}
						set_technology = { basic_heavy_cruiser = 1 }
					}
					create_equipment_variant = {
						name = "Hipper Class"
						type = heavy_cruiser_2
						parent_version = 0
						upgrades = {
							ship_reliability_upgrade = 1
							ship_engine_upgrade = 1
							ship_armor_upgrade = 2
							ship_gun_upgrade = 2
						}
					}

					add_equipment_production = {
						equipment = {
							type = heavy_cruiser_2
							creator = "SOV"
						}
						requested_factories = 1
						progress = 0.5
						amount = 1
					}

					if = { #Default name
						limit = {
							has_government = communism
						}
						add_tech_bonus = {
							name = NSB_soviet_soviet_german_trade_agreement_tech_bonus_name
							bonus = 0.5
							uses = 2
							category = ca_tech
							category = bb_tech
							category = dd_tech
						}
					}
					else = { #Alt name
						add_tech_bonus = {
							name = NSB_soviet_soviet_german_trade_agreement_tech_bonus_name_alt
							bonus = 0.5
							uses = 2
							category = ca_tech
							category = bb_tech
							category = dd_tech
						}
					}
				}

				if = { #Default name
					limit = {
						has_government = communism
					}
					add_tech_bonus = {
						name = NSB_soviet_soviet_german_trade_agreement_tech_bonus_name
						bonus = 0.5
						uses = 2
						category = air_equipment
					}
				}
				else = { #Alt name
					add_tech_bonus = {
						name = NSB_soviet_soviet_german_trade_agreement_tech_bonus_name_alt
						bonus = 0.5
						uses = 2
						category = air_equipment
					}
				}

				#Effects to Germans
				GER = {
					add_timed_idea = { idea = SOV_soviet_german_trade_agreement days = 545 } #Technically 1 year but really 18 months for Soviet payment 
					capital_scope = {
						add_dynamic_modifier = { modifier = SOV_soviet_imports }
					}
				}

				add_opinion_modifier = {
					target = GER
					modifier = SOV_strengthened_relations_with_us
				}
				GER = {
					add_opinion_modifier = {
						target = ROOT
						modifier = SOV_strengthened_relations_with_us
					}
				}
			}
		}
	}

	focus = {
		id = SOV_liberation_of_the_european_proletariat
		icon = GFX_goal_sov_east_vs_west
		prerequisite = { focus = SOV_approach_germany }
		x = 0
		y = 2
		relative_position_id = SOV_approach_germany
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			any_country = {
				OR = {
					tag = ENG
					tag = FRA
					tag = GER
					tag = ITA
				}
				has_government = democratic
				is_major = yes
				is_subject = no
			}
		}

		completion_reward = {
			add_timed_idea = { idea = SOV_liberation_of_the_european_proletariat_ns days = 365 }
			
			if = {
				limit = {
					ENG = {
						has_government = democratic
					}
				}
				hidden_effect = { add_ideas = SOV_targeted_bonus_against_ENG }
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ENG
				}
			}
			if = {
				limit = {
					FRA = {
						has_government = democratic
					}
				}
				hidden_effect = { add_ideas = SOV_targeted_bonus_against_FRA }
				create_wargoal = {
					type = puppet_wargoal_focus
					target = FRA
				}
			}
			if = {
				limit = {
					GER = {
						has_government = democratic
					}
				}
				hidden_effect = { add_ideas = SOV_targeted_bonus_against_GER }
				create_wargoal = {
					type = puppet_wargoal_focus
					target = GER
				}
			}
			if = {
				limit = {
					ITA = {
						has_government = democratic
					}
				}
				hidden_effect = { add_ideas = SOV_targeted_bonus_against_ITA }
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ITA
				}
			}

		}
	}



########  #######  ########  ######## ####  ######   ##    ##    ########   #######  ##       #### ######## ####  ######   ######  
##       ##     ## ##     ## ##        ##  ##    ##  ###   ##    ##     ## ##     ## ##        ##     ##     ##  ##    ## ##    ## 
##       ##     ## ##     ## ##        ##  ##        ####  ##    ##     ## ##     ## ##        ##     ##     ##  ##       ##       
######   ##     ## ########  ######    ##  ##   #### ## ## ##    ########  ##     ## ##        ##     ##     ##  ##        ######  
##       ##     ## ##   ##   ##        ##  ##    ##  ##  ####    ##        ##     ## ##        ##     ##     ##  ##             ## 
##       ##     ## ##    ##  ##        ##  ##    ##  ##   ###    ##        ##     ## ##        ##     ##     ##  ##    ## ##    ## 
##        #######  ##     ## ######## ####  ######   ##    ##    ##         #######  ######## ####    ##    ####  ######   ######  



	focus = {
		id = SOV_anti_capitalist_policies
		icon = GFX_focus_spr_class_war
		prerequisite = { focus = SOV_the_comintern }
		x = 2
		y = 1
		relative_position_id = SOV_policy_of_individual_security
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			NOT = { has_government = democratic }
		}

		completion_reward = {
			add_named_threat = { threat = 0.5 name = SOV_anti_capitalist_diplomacy_t }
			if = {
				limit = {
						has_idea = civilian_economy
					}
				swap_ideas = { remove_idea = civilian_economy add_idea = low_economic_mobilisation  }
			}
			every_other_country = {
				limit = {
					is_major = yes
					OR = {
						has_government = fascism
						has_government = communism
					}
					NOT = { has_war_with = ROOT }
				}
				add_opinion_modifier = { target = SOV modifier = SOV_anti_capitalist_policies_good } 
			}

			every_other_country = {
				limit = {
					is_major = yes
					has_government = democratic
				}
				add_opinion_modifier = { target = SOV modifier = SOV_anti_capitalist_policies_bad } 
			}

			if = {
				limit = {
					has_government = communism
				}
				custom_effect_tooltip = unlock_propaganda_campaign_tt
				unlock_decision_tooltip = SOV_propaganda_anti_capitalism
				custom_effect_tooltip = propaganda_campaign_requirement_tt
			}
		}
		search_filters = { FOCUS_FILTER_PROPAGANDA }
	}

	focus = {
		id = SOV_the_fight_for_the_pacific
		icon = GFX_focus_generic_navy_battleship2
		prerequisite = { focus = SOV_anti_capitalist_policies }
		x = 0
		y = 1
		relative_position_id = SOV_anti_capitalist_policies
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			OR = {
				has_full_control_of_state = 408
				has_full_control_of_state = 409
				has_full_control_of_state = 637
			}
			is_subject = no
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			#VLADIVOSTOK
			if = {
				limit = {
					408 = {
						is_controlled_by = ROOT
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}
					}
				}
				408 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}
				}
			}
			else_if = {
				limit = {
					408 = {
						is_controlled_by = ROOT
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
				}
				408 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}

			#KHABAROVSK
			if = {
				limit = {
					409 = {
						is_controlled_by = ROOT
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}
					}
				}
				409 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}
				}
			}
			else_if = {
				limit = {
					409 = {
						is_controlled_by = ROOT
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
				}
				409 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}

			#KAMCHATKA (PETROPAVLOVSK + COMMANDER ISLANDS)
			if = { #Dockyards
				limit = {
					637 = {
						is_controlled_by = ROOT #I know this is duplicated but tooltip is more readable this way
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
				}
				637 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
			if = { #Naval bases
				limit = {
					637 = {
						is_controlled_by = ROOT
						naval_base < 9
					}
				}
				637 = {
					add_building_construction = {
						type = naval_base
						level = 2
						instant_build = yes
						province = 4728
					}
					if = {
						limit = {
							ROOT = { has_tech = radio_detection }
							radar_station < 1
						}
						add_building_construction = {
							type = radar_station
							level = 1
							instant_build = yes
						}
					}
					else = {
						custom_effect_tooltip = SOV_reinforce_western_naval_bases_radar_tt
					}
				}
			}

			add_tech_bonus = {
				name = SOV_the_fight_for_the_pacific
				bonus = 1.0
				uses = 2
				category = cv_tech
				category = bc_tech
				category = bb_tech
				category = shbb_tech
			}
		}
	}

	focus = {
		id = SOV_recover_alaska
		icon = GFX_focus_SOV_recover_alaska
		prerequisite = { focus = SOV_the_fight_for_the_pacific }
		x = 0
		y = 1
		relative_position_id = SOV_the_fight_for_the_pacific
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}
			modifier = {
				factor = 0
				USA = {
					NOT = {
						has_government = fascism
					}
				}
			}				
		}
		
		available = {
			is_subject = no
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
		}

		bypass = {
			463 = { is_owned_by = ROOT }
			650 = { is_owned_by = ROOT }
		}
		
		search_filters = {FOCUS_FILTER_ANNEXATION}

		completion_reward = {
			if = {
				limit = {
					463 = { NOT = { is_claimed_by = ROOT } }
				}
				add_state_claim = 463
			}
			if = {
				limit = {
					650 = { NOT = { is_claimed_by = ROOT } }
				}
				add_state_claim = 650
			}

			if = { #ONE CONTROLLER
				limit = {
					463 = {
						controller = {
							controls_state = 650
						}
					}
				}
				if = {
					limit = {
						463 = {
							controller = {
								NOT = { has_war_with = ROOT }
							}
						}
					}
					463 = {
						controller = {
							country_event = { id = NSB_soviet_foreign_politics_events.30 hours = 4 random_hours = 2 }
							custom_effect_tooltip = if_they_accept
							effect_tooltip = {
								ROOT = { transfer_state = 463 } #ALASKA
								ROOT = { transfer_state = 650 } #ATTU ISLAND
								add_opinion_modifier = {
									target = ROOT
									modifier = SOV_pressured_our_government
								}
							}
						}
					}
				}
			}
			else = { #TWO DIFFERENT CONTROLLERS
				if = {
					limit = {
						463 = {
							controller = {
								NOT = { has_war_with = ROOT }
							}
						}
					}
					463 = {
						controller = {
							country_event = { id = NSB_soviet_foreign_politics_events.30 hours = 4 random_hours = 2 }
							custom_effect_tooltip = if_they_accept
							effect_tooltip = {
								ROOT = { transfer_state = 463 } #ALASKA
								add_opinion_modifier = {
									target = ROOT
									modifier = SOV_pressured_our_government
								}
							}
						}
					}
				}
				if = {
					limit = {
						650 = {
							controller = {
								NOT = { has_war_with = ROOT }
							}
						}
					}
					650 = {
						controller = {
							country_event = { id = NSB_soviet_foreign_politics_events.30 hours = 4 random_hours = 2 }
							custom_effect_tooltip = if_they_accept
							effect_tooltip = {
								ROOT = { transfer_state = 650 } #ATTU ISLAND
								add_opinion_modifier = {
									target = ROOT
									modifier = SOV_pressured_our_government
								}
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = SOV_restore_the_union
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = SOV_the_comintern }
		x = 1
		y = -1
		relative_position_id = SOV_anti_capitalist_policies
		cost = 5

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = SOV_beaten_but_not_defeated }
				NOT = { has_completed_focus = SOV_form_a_fifth_column }
			}
			OR = {
				has_game_rule = {
					rule = sov_fragmentation_status
					option = SOV_FRAGMENTED
				}
				has_game_rule = {
					rule = sov_fragmentation_status
					option = SOV_UTTERLY_FRAGMENTED
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}

		available = {
			OR = {
				NOT = { has_country_flag = SOV_paranoia_system_active_flag }  #TODO_Manu: Change for the inverse, "Political Paranoia has subsided"
			}
			is_subject = no
		}

		completion_reward = {
			if = {
				limit = {
					has_game_rule = {
						rule = sov_fragmentation_status
						option = SOV_FRAGMENTED
					}
				}
				every_state = {
					limit = {
						OR = {
							AND = { #no claiming Western Ukraine
								is_core_of = UKR
								NOT = {
									region = 39
									region = 26
								}
							}
							AND = { #no claiming Western Belarus
								is_core_of = BLR
								NOT = {
									region = 39
								}
							}
							is_core_of = GEO
							AND = {	#no claiming Northern Afghanistan
								is_core_of = AZR
								NOT = {
									region = 116
								}
							}
							is_core_of = ARM
							is_core_of = UZB
							is_core_of = TAJ
							is_core_of = KYR
							is_core_of = KAZ
							is_core_of = TMS
							is_core_of = CRI
							is_core_of = BYA
							is_core_of = TAT
							is_core_of = DON
							is_core_of = GUK
						}
					}
					add_claim_by = SOV
				}
			}
			else = {
				every_state = {	#Moved to focus to make playing these (especially Ukraine) more fun
					limit = {
						OR = {
							is_core_of = CRI
							AND = {	#no claiming Bessarabia
								is_core_of = MOL
								NOT = {
									region = 26
								}
							}
							AND = { #no claiming Western Ukraine
								is_core_of = UKR
								NOT = {
									region = 39
									region = 26
								}
							}
							AND = { #no claiming Western Belarus
								is_core_of = BLR
								NOT = {
									region = 39
								}
							}
							AND = { #no claiming Karelia, Sala and Petsamo
								is_core_of = KAR
								NOT = {
									region = 13
									state = 147
									state = 722
								}
							}
							is_core_of = ABK
							is_core_of = GEO
							AND = {	#no claiming Northern Afghanistan
								is_core_of = AZR
								NOT = {
									region = 116
								}
							}
							is_core_of = ARM
							is_core_of = CIN
							is_core_of = DAG
							is_core_of = NOA
							is_core_of = KBK
							is_core_of = KAL
							is_core_of = KHI
							is_core_of = KKP
							is_core_of = TAJ
							is_core_of = BUK
							is_core_of = UZB
							is_core_of = KYR
							is_core_of = TMS
							is_core_of = KAZ
							is_core_of = ALT
							is_core_of = KAZ
							is_core_of = VGE
							is_core_of = TAT
							is_core_of = BSK
							is_core_of = NEN
							is_core_of = KOM
							is_core_of = YAM
							is_core_of = OVO
							is_core_of = TAY
							is_core_of = BYA
							is_core_of = YAK
							is_core_of = CKK
							is_core_of = VLA
							is_core_of = FER
							is_core_of = UDM
							is_core_of = MEL
							is_core_of = CHU
							is_core_of = DON
							is_core_of = GUK
						}	
					}
					add_claim_by = SOV
				}
			}
		}
	}

	focus = {
		id = SOV_baltic_security
		icon = GFX_focus_SOV_baltic_security
		prerequisite = { focus = SOV_the_comintern }
		x = 3
		y = -1
		relative_position_id = SOV_anti_capitalist_policies
		cost = 6

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		bypass = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			NOT = {
				country_exists = EST
				country_exists = LAT
				country_exists = LIT
			}
		}

		available = {
			OR = {
				NOT = { has_country_flag = SOV_paranoia_system_active_flag }  #TODO_Manu: Change for the inverse, "Political Paranoia has subsided"
			}
			is_subject = no
		}

		completion_reward = {
			if = {
				limit = {
					country_exists = EST
				}
				EST = {
					if = {
						limit = { ROOT = { has_government = fascism } }
						add_timed_idea = { idea = fascist_influence days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = democratic } }
						add_timed_idea = { idea = democratic_influence days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = communism } }
						add_timed_idea = { idea = communist_influence days = 1095 }
					}
					hidden_effect = {
						country_event = { id = generic.1 }
					}
				}
			}
			if = {
				limit = {
					country_exists = LAT
				}
				LAT = {
					if = {
						limit = { ROOT = { has_government = fascism } }
						add_timed_idea = { idea = fascist_influence days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = democratic } }
						add_timed_idea = { idea = democratic_influence days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = communism } }
						add_timed_idea = { idea = communist_influence days = 1095 }
					}
					hidden_effect = {
						country_event = { id = generic.1 }
					}
				}
			}
			if = {
				limit = {
					country_exists = LIT
				}
				LIT = {
					if = {
						limit = { ROOT = { has_government = fascism } }
						add_timed_idea = { idea = fascist_influence days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = democratic } }
						add_timed_idea = { idea = democratic_influence days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = communism } }
						add_timed_idea = { idea = communist_influence days = 1095 }
					}
					hidden_effect = {
						country_event = { id = generic.1 }
					}
				}
			}
		}
	}

	focus = {
		id = SOV_respect_baltic_self_determination
		icon = GFX_goal_SOV_true_baltic_freedom
		prerequisite = { focus = SOV_baltic_security }
		x = -1
		y = 1
		relative_position_id = SOV_baltic_security
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_claims_in_baltic }

		bypass = {
			NOT = {
				country_exists = EST
				country_exists = LAT
				country_exists = LIT
			}
		}

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			is_subject = no
		}

		completion_reward = {
			activate_targeted_decision = { target = EST decision = SOV_promote_ideology_rallies_baltic }
			activate_targeted_decision = { target = LAT decision = SOV_promote_ideology_rallies_baltic }
			activate_targeted_decision = { target = LIT decision = SOV_promote_ideology_rallies_baltic }
			activate_targeted_decision = { target = EST decision = SOV_pressure_country_government_baltic }
			activate_targeted_decision = { target = LAT decision = SOV_pressure_country_government_baltic }
			activate_targeted_decision = { target = LIT decision = SOV_pressure_country_government_baltic }
		}
	}

	focus = {
		id = SOV_claims_in_baltic
		icon = 	GFX_goal_SOV_baltic_aggression
		prerequisite = { focus = SOV_baltic_security }
		x = 1
		y = 1
		relative_position_id = SOV_baltic_security
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_civil_war = yes
					date < 1939.1.1
				}
			}	
		}

		mutually_exclusive = { focus = SOV_respect_baltic_self_determination }

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			is_subject = no
		}

		bypass = {
			all_state = {
				OR = {
					is_core_of = EST
					is_core_of = LAT
					is_core_of = LIT
				}
				NOT = { state = 188 }
				is_controlled_by = ROOT
			}
		}
		
		search_filters = {FOCUS_FILTER_ANNEXATION}

		completion_reward = {
			# Estonia + Latvia + Lithuania except Memel
			custom_effect_tooltip = SOV_claims_in_baltics_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							AND = {
								NOT = {
									state = 188
								}
								region = 37
							}
							state = 784
						}
					}
					add_claim_by = ROOT
				}
			}
			#Activate targeted decisions
			unlock_decision_tooltip = SOV_send_ultimatum_to_baltic_countries

			add_named_threat = { threat = 1 name = SOV_claims_in_baltic }
		}
	}

	focus = {
		id = SOV_secure_leningrad
		icon = GFX_focus_fin_karjala_question
		prerequisite = { focus = SOV_respect_baltic_self_determination focus = SOV_claims_in_baltic }
		x = 0
		y = 1
		relative_position_id = SOV_respect_baltic_self_determination
		cost = 10
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		dynamic = yes 

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			is_subject = no
			195 = {		#sanity check if there is nothing to secure -> no reason for demands
				controls_or_subject_of = yes
			}
		}

		bypass = {
			146 = {									#basically a sanity check
				OR = {
					is_fully_controlled_by = ROOT	
					controller = {					#shall bypass if at war anyway
						has_war_with = ROOT
					}
				}
			}
		}

		select_effect = {
			every_country = {						#making sure that demanding territory will not backfire in occupation
				limit = {
					controls_state = 146
				}
				ROOT = {
					add_ai_strategy = {
						type = prepare_for_war
						id = PREV
						value = 150
					}
				}
			}
		}

		completion_reward = {
			add_state_claim = 146 # Karjala
			146 = {
				controller = {
					add_timed_idea = {
						idea = communist_pressure
						days = 365
					}
					country_event = { id = finland.1 hours = 16 random_hours = 8 }
				}
			}
		}
		search_filters = {FOCUS_FILTER_ANNEXATION}
	}

	focus = {
		id = SOV_control_scandinavia
		icon = GFX_focus_generic_scandinavia_flags
		prerequisite = { focus = SOV_secure_leningrad }
		x = 0
		y = 1
		relative_position_id = SOV_secure_leningrad
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			is_subject = no
		}

		completion_reward = {
			every_other_country = {
				limit = {
					exists = yes
					NOT = { is_in_faction_with = ROOT }
					capital_scope = { 
						OR = {
							region = 13
							region = 12
							region = 191
							region = 192
							region = 11
							region = 10
							region = 9
							region = 206
							AND = {
								region = 6
								NOT = {
									state = 57
									state = 56
									state = 59
									state = 58
								}
							}
						}
					}  
				}
				add_timed_idea = {
					idea = communist_pressure
					days = 365
				}
				hidden_effect = {
					country_event = { id = generic.1 }
				}
			}

			custom_effect_tooltip = SOV_control_scandinavia_decisions_tt
			hidden_effect = {
				activate_targeted_decision = { target = FIN decision = SOV_promote_ideology_rallies_nordic }
				activate_targeted_decision = { target = SWE decision = SOV_promote_ideology_rallies_nordic }
				activate_targeted_decision = { target = NOR decision = SOV_promote_ideology_rallies_nordic }
				activate_targeted_decision = { target = DEN decision = SOV_promote_ideology_rallies_nordic }
				activate_targeted_decision = { target = FIN decision = SOV_pressure_country_government_nordic }
				activate_targeted_decision = { target = SWE decision = SOV_pressure_country_government_nordic }
				activate_targeted_decision = { target = NOR decision = SOV_pressure_country_government_nordic }
				activate_targeted_decision = { target = DEN decision = SOV_pressure_country_government_nordic }
			}
		}
	}

	focus = {
		id = SOV_claims_on_poland
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = SOV_respect_baltic_self_determination focus = SOV_claims_in_baltic }
		x = 0
		y = 1
		relative_position_id = SOV_claims_in_baltic
		cost = 10
		
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_civil_war = yes
			}
			modifier = {
				factor = 0
				date < 1939.1.1
			}	
			modifier = {
				factor = 200
				GER = { has_government = democratic }
			}
		}

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			is_subject = no
		}

		bypass = {
			OR = {
				has_idea = SOV_molotov_ribbentrop_pact

				NOT = { country_exists = POL }

				has_non_aggression_pact_with = POL
				has_guaranteed = POL

				AND = {
					OR = { 
						owns_state = 89
						89 = { is_claimed_by = ROOT }
					}
					OR = { 
						owns_state = 91
						91 = { is_claimed_by = ROOT }
					}
					OR = { 
						owns_state = 93
						93 = { is_claimed_by = ROOT }
					}
					OR = { 
						owns_state = 94
						94 = { is_claimed_by = ROOT }
					}
					OR = { 
						owns_state = 95
						95 = { is_claimed_by = ROOT }
					}
					OR = { 
						owns_state = 935
						935 = { is_claimed_by = ROOT }
					}
					OR = { 
						owns_state = 936
						936 = { is_claimed_by = ROOT }
					}
					OR = { 
						owns_state = 784
						784 = { is_claimed_by = ROOT }
					}
					OR = { 
						owns_state = 96
						96 = { is_claimed_by = ROOT }
					}
				}
			}			
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			# REVISIT Covers Polish border, may want to add/remove some states
			add_state_claim = 89
			add_state_claim = 91
			add_state_claim = 93
			add_state_claim = 94
			add_state_claim = 95
			add_state_claim = 935
			add_state_claim = 936
			add_state_claim = 784
			add_state_claim = 96
			add_named_threat = { threat = 1 name = SOV_claims_on_poland }

			every_other_country = {
				limit = { 
					OR = {
						owns_state = 89
						owns_state = 91
						owns_state = 93
						owns_state = 94
						owns_state = 95
						owns_state = 935
						owns_state = 936
						owns_state = 784
						owns_state = 96
					}
				}
				add_opinion_modifier = { target = SOV modifier = claimed_eastern_poland }
			}
		}
	}

	focus = {
		id = SOV_demand_eastern_poland
		icon = GFX_goal_POL_lose_the_east
		prerequisite = { focus = SOV_claims_on_poland }
		x = -1
		y = 2
		relative_position_id = SOV_claims_on_poland
		cost = 10
		
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_civil_war = yes
			}
			modifier = {
				factor = 0
				date < 1939.1.1
			}

			modifier = {
				factor = 0.5
				ai_irrationality > 20
			}
			modifier = {
				factor = 0.5
				ai_irrationality > 25
			}
			modifier = {
				factor = 0.5
				ai_irrationality > 30
			}
			modifier = {
				factor = 0.1
				ai_irrationality > 35
			}
		}

		mutually_exclusive = { focus = SOV_offer_poland_protection }

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			is_subject = no
			NOT =  { is_in_faction_with = POL }
			NOT = { has_non_aggression_pact_with = POL }
			NOT = { has_guaranteed = POL }
			NOT = { has_war_with = POL }
			OR = {
				96 = { is_owned_and_controlled_by = POL }
				95 = { is_owned_and_controlled_by = POL }
				94 = { is_owned_and_controlled_by = POL }
				93 = { is_owned_and_controlled_by = POL }
				91 = { is_owned_and_controlled_by = POL }
				89 = { is_owned_and_controlled_by = POL }
				935 = { is_owned_and_controlled_by = POL }
				936 = { is_owned_and_controlled_by = POL }
			}
		}
		
		bypass = {
			OR = {
				AND = { #North to south intentionally excluding Vilnius
					owns_state = 96
					owns_state = 936
					owns_state = 935
					owns_state = 95
					owns_state = 94
					owns_state = 93
					owns_state = 91
					owns_state = 89
				}
				NOT = {
					96 = { is_owned_and_controlled_by = POL }
					95 = { is_owned_and_controlled_by = POL }
					94 = { is_owned_and_controlled_by = POL }
					93 = { is_owned_and_controlled_by = POL }
					91 = { is_owned_and_controlled_by = POL }
					89 = { is_owned_and_controlled_by = POL }
					935 = { is_owned_and_controlled_by = POL }
					936 = { is_owned_and_controlled_by = POL }
				}
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_named_threat = { threat = 2 name = SOV_demand_eastern_poland }
			POL = {
				country_event = { id = poland.2 }
				custom_effect_tooltip = needs_approval
			}
			effect_tooltip = {
				SOV = {
					if = {
						limit = { POL = { owns_state = 96 controls_state = 96 } }
						transfer_state = 96
					}
					if = {
						limit = { POL = { owns_state = 95 controls_state = 95 } }
						transfer_state = 95
					}
					if = {
						limit = { POL = { owns_state = 94 controls_state = 94 } }
						transfer_state = 94
					}
					if = {
						limit = { POL = { owns_state = 93 controls_state = 93 } }
						transfer_state = 93
					}
					if = {
						limit = { POL = { owns_state = 91 controls_state = 91 } }
						transfer_state = 91
					}
					if = {
						limit = { POL = { owns_state = 89 controls_state = 89 } }
						transfer_state = 89
					}
					if = {
						limit = { POL = { owns_state = 784 controls_state = 784 } }
						transfer_state = 784
					}
				}
			}
		}
	}

	focus = {
		id = SOV_offer_poland_protection
		icon = GFX_focus_generic_polish_deal
		prerequisite = { focus = SOV_claims_on_poland }
		x = 1
		y = 2
		relative_position_id = SOV_claims_on_poland
		cost = 10

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_civil_war = yes
			}
			modifier = {
				factor = 0
				date < 1939.1.1
			}

			modifier = {
				factor = 0.5
				ai_irrationality < 24
			}
			modifier = {
				factor = 0.5
				ai_irrationality < 20
			}
			modifier = {
				factor = 0.5
				ai_irrationality < 15
			}
			modifier = {
				factor = 0.1
				ai_irrationality < 10
			}
		}

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			country_exists = POL
			NOT = { has_war_with = POL }
			POL = {
				SOV_is_valid_subject = yes
				has_capitulated = no
			}
			is_subject = no
		}

		bypass = {
			POL = { #focus to cede should be readded for them sometime
				is_subject_of = SOV
			}
		}

		mutually_exclusive = { focus = SOV_demand_eastern_poland }
		
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_ai_strategy = {
				type = alliance
				id = POL
				value = 100
			}
			POL = {
				add_ai_strategy = {
					type = alliance
					id = ROOT
					value = 100
				}
				country_event = { id = poland.5 }
				custom_effect_tooltip = needs_approval
				effect_tooltip = {
					add_state_claim = 5
					add_state_claim = 63
					add_state_claim = 68
					add_state_claim = 66
					add_state_claim = 67
					custom_effect_tooltip = SOV_offer_poland_protection_tt
					#This will also make Poland and Soviet be more more keen on cooperating
				}
			}
			effect_tooltip = {
				SOV = {
					if = {
						limit = { POL = { owns_state = 96 controls_state = 96 } }
						transfer_state = 96
					}
					if = {
						limit = { POL = { owns_state = 95 controls_state = 95 } }
						transfer_state = 95
					}
					if = {
						limit = { POL = { owns_state = 94 controls_state = 94 } }
						transfer_state = 94
					}
					if = {
						limit = { POL = { owns_state = 93 controls_state = 93 } }
						transfer_state = 93
					}
					if = {
						limit = { POL = { owns_state = 91 controls_state = 91 } }
						transfer_state = 91
					}
					if = {
						limit = { POL = { owns_state = 89 controls_state = 89 } }
						transfer_state = 89
					}
					if = {
						limit = { POL = { owns_state = 784 controls_state = 784 } }
						transfer_state = 784
					}
				}
			}
		}
	}

	focus = {
		id = SOV_claim_on_bessarabia
		icon = GFX_focus_generic_attack_romania
		prerequisite = { focus = SOV_claims_on_poland }
		mutually_exclusive = {
			focus = SOV_invite_romania
		}		
		x = 3
		y = 1
		relative_position_id = SOV_claims_on_poland
		cost = 5

		ai_will_do = {
			factor = 2.5
			modifier = {
				factor = 0
				OR = {
					date < 1939.1.1
					has_civil_war = yes
				}
			}	
			modifier = {
				factor = 200
				GER = { has_government = democratic }
			}
		}

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			is_subject = no
		}

		bypass = {
			all_state = {
				OR = {
					NOT = { 
						OR = {
							state = 78
							state = 80
							state = 766
						}
					}
					is_controlled_by_ROOT_or_ally = yes
					78 = {
						owner = {
							has_war_with = ROOT
						}
					}
				}
			}
		}
		
		completion_reward = { #This is now generic and will target any potential (multiple) controllers for these states.
			every_state = {
				limit = {
					OR = {
						state = 78
						state = 80
						state = 766
					}
					CONTROLLER = {
						NOT = { is_in_faction_with = ROOT }
						NOT = { is_subject_of = ROOT }
					}
				}
				add_claim_by = ROOT
			}
			add_named_threat = { threat = 1 name = SOV_claim_on_bessarabia }
			every_other_country = {
				limit = {
					NOT = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
						has_war_with = ROOT
					}
					any_controlled_state = {
						OR = {
							state = 78
							state = 80
							state = 766
						}
					}
				}
				add_opinion_modifier = { target = SOV modifier = claimed_bessarabia }
				country_event = { id = romania.1 hours = 16 random_hours = 8 }
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	focus = {
		id = SOV_invite_romania
		icon = GFX_goal_ROM_appoint_pro_soviet_government
		prerequisite = { focus = SOV_claims_on_poland }
		mutually_exclusive = {
			focus = SOV_claim_on_bessarabia
		}
		x = 5
		y = 1
		relative_position_id = SOV_claims_on_poland
		cost = 10

		ai_will_do = {
			factor = 1.5
			modifier = {
				factor = 0
				OR = {
					date < 1939.1.1
					has_civil_war = yes
				}
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 5
				ROM = {
					has_government = communism
				}	
			}
		}

		available = {
			is_faction_leader = yes
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			is_subject = no
			ROM = {
				is_in_faction = no
				owns_state = 78
				OR = {
					has_government = communism
					communism > 0.4
				}
			}
		}

		bypass = {
			ROM = {
				is_in_faction_with = ROOT
			}
		}
		
		completion_reward = {
			if = {
				limit = {
					is_in_faction = yes
					NOT = { is_in_faction_with = ROM }
				}
				ROM = {
					country_event = { id = generic.5 hours = 8 random_hours = 4 }
				}
			}
			if = {
				limit = {
					ROM = {
						communism > 0.4						
					}
				}
				ROM = {
					add_popularity = {
						popularity = 0.05
						ideology = communism
					}
				}
			}						
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}
	focus = {
		id = SOV_demand_balkan_submission
		icon = GFX_focus_generic_balkans_focus
		prerequisite = { focus = SOV_claim_on_bessarabia focus = SOV_invite_romania }
		x = 0
		y = 1
		relative_position_id = SOV_claim_on_bessarabia
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_seek_balkan_cooperation }
		
		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			any_other_country = {
				BUL_is_balkan_nation = yes
			}
			is_subject = no
		}

		completion_reward = {
			every_other_country = {
				limit = {
					BUL_is_balkan_nation = yes
				}
				add_timed_idea = {
					idea = communist_pressure
					days = 365
				}
				hidden_effect = {
					country_event = { id = generic.1 }
				}
			}
			custom_effect_tooltip = SOV_demand_balkan_submission_decisions_tt
			hidden_effect = {
				activate_targeted_decision = { target = ROM decision = SOV_send_ultimatum_to_country_balkan }
				activate_targeted_decision = { target = BUL decision = SOV_send_ultimatum_to_country_balkan }
				activate_targeted_decision = { target = GRE decision = SOV_send_ultimatum_to_country_balkan }
				activate_targeted_decision = { target = YUG decision = SOV_send_ultimatum_to_country_balkan }
				activate_targeted_decision = { target = TUR decision = SOV_send_ultimatum_to_country_balkan }
			}
		}
	}

	focus = {
		id = SOV_seek_balkan_cooperation
		icon = GFX_focus_BUL_free_balkan_states
		prerequisite = { focus = SOV_claim_on_bessarabia focus = SOV_invite_romania }
		x = 2
		y = 1
		relative_position_id = SOV_claim_on_bessarabia
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_demand_balkan_submission }
		
		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			any_other_country = {
				BUL_is_balkan_nation = yes
			}
			is_subject = no
		}

		completion_reward = {
			every_other_country = {
				limit = {
					BUL_is_balkan_nation = yes
				}
				add_timed_idea = {
					idea = communist_pressure
					days = 365
				}
				hidden_effect = {
					country_event = { id = generic.1 }
				}
			}
			custom_effect_tooltip = SOV_seek_balkan_cooperation_decisions_tt
			hidden_effect = {
				activate_targeted_decision = { target = ROM decision = SOV_pressure_country_government_balkan }
				activate_targeted_decision = { target = BUL decision = SOV_pressure_country_government_balkan }
				activate_targeted_decision = { target = GRE decision = SOV_pressure_country_government_balkan }
				activate_targeted_decision = { target = YUG decision = SOV_pressure_country_government_balkan }
				activate_targeted_decision = { target = TUR decision = SOV_pressure_country_government_balkan }
				activate_targeted_decision = { target = ROM decision = SOV_promote_ideology_rallies_balkan }
				activate_targeted_decision = { target = BUL decision = SOV_promote_ideology_rallies_balkan }
				activate_targeted_decision = { target = GRE decision = SOV_promote_ideology_rallies_balkan }
				activate_targeted_decision = { target = YUG decision = SOV_promote_ideology_rallies_balkan }
				activate_targeted_decision = { target = TUR decision = SOV_promote_ideology_rallies_balkan }
			}
		}
	}

	focus = {
		id = SOV_claim_on_the_straits
		icon = GFX_goal_SOV_supremacy_on_the_bosporus
		prerequisite = {  focus = SOV_demand_balkan_submission focus = SOV_seek_balkan_cooperation }
		x = 1
		y = 1
		relative_position_id = SOV_demand_balkan_submission
		cost = 10
		ai_will_do = {
			factor = 1
		}
		available = {
			is_subject = no
		}
		bypass = {
			OR = {
				AND = {
					OR = {
						owns_state = 341
						341 = { is_claimed_by = ROOT }
					}
					OR = {
						owns_state = 347
						347 = { is_claimed_by = ROOT }
					}
					OR = {
						owns_state = 340
						340 = { is_claimed_by = ROOT }
					}
					OR = {
						owns_state = 339
						339 = { is_claimed_by = ROOT }
					}
					OR = {
						owns_state = 797
						797 = { is_claimed_by = ROOT }
					}					
				}
				TUR = {
					owns_state = 797
					owns_state = 341
					owns_state = 347
					owns_state = 340
					OR = {
						is_puppet_of = ROOT
						is_in_faction_with = ROOT
					}	
					
				}
			}

		}
		completion_reward = {
			add_state_claim = 341
			add_state_claim = 347
			add_state_claim = 340
			add_state_claim = 339
			add_state_claim = 797
			add_named_threat = { threat = 2 name = SOV_claim_on_the_straits }
			every_other_country = {
				limit = {
					NOT = {
						is_in_faction_with = ROOT
					}
					OR = {
						controls_state = 341
						controls_state = 347
						controls_state = 340
						controls_state = 339
						controls_state = 797
					}
				}
				SOV = {
					create_wargoal = {
						type = take_state_focus
						target = PREV
						expire = 0
					}
				}
			}	
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	

	focus = {
		id = SOV_ultimatum_to_greece
		icon = GFX_goal_italy_attack_greece
		prerequisite = { focus = SOV_claim_on_the_straits }
		x = 0
		y = 1
		relative_position_id = SOV_claim_on_the_straits
		cost = 7.16

		available = {
			is_subject = no
			all_state = {
				OR = {
					NOT = {
						OR = {
							state = 341
							state = 347
							state = 340
							state = 339
						}
					}
					is_controlled_by_ROOT_or_ally = yes
				}
			}
		}
		bypass = {
			187 = { is_controlled_by_ROOT_or_ally = yes }
		}
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_named_threat = { threat = 1 name = SOV_ultimatum_to_greece_t }
			add_state_claim = 187
			if = {
				limit = { country_exists = GRE }
				GRE = { country_event = { id = greece.1 days = 1 } }
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = SOV_middle_east_diplomacy
		icon = GFX_focus_TUR_treaty_of_saadabad
		prerequisite = { focus = SOV_the_comintern }
		x = 4
		y = 0
		relative_position_id = SOV_baltic_security
		cost = 5
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
				
		bypass = {
			NOT = {
				country_exists = IRQ
				country_exists = PER
				country_exists = AFG
				country_exists = SAU
			}
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			if = {
				limit = {
					country_exists = IRQ
				}
				IRQ = {
					if = {
						limit = { ROOT = { has_government = fascism } }
						add_timed_idea = { idea = fascist_influence_weak days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = democratic } }
						add_timed_idea = { idea = democratic_influence_weak days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = communism } }
						add_timed_idea = { idea = communist_influence_weak days = 1095 }
					}
					hidden_effect = {
						country_event = { id = generic.1 }
					}
				}
			}
			if = {
				limit = {
					country_exists = PER
				}
				PER = {
					if = {
						limit = { ROOT = { has_government = fascism } }
						add_timed_idea = { idea = fascist_influence_weak days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = democratic } }
						add_timed_idea = { idea = democratic_influence_weak days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = communism } }
						add_timed_idea = { idea = communist_influence_weak days = 1095 }
					}
					hidden_effect = {
						country_event = { id = generic.1 }
					}
				}
			}
			if = {
				limit = {
					country_exists = AFG
				}
				AFG = {
					if = {
						limit = { ROOT = { has_government = fascism } }
						add_timed_idea = { idea = fascist_influence_weak days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = democratic } }
						add_timed_idea = { idea = democratic_influence_weak days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = communism } }
						add_timed_idea = { idea = communist_influence_weak days = 1095 }
					}
					hidden_effect = {
						country_event = { id = generic.1 }
					}
				}
			}
			if = {
				limit = {
					country_exists = SAU
				}
				SAU = {
					if = {
						limit = { ROOT = { has_government = fascism } }
						add_timed_idea = { idea = fascist_influence_weak days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = democratic } }
						add_timed_idea = { idea = democratic_influence_weak days = 1095 }
					}
					if = {
						limit = { ROOT = { has_government = communism } }
						add_timed_idea = { idea = communist_influence_weak days = 1095 }
					}
					hidden_effect = {
						country_event = { id = generic.1 }
					}
				}
			}
		}
	}

	focus = {
		id = SOV_the_southern_thrust
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = SOV_middle_east_diplomacy }
		x = -1
		y = 1
		relative_position_id = SOV_middle_east_diplomacy
		cost = 10
		
		ai_will_do = {
			factor = 1
			modifier = {
				has_war_with = GER
				factor = 0
			}
			modifier = {
				AND = {
					has_war_with = ENG
					surrender_progress > 0.3
				}
				factor = 0
			}
			modifier = {
				has_war_with = RAJ
				factor = 5
			}
		}

		bypass = {
			PER = {
				NOT = { owns_state = 419 }
				NOT = { owns_state = 420 }
				NOT = { owns_state = 266 }
				NOT = { owns_state = 416 }
			}
			IRQ = {
				NOT = { owns_state = 676 }
				NOT = { owns_state = 291 }
				NOT = { owns_state = 1045 }
				NOT = { owns_state = 1046 }
				NOT = { owns_state = 1047 }
				NOT = { owns_state = 1048 }
				NOT = { owns_state = 1049 }
			}
			AFG = {
				NOT = { owns_state = 267 }
				NOT = { owns_state = 415 }
				NOT = { owns_state = 1008 }
				NOT = { owns_state = 1009 }
				NOT = { owns_state = 1010 }
				NOT = { owns_state = 1011 }
			}
		}

		available = {
			OR = {
				country_exists = IRQ
				country_exists = PER
				country_exists = AFG
				country_exists = SAU
			}
			is_subject = no
		}

		mutually_exclusive = { focus = SOV_support_afghan_ideology }
		
		will_lead_to_war_with = PER
		will_lead_to_war_with = IRQ
		will_lead_to_war_with = AFG
		
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_named_threat = { threat = 0.2 name = SOV_southern_thrust_t }
			every_other_country = {
				limit = {
					NOT = {
						is_in_faction_with = ROOT
					}
					OR = {
						controls_state = 419
						controls_state = 420
						controls_state = 266
						controls_state = 676
						controls_state = 291
						controls_state = 1045
						controls_state = 1046
						controls_state = 1047
						controls_state = 1048
						controls_state = 1049
						controls_state = 267
						controls_state = 415
						controls_state = 1008
						controls_state = 1009
						controls_state = 1010
						controls_state = 1011
					}
				}
				SOV = {
					create_wargoal = {
						type = take_state_focus
						target = PREV
						expire = 0
					}
				}
			}
			ENG = {
				add_opinion_modifier = { target = SOV modifier = middle_east_expansionism }
			}
			FRA = {
				add_opinion_modifier = { target = SOV modifier = middle_east_expansionism }
			}
			USA = {
				add_opinion_modifier = { target = SOV modifier = middle_east_expansionism }
			}
		}
	}

	focus = {
		id = SOV_support_afghan_ideology
		icon = GFX_focus_generic_befriend_afghanistan
		prerequisite = { focus = SOV_middle_east_diplomacy }
		x = 1
		y = 1
		relative_position_id = SOV_middle_east_diplomacy
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_the_southern_thrust }
		
		bypass = {
			NOT = { country_exists = AFG }
		}

		available = {
			NOT = { has_war_with = AFG }
			is_subject = no
		}

		completion_reward = {
			activate_targeted_decision = { target = AFG decision = SOV_pressure_country_government_middle_east }
			activate_targeted_decision = { target = AFG decision = SOV_promote_ideology_rallies_middle_east }
		}
	}

	focus = {
		id = SOV_preemptive_invasion_of_iran
		icon = GFX_goal_PER_anglo_soviet_invasion_of_iran
		prerequisite = { focus = SOV_support_afghan_ideology }
		x = 0
		y = 1
		relative_position_id = SOV_support_afghan_ideology
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			country_exists = PER
			NOT = { has_war_with = PER }
			is_subject = no
			any_enemy_country = { is_major = yes }
		}

		completion_reward = {
			PER = {
				set_country_flag = SOV_ultimatum_sent_flag
				country_event = { id = NSB_soviet_foreign_politics_events.210 hours = 16 random_hours = 8 }
			}

			effect_tooltip = {
				custom_effect_tooltip = if_they_accept_tt
				ROOT = {
					puppet = PER
				}

				custom_effect_tooltip = if_they_refuse_tt
				effect_tooltip = {
					activate_mission = SOV_preparations_for_operation_countenance
					custom_effect_tooltip = SOV_preparations_for_operation_countenance_tt
				}
				custom_effect_tooltip = SOV_preemptive_invasion_of_iran_tt
			}
		}
	}

	focus = {
		id = SOV_the_threat_from_the_land_of_the_rising_sun
		icon = GFX_focus_attack_japan
		prerequisite = { focus = SOV_the_comintern }
		x = 6
		y = 0
		relative_position_id = SOV_middle_east_diplomacy
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_reconcile_japan }

		available = {
			any_country = {
				SOV_is_free_chinese_tag = yes
				has_war_with = JAP
			}
			is_subject = no
		}

		completion_reward = {
			JAP = { add_opinion_modifier = { target = SOV modifier = SOV_supported_china_bad } }
			every_other_country = {
				limit = {
					SOV_is_free_chinese_tag = yes
				}
				if = {
					limit = {
						ROOT = { has_government = communism }
					}
					add_ideas = SOV_support_in_china_communism
				}
				else_if = {
					limit = {
						ROOT = { has_government = democratic }
					}
					add_ideas = SOV_support_in_china_democratic
				}
				else_if = {
					limit = {
						ROOT = { has_government = fascism }
					}
					add_ideas = SOV_support_in_china_fascism
				}
				else_if = {
					limit = {
						ROOT = { has_government = neutrality }
					}
					add_ideas = SOV_support_in_china_neutrality
				}
				add_opinion_modifier = { target = SOV modifier = SOV_supported_china_good }
			}
			unlock_decision_category_tooltip = r56_chinese_gui_category
			set_country_flag = chi_interested_in_china
		}
	}

	focus = {
		id = SOV_the_gobi_gambit
		icon = GFX_focus_generic_befriend_sinkiang
		prerequisite = { focus = SOV_the_comintern }
		x = 13
		y = 1
		relative_position_id = SOV_the_comintern
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		

		available = {
			#SOV controls the states in which railway lines will be built
			controls_state = 405 #TASHKENT
			controls_state = 404 #KYZYL ORDA
			controls_state = 732 #PAMIR
			controls_state = 586 #ALMA-ATA

			OR = {
				AND = { #Relevant states under Soviet control
					controls_state = 617 #URUMQI
					controls_state = 618 #DZUNGARIA
				}
				SIK = { #Relevant states under Sinkiang control
					NOT = { has_war_with = ROOT }
					controls_state = 617 #URUMQI
					controls_state = 618 #DZUNGARIA
				}
			}

			is_subject = no
		}

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_OIL FOCUS_FILTER_ALLIANCE }
		completion_reward = {
			hidden_effect = { #Decrease SIK's desire to join Chinese faction (and other AI strategies)
				SOV_approach_sinkiang_diplomacy_effect = yes
				SIK = {
					add_ai_strategy = { #This is added in Gobi Gambit + all 3 investment decisions
						type = alliance
						id = SOV		
						value = 4
					}
				}
			}
			if = { #If SOV controls the relevant states (for whatever weird reason -.-), then insta-build
				limit = {
					controls_state = 617 #URUMQI
					controls_state = 618 #DZUNGARIA
				}
				# Tashkent - Frunze - Alma-Ata - Urumqi
				build_railway = {
					path = { 1459 10148 10366 12397 12340 12640 7706 12583 4224 1591 10547 10619 12529 7866 1783 10674 4709 } #1840 12526 4770 4709
				}
				#Supply Hub in Alma-Ata
				586 = {
					add_building_construction = {
						type = supply_node
						level = 1
						province = 1591
						instant_build = yes
					}
				}
				custom_effect_tooltip = SOV_sinkiang_decisions_available_tt
			}
			else = { #If SIK in control of them
				SIK = { country_event = { id = NSB_soviet_foreign_politics_events.270 hours = 6 random_hours = 6 } }
				# IF THEY ACCEPT
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					add_opinion_modifier = {
						target = SIK
						modifier = SOV_complied_with_our_demands
					}
					
					# Tashkent - Frunze - Alma-Ata - Urumqi
					build_railway = {
						path = { 1459 10148 10366 12397 12340 12640 7706 12583 4224 1591 10547 10619 12529 7866 1783 10674 4709 }
					}
					#Supply Hub in Alma-Ata
					586 = {
						add_building_construction = {
							type = supply_node
							level = 1
							province = 1591
							instant_build = yes
						}
					}
					custom_effect_tooltip = SOV_sinikiang_influence_cg_tt_sov
					custom_effect_tooltip = SOV_sinkiang_decisions_available_tt
				}
				# IF THEY REFUSE
				custom_effect_tooltip = if_they_refuse_tt
				effect_tooltip = {
					add_opinion_modifier = {
						target = SIK
						modifier = SOV_rejected_our_demands
					}
					# Tashkent - Frunze - Alma-Ata
					build_railway = {
						path = { 1459 10148 10366 12397 12340 12640 7706 12583 4224 1591 }
					}
					#Supply Hub in Alma-Ata
					586 = {
						add_building_construction = {
							type = supply_node
							level = 1
							province = 1591
							instant_build = yes
						}
					}
					custom_effect_tooltip = SOV_sinikiang_influence_refuse_tt
				}
			}
			custom_effect_tooltip = SOV_volunteers_allowed_sinkiang_tt
		}
	}

	
	focus = {
		id = SOV_into_the_plateau
		icon = GFX_goal_TIB_monasteries_crushed
		prerequisite = { focus = SOV_the_gobi_gambit }
		x = 0
		y = 1
		relative_position_id = SOV_the_gobi_gambit

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			OR = {
				AND = {
					759 = { is_controlled_by = SOV }
					287 = { is_controlled_by = SOV }
				}
				AND = {
					SIK = {
						is_subject_of = SOV
					}
					759 = { is_controlled_by = SIK }
					287 = { is_controlled_by = SIK }
				}
			}
		}

		bypass = {
			OR = {
				AND = {
					NOT = {
						country_exists = TIB
						country_exists = NEP
						country_exists = BHU
					}
					OR = {
						owns_state = 322
						322 = { is_claimed_by = ROOT }
					}
					OR = {
						owns_state = 758
						758 = { is_claimed_by = ROOT }
					}
					OR = {
						owns_state = 757
						757 = { is_claimed_by = ROOT }
					}
					OR = {
						owns_state = 324
						324 = { is_claimed_by = ROOT }
					}
				}
			}
		}

		completion_reward = {
			add_named_threat = { threat = 1 name = SOV_into_the_plateau_t }
			add_state_claim = 322
			add_state_claim = 758
			add_state_claim = 757
			add_state_claim = 601
			add_state_claim = 324
			add_state_claim = 323
			add_state_claim = 1091
			every_other_country = {
				limit = {
					NOT = {
						is_in_faction_with = ROOT
					}
					OR = {
						controls_state = 322
						controls_state = 758
						controls_state = 757
						controls_state = 601
						controls_state = 324
						controls_state = 323
						controls_state = 1091
					}
				}
				SOV = {
					create_wargoal = {
						type = take_state_focus
						target = PREV
						expire = 0
					}
				}
			}
			#add_ai_strategy = {
			#	type = antagonize
			#	id = "TIB"			
			#	value = 200
			#}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = SOV_two_red_flags
		icon = GFX_focus_chi_cooperation_with_the_communists
		prerequisite = { focus = SOV_the_threat_from_the_land_of_the_rising_sun }
		x = -1
		y = 1
		relative_position_id = SOV_the_threat_from_the_land_of_the_rising_sun
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_support_the_kuomintang }

		bypass = {
			OR = {
				NOT = { country_exists = PRC }
				owns_state = 622
			}
		}

		available = {
			has_government = communism
			NOT = { has_war_with = PRC }
			is_subject = no
		}

		completion_reward = {
			PRC = {
				add_opinion_modifier = { #Good relations with Mao
					target = ROOT
					modifier = SOV_cooperating_with_us
				}
				country_event = { id = prc.48 days = 2 }
				add_relation_modifier = {
					target = ROOT
					modifier = SOV_soviet_chinese_relations
				}
				every_other_country = {
					limit = {
						SOV_is_free_chinese_tag = yes
					}
					add_opinion_modifier = { #Bad Relations with other Chinese tags
						target = ROOT
						modifier = SOV_cooperating_with_other
					}
				}
			}
			activate_targeted_decision = { target = PRC decision = SOV_send_infantry_equipment_asia }
			custom_effect_tooltip = SOV_volunteers_allowed_mao_tt
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}

	focus = {
		id = SOV_support_the_kuomintang
		icon = GFX_goal_chinese_sun
		prerequisite = { focus = SOV_the_threat_from_the_land_of_the_rising_sun }
		x = 2
		y = 0
		relative_position_id = SOV_two_red_flags
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_two_red_flags }

		bypass = {
			NOT = { country_exists = CHI }
		}

		available = {
			NOT = { has_completed_focus = SOV_the_left_opposition }
			NOT = { has_war_with = CHI }
			is_subject = no
		}

		completion_reward = {
			CHI = {
				add_opinion_modifier = { #Good relations with Mao
					target = ROOT
					modifier = SOV_cooperating_with_us
				}
				country_event = { id = kmt.320 days = 2 }
				add_relation_modifier = {
					target = ROOT
					modifier = SOV_soviet_chinese_relations
				}
				every_other_country = {
					limit = {
						SOV_is_free_chinese_tag = yes
					}
					add_opinion_modifier = { #Bad Relations with other Chinese tags
						target = ROOT
						modifier = SOV_cooperating_with_other
					}
				}
			}
			activate_targeted_decision = { target = CHI decision = SOV_send_infantry_equipment_asia }
			custom_effect_tooltip = SOV_volunteers_allowed_kuomintang_tt
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}

	focus = {
		id = SOV_intervention_in_china
		icon = GFX_focus_usa_focus_on_asia
		prerequisite = { focus = SOV_two_red_flags focus = SOV_support_the_kuomintang }
		x = -1
		y = 2
		relative_position_id = SOV_the_threat_from_the_land_of_the_rising_sun
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			is_subject = no
		}

		completion_reward = {
			custom_effect_tooltip = SOV_intervention_in_china_wargoal_tt
			hidden_effect = {
				every_country = {
					limit = {
						SOV_is_chinese_tag = yes
						exists = yes
						NOT = { is_subject_of = ROOT }
						NOT = { is_in_faction_with = ROOT }
					}
					if = {
						limit = {
							tag = SIK
							ROOT = { has_completed_focus = SOV_the_gobi_gambit }
						}
					}
					else_if = {
						limit = {
							tag = PRC
							ROOT = { has_completed_focus = SOV_two_red_flags }
						}
					}
					else_if = {
						limit = {
							tag = CHI
							ROOT = { has_completed_focus = SOV_support_the_kuomintang }
						}
					}
					else = {
						ROOT = {
							create_wargoal = {
								type = puppet_wargoal_focus
								target = PREV
							}
						}
					}
				}
			}
			if = {
				limit = {
					has_completed_focus = SOV_the_gobi_gambit
					country_exists = SIK
				}
				every_state = { #Set cores for SIK
					limit = {
						is_core_of = XSM
						is_core_of = TIB
						#is_core_of = CHI You are a buffer not the guy who I want....
					}
					add_core_of = SIK
				}
			}
		}
	}

	focus = {
		id = SOV_prepare_a_war_with_japan
		icon = GFX_focus_AST_war_japan
		prerequisite = { focus = SOV_two_red_flags focus = SOV_support_the_kuomintang }
		x = 2
		y = 1
		relative_position_id = SOV_two_red_flags
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		bypass = {
			has_war_with = JAP
		}

		available = {
			surrender_progress < 0.01
			country_exists = JAP
			NOT = {
				JAP = { is_in_faction_with = ROOT } 
			}
			is_subject = no
		}

		completion_reward = {
			add_timed_idea = {
				idea = SOV_preparations_for_soviet_japanese_war
				days = 365
			}
			every_country = {
				limit = {
					is_in_faction_with = ROOT
					SOV_is_chinese_tag = yes
					is_in_faction_with = ROOT
				}
				hidden_effect = {
					country_event = NSB_soviet_foreign_politics_events.251
				}
				effect_tooltip = {
					add_timed_idea = {
						idea = SOV_preparations_for_soviet_japanese_war_china
						days = 365
					}
				}
			}
		}
	}

	focus = {
		id = SOV_end_the_khalkhin_gol_conflict
		icon = GFX_focus_generic_provoke_border_clashes
		prerequisite = { focus = SOV_prepare_a_war_with_japan }
		x = -1
		y = 1
		relative_position_id = SOV_prepare_a_war_with_japan
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_recover_the_kuril_islands }

		available = {
			surrender_progress < 0.01
			country_exists = JAP
			NOT = { is_in_faction_with = JAP }
			NOT = { has_war_together_with = JAP }
			761 = { #Hulunbuir
				controller = {
					NOT = { is_in_faction_with = ROOT }
				}
			}
			is_subject = no
		}

		completion_reward = {
			custom_effect_tooltip = SOV_end_the_khalkhin_gol_conflict_wargoal_tt
			hidden_effect = {
				every_country = {
					limit = {
						OR = {
							tag = JAP
							AND = {
								SOV_is_chinese_tag = yes
								is_in_faction_with = JAP
							}
						}
					}
					ROOT = {
						create_wargoal = {
							type = puppet_wargoal_focus
							target = PREV
						}
					}
				}
			}

			add_state_claim = 761 #Hulunbuir
			
			if = {
				limit = {
					has_idea = SOV_preparations_for_soviet_japanese_war
				}
				remove_ideas = SOV_preparations_for_soviet_japanese_war
				every_country = {
					limit = {
						is_in_faction_with = ROOT
						has_idea = SOV_preparations_for_soviet_japanese_war_china
					}
					remove_ideas = SOV_preparations_for_soviet_japanese_war_china
				}
			}
			add_timed_idea = {
				idea = SOV_soviet_japanese_reckoning
				days = 180
			}
			every_country = {
				limit = {
					is_in_faction_with = ROOT
					OR = {
						SOV_is_chinese_tag = yes
						capital_scope = {
							is_on_continent = asia
						}
					}
					
				}
				hidden_effect = {
					country_event = NSB_soviet_foreign_politics_events.252
				}
				effect_tooltip = {
					add_timed_idea = {
						idea = SOV_soviet_japanese_reckoning_china
						days = 180
					}
				}
			}

			if = {
				limit = {
					is_in_faction_with = MON
					612 = {
						controller = {
							NOT = { is_in_faction_with = ROOT }
						}
					}
				}
				MON = {
					add_state_claim = 612 #Chahar
					add_state_claim = 611 #South Chahar
					add_state_claim = 621 #Suiyuan
				}
			}
		}
	}

	focus = {
		id = SOV_recover_the_kuril_islands
		icon = GFX_goal_generic_political_pressure
		prerequisite = { focus = SOV_prepare_a_war_with_japan }
		x = 1
		y = 1
		relative_position_id = SOV_prepare_a_war_with_japan
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_end_the_khalkhin_gol_conflict }

		available = {
			surrender_progress < 0.01
			country_exists = JAP
			NOT = {
				JAP = { is_in_faction_with = ROOT } 
			}
			JAP = { controls_state = 555 }
			NOT = { has_war_with = JAP }
			is_subject = no
		}

		completion_reward = {
			create_wargoal = {
				type = take_state_focus
				target = JAP
				expire = 0
				generator = { 537 555 }
			}

			if = {
				limit = {
					has_idea = SOV_preparations_for_soviet_japanese_war
				}
				remove_ideas = SOV_preparations_for_soviet_japanese_war
				every_country = {
					limit = {
						is_in_faction_with = ROOT
						has_idea = SOV_preparations_for_soviet_japanese_war_china
					}
					remove_ideas = SOV_preparations_for_soviet_japanese_war_china
				}
			}
			add_timed_idea = {
				idea = SOV_soviet_japanese_reckoning
				days = 180
			}
			every_country = {
				limit = {
					is_in_faction_with = ROOT
					SOV_is_chinese_tag = yes
					is_in_faction_with = ROOT
				}
				hidden_effect = {
					country_event = NSB_soviet_foreign_politics_events.252
				}
				effect_tooltip = {
					add_timed_idea = {
						idea = SOV_soviet_japanese_reckoning_china
						days = 180
					}
				}
			}

			custom_effect_tooltip = SOV_recover_the_kuril_islands_decisions_tt
		}
	}

	focus = {
		id = SOV_reconcile_japan
		icon = GFX_focus_chi_collaboration_with_the_japanese
		prerequisite = { focus = SOV_the_comintern }
		x = 3
		y = 0
		relative_position_id = SOV_the_threat_from_the_land_of_the_rising_sun
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		mutually_exclusive = { focus = SOV_the_threat_from_the_land_of_the_rising_sun }

		bypass = {
			NOT = { country_exists = JAP }
		}

		available = {			
			NOT = { has_war_with = JAP }
			is_subject = no
			655 = {
				is_owned_and_controlled_by = ROOT
			}
			NOT = {
				JAP = {
					is_puppet = no
					has_completed_focus = JAP_support_the_kodoha_faction
				}
			}
			
		}
		completion_reward = {
			JAP = {
				country_event = { id = NSB_soviet_foreign_politics_events.262 hours = 12 random_hours = 6 }
				custom_effect_tooltip = if_they_accept
				effect_tooltip = {
					add_opinion_modifier = { target = SOV modifier = border_conflict_reconciled }
					transfer_state = 655
					diplomatic_relation = {
						country = SOV
						relation = non_aggression_pact
						active = yes
					}
				}
			}

			unlock_decision_category_tooltip = r56_chinese_gui_category
			set_country_flag = chi_interested_in_china
		}
	}

	focus = {
		id = SOV_spheres_of_influence_in_china
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = SOV_reconcile_japan }
		x = 1
		y = 1
		relative_position_id = SOV_reconcile_japan
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			is_subject = no
		}
		
		search_filters = {FOCUS_FILTER_ANNEXATION}

		completion_reward = {
			if = {
				limit = {
					SIK = { NOT = { has_government = ROOT } }
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = SIK
				} 
			}
			else = {
				SIK = { country_event = { id = NSB_soviet_foreign_politics_events.200 hours = 6 random_hours = 2 } }
			}
		}
	}

	focus = {
		id = SOV_soviet_japanese_pact_against_usa_focus
		icon = GFX_focus_spa_the_war_of_vengeance
		prerequisite = { focus = SOV_reconcile_japan }
		x = 0
		y = 2
		relative_position_id = SOV_reconcile_japan
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_civil_war = yes
			}	
		}
		
		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			country_exists = JAP
			NOT = { has_war_with = JAP }
			is_subject = no
			JAP = {
				SOV_is_valid_subject = yes
			}
		}

		completion_reward = {
			#Event
			JAP = { country_event = { id = NSB_soviet_foreign_politics_events.263 hours = 8 random_hours = 4 } }

			#Potential effects
			custom_effect_tooltip = if_they_accept
			effect_tooltip = {
				#War
				if = {
					limit = {
						JAP = {	has_war_with = USA }
						NOT = { SOV = { has_war_with = USA } }
					}
					SOV = { add_to_war = { targeted_alliance = JAP enemy = USA hostility_reason = asked_to_join } }
				}
				else_if = {
					limit = {
						SOV = { has_war_with = USA }
						NOT = { JAP = {	has_war_with = USA } }
					}
					JAP = { add_to_war = { targeted_alliance = SOV enemy = USA hostility_reason = asked_to_join } }
				}
				else_if = {
					limit = {
						NOT = { SOV = { has_war_with = USA } }
						NOT = { JAP = {	has_war_with = USA } }
					}
					SOV = {
						declare_war_on = {
							target = USA
							type = annex_everything
						}
					}
					JAP = { add_to_war = { targeted_alliance = SOV enemy = USA hostility_reason = asked_to_join } }
				}

				#Diplo stuff
				JAP = {
					if = {
						limit = {
							NOT = {
								has_non_aggression_pact_with = SOV
							}
						}
						diplomatic_relation = {
							country = SOV
							relation = non_aggression_pact
							active = yes
						}
					}
				}

				#Claims
				SOV = {
					add_state_claim = 463 #Alaska
					add_state_claim = 650 #Atu Island
				}
				JAP = {
					add_state_claim = 632 #Wake Island
					add_state_claim = 631 #Midway Island
					add_state_claim = 629 #Hawaii
					add_state_claim = 630 #Johnston Atoll
					add_state_claim = 727 #Line Islands
					add_state_claim = 642 #Phoenix Island
					add_state_claim = 638 #Guam

				}
				#Relations stuff
				JAP = {
					add_opinion_modifier = { target = SOV modifier = SOV_soviet_japanese_pact_against_usa }
				}

				#Targeted NS
				SOV = {
					add_timed_idea = { idea = SOV_soviet_japanese_anti_usa_pact days = 365 }
				}
				JAP = {
					add_timed_idea = { idea = SOV_soviet_japanese_anti_usa_pact days = 365 }
				}
			}
		}
	}



#   #  ##  #  #  ##  ###   ##  #  # ###  ## ###     ###  ###   ##  #  #  ##  #  # 
## ## #  # ## # #  # #  # #  # #  #  #  #    #      #  # #  # #  # ## # #  # #  # 
# # # #  # # ## #### ###  #    ####  #   #   #      ###  ###  #### # ## #    #### 
#   # #  # #  # #  # #  # #  # #  #  #    #  #      #  # #  # #  # #  # #  # #  # 
#   #  ##  #  # #  # #  #  ##  #  # ### ##   #      ###  #  # #  # #  #  ##  #  # 

	focus = {
		id = SOV_beaten_but_not_defeated
		icon = GFX_goal_SOV_russian_monarchy
		x = 61
		y = 0
		relative_position_id = SOV_the_path_of_marxism_leninism
		offset = {
			x = -44
			y = 0
			trigger = { #All commie branches hide except for Stalinist
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = SOV_beaten_but_not_defeated
			}
		}
		offset = {
			x = -10
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = SOV_the_hands_do #Stalinist branch hides
			}
		}
		allow_branch = { 
			has_dlc = "No Step Back" 
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = SOV_the_path_of_marxism_leninism }
			}
		}
		mutually_exclusive = { focus = SOV_the_path_of_marxism_leninism }

		cost = 7.2
		ai_will_do = {
			factor = 1
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_no_major_purge_tt		
				check_variable = { SOV_great_purge_counter < 1 }
			}
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			custom_effect_tooltip = SOV_beaten_but_not_defeated_tt
			add_political_power = 100
			add_stability = -0.1
			add_war_support = -0.25
			hidden_effect = {
				country_event = {
					id = NSB_soviet_paranoia_system_events.01 # Trigger paranoia if not already active
					hours = 6 
					random_hours = 24
				}
				set_variable = { SOV_exiles_army_support = 0.1 }
				set_variable = { SOV_exiles_navy_support = 0.02 }
				set_variable = { SOV_exiles_air_support = 0.02 } 
				# Launch the first Stalinist counter measures
				SOV_launch_stalinist_counter_measure = yes 
				SOV_get_centre_military_support = yes
			}
			mark_focus_tree_layout_dirty = yes
		}
	}

	focus = {
		id = SOV_unification_of_the_exiles
		icon = GFX_goal_MAN_contact_rfp
		prerequisite = { focus = SOV_beaten_but_not_defeated }
		x = -4
		y = 1
		relative_position_id = SOV_beaten_but_not_defeated
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			add_political_power = 75
			if = {
				limit = {
					is_ai = no
				}
				SOV_paranoia_low_increase_effect = yes
			}
			custom_effect_tooltip = SOV_unification_of_the_exiles_tt
		}
	}

	focus = {
		id = SOV_womens_fascist_movement
		icon = GFX_focus_SOV_womens_fascist_movement
		prerequisite = { focus = SOV_unification_of_the_exiles }
		x = -2
		y = 1
		relative_position_id = SOV_unification_of_the_exiles
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		available_if_capitulated = yes

		search_filters = {FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_popularity = {
				ideology = fascism
				popularity = 0.025
			}
			custom_effect_tooltip = SOV_fascist_womens_movement_tt
			effect_tooltip = { add_ideas = SOV_fascist_womens_movement_idea }
			set_country_flag = SOV_fascist_womens_movement_flag
		}
		
	}

	focus = {
		id = SOV_the_true_tsars
		icon = GFX_focus_SOV_the_true_tsars
		prerequisite = { focus = SOV_unification_of_the_exiles }
		x = 0
		y = 1
		relative_position_id = SOV_unification_of_the_exiles
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_popularity = {
				ideology = neutrality
				popularity = 0.05
			}
			custom_effect_tooltip = SOV_the_true_tsars_tt
			effect_tooltip = { add_ideas = SOV_the_true_tsars_idea }		
			set_country_flag = SOV_the_true_tsars_flag
			hidden_effect = {
				if = {
					limit = {
						is_ai = yes
					}
					SOV_paranoia_low_decrease_effect = yes
					add_command_power = 1
					add_political_power = 10
				}
			}
		}
	}

	focus = {
		id = SOV_national_unification
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = SOV_unification_of_the_exiles }
		x = 2
		y = 1
		relative_position_id = SOV_unification_of_the_exiles
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_popularity = {
				ideology = fascism
				popularity = 0.045
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.05
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.035
			}	
			custom_effect_tooltip = SOV_national_unification_tt 
			set_country_flag = SOV_national_unification_flag
		}
	}


	focus = {
		id = SOV_embrace_the_black_hundreds
		icon = GFX_focus_generic_little_entente
		prerequisite = { 
			focus = SOV_womens_fascist_movement
			focus = SOV_the_true_tsars
			focus = SOV_national_unification
		}
		x = 0
		y = 1
		relative_position_id = SOV_the_true_tsars
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_has_selected_hq = yes
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			set_country_flag = SOV_embrace_the_black_hundreds_flag
			custom_effect_tooltip = SOV_embrace_the_black_hundreds_tt
			add_political_power = 60
			hidden_effect = {
				if = {
					limit = {
						is_ai = yes
					}
					SOV_paranoia_low_decrease_effect = yes
					add_command_power = 1
					add_political_power = 10
				}
			}
		}

	}
	
	focus = {
		id = SOV_siberian_forest_soldiers_focus
		icon = GFX_goal_generic_forest_warfare
		
		prerequisite = {
			focus = SOV_embrace_the_black_hundreds
		}
		
		x = 4
		y = 1
		relative_position_id  = SOV_embrace_the_black_hundreds
		
		cost = 7.2
		
		ai_will_do = {
			factor = 1
		}
		
		available = {
			SOV_soviet_civil_war_not_started = yes
		}
		
		available_if_capitulated = yes
		
		completion_reward = {
			add_ideas = SOV_siberian_forest_soldiers_idea
			set_technology = {
				jaegers = 1
				winter_clothes_gw = 1
			}
			add_tech_bonus = {
				name = SOV_siberian_forest_soldiers_focus
				bonus = 0.6
				uses = 2
				category = r56_jaeger_infantry_tech
				category = winter_clothing_tech
			}
			
		}
		
	}
	
	

	focus = {
		id = SOV_muster_the_old_guard
		icon = GFX_goal_SOV_russian_nationalism
		prerequisite = { 
			focus = SOV_embrace_the_black_hundreds
		}
		x = -2
		y = 1
		relative_position_id = SOV_embrace_the_black_hundreds
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = SOV_muster_the_old_guard_tt
			add_popularity = {
				ideology = neutrality
				popularity = 0.075
			}
			set_country_flag = SOV_muster_the_old_guard_flag
			hidden_effect = {
				if = {
					limit = {
						is_ai = yes
					}
					SOV_paranoia_low_decrease_effect = yes
					add_command_power = 1
					add_political_power = 25
				}
			}
		}
	}
	focus = {
		id = SOV_approach_semyonov
		icon = GFX_focus_SOV_approach_semyonov
		prerequisite = { 
			focus = SOV_embrace_the_black_hundreds
		}
		x = 2
		y = 1
		relative_position_id = SOV_embrace_the_black_hundreds
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			
		}

		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = SOV_approach_semyonov_tt
			add_command_power = 25
		}
	}

	focus = {
		id = SOV_fascist_youth_union
		icon = GFX_goal_small_infantry
		prerequisite = { 
			focus = SOV_embrace_the_black_hundreds
		}
		x = 0
		y = 1
		relative_position_id = SOV_embrace_the_black_hundreds
		cost = 10
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			set_country_flag = SOV_fascist_youth_union_flag
			custom_effect_tooltip = SOV_fascist_youth_union_tt
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
			hidden_effect = {
				if = {
					limit = {
						is_ai = yes
					}
					SOV_paranoia_low_decrease_effect = yes
					add_command_power = 1
					add_political_power = 10
				}
			}	
		}
	}
	focus = {
		id = SOV_tolkachi 
		icon = GFX_goal_cuba_support_the_confederation_of_cuban_workers
		prerequisite = { 
			focus = SOV_muster_the_old_guard
			focus = SOV_fascist_youth_union
			
		}
		x = 2
		y = 1
		relative_position_id = SOV_muster_the_old_guard
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			add_popularity = {
				ideology = democratic 
				popularity = 0.05
			}
			set_country_flag = SOV_tolkachi_flag
			custom_effect_tooltip = SOV_tolkachi_tt
			hidden_effect = {
				if = {
					limit = {
						is_ai = yes
					}
					SOV_paranoia_low_decrease_effect = yes
					add_command_power = 1
					add_political_power = 10
				}
			}
			add_offsite_building = {
				type = industrial_complex 
				level = 2
			}
		}
	}

	focus = {
		id = SOV_south_manchuria_railway
		icon = GFX_focus_SOV_south_manchuria_railway
		prerequisite = { 
			focus = SOV_muster_the_old_guard
			focus = SOV_fascist_youth_union	
		}
		x = 2
		y = 1
		relative_position_id = SOV_fascist_youth_union
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			SOV_paranoia_low_increase_effect = yes
			custom_effect_tooltip = SOV_sway_the_railway_workers_tt
			set_country_flag = SOV_supply_hub_flag
			add_offsite_building = {
				type = industrial_complex 
				level = 2
			}
		}
	}

	focus = {
		id = SOV_organize_wreckers
		icon = GFX_focus_SOV_organize_wreckers
		prerequisite = { 
			focus = SOV_muster_the_old_guard
			focus = SOV_fascist_youth_union
			
		}
		x = 0
		y = 1
		relative_position_id = SOV_muster_the_old_guard
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_SOV_POLITICAL_PARANOIA}

		completion_reward = {
			 set_country_flag = SOV_organize_wreckers_flag
			 if = {
				 limit = {
					 is_ai = no
				 }
				  SOV_paranoia_medium_increase_effect = yes
			 }
			 custom_effect_tooltip = SOV_organize_wreckers_tt
			 hidden_effect = {
				if = {
					limit = {
						is_ai = yes
					}
					SOV_paranoia_low_decrease_effect = yes
					add_command_power = 1
					add_political_power = 10
				}
			}
		}
	}

	focus = {
		id = SOV_the_eyes_fear
		icon = GFX_goal_generic_recruitment
		prerequisite = { 
			focus = SOV_tolkachi
			focus = SOV_organize_wreckers
			focus = SOV_south_manchuria_railway
		}
		x = 0
		y = 1
		relative_position_id = SOV_tolkachi
		cost = 5
		ai_will_do = {
			factor = 1
		}
		
		available = {
			SOV = {
				communism < 0.6
			}
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			#create unit after war begins - 15 infantry, split between ukraine and siberia (7 and 8)
			set_country_flag = Sov_the_eyes_fear_flag
			custom_effect_tooltip = SOV_the_eyes_fear_tt
			hidden_effect = {
				if = {
					limit = {
						is_ai = yes
					}
					SOV_paranoia_low_decrease_effect = yes
					add_command_power = 10
					add_political_power = 50
					SOV_increase_opposition_army_support = yes
				}
			}
		}
	}
	
	focus = {
		id = SOV_reinstitute_okhrana
		icon = GFX_goal_generic_secret_police_2
		
		prerequisite = { 
			focus = SOV_the_eyes_fear
		}
		
		available = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}
		
		x = 2
		y = 1
		
		relative_position_id = SOV_the_eyes_fear
		
		cost = 5
		
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				custom_effect_tooltip = SOV_okhrana_focus_tt
				hidden_effect = {
					create_intelligence_agency = {
						name = "Okhrana"
						icon = GFX_intelligence_agency_logo_rus
					}
				}
				upgrade_intelligence_agency = upgrade_passive_defense
				upgrade_intelligence_agency = upgrade_army_department
				add_ideas = SOV_russia_okhrana_idea
			}
			if = {
				limit = {
					NOT = {
						has_dlc = "La Resistance"
					}
				}
				add_war_support = 0.05
				add_stability = 0.05
				add_tech_bonus = {
					name = mp_tech_bonus_name
					bonus = 1
					uses = 2
					category = military_police_tech
				}
				add_manpower = 50000
			}
		}
	}
	
	focus = {
		id = SOV_covert_operations
		icon = GFX_goal_generic_army_purges
		prerequisite = { focus = SOV_organize_wreckers }
		x = 0
		y = 1
		relative_position_id = SOV_organize_wreckers
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_political_power = 50
			custom_effect_tooltip = SOV_covert_operations_tt
			hidden_effect = {
				if = {
					limit = {
						is_ai = yes
					}
					SOV_paranoia_low_decrease_effect = yes
					add_command_power = 1
					add_political_power = 25
				}
			}
		}
	}

	focus = {
		id = SOV_the_hands_do
		icon = GFX_goal_ussr_revolt
		prerequisite = { 
			focus = SOV_the_eyes_fear
		}
		x = 0
		y = 1
		relative_position_id = SOV_the_eyes_fear
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			SOV_soviet_civil_war_not_started = yes 
		}

		bypass = {
			OR = {
				has_global_flag = SOV_soviet_civil_war_over
				has_global_flag = SOV_soviet_civil_war
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			country_event = { 
				id = NSB_Soviet_fascist_civil_war.001 hours = 6 random_hours = 6 
			}
			SOV_opposition_support_high_increase_effect = yes 
			SOV_increase_opposition_army_support = yes
			custom_effect_tooltip = SOV_the_hands_do_tt

			mark_focus_tree_layout_dirty = yes
		}
	}
	focus = {
		id = SOV_call_for_aid
		icon = GFX_goal_iron_people
		prerequisite = { focus = SOV_the_hands_do }
		x = -3
		y = 1
		relative_position_id = SOV_the_hands_do
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		
		available = {
			has_global_flag = SOV_soviet_civil_war
		}

		completion_reward = {
			every_other_country = {
				limit = {
					is_major = yes
					NOT = {
						has_war_with = ROOT
					}
					OR = {
						has_government = fascism
						AND = {
							tag = JAP
							has_government = neutrality
						}
						AND = {
							tag = ITA
							has_government = neutrality
						}
						AND = {
							tag = GER
							has_government = neutrality
						}
						AND = {
							tag = ENG
							has_government = neutrality
						}
						AND = {
							tag = USA
							has_government = neutrality
						}
					}
				}
				add_timed_idea = { idea = SOV_national_brotherhood_idea days = 730 }
				add_opinion_modifier = { target = ROOT modifier = SOV_support_for_exiles }
				add_ai_strategy = {
					type = send_volunteers_desire
					id = SOV
					value = 400
				}
				add_ai_strategy = {
					type = send_lend_lease_desire
					id = SOV
					value = 300
				}
			}
			hidden_effect = {
				if = {
					limit = {
						is_ai = yes
					}
					add_command_power = 25
					add_political_power = 300
				}
			}
		}
	}

	focus = {
		id = SOV_request_imperial_protection 
		icon = GFX_focus_jap_showa_restoration
		prerequisite = { focus = SOV_call_for_aid }
		x = 0
		y = 1
		relative_position_id = SOV_call_for_aid
		cost = 10
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0 # No point asking for japanese help if we are winning, unless we get stuck
				surrender_progress < 0.1
				SOS = { surrender_progress > 0.5 }
				date < 1938.6.1
			}
			modifier = {
				factor = 0 # Never ask if we are close to winning, unless we are close to 1940
				SOS = { surrender_progress > 0.75 }
				date < 1939.8.1
			}
			modifier = {
				factor = 0 # Don't risk getting dragged into Chinese war unless desperate
				surrender_progress < 0.5
				JAP = { has_war = yes }
			}
		}
		available = {
			NOT = {
				has_war_with = JAP
			}
			has_global_flag = SOV_soviet_civil_war
			OR = { 
				has_country_flag = SOV_CSW_transfer_vladivostok_flag
				has_country_flag = SOV_CSW_transfer_sakhalin_flag
			}
			NOT = {
				has_war_with = JAP
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			JAP = {
				country_event = {
					id = NSB_soviet_civil_war_common.121
					days = 2
					random_days = 3
				}
			}
			custom_effect_tooltip = SOV_request_imperial_protection_tt
		}
	} 

	focus = {
		id = SOV_sabotage_behind_enemy_lines
		icon = GFX_focus_prc_infiltration
		prerequisite = { focus = SOV_reinstitute_okhrana }
		x = 0
		y = 1
		relative_position_id = SOV_reinstitute_okhrana
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		completion_reward = {
			unlock_decision_tooltip = {
				decision = SOV_sabotage_behind_enemy_lines_decision
				show_effect_tooltip = yes 
				show_modifiers = no
			}

			#hidden_effect = {
			#	every_state = {
			#		limit = {
			#			OR = {
			#				is_owned_by = SOV
			#				is_owned_by = SOS
			#			}
			#			
			#		}
			#		damage_units = {
			#			state = THIS
			#			limit = { tag = SOS } 
			#			org_damage = 0.15
			#			str_damage = 0.01
			#			ratio = yes 
			#			army = yes
			#		}
			#	}
			#}
		}
	}

	focus = {
		id = SOV_aristocratic_investments
		icon = GFX_goal_generic_economics_reform_gold
		prerequisite = { focus = SOV_the_hands_do }
		x = -1
		y = 1
		relative_position_id = SOV_the_hands_do 
		cost = 5
		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_timed_idea = {
				idea = SOV_aristocratic_investments_idea
				days = 730
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = SOV_national_unification_factory_bonus_flag
			}
			random_owned_controlled_state = {
				limit = {
					Not = { has_state_flag = SOV_national_unification_factory_bonus_flag}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			SOV_sofia_panina = {	#aristocratic family, vice minister of state welfare back in the days
				clr_character_flag = SOV_exiled_flag
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = SOV_sofia_panina_idea
			#TODO jo remove this once the civil war ends
		}
	}

	focus = {
		id = SOV_consolidate_power
		icon = GFX_goal_generic_political_pressure
		prerequisite = { focus = SOV_the_hands_do }
		x = 0
		y = 2
		relative_position_id = SOV_the_hands_do
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			has_global_flag = SOV_soviet_civil_war_over
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_stability = 0.1
			add_timed_idea = {
				idea = SOV_consolidate_power
				days = 365
			}
			custom_effect_tooltip = SOV_consolidate_power_tt_2
			hidden_effect = {
				remove_ideas = {
					SOV_the_true_tsars_idea
					SOV_fascist_womens_movement_idea
					SOV_siberian_forest_soldiers_idea
				}
			}
			custom_effect_tooltip = SOV_consolidate_power_tt
		}
	}

	focus = {
		id = SOV_bringing_breakaways_back_to_the_fold
		icon = GFX_goal_prometheism
		prerequisite = { focus = SOV_consolidate_power }
		x = 1
		y = 1
		relative_position_id = SOV_consolidate_power
		mutually_exclusive = { focus = SOV_offer_autonomy_to_former_soviet_republics }
		cost = 10
		ai_will_do = {
			factor = 1
		}
		available = {
			any_country = {
				has_country_flag = SOV_breakaway_country_flag
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			every_country = {
				limit = {
					has_country_flag = SOV_breakaway_country_flag
				}
				ROOT = {
					create_wargoal = {
						type = take_core_state 
						target = PREV
					}
				}
			}
			
		}
	}
	focus = {
		id = SOV_offer_autonomy_to_former_soviet_republics 
		icon = GFX_goal_generic_secret_documents
		prerequisite = { focus = SOV_consolidate_power }
		x = -1
		y = 1
		relative_position_id = SOV_consolidate_power
		mutually_exclusive = { focus = SOV_bringing_breakaways_back_to_the_fold }
		cost = 5
		ai_will_do = {
			factor = 1
		}
		available = {
			any_country = {
				has_country_flag = SOV_breakaway_country_flag
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			every_country = {
				limit = {
					has_country_flag = SOV_breakaway_country_flag
					NOT = { is_in_faction_with = ROOT }
				}
				country_event = {
					id = NSB_soviet_nationalist.002
					days = 3
					random_days = 3
				}
			}
			
		}
	}



###  ### #   ###  ##  ###  ##  #  #  ##      ## ### #  # ### ###         
#  # #   #    #  #     #  #  # #  # #       #    #  #  # #   #   {~._.~} 
###  ##  #    #  # ##  #  #  # #  #  #       #   #  #  # ##  ##   ( Y )  
#  # #   #    #  #  #  #  #  # #  #   #       #  #  #  # #   #   ()~*~() 
#  # ### ### ###  ##  ###  ##   ##  ##      ##   #   ##  #   #   (_)-(_) 
	focus = {
		id = SOV_article_124
		icon = GFX_goal_orthodoxy
		prerequisite = { focus = SOV_beaten_but_not_defeated }
		x = 3
		y = 1
		relative_position_id = SOV_beaten_but_not_defeated
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_ideas = SOV_church_power_1
		}
	}

	focus = {
		id = SOV_reopen_novodevichi
		icon = GFX_focus_YUG_guarantee_religious_liberties
		prerequisite = { focus = SOV_article_124 }
		x = 0
		y = 2
		relative_position_id = SOV_article_124
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		available = {
			has_government = neutrality
			has_full_control_of_state = 219
		}

		completion_reward = {	
			add_political_power = 100
			add_popularity = {
				ideology = communism
				popularity = -0.05
			}
			
		}
	}

	focus = {
		id = SOV_rebuild_the_savior_cathedral
		icon = GFX_focus_SOV_rebuild_the_savior_cathedral
		prerequisite = { focus = SOV_reopen_novodevichi }
		x = -2
		y = 2
		relative_position_id = SOV_reopen_novodevichi
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY}

		available = {
			has_government = neutrality
			has_full_control_of_state = 219
		}

		completion_reward = {
			add_stability = 0.1
			add_timed_idea = {
				idea = SOV_rebuild_the_savior_cathedral
				days = 365
			}
			add_popularity = {
				ideology = communism
				popularity = -0.1
			}
		}
	}
	
	focus = {
		id = SOV_restore_the_glory_of_the_motherland
		icon = GFX_goal_generic_construction
		prerequisite = { focus = SOV_rebuild_the_savior_cathedral }
		x = -1
		y = 1
		relative_position_id = SOV_rebuild_the_savior_cathedral
		cost = 2.5
		ai_will_do = {
			factor = 1
		}
		
		available = {
			has_government = neutrality
			has_global_flag = SOV_soviet_civil_war_over
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_ideas = SOV_restore_the_glory_of_the_motherland
		}
	}
	
	focus = {
		id = SOV_rebuild_the_nation
		icon = GFX_goal_generic_construct_civilian
		prerequisite = { focus = SOV_rebuild_the_savior_cathedral }
		x = 1
		y = 1
		relative_position_id = SOV_rebuild_the_savior_cathedral
		cost = 2.5
		
		ai_will_do = {
			factor = 1
		}
		
		available = {
			has_damaged_buildings = yes
		}
		
		bypass = {
			has_damaged_buildings = no
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_stability = 0.1
			add_timed_idea = {
				idea = SOV_rebuild_the_nation
				days = 540
			}
		}
	}

	focus = {
		id = SOV_the_synod
		icon = GFX_goal_generic_national_unity
		prerequisite = { focus = SOV_reopen_novodevichi }
		x = 1
		y = 2
		relative_position_id = SOV_reopen_novodevichi
		cost = 2.5
		ai_will_do = {
			factor = 1
		}
		
		available = {
			has_government = neutrality
			communism < 0.5
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			hidden_effect = {
				SOV_increase_church_power = yes
			}
			effect_tooltip = {
				swap_ideas = {
					remove_idea = SOV_church_power_1
					add_idea = SOV_church_power_2
				}
			}
			add_popularity = {
				ideology = communism
				popularity = -0.05
			}

		}
	}

	focus = {
		id = SOV_the_declaration
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = SOV_the_synod }
		x = 0
		y = 2
		relative_position_id = SOV_the_synod
		cost = 2.5
		ai_will_do = {
			factor = 1
		}
		
		available = {
			has_government = neutrality
			communism < 0.33
		}

		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = SOV_the_declaration_tt
			add_popularity = {
				ideology = communism
				popularity = -0.05
			}
			
		}
	}

	focus = {
		id = SOV_return_of_the_rocor
		icon = GFX_goal_anti_comintern_pact
		prerequisite = { focus = SOV_the_declaration }
		prerequisite = { focus = SOV_reformalize_the_role_of_the_patriarchate }
		x = 0
		y = 3
		relative_position_id = SOV_the_declaration
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			custom_effect_tooltip = SOV_the_return_of_the_rocor_tt
			add_stability = 0.05
			add_war_support = 0.05
			add_popularity = {
				ideology = communism 
				popularity = -0.05
			}
		}
	}

	focus = {
		id = SOV_reformalize_the_role_of_the_patriarchate
		icon = GFX_focus_generic_treaty
		prerequisite = { focus = SOV_the_declaration }
		x = 0
		y = 2
		relative_position_id = SOV_the_declaration
		cost = 5
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			hidden_effect = {
				SOV_increase_church_power = yes
			}
			effect_tooltip = {
				swap_ideas = {
					remove_idea = SOV_church_power_2
					add_idea = SOV_church_power_3
				}
			}
			add_stability = 0.05
		}
	}

	focus = {
		id = SOV_reconvene_the_zemsky_sobor
		icon = GFX_focus_SOV_zemsky_sobor
		prerequisite = { focus = SOV_consolidate_power focus = SOV_reformalize_the_role_of_the_patriarchate }
		mutually_exclusive = { focus = SOV_solidify_the_provisional_government }
		x = 3
		y = 2
		relative_position_id = SOV_consolidate_power
		cost = 5
		ai_will_do = {
			factor = 1
		}
		
		available = { 
			has_civil_war = no
			has_stability > 0.5
			communism < 0.15
		}

		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY}

		completion_reward = {
			add_ideas = SOV_romanov_spirit_idea
			custom_effect_tooltip = SOV_reconvene_the_zemsky_sobor_tt
			country_event = NSB_soviet_fascist_tsarist.14
			SOV_aleksandr_kazembek = {
				clr_character_flag = SOV_exiled_flag
			}
			SOV_anastasy_vonsyatsky = {
				clr_character_flag = SOV_exiled_flag
			}
			custom_effect_tooltip = SOV_recognized_country_tt
			set_rule = {
				can_join_factions = yes
				can_send_volunteers = yes
			}
		}
	}

	#democratic stuff - being good guys this time

	focus = {
		id = SOV_solidify_the_provisional_government
		icon = GFX_focus_generic_russian_deal
		prerequisite = { focus = SOV_reformalize_the_role_of_the_patriarchate focus = SOV_consolidate_power }
		mutually_exclusive = { focus = SOV_reconvene_the_zemsky_sobor }
		x = 14
		y = 0
		relative_position_id = SOV_reconvene_the_zemsky_sobor

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_civil_war = no
			#has_idea = SOV_consolidate_power
		}

		completion_reward = {
			custom_effect_tooltip = SOV_solidify_the_provisional_government_tt
			SOV_aleksandr_kerensky = {
				clr_character_flag = SOV_exiled_flag
			}
			SOV_pavel_milyukov = {
				clr_character_flag = SOV_exiled_flag
			}
			SOV_aleksandr_verkhovsky = {
				clr_character_flag = SOV_exiled_flag
			}
			custom_effect_tooltip = SOV_recognized_country_tt
			set_rule = {
				can_join_factions = yes
				can_send_volunteers = yes
			}
		}
		search_filters = {  FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SOV_hold_emergency_elections
		icon = GFX_goal_generic_election
		prerequisite = { focus = SOV_solidify_the_provisional_government }
		x = 0
		y = 1
		relative_position_id = SOV_solidify_the_provisional_government

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_idea = SOV_aleksandr_kerensky
		}

		completion_reward = {
			add_political_power = 120
			country_event = { id = r56.soviet.30 hours = 12 }
			hidden_effect = {
				remove_ideas = SOV_aleksandr_kerensky
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_new_union_treaty_nsb
		text = SOV_new_union_treaty
		icon = GFX_goal_centralize_power
		prerequisite = { focus = SOV_hold_emergency_elections }
		mutually_exclusive = { focus = SOV_dissolve_the_treaty_agreement_nsb }
		x = 14
		y = 1
		relative_position_id = SOV_hold_emergency_elections

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			
		}

		completion_reward = {
			add_stability = -0.05
			add_popularity = {
				ideology = democratic 
				popularity = -0.1
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_deterrence_treaty_nsb
		text = SOV_deterrence_treaty
		icon = GFX_goal_generic_city_chain_forts
		prerequisite = { focus = SOV_new_union_treaty_nsb }
		x = 0
		y = 3
		relative_position_id = SOV_new_union_treaty_nsb

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			
		}

		completion_reward = {
			add_ideas = GEN_anti_invasion_I 
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SOV_dissolve_the_treaty_agreement_nsb
		text = SOV_dissolve_the_treaty_agreement
		icon = GFX_goal_generic_repeal_opressive_law
		prerequisite = { focus = SOV_hold_emergency_elections }
		mutually_exclusive = { focus = SOV_new_union_treaty_nsb }
		x = 10
		y = 1
		relative_position_id = SOV_hold_emergency_elections

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = democratic
			is_subject = no
			any_controlled_state = {
				OR = {
					is_core_of = UKR
					is_core_of = BLR
					is_core_of = GEO
					is_core_of = ARM
					is_core_of = AZR
					is_core_of = KAZ
					is_core_of = KYR
					is_core_of = UZB
					is_core_of = TMS
					is_core_of = TAJ
				}
			}
		}

		bypass = {
		
		}

		completion_reward = {
			add_stability = 0.05
			add_political_power = 50
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_autonomy_for_the_west_nsb
		text = SOV_autonomy_for_the_west
		icon = GFX_goal_flag_ukraine2
		prerequisite = { focus = SOV_dissolve_the_treaty_agreement_nsb}
		x = -2
		y = 1
		relative_position_id = SOV_dissolve_the_treaty_agreement_nsb

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = democratic
			is_subject = no
			any_owned_state = {
				OR = {
					is_core_of = UKR
					is_core_of = BLR
				}
			}
			OR = {
				if = {
					limit = {
						UKR = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = UKR
					}
				}
				if = {
					limit = {
						BLR = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = BLR
					}
				}
			}
		}

		bypass = {
			OR = {
				all_owned_state = {
					NOT = {
						is_core_of = UKR
						is_core_of = BLR 
					}
				}
				AND = {
					has_war_with = UKR
					has_war_with = BLR
				}
			}
		}

		completion_reward = {
			# Ukraine
			if = {
				limit = {
					UKR = {
						exists = no
					}
				}
				release_autonomy = {
					target = UKR
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				UKR = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					UKR = {
						inherit_technology = ROOT
						202 = {
							create_unit = {
								division = "name = \"1ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UKR
							}
							create_unit = {
								division = "name = \"2ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UKR
							}
							create_unit = {
								division = "name = \"1ya Mekhanizirovaniy Korpus\" division_template = \"Mekhanizirovaniy Korpus\" start_experience_factor = 0.1 start_equipment_factor = 0.5 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UKR
							}
						}
						221 = {
							create_unit = {
								division = "name = \"3ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UKR
							}
							create_unit = {
								division = "name = \"4ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UKR
							}
						}
						226 = {
							create_unit = {
								division = "name = \"5ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UKR
							}
						}
						226 = {
							create_unit = {
								division = "name = \"6ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UKR
							}
						}
						198 = {
							create_unit = {
								division = "name = \"7ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UKR
							}
						}
						227 = {
							create_unit = {
								division = "name = \"8ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UKR
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						UKR = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					UKR = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = UKR
				UKR = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
			# Belarus
			if = {
				limit = {
					BLR = {
						exists = no
					}
				}
				release_autonomy = {
					target = BLR
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				BLR = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					BLR = {
						inherit_technology = ROOT
						206 = {
							create_unit = {
								division = "name = \"1ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = BLR
							}
							create_unit = {
								division = "name = \"2ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = BLR
							}
						}
						207 = {
							create_unit = {
								division = "name = \"3ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = BLR
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						BLR = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					BLR = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = BLR
				BLR = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
		}
		search_filters = { FOCUS_FILTER_TFV_AUTONOMY }
	}

	focus = {
		id = SOV_autonomy_for_the_caucasus_nsb
		text = SOV_autonomy_for_the_caucasus
		icon = GFX_goal_ARM_flag
		prerequisite = { focus = SOV_dissolve_the_treaty_agreement_nsb}
		x = 0
		y = 1
		relative_position_id = SOV_dissolve_the_treaty_agreement_nsb

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = democratic
			is_subject = no
			any_owned_state = {
				OR = {
					is_core_of = GEO
					is_core_of = ARM
					is_core_of = AZR
				}
			}
			OR = {
				if = {
					limit = {
						GEO = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = GEO
					}
				}
				if = {
					limit = {
						ARM = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = ARM
					}
				}
				if = {
					limit = {
						AZR = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = AZR
					}
				}
			}
		}

		bypass = {
			OR = {
				all_owned_state = {
					NOT = {
						is_core_of = GEO
						is_core_of = ARM
						is_core_of = AZR
					}
				}
				AND = {
					has_war_with = GEO
					has_war_with = ARM
					has_war_with = AZR
				}
			}
		}

		completion_reward = {
			# Georgia
			if = {
				limit = {
					GEO = {
						exists = no
					}
				}
				release_autonomy = {
					target = GEO
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				GEO = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					GEO = {
						inherit_technology = ROOT
						division_template = {
							name = "Stolichnaya Gvardiya"
						
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
							}
						}
						231 = {
							create_unit = {
								division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = GEO
							}
							create_unit = {
								division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = GEO
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						GEO = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					GEO = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = GEO
				GEO = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
			# Armenia
			if = {
				limit = {
					ARM = {
						exists = no
					}
				}
				release_autonomy = {
					target = ARM
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				else = {
					ROOT = {
						release_puppet = ARM
					}
				}
				ARM = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					ARM = {
						inherit_technology = ROOT
						division_template = {
							name = "Stolichnaya Gvardiya"
						
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
							}
						}
						230 = {
							create_unit = {
								division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = ARM
							}
							create_unit = {
								division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = ARM
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						ARM = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					ARM = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = ARM
				ARM = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
			# Azerbaijan
			if = {
				limit = {
					AZR = {
						exists = no
					}
				}
				release_autonomy = {
					target = AZR
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				AZR = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					AZR = {
						inherit_technology = ROOT
						division_template = {
							name = "Stolichnaya Gvardiya"
						
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
							}
						}
						229 = {
							create_unit = {
								division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = GEO
							}
							create_unit = {
								division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = GEO
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						AZR = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					AZR = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = AZR
				AZR = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
		}
		search_filters = { FOCUS_FILTER_TFV_AUTONOMY }
	}

	focus = {
		id = SOV_autonomy_for_the_central_asia_nsb
		text = SOV_autonomy_for_central_asia
		icon = GFX_focus_generic_self_management
		prerequisite = { focus = SOV_dissolve_the_treaty_agreement_nsb}
		x = 2
		y = 1
		relative_position_id = SOV_dissolve_the_treaty_agreement_nsb

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = democratic
			is_subject = no
			any_owned_state = {
				OR = {
					is_core_of = KAZ
					is_core_of = UZB
					is_core_of = TMS
					is_core_of = KYR
					is_core_of = TAJ
				}
			}
			OR = {
				if = {
					limit = {
						KAZ = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = KAZ
					}
				}
				if = {
					limit = {
						UZB = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = UZB
					}
				}
				if = {
					limit = {
						TMS = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = TMS
					}
				}
				if = {
					limit = {
						KYR = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = KYR
					}
				}
				if = {
					limit = {
						TAJ = {
							exists = yes
						}
					}
					NOT = {
						has_war_with = TAJ
					}
				}
			}
		}

		bypass = {
			OR = {
				all_owned_state = {
					NOT = {
						is_core_of = KAZ
						is_core_of = UZB
						is_core_of = TMS
						is_core_of = KYR
						is_core_of = TAJ
					}
				}
				AND = {
					has_war_with = KAZ
					has_war_with = UZB
					has_war_with = TMS
					has_war_with = KYR
					has_war_with = TAJ
				}
			}
		}

		completion_reward = {
			# Kazakhstan
			if = {
				limit = {
					KAZ = {
						exists = no
					}
				}
				release_autonomy = {
					target = KAZ
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				KAZ = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					KAZ = {
						inherit_technology = ROOT
						division_template = {
							name = "Stolichnaya Gvardiya"
						
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
							}
						}
						586 = {
							create_unit = {
								division = "name = \"1ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = KAZ
							}
						}
						590 = {
							create_unit = {
								division = "name = \"2ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = KAZ
							}
						}
						402 = {
							create_unit = {
								division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = KAZ
							}
						}
						404 = {
							create_unit = {
								division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = KAZ
							}
						}
						588 = {
							create_unit = {
								division = "name = \"3ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = KAZ
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						GEO = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					KAZ = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = KAZ
				KAZ = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
			# Uzbekistan
			if = {
				limit = {
					UZB = {
						exists = no
					}
				}
				release_autonomy = {
					target = UZB
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				UZB = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					UZB = {
						inherit_technology = ROOT
						division_template = {
							name = "Stolichnaya Gvardiya"
						
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
							}
						}
						405 = {
							create_unit = {
								division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UZB
							}
						}
						823 = {
							create_unit = {
								division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = UZB
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						UZB = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					UZB = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = UZB
				UZB = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
			# Turkmenistan
			if = {
				limit = {
					TMS = {
						exists = no
					}
				}
				release_autonomy = {
					target = TMS
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				TMS = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					TMS = {
						inherit_technology = ROOT
						division_template = {
							name = "Stolichnaya Gvardiya"
						
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
							}
						}
						584 = {
							create_unit = {
								division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = TMS
							}
							create_unit = {
								division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = TMS
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						TMS = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					TMS = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = TMS
				TMS = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
			# Kyrgyzstan
			if = {
				limit = {
					KYR = {
						exists = no
					}
				}
				release_autonomy = {
					target = KYR
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				else = {
					ROOT = {
						release_puppet = KYR
					}
				}
				KYR = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					KYR = {
						inherit_technology = ROOT
						division_template = {
							name = "Stolichnaya Gvardiya"
						
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
							}
						}
						732 = {
							create_unit = {
								division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = KYR
							}
							create_unit = {
								division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = KYR
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						KYR = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					KYR = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = KYR
				KYR = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
			# Kyrgyzstan
			if = {
				limit = {
					TAJ = {
						exists = no
					}
				}
				release_autonomy = {
					target = TAJ
					autonomy_state = autonomy_dominion
					freedom_level = 0.4
				}
				TAJ = {
					add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
				}
				hidden_effect = {
					TAJ = {
						inherit_technology = ROOT
						division_template = {
							name = "Stolichnaya Gvardiya"
						
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
							}
						}
						742 = {
							create_unit = {
								division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = TAJ
							}
							create_unit = {
								division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
								owner = TAJ
							}
						}
					}
					every_other_country = {
						limit = {
							has_war_with = ROOT
						}
						TAJ = {
							add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
						}
					}
				}
			}
			else_if = {
				limit = {
					TAJ = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				release = TAJ
				TAJ = {
					add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
				}
			}
		}
		search_filters = { FOCUS_FILTER_TFV_AUTONOMY }
	}

	focus = {
		id = SOV_dissolve_the_ussr_nsb
		text = SOV_dissolve_the_ussr
		icon = GFX_goal_SOV_dissolve_the_ussr
		prerequisite = { focus = SOV_autonomy_for_the_west_nsb }
		prerequisite = { focus = SOV_autonomy_for_the_caucasus_nsb }
		prerequisite = { focus = SOV_autonomy_for_the_central_asia_nsb }
		x = 0
		y = 2
		relative_position_id = SOV_dissolve_the_treaty_agreement_nsb

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = democratic
			is_subject = no
			OR = {
				UKR = {
					is_subject_of = ROOT
				}
				BLR = {
					is_subject_of = ROOT
				}
				GEO = {
					is_subject_of = ROOT
				}
				ARM = {
					is_subject_of = ROOT
				}
				AZR = {
					is_subject_of = ROOT
				}
				KAZ = {
					is_subject_of = ROOT
				}
				UZB = {
					is_subject_of = ROOT
				}
				TMS = {
					is_subject_of = ROOT
				}
				KYR = {
					is_subject_of = ROOT
				}
				TAJ = {
					is_subject_of = ROOT
				}
			}
		}

		completion_reward = {
			add_stability = 0.1
			every_other_country = {
				limit = {
					OR = {
						original_tag = UKR
						original_tag = BLR
						original_tag = GEO
						original_tag = ARM
						original_tag = AZR
						original_tag = KAZ
						original_tag = UZB
						original_tag = TMS
						original_tag = KYR
						original_tag = TAJ
					}
					is_subject_of = ROOT
				}
				ROOT = {
					set_autonomy = {
						target = PREV
						autonomy_state = autonomy_free
						end_wars = no
						end_civil_wars = no
					}
				}
				add_stability = 0.05
			}
			if = {
				limit = {
					has_government = democratic
				}
				set_cosmetic_tag = SOV_RUS_FEDERATION
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_TFV_AUTONOMY }
	}
	
	focus = {
		id = SOV_return_russian_industries_nsb
		text = SOV_return_russian_industries
		icon = GFX_goal_generic_economics_reform
		prerequisite = { focus = SOV_dissolve_the_ussr_nsb }
		x = -1
		y = 1
		relative_position_id = SOV_dissolve_the_ussr_nsb

		cost = 7.2

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 195 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 217 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 219 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SOV_evacuate_russian_military_assets_nsb
		text = SOV_evacuate_russian_military_assets
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = SOV_dissolve_the_ussr_nsb }
		x = 1
		y = 1
		relative_position_id = SOV_dissolve_the_ussr_nsb

		cost = 7.2

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_manpower = 200000
			add_war_support = 0.05
			random_owned_controlled_state = {
				prioritize = { 218 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					arms_factory > 1
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					arms_factory > 1
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SOV_support_young_republics_nsb
		text = SOV_support_young_republics
		icon = GFX_goal_generic_positive_trade_relations_gold
		prerequisite = { focus = SOV_return_russian_industries_nsb }
		x = -1
		y = 2
		relative_position_id = SOV_dissolve_the_ussr_nsb

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
			has_war = no
			has_government = democratic
		}

		completion_reward = {
			every_other_country = {
				limit = {
					OR = {
						original_tag = UKR
						original_tag = BLR
						original_tag = GEO
						original_tag = ARM
						original_tag = AZR
						original_tag = KAZ
						original_tag = UZB
						original_tag = TMS
						original_tag = KYR
						original_tag = TAJ
					}
					OR = {
						has_government = democratic
						has_government = neutrality 
					}
					NOT = {				
						has_war_with = ROOT
					}
				}
				add_timed_idea = {
					idea = SOV_industrial_assistance
					days = 365
				}
				add_opinion_modifier = { target = ROOT modifier = medium_increase }
			}
		}
	}

	focus = {
		id = SOV_move_towards_isolationism_nsb
		text = SOV_move_towards_isolationism
		icon = GFX_goal_generic_neutrality_focus
		prerequisite = { focus = SOV_return_russian_industries_nsb focus = SOV_evacuate_russian_military_assets_nsb focus = SOV_deterrence_treaty_nsb }
		mutually_exclusive = { focus = SOV_the_free_russian_people_nsb }
		x = 6
		y = 3
		relative_position_id = SOV_dissolve_the_ussr_nsb

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
			is_in_faction = no
			has_war = no
		}

		completion_reward = {
			add_ideas = neutrality_idea
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}

	focus = {
		id = SOV_the_free_russian_people_nsb
		text = SOV_the_free_russian_people
		icon = GFX_goal_SOV_the_moscow_accords
		prerequisite = { focus = SOV_return_russian_industries_nsb focus = SOV_evacuate_russian_military_assets_nsb focus = SOV_deterrence_treaty_nsb }
		mutually_exclusive = { focus = SOV_move_towards_isolationism_nsb }
		x = 2
		y = 3
		relative_position_id = SOV_dissolve_the_ussr_nsb

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
			has_government = democratic
			is_in_faction = no
			any_other_country = {
				OR = {
					original_tag = UKR
					original_tag = BLR
					original_tag = GEO
					original_tag = ARM
					original_tag = AZR
					original_tag = KAZ
					original_tag = UZB
					original_tag = TMS
					original_tag = KYR
					original_tag = TAJ
				}
				OR = {
					has_government = democratic
					has_government = neutrality 
				}
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			is_in_faction = yes
		}

		completion_reward = {
			set_rule = {
				can_create_factions = yes
			}
			create_faction = free_russian_peoples_faction
			every_other_country = {
				limit = {
					OR = {
						original_tag = UKR
						original_tag = BLR
						original_tag = GEO
						original_tag = ARM
						original_tag = AZR
						original_tag = KAZ
						original_tag = UZB
						original_tag = TMS
						original_tag = KYR
						original_tag = TAJ
					}
					OR = {
						has_government = democratic
						has_government = neutrality 
					}
					NOT = {				
						has_war_with = ROOT
					}
				}
				country_event = { id = r56.soviet.38 hours = 4 }
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}
	
	focus = {
		id = SOV_baltic_freedom_nsb
		text = SOV_baltic_freedom
		icon = GFX_goal_SOV_true_baltic_freedom
		prerequisite = { focus = SOV_the_free_russian_people_nsb }
		x = -1
		y = 1
		relative_position_id = SOV_the_free_russian_people_nsb

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
			has_government = democratic
			any_other_country = {
				OR = {
					original_tag = LIT
					original_tag = LAT
					original_tag = EST
					original_tag = FIN
				}
				OR = {
					has_government = democratic
					has_government = neutrality 
				}
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			is_in_faction_with = LIT
			is_in_faction_with = LAT
			is_in_faction_with = EST
			is_in_faction_with = FIN
		}

		completion_reward = {
			if = {
				limit = {
					has_global_flag = sov_yes_pact
					LIT = {
						exists = yes
						is_in_faction = no
						is_subject = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				SOV = {
					remove_state_claim = 11
					remove_state_claim = 189
					remove_state_claim = 784
				}
			}
			if = {
				limit = {
					LIT = {
						exists = yes
						is_in_faction = no
						is_subject = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				LIT = {
					country_event = { id = r56.soviet.38 hours = 4 }
				}
			}
			if = {
				limit = {
					has_global_flag = sov_yes_pact
					LAT = {
						exists = yes
						is_in_faction = no
						is_subject = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				SOV = {
					remove_state_claim = 12
					remove_state_claim = 190
				}
			}
			if = {
				limit = {
					LAT = {
						exists = yes
						is_in_faction = no
						is_subject = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				LAT = {
					country_event = { id = r56.soviet.38 hours = 4 }
				}
			}
			if = {
				limit = {
					has_global_flag = sov_yes_pact
					EST = {
						exists = yes
						is_in_faction = no
						is_subject = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				SOV = {
					remove_state_claim = 13
					remove_state_claim = 191
				}
			}
			if = {
				limit = {
					EST = {
						exists = yes
						is_in_faction = no
						is_subject = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				EST = {
					country_event = { id = r56.soviet.38 hours = 4 }
				}
			}
			if = {
				limit = {
					has_global_flag = sov_yes_pact
					FIN = {
						exists = yes
						is_in_faction = no
						is_subject = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				SOV = {
					remove_state_claim = 146
					remove_state_claim = 147
					remove_state_claim = 722
				}
			}
			if = {
				limit = {
					FIN = {
						exists = yes
						is_in_faction = no
						is_subject = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				FIN = {
					country_event = { id = r56.soviet.38 hours = 4 } 
				}
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}

	focus = {
		id = SOV_polish_autonomy_nsb
		text = SOV_polish_autonomy
		icon = GFX_goal_SOV_propose_polish_alliance
		prerequisite = { focus = SOV_the_free_russian_people_nsb }
		x = 1
		y = 1
		relative_position_id = SOV_the_free_russian_people_nsb

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			POL = {
				exists = yes
				NOT = { is_in_faction_with = SOV }
				NOT = {
					has_war_with = SOV
				}
				NOT = {
					has_government = fascism
					has_government = communism
				}
			}
		}

		bypass = {
			is_in_faction_with = POL
			has_guaranteed = POL
		}

		completion_reward = {
			if = {
				limit = {
					has_global_flag = sov_yes_pact
					POL = {
						exists = yes
						NOT = { is_in_faction_with = SOV }
						is_subject = no
					}
				}
				SOV = {
					remove_state_claim = 96
					remove_state_claim = 95
					remove_state_claim = 94
					remove_state_claim = 97
					remove_state_claim = 93
					remove_state_claim = 91
					remove_state_claim = 89
					remove_state_claim = 934
					remove_state_claim = 935
					remove_state_claim = 936
				}
			}
			POL = {
				country_event = { id = r56.soviet.38 hours = 4 }
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}
	
	focus = {
		id = SOV_strike_the_eagle_nsb
		text = SOV_strike_the_eagle
		icon = GFX_focus_attack_germany
		prerequisite = { focus = SOV_baltic_freedom_nsb }
		
		available = {
			is_subject = no
			if = {
				limit = {
					country_exists = GER
				}
				NOT = {
					is_in_faction_with = GER
				}
				GER = {
					NOT = {
						is_subject_of = ROOT
					}
				}
			}
			if = {
				limit = {
					NOT = {
						country_exists = GER
					}
					country_exists = PRE
				}
				NOT = {
					is_in_faction_with = PRE
				}
				PRE = {
					NOT = {
						is_subject_of = ROOT
					}
				}
			}
		}

		bypass = {
			OR = {
				AND = {
					NOT = { country_exists = GER }
					has_war_with = PRE
				}
				AND = {
					NOT = { country_exists = PRE }
					has_war_with = GER
				}
			}
		}

		will_lead_to_war_with = GER
		will_lead_to_war_with = PRE
		x = 0
		y = 1
		relative_position_id = SOV_baltic_freedom_nsb
		cost = 5
		ai_will_do = {
			factor = 0.2

			modifier = {
				factor = 0

				OR = {
					any_enemy_country = {
						is_neighbor_of = ROOT
					}
					alliance_strength_ratio > 0.9
				}
			}
		}
		completion_reward = {
			if = {
				limit = {
					country_exists = GER
				}
				create_wargoal = {
					type = topple_government
					target = GER
					expire = 0
				}
			}
			else_if = {
				limit = {
					country_exists = PRE
				}
				create_wargoal = {
					type = topple_government
					target = PRE
					expire = 0
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = SOV_form_solider_committees_nsb
		text = SOV_form_solider_committees
		icon = GFX_goal_generic_army_mobilization
		prerequisite = { focus = SOV_hold_emergency_elections }
		x = 1
		y = 1
		relative_position_id = SOV_hold_emergency_elections

		cost = 7.2

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_ideas = SOV_solider_committees			
		}
	}

	focus = {
		id = SOV_the_new_russian_army_nsb
		text = SOV_the_new_russian_army
		icon = GFX_goal_generic_democratic_army
		prerequisite = { focus = SOV_agrarian_socialism_nsb }
		prerequisite = { focus = SOV_form_solider_committees_nsb }
		x = -1
		y = 1
		relative_position_id = SOV_form_solider_committees_nsb

		cost = 10

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			swap_ideas = {
				remove_idea = SOV_solider_committees
				add_idea = SOV_the_new_russian_army
			}
			custom_effect_tooltip = SOV_the_new_russian_army_tooltip
			add_tech_bonus = {
				name = SOV_the_new_russian_army
				bonus = 0.75
				uses = 2
				category = infantry_weapons
				category = artillery
			}
            division_template = {
                name = "Respublikanskiy Spetsnaz"
                priority = 0
                regiments = {
                    mountaineers = { x = 0 y = 0 }
                    mountaineers = { x = 0 y = 1 }
                    mountaineers = { x = 0 y = 2 }
                    mountaineers = { x = 0 y = 3 }
					mountaineers = { x = 1 y = 0 }
                    mountaineers = { x = 1 y = 1 }
                    mountaineers = { x = 1 y = 2 }
                    mountaineers = { x = 1 y = 3 }
					mountaineers = { x = 2 y = 0 }
                    mountaineers = { x = 2 y = 1 }
                    mountaineers = { x = 2 y = 2 }
					artillery_brigade = { x = 3 y = 0 }
					artillery_brigade = { x = 3 y = 1 }
                }
                support = {
					engineer = { x = 0 y = 0 }
                    recon = { x = 0 y = 1 }
					anti_tank = { x = 0 y = 2 }
                }
            }
            hidden_effect = {
                219 = {
                    create_unit = {
                        division = "name = \"1a Respublikanskiy Spetsnaz\" division_template = \"Respublikanskiy Spetsnaz\" start_experience_factor = 0.2 start_equipment_factor = 0.8 force_equipment_variants = { infantry_equipment_0 = { owner = SOV } }"
                        owner = SOV
                    }
                    create_unit = {
                        division = "name = \"2a Respublikanskiy Spetsnaz\" division_template = \"Respublikanskiy Spetsnaz\" start_experience_factor = 0.2 start_equipment_factor = 0.8 force_equipment_variants = { infantry_equipment_0 = { owner = SOV } }"
                        owner = SOV
                    }
                }
				195 = {
                    create_unit = {
                        division = "name = \"3a Respublikanskiy Spetsnaz\" division_template = \"Respublikanskiy Spetsnaz\" start_experience_factor = 0.2 start_equipment_factor = 0.8 force_equipment_variants = { infantry_equipment_0 = { owner = SOV } }"
                        owner = SOV
                    }
                }
				217 = {
                    create_unit = {
                        division = "name = \"4a Respublikanskiy Spetsnaz\" division_template = \"Respublikanskiy Spetsnaz\" start_experience_factor = 0.2 start_equipment_factor = 0.8 force_equipment_variants = { infantry_equipment_0 = { owner = SOV } }"
                        owner = SOV
                    }
                }
			}			
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_MANPOWER FOCUS_FILTER_MILITARY_EQUIPMENT }
	}

	focus = {
		id = SOV_rebuild_the_duma_nsb
		text = SOV_rebuild_the_duma
		icon = GFX_goal_generic_multipartism
		prerequisite = { focus = SOV_hold_emergency_elections }
		available = {
			has_government = democratic
		}
		x = 4
		y = 1
		relative_position_id = SOV_hold_emergency_elections

		cost = 7.2

		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			add_timed_idea = {
				idea = SOV_rebuild_the_duma
				days = 365
			}
			
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_amnesty_for_political_opponents_nsb
		text = SOV_amnesty_for_political_opponents
		icon = GFX_goal_generic_foreign_diplomacy
		prerequisite = { focus = SOV_rebuild_the_duma_nsb }
		x = -1
		y = 1
		relative_position_id = SOV_rebuild_the_duma_nsb

		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_popularity = {
				ideology = democratic
				popularity = 0.05
			}
			add_political_power = 50
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_abolish_death_penalty_nsb
		text = SOV_abolish_death_penalty
		icon = GFX_goal_generic_deadly_treaty
		prerequisite = { focus = SOV_amnesty_for_political_opponents_nsb }
		prerequisite = { focus = SOV_form_solider_committees_nsb }
		x = -2
		y = 2
		relative_position_id = SOV_rebuild_the_duma_nsb

		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_political_power = 200
			add_stability = 0.1
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_agrarian_socialism_nsb
		text = SOV_agrarian_socialism
		icon = GFX_goal_generic_wheat
		prerequisite = { focus = SOV_hold_emergency_elections }
		x = -2
		y = 1
		relative_position_id = SOV_hold_emergency_elections

		cost = 7.2

		ai_will_do = {
			factor = 1
		}
		

		completion_reward = {
			add_ideas = SOV_agrarian_socialism
			random_owned_controlled_state  = {
				prioritize = { 221 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state  = {
				prioritize = { 218 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SOV_verkhovsky_funds_nsb
		text = SOV_verkhovsky_funds
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = SOV_agrarian_socialism_nsb }
		x = -1
		y = 1
		relative_position_id = SOV_agrarian_socialism_nsb

		cost = 7.2

		ai_will_do = {
			factor = 1
		}
		

		completion_reward = {
			swap_ideas = {
				remove_idea = SOV_agrarian_socialism
				add_idea = SOV_agrarian_socialism_2
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 2
						include_locked = yes
					}
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			if = {
				limit = {
					has_character = SOV_aleksandr_verkhovsky
				}
				custom_effect_tooltip = available_political_advisor
				show_ideas_tooltip = SOV_aleksandr_verkhovsky_idea
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_rebuild_the_republic_nsb
		text = SOV_rebuild_the_republic
		icon = GFX_focus_generic_the_giant_wakes
		prerequisite = { focus = SOV_agrarian_socialism_nsb }
		prerequisite = { focus = SOV_verkhovsky_funds_nsb }
		x = 0
		y = 2
		relative_position_id = SOV_agrarian_socialism_nsb

		cost = 7.2

		ai_will_do = {
			factor = 1
		}
		

		completion_reward = {
			swap_ideas = {
				remove_idea = SOV_agrarian_socialism_2
				add_idea = SOV_agrarian_socialism_3
			}
			add_tech_bonus = {
				name = SOV_rebuild_the_republic_nsb
				bonus = 1
				uses = 1
				category = construction_tech
			}
			
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SOV_create_a_national_directory_nsb
		text = SOV_create_a_national_directory
		icon = GFX_goal_generic_state_economy
		prerequisite = { focus = SOV_rebuild_the_republic_nsb }
		prerequisite = { focus = SOV_abolish_death_penalty_nsb }
		x = 2
		y = 3
		relative_position_id = SOV_agrarian_socialism_nsb

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = democratic
		}

		completion_reward = {
			swap_ruler_traits = {
				remove = socialist_revolutionary_leader
				add = legacy_of_1917
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_purge_religous_beurocracy_nsb
		text = SOV_purge_religous_beurocracy
		icon = GFX_goal_generic_backstab
		prerequisite = { focus = SOV_rebuild_the_duma_nsb }
		x = 1
		y = 1
		relative_position_id = SOV_rebuild_the_duma_nsb

		cost = 6

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_ideas = SOV_purge_religous_beurocracy
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL }
	}

	#focus = {
	#	id = SOV_constitutional_monarchy
	#	icon = GFX_goal_generic_dangerous_deal
	#	prerequisite = { focus = SOV_reconvene_the_zemsky_sobor }
	#	x = 6
	#	y = 1
	#	relative_position_id = SOV_reconvene_the_zemsky_sobor
	#	cost = 10
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	available = {
	#		has_civil_war = no
	#	}
#
	#	available_if_capitulated = yes
	#	
	#	completion_reward = {
	#		add_popularity = {
	#			ideology = fascism
	#			popularity = -0.3
	#		}	
	#		add_popularity = {
	#			ideology = democratic
	#			popularity = 0.2
	#		}	
	#	}
	#}
#
	#focus = {
	#	id = SOV_the_sobors_choice
	#	icon = GFX_goal_generic_dangerous_deal
	#	prerequisite = { focus = SOV_constitutional_monarchy }
	#	x = 0
	#	y = 1
	#	relative_position_id = SOV_constitutional_monarchy
	#	cost = 10
	#	ai_will_do = {
	#		factor = 1
	#	}
#
	#	available_if_capitulated = yes
	#	
	#	completion_reward = {
	#		recruit_character = SOV_tsar_vsevolod_ivanovich
	#		set_politics = {
	#			ruling_party = neutrality
	#			elections_allowed = yes
	#		}
	#		add_popularity = {
	#			ideology = democratic
	#			popularity = .1
	#		}
	#		add_popularity = {
	#			ideology = neutrality
	#			popularity = .1
	#		}
	#	}
	#}	




###

#ROAD TO 56 ALT-HIST
### COUNTER COUP

# Note that this tree assumes that you don't have NSB as it's only visible under that condition
focus = {
	id = SOV_form_a_fifth_column
	icon = GFX_goal_SOV_trot_destalinization
	mutually_exclusive = { focus = SOV_the_path_of_marxism_leninism }
	x = 53 #more to the left than DLC version since the right oppisition commie branch is DLC locked
	y = 0
	relative_position_id = SOV_the_path_of_marxism_leninism
	offset = {
		x = -54
		y = 0
		trigger = { #Hides all communist 
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = SOV_form_a_fifth_column
		}
	}

	cost = 14.30

	allow_branch = {
		NOT = {
			has_dlc = "No Step Back" 
		}
	}

	ai_will_do = {
		factor = 5
	}

	available = {
		date < 1937.2.1
		custom_trigger_tooltip = {
			tooltip = SOV_no_major_purge_tt		
			check_variable = { SOV_great_purge_counter < 1 }
		}
	}

	bypass = {
		has_country_flag = trotsky_check
	}

	cancel_if_invalid = no
	continue_if_invalid = yes
	

	select_effect = {
		if = {
			limit = {
				OR = {
					has_country_leader = {
						character = SOV_iosif_stalin
						ruling_only = yes
					}
					has_country_leader = {
						character = SOV_kliment_voroshilov
						ruling_only = yes
					}
				}	
			}
			country_event = { id = r56.soviet.18 days = 1 }
		}
		set_country_flag = SOV_fifth_column_started
		set_country_flag = SOV_no_purge_events
		remove_ideas = SOV_genrikh_yagoda
		add_ideas = SOV_nikolay_yezhov
	}

	completion_reward = {
		SOV_remove_paranoia_effect = yes #REMOVE PARANOIA SYSTEM
		custom_effect_tooltip = SOV_fifth_column_nsb_tt
		hidden_effect = {
			set_country_flag = trotsky_check
			217 = { set_state_name = "Volgograd" }  #rename province too
			set_province_name = { id = 3529 name = "Volgograd"}
			country_event = { id = r56.soviet.24 days = 7 }
			news_event = { id = r56.soviet.27 days = 1 }
			if = {
				limit = {
					has_country_flag = vlasov_yes
				}
				set_country_flag = vlasov_help_coup
			}
			if = {
				limit = {
					has_country_flag =  yes_politcal_people
				}
				set_country_flag = yes_politcal_people_open
			}
			if = {
				limit = {
					has_country_flag = yes_generals
				}
				set_country_flag = yes_generals_open
			}
			if = {
				limit = {
					has_country_flag = yes_to_exiles_1
					NOT = {
						has_country_flag = yes_to_exiles_2
						has_country_flag = yes_to_exiles_3
					}
				}
				add_ideas = SOV_internal_chaos_1
				add_timed_idea = {
					idea = officers_purged_civil_war
					days = 2040
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.02
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.06
				}
				add_popularity = {
					ideology = fascism
					popularity = 0.02
				}
			}
			if = {
				limit = {
					has_country_flag = yes_to_exiles_1
					has_country_flag = yes_to_exiles_2
					NOT = {
						has_country_flag = yes_to_exiles_3
					}
				}
				add_ideas = SOV_internal_chaos_2
				add_timed_idea = {
					idea = officers_purged_civil_war
					days = 1940
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.05
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.14
				}
				add_popularity = {
					ideology = fascism
					popularity = 0.07
				}
			}
			if = {
				limit = {
					has_country_flag = yes_to_exiles_1
					has_country_flag = yes_to_exiles_2
					has_country_flag = yes_to_exiles_3
				}
				add_ideas = SOV_internal_chaos_3
				add_timed_idea = {
					idea = officers_purged_civil_war
					days = 1840
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.09
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.29
				}
				add_popularity = {
					ideology = fascism
					popularity = 0.1
				}
			}
			remove_ideas = trotskyite_plot
			remove_ideas = trotskyite_plot_nsb
			set_global_flag = soviet_civil_war_1
			country_event = { id = r56.soviet.24 days = 7 }
			clr_country_flag = SOV_fifth_column_started
			set_cosmetic_tag = SOV2
			set_country_flag = counter_purge
			remove_ideas = mikhail_kalinin
			remove_ideas = ivan_konev
			if = { limit = { has_unit_leader = 408 } random_unit_leader = { limit = { has_id = 408 } retire = yes } }
			remove_ideas = pavel_zhigarev
			remove_ideas = stepan_krasovsky
			remove_ideas = arseniy_golovko
			if = { limit = { has_unit_leader = 409 } random_unit_leader = { limit = { has_id = 409 } retire = yes } }
			remove_ideas = georgy_zhukov
			if = { limit = { has_unit_leader = 410 } random_unit_leader = { limit = { has_id = 410 } retire = yes } }
			remove_ideas = sergey_gorshkov
			if = { limit = { has_unit_leader = 411 } random_unit_leader = { limit = { has_id = 411 } retire = yes } }
			retire_character = SOV_iosif_stalin
			create_country_leader = {
				name = "Nikolay Yezhov"
				desc = "POLITICS_NIKOLAI_YEZHOV_DESC"
				picture = "gfx/leaders/SOV/r56_portrait_SOV_Nikolai_Yezhov.dds"
				expire = "1965.1.1"
				ideology = leninism
				traits = {
					political_dancer
				}
			}
			SOV_pavel_milyukov = { #required by next focus
				clr_character_flag = SOV_exiled_flag
			}
			mark_focus_tree_layout_dirty = yes
		}
	}
	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
}
focus = {
	id = SOV_counter_coup
	icon = GFX_counter_coup
	prerequisite = { focus = SOV_form_a_fifth_column }
	x = 0
	y = 1
	relative_position_id = SOV_form_a_fifth_column

	cost = 10

	ai_will_do = {
		factor = 50
	}

	available = { #AI taking these decisions can actually be managed in the strategy plans
		#if = {
		#Not needed anymore due to nsb
		#	limit = {
		#		is_ai = no
		#	}
		#date < 1939.01.1
		#}
		has_civil_war = no
		has_idea = SOV_pavel_milyukov #added
		has_idea = SOV_andrey_vlasov #modified
		has_idea = SOV_anatoly_rogozhin #added
		has_idea = SOV_konstantin_nechaev #added but broken?
	}

	completion_reward = {
		custom_effect_tooltip = SOV_counter_coup_tt
		hidden_effect = {
			set_country_flag = counter_coup_purge
			#effects of above flag and remove_unit_leader's but on characters vvv
			retire_character = SOV_vyacheslav_molotov
			retire_character = SOV_boris_shaposhnikov
			retire_character = SOV_nikolay_yezhov
			retire_character = SOV_mikhail_kalinin
			retire_character = SOV_kliment_voroshilov
			retire_character = SOV_georgy_zakharov
			retire_character = SOV_andrey_yeryomenko
			retire_character = SOV_ivan_fedyuninsky
			retire_character = SOV_kuzma_galitsky
			retire_character = SOV_semyon_budyonny
			retire_character = SOV_grigory_kulik
			217 = { set_state_name = "Tsaritsyn" }  #rename provinces too
			195 = { set_state_name = "St.Petersburg" }  
			252 = { set_state_name = "Nijni Novgorod" }
			247 = { set_state_name = "Tver" }
			653 = { set_state_name = "Yekaterinburg" }
			250 = { set_state_name = "Simbirsk" }
			251 = { set_state_name = "Samara" }
			set_province_name = { id = 3529 name = "Tsaritsyn"}
			set_province_name = { id = 3151 name = "St.Petersburg"}
			set_province_name = { id = 11375 name = "Nijni Novgorod"}
			set_province_name = { id = 6245 name = "Tver"}
			set_province_name = { id = 1821 name = "Yekaterinburg"}
			set_province_name = { id = 392 name = "Simbirsk"}
			set_province_name = { id = 11225 name = "Samara"}
			
			#TAJ
			742 = { set_state_name = "Tojikiston" }

			#UKR
			227 = { set_state_name = "Donetsk" }
			228 = { set_state_name = "Luhansk" }
			set_province_name = { id = 6474 name = "Donetsk"}
			set_province_name = { id = 9461 name = "Luhansk"}
			set_capital = { state = 195 }
			news_event = { id = r56.soviet.28 days = 1 }
			remove_ideas = SOV_revolutionized_industry_ghost
			remove_ideas = SOV_revolutionized_industry_1
			remove_ideas = SOV_revolutionized_industry_2
			remove_ideas = SOV_engineering_push
			remove_ideas = SOV_social_welfare_focus
			remove_ideas = SOV_invest_in_engineering_focus
			remove_ideas = SOV_transpolar_flights_idea
			remove_ideas = SOV_urbanization_focus
			remove_ideas = SOV_urbanization_focus_debuff
			remove_ideas = militarized_schools
			remove_ideas = workers_culture
			remove_ideas = progress_cult_focus
			remove_ideas = progress_cult_focus_2
			remove_ideas = socialist_science_focus
			remove_ideas = rehabilitated_military_focus
			remove_ideas = home_of_revolution
			remove_ideas = SOV_collectivist_propaganda
			remove_ideas = peoples_commissariat_focus
			dismantle_faction = yes
			add_popularity = {
				ideology = neutrality
				popularity = 0.27
			}
			set_politics = { ruling_party = neutrality }
			set_cosmetic_tag = SOV3
			retire_character = SOV_nikolay_yezhov
			create_country_leader = {
				name = "Andrey Vlasov"
				picture = "Portrait_Soviet_Andrey_Vlasov.dds"
				expire = "1965.1.1"
				ideology = oligarchism
				traits = {
					resilient_nationalist
				}
			}
			modify_timed_idea = {
				idea = officers_purged_civil_war
				days = 90
			}
			SOV_konstantin_rodzayevsky = {
				clr_character_flag = SOV_exiled_flag
			}
			SOV_aleksandr_kerensky = {
				clr_character_flag = SOV_exiled_flag
			}
			SOV_aleksandr_verkhovsky = {
				clr_character_flag = SOV_exiled_flag
			}
			# Set white general portraits for non-NSB owners
		}
	}
	search_filters = { FOCUS_FILTER_POLITICAL }
}

focus = {
	id = SOV_power_struggle
	icon = GFX_goal_centralize_power
	allow_branch = {
		not = {
			has_dlc = "No Step Back"
		}
	}
	x = 0
	y = 1
	relative_position_id = SOV_counter_coup

	prerequisite = { focus = SOV_counter_coup }

	cost = 10

	ai_will_do = {
		factor = 10
		}
	available = {
		#
	}

	bypass = {
		is_subject = yes
	}

	available_if_capitulated = yes


	completion_reward = {
		country_event = { id = r56.soviet.26 days = 1 }
	}
}

focus = {
	id = SOV_imprint_succession_into_law
	icon = GFX_goal_SOV_russian_monarchy
	mutually_exclusive = { focus = SOV_new_vozhd }
	mutually_exclusive = { focus = SOV_peoples_virtue }
	prerequisite = { focus = SOV_power_struggle }
	x = -4
	y = 1
	relative_position_id = SOV_power_struggle

	cost = 10

	ai_will_do = {
		factor = 10
	}
	available = {
		has_idea = SOV_boris_smyslovsky
		has_government = neutrality
		has_country_flag = SOV_czar_flag #this is just so the event has to be taken
	}

	completion_reward = {
		# DLC restricted portrait of course
		SOV_tsar_vladimir_kirillovich = { 
			set_portraits = {
				civilian = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Vladimir_Kirillovich.dds"
				}
			}
		}
		#hidden_effect = {
		#	retire_country_leader = yes
		#}
		set_party_name = {
			ideology = neutrality
			long_name = r56_SOV_neu
			name = r56_SOV_neu
		}
		# create_country_leader = {
		# 	name = "Kirill Vladimirovich"
		# 	desc = "POLITICS_KIRIL_VLADIMIROVICH_DESC"
		# 	picture = "r56_portrait_SOV_Kirill_Vladimirovich_Romanov.dds"
		# 	expire = "1965.1.1"
		# 	ideology = absolute_monarchism
		# 	traits = {
		# 		anti_communist
		# 	}
		# }
		promote_character = SOV_tsar_vladimir_kirillovich #different guy despite similar names, probably makes more sense since he didnt die in '38 like Vladimirovich
		add_political_power = 150
		set_cosmetic_tag = SOV3
	}
	search_filters = {  FOCUS_FILTER_POLITICAL  }
}

focus = {
	id = SOV_purge_splinter_factions
	icon = GFX_goal_generic_backstab
	prerequisite = { focus = SOV_imprint_succession_into_law}
	relative_position_id = SOV_imprint_succession_into_law
	x = -1
	y = 1

	cost = 5

	ai_will_do = {
		factor = 1
	}


	completion_reward = {
		add_popularity = {
			ideology = neutrality
			popularity = 0.15
		}
		add_political_power = 150
	}
	search_filters = {  FOCUS_FILTER_POLITICAL  }
}

focus = {
	id = SOV_white_exiles
	icon = GFX_goal_generic_into_fire
	prerequisite = { focus = SOV_purge_splinter_factions }
	x = -1
	y = 1
	relative_position_id = SOV_purge_splinter_factions

	cost = 5

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		custom_effect_tooltip = SOV_white_generals_tt
		#These guys have rt56 portraits avaliable instead of the DLC ones
		SOV_anton_denikin = { 
			set_portraits = {
				army = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Anton_Denikin.dds"
				}
			}
		}
		SOV_pyotr_krasnov = { 
			set_portraits = {
				army = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Piotr_Krasnow.dds"
					small = "GFX_idea_SOV_Piotr_Krasnow"
				}
			}
		}
		SOV_andrey_shkuro = { 
			set_portraits = {
				army = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Andrey_Shkuro.dds"
				}
			}
		}
		SOV_anatoly_rogozhin = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_konstantin_nechaev = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_boris_smyslovsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_anton_turkul = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_yevgeny_miller = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_fedor_abramov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_grigory_semenov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_ivan_barbovich = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_isaac_bykadorov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_bronislav_kaminsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_pavel_shatilov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_peter_pisarev = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_peter_popov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_vladimir_marushevsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_vladimir_vitkovsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_anatoly_pepelyaev = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_andrey_shkuro = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_anton_denikin = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_pyotr_krasnov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_boris_shteifon = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_mikhail_kedrov = {
			clr_character_flag = SOV_exiled_flag
		}		
		

		army_experience = 20
		modify_timed_idea = {
			idea = officers_purged_civil_war
			days = -100
		}
	}
}

focus = {
	id = SOV_adopt_soviet_policies
	icon = GFX_goal_constitution
	prerequisite = { focus = SOV_imprint_succession_into_law}
	relative_position_id = SOV_imprint_succession_into_law
	x = 1
	y = 1

	cost = 5

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		add_ideas = SOV_adopt_soviet_policies
	}
}

focus = {
	id = SOV_orthadox_resurgance
	icon = GFX_goal_orthodoxy
	prerequisite = { focus = SOV_adopt_soviet_policies}
	relative_position_id = SOV_adopt_soviet_policies
	x = 1
	y = 1

	cost = 5

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		add_war_support = 0.15
	}
}

focus = {
	id = SOV_reinstate_royal_exiles
	icon = GFX_goal_SOV_restore_royal_exiles_titles
	prerequisite = { focus = SOV_adopt_soviet_policies focus = SOV_purge_splinter_factions}
	relative_position_id = SOV_adopt_soviet_policies
	x = -1
	y = 1

	cost = 5

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		add_ideas = SOV_reinstate_royal_exiles
	}
}

focus = {
	id = SOV_accept_constituion
	icon = GFX_goal_SOV_autonomy_for_the_masses
	prerequisite = { focus = SOV_orthadox_resurgance focus = SOV_white_exiles}
	relative_position_id = SOV_orthadox_resurgance
	x = -2
	y = 1

	cost = 10

	ai_will_do = {
		factor = 1
	}
	completion_reward = {
		add_country_leader_trait = controversial_figurehead
	}
}


focus = {
	id = SOV_new_vozhd
	icon = GFX_goal_SOV_russian_nationalism
	mutually_exclusive = { focus = SOV_imprint_succession_into_law }
	mutually_exclusive = { focus = SOV_peoples_virtue }
	prerequisite = { focus = SOV_power_struggle }
	x = 2
	y = 1
	relative_position_id = SOV_power_struggle

	cost = 10

	ai_will_do = {
		factor = 0
	}
	available = {
		has_idea = konstantin_rodzaevsky
		has_government = fascism
	}

	completion_reward = {
		add_country_leader_trait = new_vozhd
	}
	search_filters = { FOCUS_FILTER_POLITICAL }
}

focus = {
	id = SOV_form_the_white_emigres
	icon = GFX_goal_generic_multinational_army
	prerequisite = { focus = SOV_new_vozhd }
	x = -1
	y = 1
	relative_position_id = SOV_new_vozhd
	mutually_exclusive = { focus = SOV_promote_the_asno_detachment }

	cost = 10

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
		add_ideas = SOV_form_the_white_emigres
		custom_effect_tooltip = SOV_white_generals_tt
		custom_effect_tooltip = SOV_emigres_tt
		hidden_effect = {	
			division_template = {
				name = "White Émigrés"
				priority = 2
				division_names_group = SOV_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
	
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
	
					infantry = { x = 2 y = 0 }
					infantry = { x = 2 y = 1 }
					infantry = { x = 2 y = 2 }
				}
			}
			random_owned_controlled_state = {
				prioritize = { 219 }
				create_unit = {
					division = "name = \"1. White Émigrés\" division_template = \"White Émigrés\" start_experience_factor = 1.0" 
					owner = SOV
				}
				create_unit = {
					division = "name = \"1. White Émigrés\" division_template = \"White Émigrés\" start_experience_factor = 1.0" 
					owner = SOV
				}
			}
		}
		SOV_anton_denikin = { 
			set_portraits = {
				army = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Anton_Denikin.dds"
				}
			}
		}
		SOV_pyotr_krasnov = { 
			set_portraits = {
				army = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Piotr_Krasnow.dds"
					small = "GFX_idea_SOV_Piotr_Krasnow"
				}
			}
		}
		SOV_andrey_shkuro = { 
			set_portraits = {
				army = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Andrey_Shkuro.dds"
				}
			}
		}
		SOV_anatoly_rogozhin = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_konstantin_nechaev = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_boris_smyslovsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_anton_turkul = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_yevgeny_miller = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_fedor_abramov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_grigory_semenov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_ivan_barbovich = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_isaac_bykadorov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_bronislav_kaminsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_pavel_shatilov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_peter_pisarev = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_peter_popov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_vladimir_marushevsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_vladimir_vitkovsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_anatoly_pepelyaev = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_andrey_shkuro = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_anton_denikin = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_pyotr_krasnov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_boris_shteifon = {
			clr_character_flag = SOV_exiled_flag
		}
	}
}

focus = {
	id = SOV_promote_the_asno_detachment
	icon = GFX_goal_generic_partisans
	prerequisite = { focus = SOV_new_vozhd }
	x = 1
	y = 1
	relative_position_id = SOV_new_vozhd
	mutually_exclusive = { focus = SOV_form_the_white_emigres }

	cost = 10

	ai_will_do = {
		factor = 5
	}

	completion_reward = {
		add_ideas = SOV_promote_the_asno_detachment
	}
}

focus = {
	id = SOV_follow_corportism
	icon = GFX_goal_generic_fascist_bills
	prerequisite = { focus = SOV_promote_the_asno_detachment focus = SOV_form_the_white_emigres }
	x = -1
	y = 1
	relative_position_id = SOV_promote_the_asno_detachment

	cost = 5

	ai_will_do = {
		factor = 5
	}

	completion_reward = {
		add_ideas = SOV_follow_corportism
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

focus = {
	id = SOV_impose_national_unions
	icon = GFX_goal_generic_citizens
	prerequisite = { focus = SOV_follow_corportism }
	x = 0
	y = 1
	relative_position_id = SOV_follow_corportism

	cost = 10

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
		random_owned_controlled_state  = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state  = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state  = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

focus = {
	id = SOV_reject_cosmopolitanism
	icon = GFX_goal_generic_uprising
	#GFX_goal_generic_uprising
	prerequisite = { focus = SOV_follow_corportism }
	x = -2
	y = 1
	relative_position_id = SOV_follow_corportism

	cost = 5

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
		add_political_power = 150
		add_stability = 0.1
		add_popularity = {
			ideology = fascism
			popularity = 0.15
		}
	}
	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
}

focus = {
	id = SOV_russian_women_fascist_movement
	icon = GFX_goal_womens_rights
	prerequisite = { focus = SOV_reject_cosmopolitanism }
	x = 1
	y = 1
	relative_position_id = SOV_reject_cosmopolitanism
	mutually_exclusive = { focus = SOV_union_of_fascist_little_ones}

	cost = 10

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
		add_ideas = SOV_russian_women_fascist_movement
	}
	search_filters = { FOCUS_FILTER_MANPOWER }
}

focus = {
	id = SOV_commit_to_the_orthodox_church
	icon = GFX_goal_orthodoxy
	prerequisite = { focus = SOV_follow_corportism }
	x = 2
	y = 1
	relative_position_id = SOV_follow_corportism

	cost = 5

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
		add_ideas = SOV_commit_to_the_orthodox_church
	}
	search_filters = { FOCUS_FILTER_POLITICAL  }
}


focus = {
	id = SOV_union_of_fascist_little_ones
	icon = GFX_goal_small_infantry
	prerequisite = { focus = SOV_commit_to_the_orthodox_church }
	x = -1
	y = 1
	relative_position_id = SOV_commit_to_the_orthodox_church
	mutually_exclusive = { focus = SOV_russian_women_fascist_movement}

	cost = 10

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
		add_ideas = SOV_union_of_fascist_little_ones
	}
}

focus = {
	id = SOV_all_russian_alligences
	icon = GFX_goal_SOV_the_all_russian_allegiance
	prerequisite = { focus = SOV_union_of_fascist_little_ones focus = SOV_russian_women_fascist_movement}
	x = -1
	y = 1
	relative_position_id = SOV_union_of_fascist_little_ones

	cost = 10

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
		custom_effect_tooltip = SOV_alligences_tt
		if = {
			limit = { has_idea = SOV_union_of_fascist_little_ones}
			swap_ideas = {
				remove_idea = SOV_union_of_fascist_little_ones
				add_idea = SOV_union_of_fascist_little_ones_2
			}
		}
		if = {
			limit = { has_idea = SOV_russian_women_fascist_movement}
			swap_ideas = {
				remove_idea = SOV_russian_women_fascist_movement
				add_idea = SOV_russian_women_fascist_movement_2
			}
		}
	}
	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
}


focus = {
	id = SOV_peoples_virtue
	icon = GFX_focus_generic_russian_deal
	mutually_exclusive = { focus = SOV_imprint_succession_into_law  }
	mutually_exclusive = { focus = SOV_new_vozhd }
	prerequisite = { focus = SOV_power_struggle }
	x = 7
	y = 1
	relative_position_id = SOV_power_struggle

	cost = 10

	ai_will_do = {
		factor = 1
	}

	available = {
		has_idea = SOV_aleksandr_kerensky
		has_government = democratic
	}

	completion_reward = {
		custom_effect_tooltip = SOV_bypass_tt
	}
	search_filters = {  FOCUS_FILTER_POLITICAL }
}

focus = {
	id = SOV_new_union_treaty
	icon = GFX_goal_centralize_power
	prerequisite = { focus = SOV_peoples_virtue }
	mutually_exclusive = { focus = SOV_dissolve_the_treaty_agreement }
	x = 13
	y = 1
	relative_position_id = SOV_peoples_virtue

	cost = 5

	ai_will_do = {
		factor = 1
	}

	available = {
		
	}

	completion_reward = {
		add_stability = -0.05
		add_popularity = {
			ideology = democratic 
			popularity = -0.1
		}
	}
	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
}

focus = {
	id = SOV_deterrence_treaty
	icon = GFX_goal_generic_city_chain_forts
	prerequisite = { focus = SOV_new_union_treaty }
	x = 0
	y = 3
	relative_position_id = SOV_new_union_treaty

	cost = 10

	ai_will_do = {
		factor = 1
	}

	available = {
		
	}

	completion_reward = {
		add_ideas = GEN_anti_invasion_I 
	}
	search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
}

focus = {
	id = SOV_dissolve_the_treaty_agreement
	icon = GFX_goal_generic_repeal_opressive_law
	prerequisite = { focus = SOV_peoples_virtue }
	mutually_exclusive = { focus = SOV_new_union_treaty }
	x = 9
	y = 1
	relative_position_id = SOV_peoples_virtue

	cost = 5

	ai_will_do = {
		factor = 1
	}

	available = {
		has_government = democratic
		is_subject = no
		any_controlled_state = {
			OR = {
				is_core_of = UKR
				is_core_of = BLR
				is_core_of = GEO
				is_core_of = ARM
				is_core_of = AZR
				is_core_of = KAZ
				is_core_of = KYR
				is_core_of = UZB
				is_core_of = TMS
				is_core_of = TAJ
			}
		}
	}

	bypass = {
	
	}

	completion_reward = {
		add_stability = 0.05
		add_political_power = 50
	}
	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
}

focus = {
	id = SOV_autonomy_for_the_west
	icon = GFX_goal_flag_ukraine2
	prerequisite = { focus = SOV_dissolve_the_treaty_agreement }
	x = -2
	y = 1
	relative_position_id = SOV_dissolve_the_treaty_agreement

	cost = 5

	ai_will_do = {
		factor = 1
	}

	available = {
		has_government = democratic
		is_subject = no
		any_owned_state = {
			OR = {
				is_core_of = UKR
				is_core_of = BLR
			}
		}
		OR = {
			if = {
				limit = {
					UKR = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = UKR
				}
			}
			if = {
				limit = {
					BLR = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = BLR
				}
			}
		}
	}

	bypass = {
		OR = {
			all_owned_state = {
				NOT = {
					is_core_of = UKR
					is_core_of = BLR 
				}
			}
			AND = {
				has_war_with = UKR
				has_war_with = BLR
			}
		}
	}

	completion_reward = {
		# Ukraine
		if = {
			limit = {
				UKR = {
					exists = no
				}
			}
			release_autonomy = {
				target = UKR
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			UKR = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				UKR = {
					inherit_technology = ROOT
					202 = {
						create_unit = {
							division = "name = \"1ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UKR
						}
						create_unit = {
							division = "name = \"2ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UKR
						}
						create_unit = {
							division = "name = \"1ya Mekhanizirovaniy Korpus\" division_template = \"Mekhanizirovaniy Korpus\" start_experience_factor = 0.1 start_equipment_factor = 0.5 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UKR
						}
					}
					221 = {
						create_unit = {
							division = "name = \"3ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UKR
						}
						create_unit = {
							division = "name = \"4ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UKR
						}
					}
					226 = {
						create_unit = {
							division = "name = \"5ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UKR
						}
					}
					226 = {
						create_unit = {
							division = "name = \"6ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UKR
						}
					}
					198 = {
						create_unit = {
							division = "name = \"7ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UKR
						}
					}
					227 = {
						create_unit = {
							division = "name = \"8ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UKR
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					UKR = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				UKR = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = UKR
			UKR = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
		# Belarus
		if = {
			limit = {
				BLR = {
					exists = no
				}
			}
			release_autonomy = {
				target = BLR
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			BLR = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				BLR = {
					inherit_technology = ROOT
					206 = {
						create_unit = {
							division = "name = \"1ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = BLR
						}
						create_unit = {
							division = "name = \"2ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = BLR
						}
					}
					207 = {
						create_unit = {
							division = "name = \"3ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = BLR
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					BLR = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				BLR = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = BLR
			BLR = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
	}
	search_filters = { FOCUS_FILTER_TFV_AUTONOMY }
}

focus = {
	id = SOV_autonomy_for_the_caucasus
	icon = GFX_goal_ARM_flag
	prerequisite = { focus = SOV_dissolve_the_treaty_agreement }
	x = 0
	y = 1
	relative_position_id = SOV_dissolve_the_treaty_agreement

	cost = 5

	ai_will_do = {
		factor = 1
	}

	available = {
		has_government = democratic
		is_subject = no
		any_owned_state = {
			OR = {
				is_core_of = GEO
				is_core_of = ARM
				is_core_of = AZR
			}
		}
		OR = {
			if = {
				limit = {
					GEO = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = GEO
				}
			}
			if = {
				limit = {
					ARM = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = ARM
				}
			}
			if = {
				limit = {
					AZR = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = AZR
				}
			}
		}
	}

	bypass = {
		OR = {
			all_owned_state = {
				NOT = {
					is_core_of = GEO
					is_core_of = ARM
					is_core_of = AZR
				}
			}
			AND = {
				has_war_with = GEO
				has_war_with = ARM
				has_war_with = AZR
			}
		}
	}

	completion_reward = {
		# Georgia
		if = {
			limit = {
				GEO = {
					exists = no
				}
			}
			release_autonomy = {
				target = GEO
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			GEO = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				GEO = {
					inherit_technology = ROOT
					division_template = {
						name = "Stolichnaya Gvardiya"
					
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
						}
					}
					231 = {
						create_unit = {
							division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = GEO
						}
						create_unit = {
							division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = GEO
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					GEO = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				GEO = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = GEO
			GEO = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
		# Armenia
		if = {
			limit = {
				ARM = {
					exists = no
				}
			}
			release_autonomy = {
				target = ARM
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			ARM = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				ARM = {
					inherit_technology = ROOT
					division_template = {
						name = "Stolichnaya Gvardiya"
					
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
						}
					}
					230 = {
						create_unit = {
							division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = ARM
						}
						create_unit = {
							division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = ARM
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					ARM = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				ARM = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = ARM
			ARM = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
		# Azerbaijan
		if = {
			limit = {
				AZR = {
					exists = no
				}
			}
			release_autonomy = {
				target = AZR
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			AZR = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				AZR = {
					inherit_technology = ROOT
					division_template = {
						name = "Stolichnaya Gvardiya"
					
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
						}
					}
					229 = {
						create_unit = {
							division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = GEO
						}
						create_unit = {
							division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = GEO
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					AZR = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				AZR = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = AZR
			AZR = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
	}
	search_filters = { FOCUS_FILTER_TFV_AUTONOMY }
}

focus = {
	id = SOV_autonomy_for_the_central_asia
	text = SOV_autonomy_for_central_asia
	icon = GFX_focus_generic_self_management
	prerequisite = { focus = SOV_dissolve_the_treaty_agreement }
	x = 2
	y = 1
	relative_position_id = SOV_dissolve_the_treaty_agreement

	cost = 5

	ai_will_do = {
		factor = 1
	}

	available = {
		has_government = democratic
		is_subject = no
		any_owned_state = {
			OR = {
				is_core_of = KAZ
				is_core_of = UZB
				is_core_of = TMS
				is_core_of = KYR
				is_core_of = TAJ
			}
		}
		OR = {
			if = {
				limit = {
					KAZ = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = KAZ
				}
			}
			if = {
				limit = {
					UZB = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = UZB
				}
			}
			if = {
				limit = {
					TMS = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = TMS
				}
			}
			if = {
				limit = {
					KYR = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = KYR
				}
			}
			if = {
				limit = {
					TAJ = {
						exists = yes
					}
				}
				NOT = {
					has_war_with = TAJ
				}
			}
		}
	}

	bypass = {
		OR = {
			all_owned_state = {
				NOT = {
					is_core_of = KAZ
					is_core_of = UZB
					is_core_of = TMS
					is_core_of = KYR
					is_core_of = TAJ
				}
			}
			AND = {
				has_war_with = KAZ
				has_war_with = UZB
				has_war_with = TMS
				has_war_with = KYR
				has_war_with = TAJ
			}
		}
	}

	completion_reward = {
		# Kazakhstan
		if = {
			limit = {
				KAZ = {
					exists = no
				}
			}
			release_autonomy = {
				target = KAZ
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			KAZ = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				KAZ = {
					inherit_technology = ROOT
					division_template = {
						name = "Stolichnaya Gvardiya"
					
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
						}
					}
					586 = {
						create_unit = {
							division = "name = \"1ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = KAZ
						}
					}
					590 = {
						create_unit = {
							division = "name = \"2ya Strelkovaya Diviziya\" division_template = \"Strelkovaya Diviziya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = KAZ
						}
					}
					402 = {
						create_unit = {
							division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = KAZ
						}
					}
					404 = {
						create_unit = {
							division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = KAZ
						}
					}
					588 = {
						create_unit = {
							division = "name = \"3ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = KAZ
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					GEO = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				KAZ = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = KAZ
			KAZ = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
		# Uzbekistan
		if = {
			limit = {
				UZB = {
					exists = no
				}
			}
			release_autonomy = {
				target = UZB
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			UZB = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				UZB = {
					inherit_technology = ROOT
					division_template = {
						name = "Stolichnaya Gvardiya"
					
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
						}
					}
					405 = {
						create_unit = {
							division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UZB
						}
					}
					823 = {
						create_unit = {
							division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = UZB
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					UZB = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				UZB = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = UZB
			UZB = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
		# Turkmenistan
		if = {
			limit = {
				TMS = {
					exists = no
				}
			}
			release_autonomy = {
				target = TMS
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			TMS = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				TMS = {
					inherit_technology = ROOT
					division_template = {
						name = "Stolichnaya Gvardiya"
					
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
						}
					}
					584 = {
						create_unit = {
							division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = TMS
						}
						create_unit = {
							division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = TMS
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					TMS = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				TMS = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = TMS
			TMS = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
		# Kyrgyzstan
		if = {
			limit = {
				KYR = {
					exists = no
				}
			}
			release_autonomy = {
				target = KYR
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			KYR = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				KYR = {
					inherit_technology = ROOT
					division_template = {
						name = "Stolichnaya Gvardiya"
					
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
						}
					}
					732 = {
						create_unit = {
							division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = KYR
						}
						create_unit = {
							division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = KYR
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					KYR = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				KYR = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = KYR
			KYR = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
		# Kyrgyzstan
		if = {
			limit = {
				TAJ = {
					exists = no
				}
			}
			release_autonomy = {
				target = TAJ
				autonomy_state = autonomy_dominion
				freedom_level = 0.4
			}
			TAJ = {
				add_opinion_modifier = { target = ROOT modifier = SOV_peaceful_liberation }
			}
			hidden_effect = {
				TAJ = {
					inherit_technology = ROOT
					division_template = {
						name = "Stolichnaya Gvardiya"
					
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
						}
					}
					742 = {
						create_unit = {
							division = "name = \"1ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = TAJ
						}
						create_unit = {
							division = "name = \"2ya Stolichnaya Gvardiya\" division_template = \"Stolichnaya Gvardiya\" start_experience_factor = 0.1 start_equipment_factor = 0.6 force_equipment_variants = { infantry_equipment_1 = { owner = SOV } }" 
							owner = TAJ
						}
					}
				}
				every_other_country = {
					limit = {
						has_war_with = ROOT
					}
					TAJ = {
						add_to_war = { targeted_alliance = ROOT enemy = PREV hostility_reason = asked_to_join }
					}
				}
			}
		}
		else_if = {
			limit = {
				TAJ = {
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
			}
			release = TAJ
			TAJ = {
				add_opinion_modifier = { target = ROOT modifier = SOV_returned_our_territory }
			}
		}
	}
	search_filters = { FOCUS_FILTER_TFV_AUTONOMY }
}

focus = {
	id = SOV_dissolve_the_ussr
	icon = GFX_goal_SOV_dissolve_the_ussr
	prerequisite = { focus = SOV_autonomy_for_the_west }
	prerequisite = { focus = SOV_autonomy_for_the_caucasus }
	prerequisite = { focus = SOV_autonomy_for_the_central_asia }
	x = 0
	y = 2
	relative_position_id = SOV_dissolve_the_treaty_agreement

	cost = 10

	ai_will_do = {
		factor = 1
	}

	available = {
		has_government = democratic
		is_subject = no
		OR = {
			UKR = {
				is_subject_of = ROOT
			}
			BLR = {
				is_subject_of = ROOT
			}
			GEO = {
				is_subject_of = ROOT
			}
			ARM = {
				is_subject_of = ROOT
			}
			AZR = {
				is_subject_of = ROOT
			}
			KAZ = {
				is_subject_of = ROOT
			}
			UZB = {
				is_subject_of = ROOT
			}
			TMS = {
				is_subject_of = ROOT
			}
			KYR = {
				is_subject_of = ROOT
			}
			TAJ = {
				is_subject_of = ROOT
			}
		}
	}

	completion_reward = {
		add_stability = 0.1
		every_other_country = {
			limit = {
				OR = {
					original_tag = UKR
					original_tag = BLR
					original_tag = GEO
					original_tag = ARM
					original_tag = AZR
					original_tag = KAZ
					original_tag = UZB
					original_tag = TMS
					original_tag = KYR
					original_tag = TAJ
				}
				is_subject_of = ROOT
			}
			ROOT = {
				set_autonomy = {
					target = PREV
					autonomy_state = autonomy_free
					end_wars = no
					end_civil_wars = no
				}
			}
			add_stability = 0.05
		}
		if = {
			limit = {
				has_government = democratic
			}
			set_cosmetic_tag = SOV_FED
		}
	}
	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_TFV_AUTONOMY }
}

focus = {
	id = SOV_return_russian_industries
	icon = GFX_goal_generic_economics_reform
	prerequisite = { focus = SOV_dissolve_the_ussr }
	x = -1
	y = 1
	relative_position_id = SOV_dissolve_the_ussr

	cost = 7.2

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		random_owned_controlled_state = {
			prioritize = { 195 }
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			prioritize = { 217 }
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			prioritize = { 219 }
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

focus = {
	id = SOV_evacuate_russian_military_assets
	icon = GFX_goal_generic_military_sphere
	prerequisite = { focus = SOV_dissolve_the_ussr }
	x = 1
	y = 1
	relative_position_id = SOV_dissolve_the_ussr

	cost = 7.2

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		add_manpower = 200000
		add_war_support = 0.05
		random_owned_controlled_state = {
			prioritize = { 218 }
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = dockyard
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			limit = {
				arms_factory > 1
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			limit = {
				arms_factory > 1
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
	}
	search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_INDUSTRY }
}

focus = {
	id = SOV_support_young_republics
	icon = GFX_goal_generic_positive_trade_relations
	prerequisite = { focus = SOV_return_russian_industries }
	x = -1
	y = 2
	relative_position_id = SOV_dissolve_the_ussr

	cost = 5

	ai_will_do = {
		factor = 1
	}

	available = {
		is_subject = no
		has_war = no
		has_government = democratic
	}

	completion_reward = {
		every_other_country = {
			limit = {
				OR = {
					original_tag = UKR
					original_tag = BLR
					original_tag = GEO
					original_tag = ARM
					original_tag = AZR
					original_tag = KAZ
					original_tag = UZB
					original_tag = TMS
					original_tag = KYR
					original_tag = TAJ
				}
				OR = {
					has_government = democratic
					has_government = neutrality 
				}
				NOT = {				
					has_war_with = ROOT
				}
			}
			add_timed_idea = {
				idea = SOV_industrial_assistance
				days = 365
			}
			add_opinion_modifier = { target = ROOT modifier = medium_increase }
		}
	}
}

focus = {
	id = SOV_move_towards_isolationism
	icon = GFX_goal_generic_neutrality_focus
	prerequisite = { focus = SOV_return_russian_industries focus = SOV_evacuate_russian_military_assets focus = SOV_deterrence_treaty }
	mutually_exclusive = { focus = SOV_the_free_russian_people }
	x = 6
	y = 3
	relative_position_id = SOV_dissolve_the_ussr

	cost = 10

	ai_will_do = {
		factor = 1
	}

	available = {
		is_subject = no
		is_in_faction = no
		has_war = no
	}

	completion_reward = {
		add_ideas = neutrality_idea
	}
	search_filters = { FOCUS_FILTER_ALLIANCE }
}

focus = {
	id = SOV_the_free_russian_people
	icon = GFX_goal_SOV_the_moscow_accords
	prerequisite = { focus = SOV_return_russian_industries focus = SOV_evacuate_russian_military_assets_nsb focus = SOV_deterrence_treaty }
	mutually_exclusive = { focus = SOV_move_towards_isolationism }
	x = 2
	y = 3
	relative_position_id = SOV_dissolve_the_ussr

	cost = 10

	ai_will_do = {
		factor = 1
	}

	allow_branch = {
		NOT = {
			has_dlc = "No Step Back"
		}
	}

	available = {
		is_subject = no
		has_government = democratic
		is_in_faction = no
		any_other_country = {
			OR = {
				original_tag = UKR
				original_tag = BLR
				original_tag = GEO
				original_tag = ARM
				original_tag = AZR
				original_tag = KAZ
				original_tag = UZB
				original_tag = TMS
				original_tag = KYR
				original_tag = TAJ
			}
			OR = {
				has_government = democratic
				has_government = neutrality 
			}
			NOT = {
				has_war_with = ROOT
			}
		}
	}

	bypass = {
		is_in_faction = yes
	}

	completion_reward = {
		set_rule = {
			can_create_factions = yes
		}
		create_faction = free_russian_peoples_faction
		every_other_country = {
			limit = {
				OR = {
					original_tag = UKR
					original_tag = BLR
					original_tag = GEO
					original_tag = ARM
					original_tag = AZR
					original_tag = KAZ
					original_tag = UZB
					original_tag = TMS
					original_tag = KYR
					original_tag = TAJ
				}
				OR = {
					has_government = democratic
					has_government = neutrality 
				}
				NOT = {				
					has_war_with = ROOT
				}
			}
			country_event = { id = r56.soviet.38 hours = 4 }
		}
	}
	search_filters = { FOCUS_FILTER_ALLIANCE }
}

focus = {
	id = SOV_baltic_freedom
	icon = GFX_goal_SOV_true_baltic_freedom
	prerequisite = { focus = SOV_the_free_russian_people }
	x = -1
	y = 1
	relative_position_id = SOV_the_free_russian_people

	cost = 10

	ai_will_do = {
		factor = 1
	}

	available = {
		is_subject = no
		has_government = democratic
		any_other_country = {
			OR = {
				original_tag = LIT
				original_tag = LAT
				original_tag = EST
				original_tag = FIN
			}
			OR = {
				has_government = democratic
				has_government = neutrality 
			}
			NOT = {
				has_war_with = ROOT
			}
		}
	}

	bypass = {
		is_in_faction_with = LIT
		is_in_faction_with = LAT
		is_in_faction_with = EST
		is_in_faction_with = FIN
	}

	completion_reward = {
		if = {
			limit = {
				has_global_flag = sov_yes_pact
				LIT = {
					exists = yes
					is_in_faction = no
					is_subject = no
					OR = {
						has_government = democratic
						has_government = neutrality
					}
				}
			}
			SOV = {
				remove_state_claim = 11
				remove_state_claim = 189
				remove_state_claim = 784
			}
		}
		if = {
			limit = {
				LIT = {
					exists = yes
					is_in_faction = no
					is_subject = no
					OR = {
						has_government = democratic
						has_government = neutrality
					}
				}
			}
			LIT = {
				country_event = { id = r56.soviet.38 hours = 4 }
			}
		}
		if = {
			limit = {
				has_global_flag = sov_yes_pact
				LAT = {
					exists = yes
					is_in_faction = no
					is_subject = no
					OR = {
						has_government = democratic
						has_government = neutrality
					}
				}
			}
			SOV = {
				remove_state_claim = 12
				remove_state_claim = 190
			}
		}
		if = {
			limit = {
				LAT = {
					exists = yes
					is_in_faction = no
					is_subject = no
					OR = {
						has_government = democratic
						has_government = neutrality
					}
				}
			}
			LAT = {
				country_event = { id = r56.soviet.38 hours = 4 }
			}
		}
		if = {
			limit = {
				has_global_flag = sov_yes_pact
				EST = {
					exists = yes
					is_in_faction = no
					is_subject = no
					OR = {
						has_government = democratic
						has_government = neutrality
					}
				}
			}
			SOV = {
				remove_state_claim = 13
				remove_state_claim = 191
			}
		}
		if = {
			limit = {
				EST = {
					exists = yes
					is_in_faction = no
					is_subject = no
					OR = {
						has_government = democratic
						has_government = neutrality
					}
				}
			}
			EST = {
				country_event = { id = r56.soviet.38 hours = 4 }
			}
		}
		if = {
			limit = {
				has_global_flag = sov_yes_pact
				FIN = {
					exists = yes
					is_in_faction = no
					is_subject = no
					OR = {
						has_government = democratic
						has_government = neutrality
					}
				}
			}
			SOV = {
				remove_state_claim = 146
				remove_state_claim = 147
				remove_state_claim = 722
			}
		}
		if = {
			limit = {
				FIN = {
					exists = yes
					is_in_faction = no
					is_subject = no
					OR = {
						has_government = democratic
						has_government = neutrality
					}
				}
			}
			FIN = {
				country_event = { id = r56.soviet.38 hours = 4 } 
			}
		}
	}
	search_filters = { FOCUS_FILTER_ALLIANCE }
}

focus = {
	id = SOV_polish_autonomy
	icon = GFX_goal_SOV_propose_polish_alliance
	prerequisite = { focus = SOV_the_free_russian_people }
	x = 1
	y = 1
	relative_position_id = SOV_the_free_russian_people

	cost = 10

	ai_will_do = {
		factor = 1
	}

	available = {
		POL = {
			exists = yes
			NOT = { is_in_faction_with = SOV }
			NOT = {
				has_war_with = SOV
			}
			NOT = {
				has_government = fascism
				has_government = communism
			}
		}
	}

	bypass = {
		is_in_faction_with = POL
		has_guaranteed = POL
	}

	completion_reward = {
		if = {
			limit = {
				has_global_flag = sov_yes_pact
				POL = {
					exists = yes
					NOT = { is_in_faction_with = SOV }
					is_subject = no
				}
			}
			SOV = {
				remove_state_claim = 96
				remove_state_claim = 95
				remove_state_claim = 94
				remove_state_claim = 97
				remove_state_claim = 93
				remove_state_claim = 91
				remove_state_claim = 89
				remove_state_claim = 934
				remove_state_claim = 935
				remove_state_claim = 936
			}
		}
		POL = {
			country_event = { id = r56.soviet.38 hours = 4 }
		}
	}
	search_filters = { FOCUS_FILTER_ALLIANCE }
}

focus = {
	id = SOV_strike_the_eagle
	icon = GFX_focus_attack_germany
	prerequisite = { focus = SOV_baltic_freedom }
	
	available = {
		is_subject = no
		if = {
			limit = {
				country_exists = GER
			}
			NOT = {
				is_in_faction_with = GER
			}
			GER = {
				NOT = {
					is_subject_of = ROOT
				}
			}
		}
		if = {
			limit = {
				NOT = {
					country_exists = GER
				}
				country_exists = PRE
			}
			NOT = {
				is_in_faction_with = PRE
			}
			PRE = {
				NOT = {
					is_subject_of = ROOT
				}
			}
		}
	}

	bypass = {
		OR = {
			AND = {
				NOT = { country_exists = GER }
				has_war_with = PRE
			}
			AND = {
				NOT = { country_exists = PRE }
				has_war_with = GER
			}
		}
	}

	will_lead_to_war_with = GER
	will_lead_to_war_with = PRE
	x = 0
	y = 1
	relative_position_id = SOV_baltic_freedom
	cost = 5
	ai_will_do = {
		factor = 0.2

		modifier = {
			factor = 0

			OR = {
				any_enemy_country = {
					is_neighbor_of = ROOT
				}
				alliance_strength_ratio > 0.9
			}
		}
	}
	completion_reward = {
		if = {
			limit = {
				country_exists = GER
			}
			create_wargoal = {
				type = topple_government
				target = GER
				expire = 0
			}
		}
		else_if = {
			limit = {
				country_exists = PRE
			}
			create_wargoal = {
				type = topple_government
				target = PRE
				expire = 0
			}
		}
	}
	search_filters = { FOCUS_FILTER_ANNEXATION }
}

focus = {
	id = SOV_form_solider_committees
	icon = GFX_goal_generic_army_mobilization
	prerequisite = { focus = SOV_peoples_virtue }
	x = 1
	y = 1
	relative_position_id = SOV_peoples_virtue

	cost = 7.2

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		add_ideas = SOV_solider_committees
		custom_effect_tooltip = SOV_white_generals_tt
		SOV_anton_denikin = { 
			set_portraits = {
				army = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Anton_Denikin.dds"
				}
			}
		}
		SOV_pyotr_krasnov = { 
			set_portraits = {
				army = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Piotr_Krasnow.dds"
					small = "GFX_idea_SOV_Piotr_Krasnow"
				}
			}
		}
		SOV_andrey_shkuro = { 
			set_portraits = {
				army = {
					large = "gfx/leaders/SOV/r56_portrait_SOV_Andrey_Shkuro.dds"
				}
			}
		}
		SOV_anatoly_rogozhin = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_konstantin_nechaev = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_boris_smyslovsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_anton_turkul = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_yevgeny_miller = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_fedor_abramov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_grigory_semenov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_ivan_barbovich = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_isaac_bykadorov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_bronislav_kaminsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_pavel_shatilov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_peter_pisarev = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_peter_popov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_vladimir_marushevsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_vladimir_vitkovsky = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_anatoly_pepelyaev = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_andrey_shkuro = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_anton_denikin = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_pyotr_krasnov = {
			clr_character_flag = SOV_exiled_flag
		}
		SOV_boris_shteifon = {
			clr_character_flag = SOV_exiled_flag
		}		
	}
}

focus = {
	id = SOV_the_new_russian_army
	icon = GFX_goal_generic_democratic_army
	prerequisite = { focus = SOV_agrarian_socialism }
	prerequisite = { focus = SOV_form_solider_committees }
	x = -1
	y = 1
	relative_position_id = SOV_form_solider_committees

	cost = 10

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		swap_ideas = {
			remove_idea = SOV_solider_committees
			add_idea = SOV_the_new_russian_army
		}
		custom_effect_tooltip = SOV_the_new_russian_army_tooltip
		division_template = {
			name = "Respublikanskiy Spetsnaz"
			priority = 0
			regiments = {
				mountaineers = { x = 0 y = 0 }
				mountaineers = { x = 0 y = 1 }
				mountaineers = { x = 0 y = 2 }
				mountaineers = { x = 0 y = 3 }
				mountaineers = { x = 1 y = 0 }
				mountaineers = { x = 1 y = 1 }
				mountaineers = { x = 1 y = 2 }
				mountaineers = { x = 1 y = 3 }
				mountaineers = { x = 2 y = 0 }
				mountaineers = { x = 2 y = 1 }
				mountaineers = { x = 2 y = 2 }
				artillery_brigade = { x = 3 y = 0 }
				artillery_brigade = { x = 3 y = 1 }
			}
			support = {
				engineer = { x = 0 y = 0 }
				recon = { x = 0 y = 1 }
				anti_tank = { x = 0 y = 2 }
			}
		}
		hidden_effect = {
			219 = {
				create_unit = {
					division = "name = \"1a Respublikanskiy Spetsnaz\" division_template = \"Respublikanskiy Spetsnaz\" start_experience_factor = 0.2 start_equipment_factor = 0.8 force_equipment_variants = { infantry_equipment_0 = { owner = SOV } }"
					owner = SOV
				}
				create_unit = {
					division = "name = \"2a Respublikanskiy Spetsnaz\" division_template = \"Respublikanskiy Spetsnaz\" start_experience_factor = 0.2 start_equipment_factor = 0.8 force_equipment_variants = { infantry_equipment_0 = { owner = SOV } }"
					owner = SOV
				}
			}
			195 = {
				create_unit = {
					division = "name = \"3a Respublikanskiy Spetsnaz\" division_template = \"Respublikanskiy Spetsnaz\" start_experience_factor = 0.2 start_equipment_factor = 0.8 force_equipment_variants = { infantry_equipment_0 = { owner = SOV } }"
					owner = SOV
				}
			}
			217 = {
				create_unit = {
					division = "name = \"4a Respublikanskiy Spetsnaz\" division_template = \"Respublikanskiy Spetsnaz\" start_experience_factor = 0.2 start_equipment_factor = 0.8 force_equipment_variants = { infantry_equipment_0 = { owner = SOV } }"
					owner = SOV
				}
			}
		}			
	}
	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_MANPOWER FOCUS_FILTER_MILITARY_EQUIPMENT }
}

focus = {
	id = SOV_rebuild_the_duma
	icon = GFX_goal_generic_multipartism
	prerequisite = { focus = SOV_peoples_virtue }
	available = {
		has_government = democratic
	}
	x = 4
	y = 1
	relative_position_id = SOV_peoples_virtue

	cost = 7.2

	ai_will_do = {
		factor = 1
	}
	
	completion_reward = {
		add_popularity = {
			ideology = democratic
			popularity = 0.1
		}
		add_timed_idea = {
			idea = SOV_rebuild_the_duma
			days = 365
		}
		
	}
	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
}

focus = {
	id = SOV_amnesty_for_political_opponents
	text = SOV_amnesty_for_political_opponents
	icon = GFX_goal_generic_foreign_diplomacy
	prerequisite = { focus = SOV_rebuild_the_duma }
	x = -1
	y = 1
	relative_position_id = SOV_rebuild_the_duma

	cost = 5

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}
		add_political_power = 50
	}
	search_filters = { FOCUS_FILTER_POLITICAL }
}

focus = {
	id = SOV_abolish_death_penalty
	icon = GFX_goal_generic_deadly_treaty
	prerequisite = { focus = SOV_amnesty_for_political_opponents }
	prerequisite = { focus = SOV_form_solider_committees }
	x = -2
	y = 2
	relative_position_id = SOV_rebuild_the_duma

	cost = 5

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		add_political_power = 200
		add_stability = 0.1
	}
	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
}

focus = {
	id = SOV_agrarian_socialism
	icon = GFX_goal_generic_wheat
	prerequisite = { focus = SOV_peoples_virtue }
	x = -1
	y = 1
	relative_position_id = SOV_peoples_virtue

	cost = 10

	ai_will_do = {
		factor = 1
	}
	

	completion_reward = {
		add_ideas = SOV_agrarian_socialism
		random_owned_controlled_state  = {
			prioritize = { 221 }
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state  = {
			prioritize = { 218 }
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

focus = {
	id = SOV_verkhovsky_funds
	icon = GFX_goal_generic_construct_mil_factory
	prerequisite = { focus = SOV_agrarian_socialism }
	x = -1
	y = 1
	relative_position_id = SOV_agrarian_socialism

	cost = 10

	ai_will_do = {
		factor = 1
	}
	

	completion_reward = {
		swap_ideas = {
			remove_idea = SOV_agrarian_socialism
			add_idea = SOV_agrarian_socialism_2
		}
		random_owned_controlled_state = {
			limit = {
				free_building_slots = {
					building = arms_factory
					size > 1
					include_locked = yes
				}
				is_core_of = ROOT
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			limit = {
				free_building_slots = {
					building = arms_factory
					size > 1
					include_locked = yes
				}
				is_core_of = ROOT
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			limit = {
				free_building_slots = {
					building = arms_factory
					size > 1
					include_locked = yes
				}
				is_core_of = ROOT
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			limit = {
				free_building_slots = {
					building = arms_factory
					size > 2
					include_locked = yes
				}
				is_core_of = ROOT
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		if = {
			limit = {
				has_character = SOV_aleksandr_verkhovsky
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = SOV_aleksandr_verkhovsky_idea
		}
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

focus = {
	id = SOV_rebuild_the_republic
	icon = GFX_focus_generic_the_giant_wakes
	prerequisite = { focus = SOV_agrarian_socialism }
	prerequisite = { focus = SOV_verkhovsky_funds }
	x = 0
	y = 2
	relative_position_id = SOV_agrarian_socialism

	cost = 10

	ai_will_do = {
		factor = 1
	}
	

	completion_reward = {
		swap_ideas = {
			remove_idea = SOV_agrarian_socialism_2
			add_idea = SOV_agrarian_socialism_3
		}
		add_tech_bonus = {
			name = SOV_rebuild_the_republic
			bonus = 1
			uses = 1
			category = construction_tech
		}
		
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}

focus = {
	id = SOV_create_a_national_directory
	icon = GFX_goal_generic_state_economy
	prerequisite = { focus = SOV_rebuild_the_republic }
	prerequisite = { focus = SOV_abolish_death_penalty }
	x = 2
	y = 3
	relative_position_id = SOV_agrarian_socialism

	cost = 10

	ai_will_do = {
		factor = 1
	}

	available = {
		has_government = democratic
	}

	completion_reward = {
		swap_ruler_traits = {
			remove = socialist_revolutionary_leader
			add = legacy_of_1917
		}
	}
	search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
}

focus = {
	id = SOV_purge_religous_beurocracy
	icon = GFX_goal_generic_backstab
	prerequisite = { focus = SOV_rebuild_the_duma }
	x = 1
	y = 1
	relative_position_id = SOV_rebuild_the_duma

	cost = 6

	ai_will_do = {
		factor = 1
	}

	completion_reward = {
		add_ideas = SOV_purge_religous_beurocracy
	}
	search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL }
}



focus = {
	id = SOV_imperial_legacy
	icon = GFX_goal_SOV_imperial_eagle
	prerequisite = { focus = SOV_accept_constituion  focus = SOV_all_russian_alligences }
	x = -3
	y = 1
	relative_position_id = SOV_all_russian_alligences

	cost = 10

	ai_will_do = {
		factor = 1
	}
	available = {
		is_puppet = no
	}

	bypass = {

	}

	
	
	

	complete_tooltip = {

	}

	completion_reward = {
		add_named_threat = { threat = 4 name = SOV_imperial_legacy_t }
		add_war_support = 0.05

		add_ideas = GEN_Conquer_I
	}
	search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT }
}
focus = {
	id = SOV_restore_the_triple_entente
	icon = GFX_goal_SOV_triple_entente
	prerequisite = { focus = SOV_baltic_freedom focus = SOV_imperial_legacy }
	relative_position_id = SOV_imperial_legacy
	x = 6
	y = 2
	cost = 10
	available = {
		is_subject = no
		OR = {
			has_government = democratic
			has_government = neutrality
		}
		ENG = {
			NOT = {
				has_government = communism
				has_completed_focus = ENG_alliance_with_germany
				has_war_with = ROOT
			}
		}
		FRA = {
			NOT = {
				has_government = communism
				has_completed_focus = FRA_compromise_with_germany
				has_war_with = ROOT
			}
		}
	}
	completion_reward = {
		FRA = {
			country_event = r56.soviet.102
		}
		ENG = {
			country_event = r56.soviet.102
		}
		effect_tooltip = {
			give_guarantee = FRA
			give_guarantee = ENG
			FRA = {
				give_guarantee = ROOT
			}
			ENG = {
				give_guarantee = ROOT
			}
			custom_effect_tooltip = needs_approval
		}
	}
}
focus = {
	id = SOV_rule_over_the_mongols
	icon = GFX_focus_usa_focus_on_asia

	prerequisite = { focus = SOV_imperial_legacy }
	x = -4
	y = 1
	relative_position_id = SOV_imperial_legacy

	cost = 10

	ai_will_do = {
		factor = 1
	}
	available = {
		is_puppet = no
		r56_script_i_am_sane = yes
		MON = {
			r56_script_target_is_sane = yes
		}
	}
	bypass = {
		MON = {
			r56_script_standard_bypass = yes
		}
	}

	
	
	

	complete_tooltip = {

	}

	completion_reward = {
		if = {
			limit = {
				MON = {
						exists = yes
						owns_state = 330
						}
					}
				create_wargoal = {
				type = take_state_focus
				target = MON
				expire = 0
				generator = { 330 921 922 923 }
				}
		}

		if = {
				limit = {
					TAN = {
						exists = yes
						owns_state = 329
						}
					}
				create_wargoal = {
				type = take_state_focus
				target = TAN
				expire = 0
				generator = { 329 }
				}
		}

		add_state_claim = 618					
	}	
	search_filters = { FOCUS_FILTER_ANNEXATION }
}	
focus = {
	id = SOV_crush_our_eastern_rival
	icon = GFX_focus_AST_war_japan

	prerequisite = { focus = SOV_rule_over_the_mongols }
	x = -1
	y = 1
	relative_position_id = SOV_rule_over_the_mongols

	cost = 10

	ai_will_do = {
		factor = 1
	}
	available = {
		is_puppet = no
		has_navy_size = {
			size > 15
		}
		r56_script_i_am_sane = yes
		JAP = {
			r56_script_target_is_sane = yes
		}
	}
	bypass = {
		JAP = {
			r56_script_standard_bypass = yes
		}
	}
	
	
	
	

	complete_tooltip = {

	}

	completion_reward = {
		if = {
			limit = {
				MAN = {
					exists = yes
					owns_state = 761
					is_puppet = no
					}
				}
				create_wargoal = {
				type = take_state_focus
				target = MAN
				expire = 0
				generator = { 761 }
			}
		}
		if = {
				limit = {
					JAP = {
						exists = yes
						owns_state = 745
						}
					}
				create_wargoal = {
				type = take_state_focus
				target = JAP
				expire = 0
				generator = { 745 }
				}
		}
		add_state_claim = 537
		add_state_claim = 745			
		add_state_claim = 761
		add_state_claim = 714
		add_state_claim = 715
		add_state_claim = 610
		add_state_claim = 716						
	}	
	search_filters = { FOCUS_FILTER_ANNEXATION }
}	
focus = {
	id = SOV_our_american_holding
	icon = GFX_focus_generic_strike_at_democracy3

	prerequisite = { focus = SOV_rule_over_the_mongols }
	x = 1
	y = 1
	relative_position_id = SOV_rule_over_the_mongols

	cost = 10

	ai_will_do = {
		factor = 1
	}

	available = {
		is_puppet = no
		has_navy_size = {
			size > 15
		}

		r56_script_i_am_sane = yes
		USA = {
			r56_script_target_is_sane = yes
		}
	}
	bypass = {
		USA = {
			r56_script_standard_bypass = yes
		}
	}

	
	
	

	complete_tooltip = {

	}

	completion_reward = {
		add_state_claim = 463
		add_state_claim = 650
		if = {
			limit = {
				USA = {
					exists = yes
					owns_state = 463
				}
			}
			create_wargoal = {
			type = take_state_focus
			target = USA
			expire = 0
			generator = { 463 }
			}
		}												
	}	
	search_filters = { FOCUS_FILTER_ANNEXATION }
}	
focus = {
	id = SOV_reclaim_polish_overlordship
	icon = GFX_goal_generic_attack_poland

	prerequisite = { focus = SOV_imperial_legacy }
	x = 0
	y = 1
	relative_position_id = SOV_imperial_legacy

	cost = 10

	ai_will_do = {
		factor = 1
	}
	available = {
		is_puppet = no
		r56_script_i_am_sane = yes
		POL = {
			r56_script_target_is_sane = yes
		}
	}
	bypass = {
		POL = {
			r56_script_standard_bypass = yes
		}
	}

	
	
	

	complete_tooltip = {

	}

	completion_reward = {
		if = {
			limit = {
				NOT = {
					96 = {
					is_fully_controlled_by = ROOT
					}
				}
			}
			add_state_claim = 96
		}
		if = {
			limit = {
				NOT = {
					95 = {
					is_fully_controlled_by = ROOT
					}
				}
			}
			add_state_claim = 95
		}
		if = {
			limit = {
				NOT = {
					94 = {
					is_fully_controlled_by = ROOT
					}
				}
			}
			add_state_claim = 94
		}				
		if = {
			limit = {
				POL = {
					exists = yes
					owns_state = 96
				}
			}
			create_wargoal = {
			type = take_state_focus
			target = POL
			expire = 0
			generator = { 96 }
			}
		}
		add_state_claim = 93
		add_state_claim = 91
		add_state_claim = 89
		add_state_claim = 934					
	}	
	search_filters = { FOCUS_FILTER_ANNEXATION }
}
focus = {
	id = SOV_return_to_the_baltics
	icon = GFX_focus_generic_strike_at_democracy1

	prerequisite = { focus = SOV_imperial_legacy }
	x = 2
	y = 1
	relative_position_id = SOV_imperial_legacy

	cost = 10

	ai_will_do = {
		factor = 1
	}
	available = {
		is_subject = no
		r56_script_i_am_sane = yes
	}
	bypass = {
		owns_state = 191
		owns_state = 13
		owns_state = 12
		owns_state = 190
		owns_state = 189
		owns_state = 11
		owns_state = 784
	}

	completion_reward = {
		add_state_claim = 191
		add_state_claim = 13
		add_state_claim = 12
		add_state_claim = 190
		add_state_claim = 189
		add_state_claim = 11
		add_state_claim = 784
		
		every_other_country = {
			limit = {
				NOT = {
					is_in_faction_with = ROOT
				}
				OR = {
					controls_state = 191
					controls_state = 13
					controls_state = 12
					controls_state = 190
					controls_state = 189
					controls_state = 11
					controls_state = 784
				}
			}
			SOV = {
				create_wargoal = {
					type = take_state_focus
					target = PREV
					expire = 0
				}
			}
		}				
	}	
	search_filters = { FOCUS_FILTER_ANNEXATION }
}
focus = {
	id = SOV_reclaim_bessarabia
	icon = GFX_goal_strike_romania

	prerequisite = { focus = SOV_reclaim_polish_overlordship }
	#mutually_exclusive = { focus = SOV_strike_the_eagle }
	x = 0
	y = 1
	relative_position_id = SOV_reclaim_polish_overlordship

	cost = 10

	ai_will_do = {
		factor = 2.5
		modifier = {
			factor = 0
			date < 1939.1.1
		}
		modifier = {
			factor = 200
			GER = { has_government = democratic }
		}
	}
	available = {
		is_subject = no
		r56_script_i_am_sane = yes
	}
	bypass = {
		owns_state = 78
		owns_state = 80
		owns_state = 766
	}

	completion_reward = {
		add_state_claim = 78
		add_state_claim = 80
		add_state_claim = 766
		every_other_country = {
			limit = {
				NOT = {
					is_in_faction_with = ROOT
				}
				OR = {
					controls_state = 78
					controls_state = 80
					controls_state = 766
				}
			}
			set_country_flag = SOV_added_claimed_bessarabia		#used for AI strateries to determine whether or not to attack the country - Fantom
			SOV = {
				create_wargoal = {
					type = take_state_focus
					target = PREV
					expire = 0
				}
			}
		}				
	}	
	search_filters = { FOCUS_FILTER_ANNEXATION }
}	
focus = {
	id = SOV_solve_the_karelian_question
	icon = GFX_focus_fin_karjala_question

	prerequisite = { focus = SOV_imperial_legacy }
	x = -2
	y = 1
	relative_position_id = SOV_imperial_legacy
	cost = 10

	ai_will_do = {
		factor = 1
	}
	available = {
		is_subject = no
		r56_script_i_am_sane = yes
	}

	bypass = {
		owns_state = 146
		owns_state = 147
	}

	completion_reward = {
		add_state_claim = 146
		add_state_claim = 147
		every_other_country = {
			limit = {
				NOT = {
					is_in_faction_with = ROOT
				}
				OR = {
					controls_state = 146
					controls_state = 147
				}
			}
			SOV = {
				create_wargoal = {
					type = take_state_focus
					target = PREV
					expire = 0
				}
			}
		}
	}	
	search_filters = { FOCUS_FILTER_ANNEXATION }
}


###   ##   ## ###      ##  ### #   # ### #       #   #  ##  ###  
#  # #  # #    #      #  #  #  #   #  #  #       #   # #  # #  # 
###  #  #  #   #      #     #   # #   #  #       # # # #### ###  
#    #  #   #  #      #  #  #   # #   #  #       # # # #  # #  # 
#     ##  ##   #       ##  ###   #   ### ###      # #  #  # #  # 

	focus = {
		id = SOV_dismantle_the_zemsky_sobor
		icon = GFX_goal_support_fascism
		prerequisite = { focus = SOV_reconvene_the_zemsky_sobor }
		mutually_exclusive = { focus = SOV_romanov_reconstruction }
		x = 5
		y = 1
		relative_position_id = SOV_reconvene_the_zemsky_sobor
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			hidden_effect = {
				set_temp_variable = {
					var = dismantle_the_zemsky_sobor_var
					value = party_popularity@fascism
				}
				subtract_from_temp_variable = {
					var = dismantle_the_zemsky_sobor_var
					value = 1
				}
				multiply_temp_variable = {
					var = dismantle_the_zemsky_sobor_var
					value = 0.5
				}
			}
			custom_effect_tooltip = SOV_dismantle_the_zemsky_sobor_tt
			add_stability = dismantle_the_zemsky_sobor_var
			retire_character = SOV_tsar_vladimir_kirillovich
			add_ideas = SOV_tsar_vladimir_i
			set_politics = {
				ruling_party = fascism
				elections_allowed = yes
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.15
			}
			promote_character = SOV_konstantin_rodzayevsky
			add_ideas = SOV_national_brotherhood_idea
			news_event = { id = nsb_news.401 hours = 12 }
			IF = { 
				limit = { has_idea = SOV_uncertain_counter_revolution_idea }
				remove_ideas = SOV_uncertain_counter_revolution_idea
			}
		}
	}

	focus = {
		id = SOV_russian_corporate_state
		icon = GFX_goal_FRA_class_collaboration
		prerequisite = { focus = SOV_dismantle_the_zemsky_sobor }
		x = 2
		y = 1
		relative_position_id = SOV_dismantle_the_zemsky_sobor
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = SOV_russian_corporate_state_2IC }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			add_ideas = SOV_russian_corporate_state
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = SOV_russian_corporate_state_2IC
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					NOT = { has_state_flag = SOV_russian_corporate_state_2IC }
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = SOV_russian_corporate_state_2IC
			}
			add_ideas = SOV_russian_corporate_state
		}
	}

	focus = {
		id = SOV_romanov_reconstruction
		icon = GFX_focus_generic_monarchy_2
		prerequisite = { focus = SOV_reconvene_the_zemsky_sobor }
		mutually_exclusive = { focus = SOV_dismantle_the_zemsky_sobor }
		x = -5
		y = 1
		relative_position_id = SOV_reconvene_the_zemsky_sobor
		cost = 5
		ai_will_do = {
			factor = 1
		}

		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			add_timed_idea = {
				idea = SOV_romanov_reconstruction
				days = 730
			}
			IF = { 
				limit = { has_idea = SOV_uncertain_counter_revolution_idea }
				remove_ideas = SOV_uncertain_counter_revolution_idea
			}
		}
	}

	focus = {
		id = SOV_capital_of_the_tsars
		icon = GFX_goal_SOV_imperial_eagle
		prerequisite = { focus = SOV_romanov_reconstruction }
		x = -2
		y = 1
		relative_position_id = SOV_romanov_reconstruction
		cost = 5
		ai_will_do = {
			factor = 1
		}

		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			if = {
				limit = {
					195 = {
						is_capital = no
					}
				}
				set_capital = {
					state = 195
				}
			}
			195 = {
				if = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 5
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 6
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				else_if = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 4
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 5
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				else_if = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 3
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 4
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				else_if = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 2
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				else_if = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 2
					instant_build = yes
				}
				add_dynamic_modifier = {
					modifier = SOV_capital_of_the_tsars
				}
				custom_effect_tooltip = SOV_capital_of_the_tsars_tt
			}
		}
	}

	focus = {
		id = SOV_church_candidates
		icon = GFX_focus_GRE_an_orthodox_state
		prerequisite = { focus = SOV_romanov_reconstruction focus = SOV_dismantle_the_zemsky_sobor }
		x = 5
		y = 1
		relative_position_id = SOV_romanov_reconstruction
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		
		search_filters = {FOCUS_FILTER_POLITICAL}

		completion_reward = {
			hidden_effect = {
				SOV_increase_church_power = yes
			}
			effect_tooltip = {
				swap_ideas = {
					remove_idea = SOV_church_power_3
					add_idea = SOV_church_power_4
				}
			}
			if = {
				limit = {
					NOT = { has_completed_focus = SOV_dismantle_the_zemsky_sobor }
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.1
				}
				
			}
			if = {
				limit = {
					has_completed_focus = SOV_dismantle_the_zemsky_sobor
				}
				add_stability = 0.05
				add_popularity = {
					ideology = fascism
					popularity = 0.05
				}
			}
		}
	}



	focus = {
		id = SOV_reinstitute_the_mestnichestvo
		icon = GFX_goal_SOV_autonomy_for_the_masses
		prerequisite = { 
			focus = SOV_romanov_reconstruction 
 		}
		x = -5
		y = 1
		relative_position_id = SOV_romanov_reconstruction
		cost = 5
		ai_will_do = {
			factor = 1
		}

		search_filters = {FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_ideas = SOV_honest_serfdom_idea
		}
	}

	focus = {
		id = SOV_the_iron_wall_of_russian_resolve
		icon = GFX_goal_generic_army_tanks
		prerequisite = { 
			focus = SOV_reinstitute_the_mestnichestvo
 		}
		x = -1
		y = 1
		relative_position_id = SOV_reinstitute_the_mestnichestvo
		cost = 9
		ai_will_do = {
			factor = 1
		}

		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = SOV_the_iron_wall_of_russian_resolve
				ahead_reduction = 2
				bonus = 1.0
				uses = 1
				technology = super_heavy_tank_chassis
			}
			add_ideas = SOV_the_iron_wall_of_russian_resolve
		}
	}

	focus = {
		id = SOV_my_brothers_keeper
		icon = GFX_focus_SOV_my_brothers_keeper
		prerequisite = { 
			focus = SOV_reinstitute_the_mestnichestvo
		}
		prerequisite = { 
			focus = SOV_the_triple_entente
		}
		x = 0
		y = 2
		relative_position_id = SOV_reinstitute_the_mestnichestvo
		cost = 5
		ai_will_do = {
			factor = 1
		}

		search_filters = {FOCUS_FILTER_ANNEXATION}

		available = {
			is_subject = no
		}

		completion_reward = { 
			every_other_country = {
	 		 	limit = {
	     			OR = {
	     				tag = DEN
	     				tag = GRE
	     				tag = GER
	     				tag = NOR
	     				#tag = SPA
	     				#tag = ENG
	     				#tag = ROM
	     			}
	     			NOT = { is_in_faction_with = ROOT }
	  			}

				SOV = {
					create_wargoal = {
					    type = puppet_wargoal_focus
					    target = PREV
	  				}
    			}
    		}		
		}
	}

	focus = {
		id = SOV_the_rightful_heir_to_the_empire
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = SOV_church_candidates }
		mutually_exclusive = { focus = SOV_panslavic_nationalism }
		x = 0
		y = 2
		relative_position_id = SOV_church_candidates
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
		}

		completion_reward = {

			random_country = {
	 		 	limit = {
	     			 owns_state = 2
	  				}

				 SOV = {

					create_wargoal = {
					    type = take_state_focus
					    target = PREV
					    generator = { 2 }
	  				}
    			}
    		}

			random_country = {
	 		 	limit = {
	     			 owns_state = 454
	  				}

				 SOV = {

					create_wargoal = {
					    type = take_state_focus
					    target = PREV
					    generator = { 454 }
	  				}
    			}
    		}
			random_country = {
				limit = {
					owns_state = 1016
					}

			   SOV = {

				  create_wargoal = {
					  type = take_state_focus
					  target = PREV
					  generator = { 454 }
					}
			  }
		  }
		  random_country = {
			limit = {
				owns_state = 1017
				}

		   SOV = {

			  create_wargoal = {
				  type = take_state_focus
				  target = PREV
				  generator = { 1017 }
				}
		  }
	  }
 			random_country = {
	 		 	limit = {
	     			 owns_state = 797
	  				}

				 SOV = {

					create_wargoal = {
					    type = take_state_focus
					    target = PREV
					    generator = { 797 }
	  				}
    			}
    		}   			
    		add_state_claim = 2
   			add_state_claim = 797
   			add_state_claim = 454
			add_state_claim = 1016
			add_state_claim = 1017
		}
	}

	focus = {
		id = SOV_the_third_rome
		icon = GFX_focus_SOV_third_rome
		prerequisite = { focus = SOV_the_rightful_heir_to_the_empire }
		x = 0
		y = 1
		relative_position_id = SOV_the_rightful_heir_to_the_empire
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
			OR = {
				num_of_factories > 250
				AND = {
					is_faction_leader = yes
					num_faction_members > 9
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT}

		completion_reward = {
			add_ideas = SOV_legacy_of_rome
   			set_cosmetic_tag = SOV_ROME
   			if = {
   				limit = {
   					NOT = { has_government = neutrality }
   				}
   				set_politics = {
					ruling_party = neutrality
				    elections_allowed = no
				}
   			}
   			remove_ideas = SOV_tsar_vladimir_i
   			custom_effect_tooltip = SOV_the_third_rome_tt
   			promote_character = SOV_metropolitan_meletius
   			set_country_leader_name = {
			  ideology = neutrality
			  name = SOV_patriarch_meletius
			}
			custom_effect_tooltip = SOV_the_third_rome_tt_2
   			country_event = NSB_soviet_fascist_tsarist.15
		}
	}

	focus = {
		id = SOV_vengeance_for_the_yoke
		icon = GFX_focus_generic_attack_mongolia
		prerequisite = { focus = SOV_romanov_reconstruction focus = SOV_dismantle_the_zemsky_sobor }
		x = -3
		y = 1
		relative_position_id = SOV_dismantle_the_zemsky_sobor
		cost = 5
		ai_will_do = {
			factor = 1
		}

		will_lead_to_war_with = MON

		search_filters = {FOCUS_FILTER_ANNEXATION}

		available = {
			is_subject = no
			MON = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		completion_reward = {
			create_wargoal = { type = annex_everything target = MON }		
		}
	}


	focus = {
		id = SOV_westward_bound
		icon = GFX_goal_generic_construct_military
		prerequisite = { focus = SOV_romanov_reconstruction focus = SOV_dismantle_the_zemsky_sobor }
		x = 1
		y = 1
		relative_position_id = SOV_romanov_reconstruction
		cost = 5
		ai_will_do = {
			factor = 1
		}

		search_filters = {FOCUS_FILTER_INDUSTRY}

		available = {
			has_full_control_of_state = 213
			has_full_control_of_state = 214
			has_full_control_of_state = 208
		}

		completion_reward = {
			# Murmansk
			213 = {
				if = {
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 1
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
					}
				}
				else_if = {
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 0
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
				add_building_construction = {
					type = naval_base
					level = 1
					province = 3134
					instant_build = yes
				}
				if = {
					limit = {
						air_base < 8
					}
					add_building_construction = {
						type = air_base
						level = 3
						instant_build = yes
					}
				}
				else_if = {
					limit = {
						air_base < 9
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
				else_if = {
					limit = {
						air_base < 10
					}
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 2
					instant_build = yes
				}
			}
			# Onega
			215 = {
				if = {
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 0
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			# Olonets
			216 = {
				if = {
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 0
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			# Arkhangelsk
			214 = {
				if = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
				if = {
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 0
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			#Supply Hub in Luga
			208 = {
				add_building_construction = {
					type = supply_node
					level = 1
					province = 181
					instant_build = yes
				}
			}
			#Volkhov-Murmansk
			build_railway = {
				path = { 3134 11117 9201 6181 3121 9162 3008 86 3189 9195 94 6021 11175 155 11092 3033 9118 11159 90 6057 11153 11059 70 }
			}
			#Leningrad-Volkhov
			build_railway = {
				path = { 9197 11068 }
			}
			#Vologda-Arkhangelsk
			build_railway = {
				path = { 9131 9199 75 72 9130 3130 11171 312 3338 }
			}
		}
	}

	focus = {
		id = SOV_the_triple_entente
		icon = GFX_goal_SOV_triple_entente
		prerequisite = { focus = SOV_westward_bound }
		prerequisite = { focus = SOV_romanov_reconstruction }
		x = -4
		y = 1
		relative_position_id = SOV_westward_bound
		cost = 2.5
		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
			ENG = {
				NOT = {
					has_government = communism
				}
				NOT = {
					has_completed_focus = ENG_alliance_with_germany
				}
			}
			FRA = {
				NOT = {
					has_government = communism
				}
				NOT = {
					has_completed_focus = FRA_compromise_with_germany
				}
			}
		}

		bypass = {
			ENG = {
				OR = {
					AND = {
						is_in_faction = yes
						is_faction_leader = no
					}
					has_war_with = ROOT
				}
			}
			FRA = {
				OR = {
					AND = {
						is_in_faction = yes
						is_faction_leader = no
					}
					has_war_with = ROOT
				}
			}
		}

		completion_reward = {
			if = {
				limit = {
					ENG = {
						is_faction_leader = yes
						NOT = { has_war_with = ROOT }
					}
				}
				ENG = {
					country_event = { id = NSB_soviet_fascist_tsarist.16 hours = 6 }
				}
			}
			else_if = {
				limit = {
					FRA = {
						is_faction_leader = yes
						NOT = { has_war_with = ROOT }
					}
				}
				FRA = {
					country_event = { id = NSB_soviet_fascist_tsarist.16 hours = 6 }
				}
			}
			else_if = {
				limit = {
					ENG = { is_faction_leader = no }
					FRA = { is_faction_leader = no }
					OR = {
						ENG = {
							is_in_faction = no
							NOT = { has_war_with = ROOT }
						}
						FRA = {
							is_in_faction = no
							NOT = { has_war_with = ROOT }
						}
					}
				}
				create_faction = TRIPLE_ENTENTE
				ENG = {
					country_event = { id = NSB_soviet_fascist_tsarist.16 hours = 6 }
				}
				FRA = {
					country_event = { id = NSB_soviet_fascist_tsarist.16 hours = 6 }
				}
			}
			else = {
				create_faction = TRIPLE_ENTENTE
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}

	focus = {
		id = SOV_our_slavic_commitments
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = SOV_the_triple_entente }
		mutually_exclusive = { focus = SOV_panslavic_nationalism }
		x = 0
		y = 1
		relative_position_id = SOV_the_triple_entente
		cost = 5
		ai_will_do = {
			factor = 1
		}

		search_filters = {FOCUS_FILTER_POLITICAL}

		available = {
			is_subject = no
		}

		completion_reward = {
			add_ideas = SOV_our_slavic_commitments
			give_guarantee = CZE
			give_guarantee = POL
			give_guarantee = YUG
			give_guarantee = BUL
			news_event = { id = nsb_news.406 hours = 12 }
		}
	}	

	focus = {
		id = SOV_the_old_enemy
		icon = GFX_goal_generic_attack_sweden
		prerequisite = { focus = SOV_westward_bound }
		x = -2
		y = 1
		relative_position_id = SOV_westward_bound
		cost = 5
		ai_will_do = {
			factor = 1
		}

		will_lead_to_war_with = SWE

		available = {
			is_subject = no
		}

		bypass = {
			SWE = {
				OR = {
					exists = no
					has_war_with = SOV
					is_subject_of = SOV
				}
			}
		}

		completion_reward = {
			create_wargoal = { type = annex_everything target = SWE }
		}
	}	

	focus = {
		id = SOV_secure_finland
		icon = GFX_goal_generic_attack_finland
		prerequisite = { focus = SOV_westward_bound }
		x = 0
		y = 1
		relative_position_id = SOV_westward_bound 
		cost = 5
		ai_will_do = {
			factor = 1
		}

		will_lead_to_war_with = FIN

		available = {
			is_subject = no
		}

		bypass = {
			FIN = {
				OR = {
					exists = no
					has_war_with = SOV
					is_subject_of = SOV
				}
			}
		}

		completion_reward = {
			create_wargoal = { type = annex_everything target = FIN }
		}
	}	


	focus = {
		id = SOV_secure_the_baltics
		icon = GFX_goal_SOV_baltic_aggression
		prerequisite = { focus = SOV_westward_bound }
		x = 2
		y = 1
		relative_position_id = SOV_westward_bound
		cost = 5
		ai_will_do = {
			factor = 1
		}

		will_lead_to_war_with = EST
		will_lead_to_war_with = LIT
		will_lead_to_war_with = LAT

		available = {
			is_subject = no
		}
		bypass = {
			EST = {
				OR = {
					exists = no
					has_war_with = SOV
					is_subject_of = SOV
				}
			}
			LAT = {
				OR = {
					exists = no
					has_war_with = SOV
					is_subject_of = SOV
				}
			}
			LIT = {
				OR = {
					exists = no
					has_war_with = SOV
					is_subject_of = SOV
				}
			}
		}

		completion_reward = {
			create_wargoal = { type = annex_everything target = EST }
			create_wargoal = { type = annex_everything target = LIT }
			create_wargoal = { type = annex_everything target = LAT }
		}
	}	


	focus = {
		id = SOV_panslavic_nationalism
		icon = GFX_focus_SOV_panslavic_nationalism
		prerequisite = { focus = SOV_secure_the_baltics focus = SOV_secure_finland focus = SOV_the_old_enemy }
		mutually_exclusive = { focus = SOV_the_rightful_heir_to_the_empire focus = SOV_our_slavic_commitments }
		x = 0
		y = 1
		relative_position_id = SOV_secure_finland
		cost = 5
		ai_will_do = {
			factor = 1
		}

		search_filters = {FOCUS_FILTER_ANNEXATION}

		completion_reward = {
			effect_tooltip = {
				every_country = {
	 			 	limit = {
	     				OR = {
	     					tag = POL
	     					tag = BUL
	     					tag = YUG
	     					tag = CZE
	     				}
	     				NOT = { has_war_with = ROOT }
	  				}
	  				country_event = {
	  					id = NSB_soviet_fascist_tsarist.1 days = 3
	  				}
    				ROOT = {
						annex_country = {
							target = PREV
							transfer_troops = yes
						}
					}
    			}
    		}
    		custom_effect_tooltip = SOV_panslavic_nationalism_tt
    		hidden_effect = {
    			every_country = {
	 			 	limit = {
	     				OR = {
	     					tag = POL
	     					tag = BUL
	     					tag = YUG
	     					tag = CZE
	     				}
	     				NOT = { has_war_with = ROOT }
	  				}
	  				country_event = {
	  					id = NSB_soviet_fascist_tsarist.1 days = 3
	  				}
	  			}
    		}
    		every_country = {
    			limit = {
    				NOT = {
    					tag = POL
	     				tag = BUL
	     				tag = YUG
	     				tag = CZE
    				}
    				OR = {
    					controls_state = 9
						controls_state = 69
						controls_state = 1078
						controls_state = 70
						controls_state = 71
						controls_state = 72
						controls_state = 73
						controls_state = 996
						controls_state = 74
						controls_state = 75
						controls_state = 664
						controls_state = 48
						controls_state = 211
						controls_state = 212
						controls_state = 801
						controls_state = 97
						controls_state = 85
						controls_state = 762
						controls_state = 90
						controls_state = 88
						controls_state = 92
						controls_state = 91
						controls_state = 95
						controls_state = 94
						controls_state = 86
						controls_state = 98
						controls_state = 89
						controls_state = 10
						controls_state = 96
						controls_state = 784
						controls_state = 93
						controls_state = 87
						controls_state = 104
						controls_state = 109
						controls_state = 103
						controls_state = 804
						controls_state = 802
						controls_state = 106
						controls_state = 105
						controls_state = 108
						controls_state = 107
						controls_state = 102
						controls_state = 803
						controls_state = 45
						controls_state = 764
					}
    			}
    			ROOT = {
    				create_wargoal = {
					    type = take_state_focus
					    generator = { 9 69 1078 70 71 72 73 74 75 664 48 211 212 801 97 85 762 90 88 92 91 95 94 86 98 89 10 96 784 93 87 104 109 103 804 802 106 105 108 107 102 803 45 764 996 }
					    target = PREV
					}
				}
    		}
		}
	}

	focus = {
		id = SOV_the_fate_of_romania
		icon = GFX_goal_generic_attack_romania
		prerequisite = { focus = SOV_our_slavic_commitments focus = SOV_panslavic_nationalism }
		x = 2
		y = 1
		relative_position_id = SOV_our_slavic_commitments
		cost = 2.5
		ai_will_do = {
			factor = 1
		}

		will_lead_to_war_with = ROM

		search_filters = {FOCUS_FILTER_ANNEXATION}

		available = {
			is_subject = no
			ROM = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		completion_reward = {
			create_wargoal = { type = annex_everything target = ROM }
		}
	}	

	focus = {
		id = SOV_pacify_the_rim
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = SOV_dismantle_the_zemsky_sobor focus = SOV_romanov_reconstruction }
		x = -1
		y = 1
		relative_position_id = SOV_dismantle_the_zemsky_sobor
		cost = 5
		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		available = {
			has_full_control_of_state = 408
			has_full_control_of_state = 409
			has_full_control_of_state = 657
		}

		completion_reward = {
			408 = {
				if = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 2
					instant_build = yes
				}
			}
			409 = {
				if = {
					limit = {
						air_base < 10
					}
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
				}
			}
			657 = {
				if = {
					limit = {
						air_base < 8
					}
					add_building_construction = {
						type = air_base
						level = 3
						instant_build = yes
					}
				}
			}
			# Krasnoyarsk-Irkutsk
			build_railway = {
				path = { 12691 12621 1876 1813 10549 10661 12540 4797 }
			}
			# Chita-Belogorsk
			build_railway = {
				path = { 4677 7725 10559 12543 7851 10678 12657 7763 4725 }
			}
		}
	}

	focus = {
		id = SOV_eastern_expansion
		icon = GFX_focus_usa_focus_on_asia
		prerequisite = { focus = SOV_pacify_the_rim }
		prerequisite = { focus = SOV_dismantle_the_zemsky_sobor }
		x = 5
		y = 1
		relative_position_id = SOV_pacify_the_rim
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY}

		completion_reward = {
			add_ideas = SOV_siberian_lessons
			every_owned_state = {
				limit = {
					OR = {
						state = 822
						state = 562
						state = 637
					}
					free_building_slots = {
						building = infrastructure
						size > 0
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			637 = {
				if = {
					limit = {
						air_base < 8
					}
					add_building_construction = {
						type = air_base
						level = 3
						instant_build = yes
					}
				}
				add_building_construction = {
					type = naval_base
					level = 3
					instant_build = yes
					province = 4728
				}
				add_building_construction = {
					type = anti_air_building
					level = 2
					instant_build = yes
				}
			}
			408 = {
				add_building_construction = {
					type = naval_base
					level = 2
					instant_build = yes
					province = 957
				}
			}
		}
	}

	focus = {
		id = SOV_intervention_in_the_americas
		icon = GFX_focus_SOV_ivan_plays_baseball
		prerequisite = { focus = SOV_eastern_expansion }
		x = 1
		y = 1
		relative_position_id = SOV_eastern_expansion
		mutually_exclusive = { focus = SOV_into_central_asia }
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			if = {
				limit = {
					is_in_faction = no
				}
				create_faction = NPTO
			}
			effect_tooltip = {
				every_other_country = {
					limit = {
						any_owned_state = {
							is_capital = yes
							is_on_continent = south_america
						}
						NOT = {
							has_government = fascism
						}
					}
					add_timed_idea = {
						idea = SOV_russian_political_influence
						days = 730
					}
				}
			}
			custom_effect_tooltip = SOV_intervention_in_the_americas_tt
			hidden_effect = {
				every_other_country = {
					limit = {
						any_owned_state = {
							is_capital = yes
							is_on_continent = south_america
						}
						NOT = {
							has_government = fascism
						}
					}
					country_event = {
						id = NSB_soviet_fascist_tsarist.4
						days = 3 random_days = 4
					}
					set_country_flag = SOV_political_influence_americas_flag
				}
			}
			every_other_country = {
				limit = {
					any_owned_state = {
						is_capital = yes
						is_on_continent = south_america
					}
					has_government = fascism
					is_in_faction = no
				}
				country_event = {
					id = NSB_soviet_fascist_tsarist.5
					days = 3 random_days = 4
				}
			}
			news_event = { id = nsb_news.403 days = 35 random_days = 34 }
		}
	}

	focus = {
		id = SOV_restore_the_old_eastern_empire
		icon = GFX_focus_SOV_old_eastern_empire
		prerequisite = { focus = SOV_intervention_in_the_americas }
		x = 0
		y = 1
		relative_position_id = SOV_intervention_in_the_americas
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		search_filters = { FOCUS_FILTER_ANNEXATION }

		available = {
			is_subject = no
		}

		completion_reward = {
			create_wargoal = { 
				type = take_state_focus 
				target = CAN 
				generator = { 471 739 740 473 }
			}
			create_wargoal = { 
				type = take_state_focus 
				target = USA 
				generator = { 463 386 385 }
			}
		}
	}

	focus = {
		id = SOV_into_central_asia
		icon = GFX_goal_generic_attack_afghanistan
		prerequisite = { focus = SOV_eastern_expansion }
		x = -1
		y = 1
		relative_position_id = SOV_eastern_expansion
		mutually_exclusive = { focus = SOV_intervention_in_the_americas }
		cost = 10
		ai_will_do = {
			factor = 1
		}

		will_lead_to_war_with = AFG
		will_lead_to_war_with = PER
		
		search_filters = {FOCUS_FILTER_ANNEXATION}

		available = {
			is_subject = no
		}

		completion_reward = {
			create_wargoal = { 
				type = annex_everything
				target = AFG
			}
			create_wargoal = { 
				type = annex_everything
				target = PER
			}
		}
	}

	focus = {
		id = SOV_the_last_break_southward
		icon = GFX_focus_TUR_misak_i_milli
		prerequisite = { focus = SOV_into_central_asia }
		x = 0
		y = 1
		relative_position_id = SOV_into_central_asia
		cost = 10
		ai_will_do = {
			factor = 1
		}

		will_lead_to_war_with = IRQ
		will_lead_to_war_with = TUR
		will_lead_to_war_with = FRA
		will_lead_to_war_with = RAJ
		will_lead_to_war_with = PAK
		
		search_filters = {FOCUS_FILTER_ANNEXATION}

		available = {
			is_subject = no
		}

		completion_reward = {
			create_wargoal = { 
				type = annex_everything
				target = IRQ
			}
			if = {
				limit = {
					NOT = {
						has_completed_focus = SOV_the_rightful_heir_to_the_empire
					}
				}
				create_wargoal = { 
					type = annex_everything
					target = TUR
				}
			}
			create_wargoal = { 
				type = take_state_focus 
				target = FRA
				generator = { 553 554 677 680 799 }
			}
			if = {
				limit = {
					country_exists = PAK
				}
				create_wargoal = { 
					type = annex_everything
					target = PAK
				}
			}
			create_wargoal = { 
				type = annex_everything
				target = RAJ
			}
		}
	}

	focus = {
		id = SOV_rebuild_the_far_eastern_fleet
		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = SOV_pacify_the_rim }
		x = 0
		y = 1
		relative_position_id = SOV_pacify_the_rim
		cost = 5
		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			navy_experience = 10
			408 = {
				if = {
					limit = {
						free_building_slots = {
							building = dockyard
							size > 3
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 4
					add_building_construction = {
						type = dockyard
						level = 4
						instant_build = yes
					}
				}
			}
			409 = {
				if = {
					limit = {
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}
				}
			}
			637 = {
				if = {
					limit = {
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = SOV_modernize_the_far_eastern_fleet
		icon = GFX_focus_generic_navy_battleship2
		prerequisite = { focus = SOV_rebuild_the_far_eastern_fleet }
		x = -2
		y = 1
		relative_position_id = SOV_rebuild_the_far_eastern_fleet
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			navy_experience = 25
			add_tech_bonus = {
				name = SOV_modernize_the_far_eastern_fleet
				bonus = 1.0
				uses = 4
				category = dd_tech
				category = cl_tech
				category = ca_tech
				category = bb_tech
				category = cv_tech
				category = ss_tech
			}
			add_timed_idea = {
				idea = SOV_modernize_the_far_eastern_fleet
				days = 730
			}
		}
	}

	focus = {
		id = SOV_memories_of_1905
		icon = GFX_goal_war_infrastructure
		prerequisite = { focus = SOV_rebuild_the_far_eastern_fleet }
		mutually_exclusive = { focus = SOV_japanese_overtures }
		x = 0
		y = 1
		relative_position_id = SOV_rebuild_the_far_eastern_fleet
		cost = 10
		ai_will_do = {
			factor = 1
		}
		available = {
			NOT = {
				is_puppet_of = JAP
			}
		}

		
		search_filters = {FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_INDUSTRY FOCUS_FILTER_NAVY_XP}

		completion_reward = {
			navy_experience = 15
			if = {
				limit = {
					controls_state = 408
				}
				408 = {
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 957
					}
				}				
			}

			add_timed_idea = {
				idea = SOV_memories_of_1905_idea
				days = 365
			}
		}
	}


	focus = {
		id = SOV_the_lonely_island
		icon = GFX_goal_generic_attack_japan_alt
		prerequisite = { focus = SOV_memories_of_1905 }
		x = 0
		y = 1
		relative_position_id = SOV_memories_of_1905
		cost = 5
		ai_will_do = {
			factor = 1
		}
		
		search_filters = {FOCUS_FILTER_ANNEXATION}

		completion_reward = {
			if = {
				limit = {
					OR = {
						NOT = { has_completed_focus = SOV_request_imperial_protection }
						NOT = { is_subject_of = JAP }
					}
				}
				create_wargoal = { 
					type = take_state_focus 
					target = JAP 
					generator = { 536 537 555 }
				}
			}
			if = {
				limit = {
					has_completed_focus = SOV_request_imperial_protection
					is_subject_of = JAP
				}
				if = {
					limit = {
						has_war_together_with = JAP
					}
					every_enemy_country = {
						SOV = {
							white_peace = PREV
						}
					}
				}
				JAP = {
					set_autonomy = {
					    target = SOV
					    autonomy_state = autonomy_free
					}
				}
				leave_faction = yes
				create_wargoal = { 
					type = puppet_wargoal_focus
					target = JAP
				}
			}
		}
	}	

	focus = {
		id = SOV_an_empire_in_the_pacific
		icon = GFX_focus_SOV_pacific_empire
		prerequisite = { focus = SOV_the_lonely_island }
		x = 0
		y = 1
		relative_position_id = SOV_the_lonely_island
		cost = 10
		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			custom_effect_tooltip = SOV_an_empire_in_the_pacific_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							is_core_of = SIK
							is_core_of = XSM
							is_core_of = SHX
							is_core_of = PRC
							is_core_of = CHI
							is_core_of = YUN
							is_core_of = GXC
							is_core_of = MEN
							is_core_of = MAN
						}
					}
					add_claim_by = ROOT
				}
			}
			add_ideas = SOV_an_empire_in_the_pacific_idea
		}
	}

	focus = {
		id = SOV_the_berlin_moscow_axis
		icon = GFX_goal_generic_join_axis
		prerequisite = { focus = SOV_pacify_the_rim }
		x = 2
		y = 1
		relative_position_id = SOV_pacify_the_rim
		cost = 10
		ai_will_do = {
			factor = 1
		}
		bypass = {
			is_in_faction_with = GER
			GER = { is_faction_leader = yes }
		}

		search_filters = { FOCUS_FILTER_ALLIANCE }

		available = {
			is_subject = no
			is_in_faction = no
			GER = {
				is_faction_leader = yes
				has_government = fascism
			}
		}

		completion_reward = {
			GER = {
				country_event = { id = NSB_soviet_fascist_tsarist.22 hours = 6 }
			}
		}
	}

	focus = {
		id = SOV_japanese_overtures
		icon = GFX_goal_CHI_support_pro_japanese_faction
		prerequisite = { focus = SOV_the_berlin_moscow_axis }
		mutually_exclusive = { focus = SOV_memories_of_1905 }
		x = 0
		y = 1
		relative_position_id = SOV_the_berlin_moscow_axis
		cost = 10
		ai_will_do = {
			factor = 1
		}

		search_filters = { FOCUS_FILTER_ALLIANCE }

		available = {
			is_subject = no
			is_in_faction_with = GER
			GER = { is_faction_leader = yes }
			JAP = {
				is_in_faction = no
				has_government = fascism
			}
		}

		completion_reward = {
			GER = {
				country_event = { id = NSB_soviet_fascist_tsarist.25 hours = 6 }
			}
		}
	}

	###ROAD TO 56 IRON CURTAIN###

	focus = {
		id = SOV_iron_curtain
		icon = GFX_goal_sov_iron_curtain
		prerequisite = { focus = SOV_eradicate_western_fascism focus = SOV_anti_capitalist_policies }
		prerequisite = { focus = SOV_demand_balkan_submission focus = SOV_seek_balkan_cooperation }
		prerequisite = { focus = SOV_demand_eastern_poland focus = SOV_offer_poland_protection }
		x = 4
		y = 6
		relative_position_id = SOV_the_comintern

		cost = 5

		ai_will_do = {
			factor = 1.1
			modifier = { #Go for the unthinkable asap
				add = 25
				OR = {
					USA = {
						exists = yes
						is_major = yes
						has_war = no
						is_faction_leader = yes
					}
					ENG = {
						exists = yes
						is_major = yes
						has_war = no
						is_faction_leader = yes
					}
				}
				ROOT = {
					has_war = no
					is_faction_leader = yes
					is_major = yes
				}
				has_global_flag = r56_ww2_got_done_early_make_ai_move_toward_ww3
			}
		}

		available = {
			NOT = { has_country_flag = SOV_paranoia_system_active_flag }
			hidden_trigger = {
				is_ai = no
			}
			surrender_progress < 0.1
			is_puppet = no
			custom_trigger_tooltip = {
				tooltip = iron_curtain_tt		
				count_triggers = {
					amount = 3
					ROM = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					BUL = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					POL = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					DDR = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					GER = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					TUR = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					GRE = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					HUN = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					AUS = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					YUG = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					CZE = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
					FIN = {
						has_government = ROOT
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
						num_of_factories > 30
					}
				}
			}
		}

		completion_reward = {
			add_ideas = SOV_iron_curtain_idea
			set_faction_name = SOV_iron_curtain_faction
		}
	}

	focus = {
		id = SOV_found_the_comecon

		icon = GFX_focus_SOV_the_comecon
		prerequisite = { focus = SOV_sino_soviet_treaty }
		prerequisite = { focus = SOV_interest_in_cuba }
		prerequisite = { focus = SOV_facilitate_a_balkan_federation focus = SOV_take_out_tito focus = SOV_overthrow_weak_king }
		x = 0
		y = 3
		relative_position_id = SOV_iron_curtain
		cost = 10

		ai_will_do = {
			factor = 1
			modifier = { #Go for the unthinkable asap
				add = 25
				OR = {
					USA = {
						exists = yes
						is_major = yes
						has_war = no
						is_faction_leader = yes
					}
					ENG = {
						exists = yes
						is_major = yes
						has_war = no
						is_faction_leader = yes
					}
				}
				ROOT = {
					has_war = no
					is_faction_leader = yes
					is_major = yes
				}
				has_global_flag = r56_ww2_got_done_early_make_ai_move_toward_ww3
			}
		}

		available = {
			num_subjects > 0
			NOT = { has_completed_focus = SOV_curtailment_of_the_collective_farms }
			OR = {
				has_completed_focus = SOV_fourth_five_year_plan
				AND = {
					has_war = yes
					surrender_progress < 0.1
					num_of_military_factories > 100
				}
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

		completion_reward = {
			if = {
				limit = {
					num_subjects > 0
				}
				add_ideas = SOV_comecon_sov_default
				custom_effect_tooltip = SOV_found_the_comecon_subjects_tt
				every_other_country = {
					limit = {
						is_subject_of = ROOT
					}
					add_ideas = SOV_comecon_puppet_default
				}

				custom_effect_tooltip = SOV_found_the_comecon_program_tt
				hidden_effect = {
					add_to_tech_sharing_group = SOV_comecon
					every_country = {
						limit = {
							is_subject_of = ROOT
						}
						add_to_tech_sharing_group = SOV_comecon
					}
				}
			}
			else = { #Early tooltip for when Soviets have no subjects
				effect_tooltip = {
					add_ideas = SOV_comecon_sov_default
				}
				custom_effect_tooltip = SOV_found_the_comecon_subjects_tt
				effect_tooltip = {
					add_ideas = SOV_comecon_puppet_default
				}
				custom_effect_tooltip = SOV_found_the_comecon_program_tt
			}

			unlock_decision_category_tooltip = SOV_comecon_dec_cat
		}
	}

	focus = {
		id = SOV_pressure_finnish_government
		icon = GFX_focus_generic_attack_finland
		prerequisite = { focus = SOV_iron_curtain }
		x = -5
		y = 1
		relative_position_id = SOV_iron_curtain

		cost = 5
		
		available = {
			has_global_flag = FIN_moscow_armistice_signed
			has_equipment = {
				infantry_equipment > 999
			}
			FIN = {
				exists = yes
				is_subject = no
				NOT = {
					has_government = ROOT
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
		
		available_if_capitulated = yes

		completion_reward = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
			FIN = {
				country_event = cold_war.23
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				give_guarantee = FIN
				FIN = {
					give_guarantee = SOV
				}
			}
			custom_effect_tooltip = if_they_refuse_tt
			effect_tooltip = {
				FIN = {
					add_stability = -0.05
				}
				add_opinion_modifier = {
					target = FIN
					modifier = medium_decrease
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_expand_western_spy_rings
		icon = GFX_goal_generic_communist_officer
		prerequisite = { focus = SOV_iron_curtain }
		x = 0
		y = 1
		relative_position_id = SOV_iron_curtain

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = { #Go for the unthinkable asap
				add = 25
				OR = {
					USA = {
						exists = yes
						is_major = yes
						has_war = no
						is_faction_leader = yes
					}
					ENG = {
						exists = yes
						is_major = yes
						has_war = no
						is_faction_leader = yes
					}
				}
				ROOT = {
					has_war = no
					is_faction_leader = yes
					is_major = yes
				}
				has_global_flag = r56_ww2_got_done_early_make_ai_move_toward_ww3
			}
		}

		completion_reward = {
			every_other_country = {
				limit = {
					has_government = democratic
					OR = {
						capital_scope = {
							is_on_continent = europe
						}
						original_tag = USA
					}
				}
				add_timed_idea = { idea = comintern_influence days = 547 }
			}
		}
	}

	focus = {
		id = SOV_incite_a_greek_revolution
		icon = GFX_focus_renounce_the_treaty_of_trianon
		prerequisite = { focus = SOV_iron_curtain }
		x = 4
		y = 1
		relative_position_id = SOV_iron_curtain

		cost = 10

		ai_will_do = {
			factor = 0.1
		}
		will_lead_to_war_with = GRE
		available = {
			country_exists = GRE
			GRE = {
				NOT = {
					has_government = communism
				}
				has_civil_war = no
				is_puppet = no
			}
		}

		bypass = {
			OR = {
				GRE = {
					is_subject_of = SOV
					has_government = communism
				}
				NOT = {
					country_exists = GRE	
				}	
			}
		}

		completion_reward = {
			add_timed_idea = { idea = SOV_support_greece days = 200 }
			create_wargoal = {
				type = puppet_wargoal_focus
				target = GRE
			}

		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = SOV_overthrow_weak_king
		icon = GFX_goal_BUL_divide_yugoslavia
		prerequisite = { focus = SOV_incite_a_greek_revolution }
		mutually_exclusive = { focus = SOV_facilitate_a_balkan_federation focus = SOV_take_out_tito }
		x = -2
		y = 1
		relative_position_id = SOV_incite_a_greek_revolution
		cost = 10
		ai_will_do = {
			factor = 0
		}
		
		available_if_capitulated = yes
		
		

		available = {
			YUG = {
				NOT = {
					has_government = communism
				}
			}
		}

		bypass = {
			YUG = {
				OR = {
					has_government = communism
					exists = no
				}
			}
		}
		
		completion_reward = {
			add_political_power = -50
			YUG = {
				add_ideas = SOV_civil_war_ignited
			}
			YUG = {
				start_civil_war = {
					ideology = communism
					size = 0.6
					capital = 106
					states = { 106 950 803 802 953 108 963 }
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = SOV_take_out_tito
		icon = GFX_goal_sov_kill_tito
		prerequisite = { focus = SOV_incite_a_greek_revolution }
		mutually_exclusive = { focus = SOV_facilitate_a_balkan_federation focus = SOV_overthrow_weak_king }
		x = 0
		y = 1
		relative_position_id = SOV_incite_a_greek_revolution

		cost = 10

		ai_will_do = {
			factor = 0.1
		}

		available = {
			YUG = {
				has_government = communism
				exists = yes
				has_country_leader = {
					character = YUG_josip_broz_tito
					ruling_only = yes
				}
			}
		}

		bypass = {
			YUG = {
				has_government = communism
				NOT = {
					has_country_leader = {
						character = YUG_josip_broz_tito
						ruling_only = yes
					}
				}
			}
		}
		will_lead_to_war_with = YUG
		
		
		


		completion_reward = {
			add_political_power = -100
			create_wargoal = {
				type = puppet_wargoal_focus
				target = YUG
			}
			hidden_effect = {
				YUG = {
					kill_country_leader = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = SOV_facilitate_a_balkan_federation
		icon = GFX_focus_GRE_red_greece
		prerequisite = { focus = SOV_incite_a_greek_revolution }
		mutually_exclusive = { focus = SOV_take_out_tito focus = SOV_overthrow_weak_king  }
		x = 2
		y = 1
		relative_position_id = SOV_incite_a_greek_revolution

		cost = 10

		ai_will_do = {
			factor = 0
		}

		available = {
			YUG = {
				exists = yes
				has_opinion = {
					target = SOV
					value > 59
				}
				has_government = communism
			}
			BUL = {
				is_in_faction_with = SOV
				is_puppet_of = SOV
			}
			ROM = {
				is_in_faction_with = SOV
				is_puppet_of = SOV
			}
			GRE = {
				is_in_faction_with = SOV
				is_puppet_of = SOV
			}
			ALB = {
				is_in_faction_with = SOV
				is_puppet_of = SOV
			}
		}

		
		
		


		completion_reward = {
			YUG = {
				country_event = {
					id = r56.soviet.98
					days = 1
				}
			}
			custom_effect_tooltip = sov_balkan_fed_tt
		}
	}

	focus = {
		id = SOV_return_dalian
		icon = GFX_goal_generic_foreign_diplomacy
		prerequisite = { focus = SOV_iron_curtain }
		x = -3
		y = 1
		relative_position_id = SOV_iron_curtain

		cost = 5

		ai_will_do = {
			factor = 0.9
		}

		available = {
			owns_state = 745
			PRC = {
				exists = yes
				has_government = communism
			}
		}

		bypass = {
			OR = {
				NOT = {
					owns_state = 745
				}
				NOT = {
					PRC = {
						exists = yes
						has_government = communism
					}
				}
			}
		}

		
		
		


		completion_reward = {
			if = {
				limit = {
					745 = {
						is_claimed_by = SOV
					}
				}
				SOV = {
					remove_state_claim = 745
				}
			}
			if = {
				limit = {
					PRC = {
						is_major = no
					}
				}
				give_guarantee = PRC
			}
			else = {
				diplomatic_relation = {
					country = PRC
					relation = non_aggression_pact
					active = yes
				}
			}
			745 = {
				transfer_state_to = PRC
			}
		}
	}

	focus = {
		id = SOV_sino_soviet_treaty
		icon = GFX_focus_chi_cooperation_with_the_communists
		prerequisite = { focus = SOV_return_dalian }
		x = 0
		y = 1
		relative_position_id = SOV_return_dalian

		cost = 10

		ai_will_do = {
			factor = 0.9
		}

		available = {
			PRC = {
				exists = yes
				has_government = communism
			}
		}

		bypass = {
			PRC = {
				OR = {
					exists = no
					NOT = {
						has_government = communism
					}
				}
			}
		}
		
		


		completion_reward = {
			PRC = {
				country_event = {
					id = r56.soviet.93
					days = 1
				}
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}

	focus = {
		id = SOV_support_vietnamese_revolutionaries
		icon = GFX_goal_generic_revolt
		cost = 5
		ai_will_do = {
			factor = 0.1
			modifier = {
				add = 1000
				date > 1950.5.18
			}
			modifier = {
				add = 1000
				date > 1948.5.18
			}
		}
		available = {
			FRI = {
				is_ai = yes
				has_war = no
				OR = {
					has_full_control_of_state = 671
					has_full_control_of_state = 670
					has_full_control_of_state = 927
					has_full_control_of_state = 286
				}
				
			}
			VIN = {
				exists = no
			}
		}
		prerequisite = {
			focus = SOV_sino_soviet_treaty
		}
		x = 0
		y = 1
		relative_position_id = SOV_sino_soviet_treaty
		completion_reward = {
			custom_effect_tooltip = SOV_support_yen_bai_mutiny_tt
			hidden_effect = {
				FRI = {
					add_days_mission_timeout = {
						mission = r56_FRI_nationist_uprising_2
						days = -5000
					}
				}	
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_interest_in_cuba
		icon = GFX_goal_sov_communist_cuba
		prerequisite = { focus = SOV_expand_western_spy_rings }
		x = 0
		y = 1
		relative_position_id = SOV_expand_western_spy_rings

		cost = 5

		ai_will_do = {
			factor = 0.9
			modifier = { #Go for the unthinkable asap
				add = 25
				OR = {
					USA = {
						exists = yes
						is_major = yes
						has_war = no
						is_faction_leader = yes
					}
					ENG = {
						exists = yes
						is_major = yes
						has_war = no
						is_faction_leader = yes
					}
				}
				ROOT = {
					has_war = no
					is_faction_leader = yes
					is_major = yes
				}
				has_global_flag = r56_ww2_got_done_early_make_ai_move_toward_ww3
			}
		}

		available = {
			CUB = {
				exists = yes
			}
		}

		bypass = {
			OR = {
				CUB = {
					has_government = communism
					exists = no
				}
			}
		}


		completion_reward = {
			CUB = {
				country_event = {
					id = r56.soviet.92
					days = 1
				}
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}

	focus = {
		id = SOV_a_cold_war
		icon = GFX_goal_generic_cold_war
		prerequisite = { focus = SOV_found_the_comecon }
		mutually_exclusive = { focus = SOV_extend_the_curtain_outwards }
		x = 1
		y = 1
		relative_position_id = SOV_found_the_comecon

		cost = 6

		ai_will_do = {
			factor = 0.1
		}

		available = {
			has_war = no
		}


		completion_reward = {
			add_threat = -80
			add_ideas = SOV_cold_war_idea
			USA = {
				add_ideas = SOV_cold_war_idea
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SOV_extend_the_curtain_outwards
		icon = GFX_goal_sov_east_vs_west
		prerequisite = { focus = SOV_found_the_comecon }
		mutually_exclusive = { focus = SOV_a_cold_war }
		x = -1
		y = 1
		relative_position_id = SOV_found_the_comecon

		cost = 10

		available = {
			is_faction_leader = yes
			is_subject = no
			any_other_country = {
				is_major = yes
				num_of_factories > 100
				has_government = democratic
				NOT = { is_in_faction_with = ROOT }
			}
		}

		bypass = {
			all_other_country = {
				is_major = yes
				num_of_factories > 100
				has_government = democratic
				has_war_with = ROOT
			}
		}

		ai_will_do = {
			factor = 0
			modifier = { #Go for the unthinkable asap
				add = 25
				any_other_country = {
					exists = yes
					is_major = yes
					num_of_factories > 100
					has_government = democratic
					has_war = no
					is_faction_leader = yes
				}
				ROOT = {
					has_war = no
					is_faction_leader = yes
					is_major = yes
				}
				has_global_flag = r56_ww2_got_done_early_make_ai_move_toward_ww3
			}
		}

		select_effect = {
			every_country = {
				limit = {
					OR ={
						AND = {
							is_major = yes
							num_of_factories > 100
						}
						is_neighbor_of = ROOT
					}
					has_government = democratic
					NOT = { is_in_faction_with = ROOT }
				}
				ROOT = {
					add_ai_strategy = {
						type = prepare_for_war
						id = PREV
						value = 100
					}
				}
			}
		}

		completion_reward = {
			custom_effect_tooltip = sov_hot_war_tt
			every_other_country = {
				limit = {
					OR ={
						AND = {
							is_major = yes
							num_of_factories > 100
						}
						is_neighbor_of = ROOT
					}
					has_government = democratic
					NOT = { is_in_faction_with = ROOT }
				}
				ROOT = {
					create_wargoal = {
						target = PREV
						type = puppet_wargoal_focus
						expire = 0
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
}
###  ###  ##  ###  ##  #  #  ##  #    	   ## ### #  # ### ###         
#  # #   #     #  #  # ## # #  # #    	  #    #  #  # #   #   {~._.~} 
###  ##  # ##  #  #  # # ## #### #    	   #   #  #  # ##  ##   ( Y )  
#  # #   #  #  #  #  # #  # #  # #    	    #  #  #  # #   #   ()~*~() 
#  # ###  ##  ###  ##  #  # #  # ###  	  ##   #   ##  #   #   (_)-(_) 
#	focus = {
#		id = SOV_consolidate_power
#		icon = GFX_goal_generic_dangerous_deal
#		x = 15
#		y = 0
#		relative_position_id = SOV_article_124
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			add_political_power = 90
#		}
#	}
#
#	focus = {
#		id = SOV_consolidate_the_caucasus
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_power }
#		x = -5
#		y = 1
#		relative_position_id = SOV_consolidate_power
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#
#		completion_reward = {
#			
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 229
#						state = 230
#						state = 231
#						state = 232
#						state = 233
#					}
#					#229 230 231 232 233
#					free_building_slots = {
#						building = infrastructure
#						size > 0
#					}
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 1
#					instant_build = yes
#				}
#			}
#		
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 229
#						state = 230
#						state = 231
#						state = 232
#						state = 233
#					}
#
#					free_building_slots = {
#						building = infrastructure
#						size > 1
#					}
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 2
#					instant_build = yes
#				}
#			}
#				
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 229
#						state = 230
#						state = 231
#						state = 232
#						state = 233
#					}
#
#				}
#				add_extra_state_shared_building_slots = 1
#				add_building_construction = {
#					type = industrial_complex
#					level = 1
#					instant_build = yes
#				}
#			}
#		}
#	}
#
#	focus = {
#		id = SOV_consolidate_the_west
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_power }
#		x = 0
#		y = 1
#		relative_position_id = SOV_consolidate_power
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 192
#						state = 193
#						state = 194
#						state = 195
#						state = 196
#						state = 197
#						state = 198
#						state = 199
#						state = 200
#						state = 201
#						state = 202
#						state = 203
#						state = 204
#						state = 206
#						state = 207
#						state = 221
#						state = 225						
#						state = 226						
#						state = 227
#						state = 241
#						state = 137
#					}
#
#					free_building_slots = {
#						building = infrastructure
#						size > 0
#					}
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 1
#					instant_build = yes
#				}
#			}
#		
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 192
#						state = 193
#						state = 194
#						state = 195
#						state = 196
#						state = 197
#						state = 198
#						state = 199
#						state = 200
#						state = 201
#						state = 202
#						state = 203
#						state = 204
#						state = 206
#						state = 207
#						state = 221
#						state = 225						
#						state = 226						
#						state = 227
#						state = 241
#						state = 137
#					}
#					free_building_slots = {
#						building = infrastructure
#						size > 1
#					}
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 2
#					instant_build = yes
#				}
#			}
#				
#			random_owned_controlled_state = {
#				limit = { 
#					OR = {
#						state = 192
#						state = 193
#						state = 194
#						state = 195
#						state = 196
#						state = 197
#						state = 198
#						state = 199
#						state = 200
#						state = 201
#						state = 202
#						state = 203
#						state = 204
#						state = 206
#						state = 207
#						state = 221
#						state = 225						
#						state = 226						
#						state = 227
#						state = 241
#						state = 137
#					}
#				}
#				add_extra_state_shared_building_slots = 1
#				add_building_construction = {
#					type = industrial_complex
#					level = 1
#					instant_build = yes
#				}
#			}
#		}
#			
#	}
#
#	focus = {
#		id = SOV_consolidate_the_east
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_power }
#		x = 4
#		y = 1
#		relative_position_id = SOV_consolidate_power
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 402
#						state = 404
#						state = 405
#						state = 584
#						state = 585
#						state = 586
#						state = 587
#						state = 588
#						state = 589
#						state = 590						
#						state = 732
#						state = 742
#						state = 40
#					}
#					free_building_slots = {
#						building = infrastructure
#						size > 0
#					}
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 1
#					instant_build = yes
#				}
#			}
#		
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 402
#						state = 404
#						state = 405
#						state = 584
#						state = 585
#						state = 586
#						state = 587
#						state = 588
#						state = 589
#						state = 590						
#						state = 732
#						state = 742
#						state = 40
#					}
#					free_building_slots = {
#						building = infrastructure
#						size > 1
#					}
#
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 2
#					instant_build = yes
#				}
#			}
#				
#			random_owned_controlled_state = {
#				limit = { 
#					OR = {
#						state = 402
#						state = 404
#						state = 405
#						state = 584
#						state = 585
#						state = 586
#						state = 587
#						state = 588
#						state = 589
#						state = 590						
#						state = 732
#						state = 742
#						state = 40
#					}
#				}
#				add_extra_state_shared_building_slots = 1
#				add_building_construction = {
#					type = industrial_complex
#					level = 1
#					instant_build = yes
#				}
#			}
#		}
#	}
#
#	focus = {
#		id = SOV_sufi_stronghold
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_the_caucasus }
#		x = -2
#		y = 1
#		relative_position_id = SOV_consolidate_the_caucasus
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			SOV_decrease_church_power = yes
#			add_ideas = SOV_multi_religious_empire
#		}
#	}
#
#	focus = {
#		id = SOV_independent_synod
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_the_caucasus }
#		x = 0
#		y = 1
#		relative_position_id = SOV_consolidate_the_caucasus
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			SOV_decrease_church_power = yes
#			add_political_power = 50
#		}
#	}
#
#	focus = {
#		id = SOV_educate_the_masses_caucasus
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_the_caucasus }
#		x = 2
#		y = 3
#		relative_position_id = SOV_consolidate_the_caucasus
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#				completion_reward = {
#			
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 229
#						state = 230
#						state = 231
#						state = 232
#						state = 233
#					}
#					#229 230 231 232 233
#					free_building_slots = {
#						building = infrastructure
#						size > 0
#					}
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 1
#					instant_build = yes
#				}
#			}
#		
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 229
#						state = 230
#						state = 231
#						state = 232
#						state = 233
#					}
#
#					free_building_slots = {
#						building = infrastructure
#						size > 1
#					}
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 2
#					instant_build = yes
#				}
#			}
#		}
#	}
#
#	focus = {
#		id = SOV_transcaucasian_republic
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_sufi_stronghold }
#		prerequisite = { focus = SOV_independent_synod }
#		prerequisite = { focus = SOV_educate_the_masses_caucasus }
#		x = 0
#		y = 1
#		relative_position_id = SOV_independent_synod
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			country_event = { 
#				id = NSB_Soviet_puppeting.1 hours = 2 random_hours = 1 
#			}
#		}
#	}
#
#	focus = {
#		id = SOV_independent_synod_west
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_the_west }
#		x = -1
#		y = 1
#		relative_position_id = SOV_consolidate_the_west
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			SOV_decrease_church_power = yes
#			add_political_power = 50
#		}
#	}
#
#	focus = {
#		id = SOV_educate_the_masses_west
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_the_west }
#		x = 1
#		y = 3
#		relative_position_id = SOV_consolidate_the_west
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 259
#						state = 192
#						state = 193
#						state = 194
#						state = 195
#						state = 196
#						state = 197
#						state = 198
#						state = 199
#						state = 200
#						state = 201
#						state = 202
#						state = 203
#						state = 204
#						state = 206
#						state = 207
#						state = 221
#						state = 225						
#						state = 226						
#						state = 227
#						state = 241
#						state = 137
#					}
#
#					free_building_slots = {
#						building = infrastructure
#						size > 0
#					}
#
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 1
#					instant_build = yes
#				}
#			}
#		
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 259
#						state = 192
#						state = 193
#						state = 194
#						state = 195
#						state = 196
#						state = 197
#						state = 198
#						state = 199
#						state = 200
#						state = 201
#						state = 202
#						state = 203
#						state = 204
#						state = 206
#						state = 207
#						state = 221
#						state = 225						
#						state = 226						
#						state = 227
#						state = 241
#						state = 137
#					}
#					free_building_slots = {
#						building = infrastructure
#						size > 1
#					}
#
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 2
#					instant_build = yes
#				}
#			}
#		}
#	}
#
#	focus = {
#		id = SOV_free_rutenia
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_independent_synod_west }
#		prerequisite = { focus = SOV_educate_the_masses_west}
#		x = 0
#		y = 1
#		relative_position_id = SOV_independent_synod_west
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			country_event = { 
#				id = NSB_Soviet_puppeting.2 hours = 2 random_hours = 1 
#			}
#		}
#	}
#
#	focus = {
#		id = SOV_friendship_of_nations_university
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_educate_the_masses_west }
#		prerequisite = { focus = SOV_educate_the_masses_caucasus }
#		prerequisite = { focus = SOV_educate_the_masses_east }
#		x = 0
#		y = 4
#		relative_position_id = SOV_educate_the_masses_west
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			add_research_slot = 1 #this might be too much
#			add_to_variable = { SOV_defense_industry_research_speed_factor = 0.05 }
#		}
#	}
#
#
#
#focus = {
#		id = SOV_independent_koranic_school
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_the_east }
#		x = -1
#		y = 1
#		relative_position_id = SOV_consolidate_the_east
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			SOV_decrease_church_power = yes
#			add_ideas = SOV_multi_religious_empire
#			add_political_power = 50
#		}
#	}
#
#	focus = {
#		id = SOV_educate_the_masses_east
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_consolidate_the_east }
#		x = 1
#		y = 3
#		relative_position_id = SOV_consolidate_the_east
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 402
#						state = 404
#						state = 405
#						state = 584
#						state = 585
#						state = 586
#						state = 587
#						state = 588
#						state = 589
#						state = 590						
#						state = 732
#						state = 742
#						state = 40
#					}
#					free_building_slots = {
#						building = infrastructure
#						size > 0
#					}
#			
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 1
#					instant_build = yes
#				}
#			}
#		
#			random_owned_controlled_state = {
#				limit = {
#					OR = {
#						state = 402
#						state = 404
#						state = 405
#						state = 584
#						state = 585
#						state = 586
#						state = 587
#						state = 588
#						state = 589
#						state = 590						
#						state = 732
#						state = 742
#						state = 40
#					}
#					free_building_slots = {
#						building = infrastructure
#						size > 1
#					}
#
#				}
#				add_building_construction = {
#					type = infrastructure
#					level = 2
#					instant_build = yes
#				}
#			}
#		}
#	}
#
#	focus = {
#		id = SOV_free_bukharan_republic
#		icon = GFX_goal_generic_dangerous_deal
#		prerequisite = { focus = SOV_independent_koranic_school }
#		prerequisite = { focus = SOV_educate_the_masses_east}
#		x = 0
#		y = 1
#		relative_position_id = SOV_independent_koranic_school
#		cost = 10
#		ai_will_do = {
#			factor = 1
#		}
#
#		available_if_capitulated = yes
#		
#		completion_reward = {
#			country_event = { 
#				id = NSB_Soviet_puppeting.3 hours = 2 random_hours = 1 	
#			}
#		}
#	}
#}
