SOV_historical_plan = {
	name = "SOV historical plan"
	desc = ""

	allowed = {
		original_tag = SOV
	}
	enable = {
		NOT = { has_global_flag = SOV_no_purge_collaboration }
		NOT = { has_country_flag = mech_brick }
		OR = {
			AND = {
				is_historical_focus_on = yes
				has_game_rule = {
					rule = SOV_ai_behavior
					option = DEFAULT
				}
			}
			has_country_flag = SOV_AI_RANDOM_COMMUNIST_HISTORICAL
			has_game_rule = {
				rule = SOV_ai_behavior
				option = HISTORICAL
			}
		}
	}
	abort = {
		OR = { 
			is_subject = yes
			has_country_flag = mech_brick
			has_global_flag = SOV_no_purge_collaboration
		}
	}

	ai_national_focuses = {
		#Things to do ASAP
		SOV_lessons_of_war #35
		SOV_the_road_of_life #35
		SOV_desperate_measures #35 (DO THIS ASAP)
		SOV_the_collectivization_process_b
		SOV_organization_centralization_discipline_b
		SOV_war_economy_b
		SOV_fourth_five_year_plan # (FYP)
		SOV_recover_the_kuril_islands #35 (As soon as AI has completed Prepare a War with Japan focus ~mid 1945)
		SOV_found_the_comecon
		SOV_transformation_of_nature	


		SOV_the_path_of_marxism_leninism #35
		SOV_addressing_internal_affairs #35
		SOV_the_new_soviet_woman #35

		SOV_the_centre #35
		SOV_the_stalin_constitution # -> Dec 1936

		# Purge
		SOV_the_zinovyevite_terrorist_center #35 -> Mid 1936

		SOV_heavy_industry #35		
		SOV_infrastructure_effort_nsb #35
		SOV_expand_the_agitprop #35
		SOV_secure_the_administration #70

		# Purge		
		SOV_the_anti_soviet_trotskyist_center #35 -> Early 1937
		SOV_finish_the_five_year_plan # -> Dec 1937
		SOV_foreign_experts #35
		SOV_the_workers_dictatorship #70

		# Purge
		SOV_the_military_conspiracy #35 -> Mid 1937
		
		SOV_develop_the_urals #35
		SOV_behead_the_snake #35 -> May 1940 (raid)
		SOV_eastern_development #35
		SOV_the_ussr_academy_of_sciences	
		SOV_the_comintern #35

		# Purge
		SOV_the_bloc_of_rights_and_trotskyites #35 -> Early 1938 
		SOV_found_the_pcdi #35 -> Dec 1936
		SOV_pc_of_mechanical_engineering #70 -> Aug 1937
		SOV_third_five_year_plan # -> 1938
		SOV_reorganize_the_pc_of_heavy_industry
		SOV_industrial_modernization #need 35 extra days for AI

		#1939
		SOV_baltic_security #35 -> 1939
		SOV_claims_in_baltic # -> 1940
		SOV_secure_leningrad

		SOV_strengthen_the_mobilization_plan #35
		SOV_military_engineering_university
		SOV_the_means_to_wage_war
		SOV_leningrad_polytechnical_institute
		SOV_steel_casting_industry
		SOV_merge_tank_and_materiel_plants #about time
		SOV_superior_war_machines
		SOV_soviet_artillery	
		SOV_development_of_tankograd
		SOV_cohesion_first #35 -> 1936/1939
		SOV_rehabilitated_military
		SOV_military_reorganization
		SOV_experts_in_camouflage

		#1941
		SOV_socialism_in_one_country #35
		SOV_the_komsomol #35
		SOV_nkvd_primacy #35
		SOV_smersh
		SOV_policy_of_collective_security
		SOV_anti_fascist_policies
		SOV_seek_a_defense_pact_with_the_allies
		SOV_eradicate_western_fascism
		SOV_keep_commissars_organization
		SOV_collectivist_propaganda

		SOV_claims_on_poland # (if there is no molotov ribbentrop, then we do it later)
		SOV_demand_eastern_poland # (IN CASE NO MOLOTOV-RIBENTROP)
		SOV_claim_on_bessarabia # -> Jul 1940

		SOV_the_threat_from_the_land_of_the_rising_sun

		#1943 -----------> -0.5y (Compensated by the ASAP stuff)
		SOV_move_industry_to_the_urals

		#1944
		SOV_barrier_troops #35
		SOV_stalins_cult_of_personality #35
		SOV_inheritor_of_the_mantle_of_lenin
		SOV_leader_of_the_party_and_the_people
		SOV_brilliant_genius
		SOV_great_commander
		SOV_father_of_nations
		SOV_pc_of_mortar_armament
		

		SOV_transpolar_flights #35 -> 1937
		SOV_foster_flying_clubs
		SOV_women_in_aviation
		SOV_expand_aviation_institutes
		SOV_raskovas_aviation_group # -> 1942/43 (Oct 41 formation)
		SOV_intensify_pilot_training_program
		SOV_ground_support

		SOV_the_modern_war_in_the_skies
		SOV_expand_the_aircraft_industry
		SOV_modernize_aircraft_facilities
		SOV_merge_aircraft_plants
		
		#1945
		SOV_war_measures_in_the_east #35
		SOV_development_aid_for_eastern_allies #35
		SOV_annex_tannu_tuva #35 -> Nov 1944
		SOV_national_academies_of_sciences #35
		SOV_soviet_atomic_bomb_project
		SOV_socialist_emulation
		SOV_socialist_realism
		SOV_patriarch_of_all_russia #35

		SOV_the_threat_from_the_land_of_the_rising_sun
		SOV_the_gobi_gambit
		SOV_intervention_in_china
		SOV_prepare_a_war_with_japan
		SOV_end_the_khalkhin_gol_conflict

		SOV_expand_the_red_fleet
		SOV_reinforce_eastern_naval_bases
		SOV_reinforce_western_naval_bases
		SOV_reinforce_northern_naval_bases
		SOV_reinforce_southern_naval_bases
		SOV_expand_shipbuilding_plants
		
	}

	research = {
		infantry_weapons = 50.0
		infantry_tech = 10.0
		naval_equipment = -90.0 #we don't need ships
		naval = -90.0 #we don't need ships
	}

	ideas = {

	}
	traits = {
		construction_company = 5
		captain_of_industry = 5
		popular_figurehead = 5
	}

	

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}
SOV_historical_plan2 = {
	name = "SOV historical plan"
	desc = ""

	allowed = {
		original_tag = SOV
	}
	enable = {
		has_country_flag = mech_brick
		NOT = { has_global_flag = SOV_no_purge_collaboration }
		OR = {
			AND = {
				is_historical_focus_on = yes
				has_game_rule = {
					rule = SOV_ai_behavior
					option = DEFAULT
				}
			}
			has_country_flag = SOV_AI_RANDOM_COMMUNIST_HISTORICAL
			has_game_rule = {
				rule = SOV_ai_behavior
				option = HISTORICAL
			}
		}
	}
	abort = {
		OR = { 
			is_subject = yes
			NOT = { has_country_flag = mech_brick }
			has_global_flag = SOV_no_purge_collaboration
		}
	}

	ai_national_focuses = {
		SOV_desperate_measures #35 (DO THIS ASAP)
		SOV_the_collectivization_process_b
		SOV_organization_centralization_discipline_b
		SOV_war_economy_b
		SOV_fourth_five_year_plan # (FYP)
		SOV_recover_the_kuril_islands #35 (As soon as AI has completed Prepare a War with Japan focus ~mid 1945)
		SOV_lessons_of_war #35
		SOV_found_the_comecon
		SOV_transformation_of_nature	


		SOV_found_the_pcdi #35 -> Dec 1936
		SOV_pc_of_mechanical_engineering #70 -> Aug 1937
		SOV_the_path_of_marxism_leninism #35
		SOV_addressing_internal_affairs #35
		SOV_the_new_soviet_woman #35
		SOV_the_centre #35
		SOV_the_stalin_constitution # -> Dec 1936

		# Purge
		SOV_the_zinovyevite_terrorist_center #35 -> Mid 1936

		SOV_heavy_industry #35		
		SOV_infrastructure_effort_nsb #35
		SOV_finish_the_five_year_plan # -> Dec 1937
		SOV_foreign_experts #35

		# Purge		
		SOV_the_anti_soviet_trotskyist_center #35 -> Early 1937

		SOV_expand_the_agitprop #35
		SOV_secure_the_administration #70
		SOV_the_workers_dictatorship #70

		# Purge
		SOV_the_military_conspiracy #35 -> Mid 1937
		
		SOV_eastern_development #35
		SOV_behead_the_snake #35 -> May 1940 (raid)
		SOV_develop_the_urals #35
		SOV_the_ussr_academy_of_sciences

		# Purge
		SOV_the_bloc_of_rights_and_trotskyites #35 -> Early 1938
		SOV_third_five_year_plan # -> 1938
		SOV_reorganize_the_pc_of_heavy_industry
		SOV_industrial_modernization #need 35 extra days for AI 

		#1939	
		SOV_the_comintern #35
		SOV_baltic_security #35 -> 1939
		SOV_claims_in_baltic # -> 1940
		SOV_secure_leningrad

		SOV_strengthen_the_mobilization_plan #35
		SOV_military_engineering_university
		SOV_the_means_to_wage_war
		SOV_leningrad_polytechnical_institute
		SOV_steel_casting_industry
		SOV_superior_war_machines
		SOV_soviet_artillery	
		SOV_cohesion_first #35 -> 1936/1939
		SOV_rehabilitated_military
		SOV_military_reorganization
		SOV_experts_in_camouflage
		SOV_socialism_in_one_country #35

		#1941
		SOV_merge_tank_and_materiel_plants #about time
		SOV_development_of_tankograd
		SOV_collectivist_propaganda
		SOV_keep_commissars_organization

		SOV_claims_on_poland # (if there is no molotov ribbentrop, then we do it later)
		SOV_demand_eastern_poland # (IN CASE NO MOLOTOV-RIBENTROP)
		SOV_claim_on_bessarabia # -> Jul 1940

		SOV_the_threat_from_the_land_of_the_rising_sun

		#1943 -----------> -0.5y (Compensated by the ASAP stuff)
		SOV_the_road_of_life #35
		SOV_move_industry_to_the_urals

		#1944
		SOV_smersh
		SOV_barrier_troops #35
		SOV_the_komsomol #35
		SOV_stalins_cult_of_personality #35
		SOV_inheritor_of_the_mantle_of_lenin
		SOV_leader_of_the_party_and_the_people
		SOV_brilliant_genius
		SOV_great_commander
		SOV_father_of_nations
		SOV_nkvd_primacy #35
		SOV_pc_of_mortar_armament
		

		SOV_transpolar_flights #35 -> 1937
		SOV_foster_flying_clubs
		SOV_women_in_aviation
		SOV_expand_aviation_institutes
		SOV_raskovas_aviation_group # -> 1942/43 (Oct 41 formation)
		SOV_intensify_pilot_training_program
		SOV_ground_support

		SOV_the_modern_war_in_the_skies
		SOV_expand_the_aircraft_industry
		SOV_modernize_aircraft_facilities
		SOV_merge_aircraft_plants
		
		#1945
		SOV_war_measures_in_the_east #35
		SOV_development_aid_for_eastern_allies #35
		SOV_annex_tannu_tuva #35 -> Nov 1944
		SOV_national_academies_of_sciences #35
		SOV_soviet_atomic_bomb_project
		SOV_socialist_emulation
		SOV_socialist_realism
		SOV_patriarch_of_all_russia #35

		SOV_the_threat_from_the_land_of_the_rising_sun
		SOV_the_gobi_gambit
		SOV_intervention_in_china
		SOV_prepare_a_war_with_japan
		SOV_end_the_khalkhin_gol_conflict

		SOV_expand_the_red_fleet
		SOV_reinforce_eastern_naval_bases
		SOV_reinforce_western_naval_bases
		SOV_reinforce_northern_naval_bases
		SOV_reinforce_southern_naval_bases
		SOV_expand_shipbuilding_plants
	}

	research = {
		infantry_weapons = 50.0
		infantry_tech = 10.0
		naval_equipment = -50.0 #we don't need ships
	}

	ideas = {

	}
	traits = {
		construction_company = 5
		captain_of_industry = 5
		popular_figurehead = 5
	}

	

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}
SOV_historical_no_purge = {
	name = "SOV historical plan"
	desc = ""

	allowed = {
		original_tag = SOV
	}
	enable = {
		has_global_flag = SOV_no_purge_collaboration
		OR = {
			AND = {
				is_historical_focus_on = yes
				has_game_rule = {
					rule = SOV_ai_behavior
					option = DEFAULT
				}
			}
			has_country_flag = SOV_AI_RANDOM_COMMUNIST_HISTORICAL
			has_game_rule = {
				rule = SOV_ai_behavior
				option = HISTORICAL
			}
		}
	}
	abort = {
		OR = { 
			is_subject = yes
			NOT = { has_global_flag = SOV_no_purge_collaboration }
		}
	}

	ai_national_focuses = {
		SOV_desperate_measures #35 (DO THIS ASAP)
		SOV_the_collectivization_process_b
		SOV_organization_centralization_discipline_b
		SOV_war_economy_b
		SOV_fourth_five_year_plan # (FYP)
		SOV_recover_the_kuril_islands #35 (As soon as AI has completed Prepare a War with Japan focus ~mid 1945)
		SOV_lessons_of_war #35
		SOV_found_the_comecon
		SOV_transformation_of_nature	



		SOV_heavy_industry #35		
		SOV_infrastructure_effort_nsb #35
		SOV_finish_the_five_year_plan # -> Dec 1937
		SOV_foreign_experts #35
		SOV_expand_the_agitprop #35
		
		SOV_eastern_development #35
		SOV_develop_the_urals #35
		SOV_the_ussr_academy_of_sciences
		SOV_third_five_year_plan # -> 1938
		SOV_reorganize_the_pc_of_heavy_industry
		SOV_industrial_modernization #need 35 extra days for AI 
		SOV_the_path_of_marxism_leninism #35
		SOV_addressing_internal_affairs #35
		SOV_the_new_soviet_woman #35
		SOV_the_centre #35
		SOV_the_stalin_constitution # -> Dec 1936

		#1939	
		SOV_the_comintern #35

		SOV_strengthen_the_mobilization_plan #35
		SOV_found_the_pcdi #35 -> Dec 1936
		SOV_collectivist_propaganda
		SOV_socialist_emulation
		SOV_socialist_realism
		SOV_pc_of_mechanical_engineering #70 -> Aug 1937
		SOV_military_engineering_university
		SOV_the_means_to_wage_war
		SOV_leningrad_polytechnical_institute
		SOV_steel_casting_industry
		SOV_superior_war_machines
		SOV_soviet_artillery	
		SOV_cohesion_first #35 -> 1936/1939
		SOV_rehabilitated_military
		SOV_military_reorganization
		SOV_experts_in_camouflage
		SOV_socialism_in_one_country #35

		#1941
		SOV_merge_tank_and_materiel_plants #about time
		SOV_development_of_tankograd
		SOV_keep_commissars_organization

		SOV_the_road_of_life #35
		SOV_move_industry_to_the_urals

		SOV_socialism_in_one_country
		SOV_secure_the_administration
		SOV_the_zinovyevite_terrorist_center

		#1944
		SOV_smersh
		SOV_barrier_troops #35
		SOV_the_komsomol #35
		SOV_nkvd_primacy #35
		SOV_pc_of_mortar_armament
		
		SOV_transpolar_flights #35 -> 1937
		SOV_foster_flying_clubs
		SOV_women_in_aviation
		SOV_expand_aviation_institutes
		SOV_raskovas_aviation_group # -> 1942/43 (Oct 41 formation)
		SOV_intensify_pilot_training_program
		SOV_ground_support

		SOV_the_modern_war_in_the_skies
		SOV_expand_the_aircraft_industry
		SOV_modernize_aircraft_facilities
		SOV_merge_aircraft_plants
		
		#1945
		SOV_war_measures_in_the_east #35
		SOV_development_aid_for_eastern_allies #35
		SOV_annex_tannu_tuva #35 -> Nov 1944
		SOV_national_academies_of_sciences #35
		SOV_soviet_atomic_bomb_project
		SOV_socialist_emulation
		SOV_socialist_realism
		SOV_patriarch_of_all_russia #35

	}

	research = {
		infantry_weapons = 50.0
		infantry_tech = 10.0
		naval_equipment = -50.0 #we don't need ships
	}

	ideas = {

	}
	traits = {
		construction_company = 5
		captain_of_industry = 5
		popular_figurehead = 5
	}

	

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}
baltic_communist_collab = {
	name = "baltic semi historical plan"
	desc = ""

	allowed = {
		OR = {
			original_tag = LIT
			original_tag = LAT
			original_tag = EST
		}
	}

	enable = {
		has_global_flag = SOV_no_purge_collaboration
		NOT = { has_global_flag = SOV_welfare_disabled }
		has_dlc = "No Step Back"
		OR = {
			AND = {
				is_historical_focus_on = yes
				has_game_rule = {
					rule = EST_ai_behavior
					option = DEFAULT
				}
			}
			has_country_flag = EST_AI_RANDOM_HISTORICAL
			has_game_rule = {
				rule = EST_ai_behavior
				option = HISTORICAL
			}
		}
	}
	abort = {
	}

	ai_national_focuses = {
		BALTIC_restore_workers_republic
		BALTIC_seek_support_of_soviets
		BALTIC_soviet_equipment
		BALTIC_soviet_volunteer_forces
		BALTIC_overthrow_the_government
		BALTIC_direct_intervention

		BALTIC_revolutionary_cabinet
		BALTIC_squash_resistance
		BALTIC_purge_of_our_own
		BALTIC_crush_forest_brothers
		BALTIC_red_army
		BALTIC_align_paramilitarists

		BALTIC_rejoin_the_railways
		BALTIC_axis_investments
		BALTIC_german_war_economics
		BALTIC_german_tank_licences
		BALTIC_autobahn

		BALTIC_german_baltic_industry
		BALTIC_sieze_the_means_of_production
		BALTIC_modernize_industry
		BALTIC_domestic_motors
		BALTIC_attract_workers_to_capital

		BALTIC_rebuild_forts
		BALTIC_arm_the_nation
		BALTIC_defence_of_our_nation
		BALTIC_original_designs
		BALTIC_arms_industry
		BALTIC_natural_resources

		BALTIC_trade_with_neighbors
		BALTIC_focus_on_the_interior
		BALTIC_focus_on_the_interior_2
	}

	research = {
		industry = 50.0
		infantry_tech = 15.0
		artillery = 8.0
		support_tech = 6.5
	}

	ideas = {
		
	}

	traits = {
		captain_of_industry = 5
		war_industrialist = 5
	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

	focus_factors = {
		BALTIC_finnish_invasion = 0
		BALTIC_path_to_the_north_sea = 0
		BALTIC_free_the_workers_of_poland = 0
		BALTIC_end_swedish_neutrality = 0
	}

}
