SOV_stop_spamming_excavation = {
    name = "Stop Spamming Excavation"
	desc = "Stop Spamming Excavation for Russia."

	enable = {
		original_tag = SOV
        NOT = {
            has_country_flag = sov_focus_on_excavation
        }
	}

	#To prevent the AI from spamming prospect for resources
	research = {
		excavation2 = -100
		excavation3 = -100
		excavation4 = -100
		excavation5 = -100
	}

	# 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
		}
	}
}

#Keep pp for SCW decisions
SOV_keep_pp_for_scw = {
	name = "Russia - Keep Political Power for SCW"
	desc = "Keep Political Power for SCW."

	enable = {
		original_tag = SOV
        is_subject = no
        OR = {
			has_completed_focus = SOV_terrible_fate
			focus_progress = {
				focus = SOV_terrible_fate
				progress > 0.01
			}
			AND = {
				OR = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
					has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
					has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
				}
				date < 1936.05.01
			}
		}
		NOT = {
			has_completed_focus = SOV_right_to_believe
			has_completed_focus = SOV_second_civil_war
		}
	}

	abort = {
		OR = {
            is_subject = yes
            exists = no
            has_completed_focus = SOV_right_to_believe
			has_completed_focus = SOV_second_civil_war
        }
	}

	ai_national_focuses = {

	}

	research = {

	}

	ideas = {
		disarmed_nation = 0
		volunteer_only = 0
		limited_conscription = 0
		extensive_conscription = 0
		service_by_requirement = 0
		all_adults_serve = 0
		scraping_the_barrel = 0
		free_trade = 0
		export_focus = 0
		limited_exports = 0
		closed_economy = 0
		civilian_economy = 0
		low_economic_mobilisation = 0
		partial_economic_mobilisation = 0
		war_economy = 0
		tot_economic_mobilisation = 0
		SOV_Nikolai_voznesensky = 0
		SOV_Kliment_voroshilov_advisor = 0
		SOV_Lazar_kaganovich = 0
		SOV_Genrikh_yagoda = 0
		SOV_Nikolay_yezhov = 0
		SOV_Lavrentiy_beria = 0
		SOV_Mikhail_kalinin = 0
		SOV_Nikita_khrushchev = 0
		SOV_Aleksandra_kollontay = 0
		SOV_Yakov_agranov = 0
		SOV_Ivan_maisky = 0
		SOV_Vyacheslav_molotov = 0
		SOV_Maksim_litvinov = 0
		SOV_Ivan_smirnov = 0
		SOV_Ivar_smilga = 0
		SOV_Karl_radek = 0
		SOV_Aleksandr_shlyapnikov = 0
		SOV_Mikhail_tomsky = 0
		SOV_Grigory_sokolnikov = 0
		SOV_Vsevolod_merkulov = 0
		SOV_Mikhail_tukhachevsky = 0
		SOV_Boris_shaposhnikov = 0
		SOV_Georgy_zhukov = 0
		SOV_Sergey_gorshkov = 0
		SOV_Vladimir_tributs = 0
		SOV_Sergei_rudenko = 0
		SOV_Alexander_golovanov = 0
		SOV_Igor_kurchatov = 0
		SOV_Sergei_korolev = 0
		SOV_Ivan_konev = 0
		SOV_Aleksandr_vasilevsky = 0
		SOV_Konstantin_rokossovsky = 0
		SOV_Pavel_zhigarev = 0
		SOV_Sergei_khudyakov = 0
		SOV_Stepan_krasovsky = 0
		SOV_Vladimir_kasatonov = 0
		SOV_Gordey_levchenko = 0
		SOV_Arseniy_golovko = 0
		SOV_Alexander_novikov = 0
		SOV_Konstantin_vershinin = 0
		SOV_Yakov_smushkevich = 0
		SOV_Pavel_rychagov = 0
		SOV_Pyotr_smirnov = 0
		SOV_Mikhail_frinovsky = 0
		SOV_Nikolay_kuznetsov = 0
		SOV_Ivan_yumashev = 0
		SOV_Semyon_timoshenko = 0
		SOV_Kliment_voroshilov_military = 0
		SOV_Alexander_yegorov = 0
		SOV_Vasily_blyukher = 0
		stalingrad_tractor_factory_russia2 = 0
		leningrad_polytechnical_institute_russia2 = 0
		russia2_leningrad_metal_factory = 0
		russia2_izhevsk_mechanical_plant = 0
		russia2_riga_electric_machine_building_plant = 0
		russia2_soviet_railways = 0
		russia2_gosproyektstroy = 0
		russia2_grabin_design_bureau = 0
		russia2_tula_arms_plant = 0
		russia2_gaz = 0
		russia2_belaz = 0
		russia2_mig_design_bureau = 0
		russia2_ilyushin_design_bureau = 0
		russia2_tupolev_design_bureau = 0
		russia2_yakovlev_design_bureau = 0
		russia2_antonov_serial_production_plant = 0
		russia2_nevskoye_design_bureau = 0
		russia2_volgograd_shipyard = 0
		russia2_dagdizel_plant = 0
		russia2_amur_shipbuilding_plant = 0
		russia2_ubin_design_bureau = 0
		russia2_black_sea_shipyard = 0
		russia2_sevastopol_marine_plant = 0
		russia2_morozov_design_bureau = 0
		russia2_astrov_design_bureau = 0
		russia2_okmo = 0
		russia2_uralvagonzavod = 0
		russia2_volgograd_tractor_plant = 0
		russia2_mytishchy_machine_building = 0
		russia2_kirov = 0
	}

	# 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_keep_pp_for_purge = {
	name = "Russia - Keep Political Power for Purge"
	desc = "Keep Political Power for Purge."

	enable = {
		original_tag = SOV
        is_subject = no
        has_political_power < 500
		has_idea = SOV_Great_purge_idea_russia2
	}

	abort = {
		OR = {
			is_subject = yes
			has_political_power > 500
			has_manpower < 50000
			NOT = {
				has_idea = SOV_Great_purge_idea_russia2
			}
		}
	}

	ai_national_focuses = {

	}

	research = {

	}

	ideas = {
		disarmed_nation = 0
		volunteer_only = 0
		limited_conscription = 0
		extensive_conscription = 0
		service_by_requirement = 0
		all_adults_serve = 0
		scraping_the_barrel = 0
		free_trade = 0
		export_focus = 0
		limited_exports = 0
		closed_economy = 0
		civilian_economy = 0
		low_economic_mobilisation = 0
		partial_economic_mobilisation = 0
		war_economy = 0
		tot_economic_mobilisation = 0
		SOV_Nikolai_voznesensky = 0
		SOV_Kliment_voroshilov_advisor = 0
		SOV_Lazar_kaganovich = 0
		SOV_Genrikh_yagoda = 0
		SOV_Nikolay_yezhov = 0
		SOV_Lavrentiy_beria = 0
		SOV_Mikhail_kalinin = 0
		SOV_Nikita_khrushchev = 0
		SOV_Aleksandra_kollontay = 0
		SOV_Yakov_agranov = 0
		SOV_Ivan_maisky = 0
		SOV_Vyacheslav_molotov = 0
		SOV_Maksim_litvinov = 0
		SOV_Ivan_smirnov = 0
		SOV_Ivar_smilga = 0
		SOV_Karl_radek = 0
		SOV_Aleksandr_shlyapnikov = 0
		SOV_Mikhail_tomsky = 0
		SOV_Grigory_sokolnikov = 0
		SOV_Vsevolod_merkulov = 0
		SOV_Mikhail_tukhachevsky = 0
		SOV_Boris_shaposhnikov = 0
		SOV_Georgy_zhukov = 0
		SOV_Sergey_gorshkov = 0
		SOV_Vladimir_tributs = 0
		SOV_Sergei_rudenko = 0
		SOV_Alexander_golovanov = 0
		SOV_Igor_kurchatov = 0
		SOV_Sergei_korolev = 0
		SOV_Pavel_zhigarev = 0
		SOV_Sergei_khudyakov = 0
		SOV_Stepan_krasovsky = 0
		SOV_Vladimir_kasatonov = 0
		SOV_Gordey_levchenko = 0
		SOV_Arseniy_golovko = 0
		SOV_Alexander_novikov = 0
		SOV_Konstantin_vershinin = 0
		SOV_Yakov_smushkevich = 0
		SOV_Pavel_rychagov = 0
		SOV_Pyotr_smirnov = 0
		SOV_Mikhail_frinovsky = 0
		SOV_Nikolay_kuznetsov = 0
		SOV_Ivan_yumashev = 0
		SOV_Semyon_timoshenko = 0
		SOV_Kliment_voroshilov_military = 0
		SOV_Alexander_yegorov = 0
		SOV_Vasily_blyukher = 0
		stalingrad_tractor_factory_russia2 = 0
		leningrad_polytechnical_institute_russia2 = 0
		russia2_leningrad_metal_factory = 0
		russia2_izhevsk_mechanical_plant = 0
		russia2_riga_electric_machine_building_plant = 0
		russia2_soviet_railways = 0
		russia2_gosproyektstroy = 0
		russia2_grabin_design_bureau = 0
		russia2_tula_arms_plant = 0
		russia2_gaz = 0
		russia2_belaz = 0
		russia2_mig_design_bureau = 0
		russia2_ilyushin_design_bureau = 0
		russia2_tupolev_design_bureau = 0
		russia2_yakovlev_design_bureau = 0
		russia2_antonov_serial_production_plant = 0
		russia2_nevskoye_design_bureau = 0
		russia2_volgograd_shipyard = 0
		russia2_dagdizel_plant = 0
		russia2_amur_shipbuilding_plant = 0
		russia2_ubin_design_bureau = 0
		russia2_black_sea_shipyard = 0
		russia2_sevastopol_marine_plant = 0
		russia2_morozov_design_bureau = 0
		russia2_astrov_design_bureau = 0
		russia2_okmo = 0
		russia2_uralvagonzavod = 0
		russia2_volgograd_tractor_plant = 0
		russia2_mytishchy_machine_building = 0
		russia2_kirov = 0
	}

	# 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
		}
	}
}