ideas = {

	hidden_ideas = {
		
		LSM_dont_have_fun = {

			allowed = {
				always = yes
			}

			available = {
				date < 1940.1.1
				threat < 0.80
			}

			allowed_civil_war = {
				always = no
			}
					
			on_remove = {
				add_ideas = LSM_have_fun	
			}
	
			removal_cost = -1
			
			modifier = {
			}
		}
		
		LSM_have_fun = {

			allowed = {
				always = yes
			}

			available = {
			}

			allowed_civil_war = {
				always = no
			}
			
			removal_cost = -1
			
			modifier = {
				ai_get_ally_desire_factor = 100
			}
		}

		spy_test = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = no
			}

			modifier = {
				operative_slot = 2
			}
		}

		LSM_alone_idea = {
			allowed = {
				always = yes
			}

			available = {
				NOT = {
					any_country = {
						has_war_with = ROOT
						is_major = yes
					}
				}
				NOT = {
					any_country = {
						is_in_faction_with = ROOT
						is_major = yes
						has_war = yes
					}
				}
			}

			allowed_civil_war = {
				always = no
			}

			modifier = {
				ai_get_ally_desire_factor = -1000
			}
		}

		
		LSM_military_attache_to_spain_SOV = { #deactivated
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				any_country = {
					original_tag = SPR
					has_civil_war = yes
					OR = {
						has_government = democratic
						has_government = communism
					}
				}
				NOT = { SOV = { has_tech = human_wave_offensive } }
			}
		
			on_remove = {
				add_political_power = -5
			}

			picture = SPR_international_brigades

			removal_cost = -1
			
			modifier = {
				war_support_factor = 0.1
				max_command_power = -50
				custom_modifier_tooltip = "Gain a bit of army experience from Spain - yes, it was calculated"
				hidden_modifier = {
					experience_gain_army = 0.122
					experience_gain_navy = 0.001
					experience_gain_air = 0.012
				}
			}
		}
		
		LSM_military_attache_to_china = { #deactivated
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				NOT = {	
					GER = {
						OR = {
							has_war_with = POL
							focus_progress = {
								focus = GER_danzig_or_war
								progress > 0
							}
							has_completed_focus = GER_danzig_or_war
						}
					}
				}
				CHI = { has_war_with = JAP }
				date < 1939.8.1
			}
		
			on_remove = {
				add_political_power = -50
			}

			picture = CZE_planning_bonus

			removal_cost = -1
			
			modifier = {
				war_support_factor = 0.1
				max_command_power = -50
				custom_modifier_tooltip = "Gain a bit of army experience from China - roughly"
				hidden_modifier = {
					experience_gain_army = 0.25
				}
			}
		}
		
		LSM_military_attache_to_japan = { #deactivated
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				NOT = {	
					GER = {
						OR = {
							has_war_with = POL
							focus_progress = {
								focus = GER_danzig_or_war
								progress > 0
							}
							has_completed_focus = GER_danzig_or_war
						}
					}
				}
				CHI = { has_war_with = JAP }
				date < 1939.8.1
			}
		
			on_remove = {
				add_political_power = -50
			}

			picture = CZE_planning_bonus

			removal_cost = -1
			
			modifier = {
				war_support_factor = 0.1
				max_command_power = -50
				custom_modifier_tooltip = "Gain a bit of army experience from Japan - roughly"
				hidden_modifier = {
					experience_gain_army = 0.13
					experience_gain_navy = 0.10
					experience_gain_air = 0.060
				}
			}
		}

		booming_international_trade = { #not for everybody
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = no
			}
			available = {
				has_war = no
			}
			equipment_bonus = {
				convoy = {
					build_cost_ic = -0.33
					instant = yes
				}
			}
		}

		transatlantic_express = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = no
			}
			available = {
				has_war = no
			}
			modifier = {
				convoy_retreat_speed = 0.10
			}
			equipment_bonus = {
				convoy = {
					naval_speed = 0.15
					instant = yes
				}
			}
		}

		
		pure_manpower_reinforcement = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				NOT = {
					any_country = {
						has_war_with = ROOT
						NOT = { tag = ITA }
					}
				}
			}
			
			removal_cost = -1
		}

		
		ahistorical_gameplay = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_damage_to_garrison = -0.5
				required_garrison_factor = -0.5
				ai_join_ally_desire_factor = 300 #never hold back please
				ai_call_ally_desire_factor = 300
			}
		}


		SWE_ball_bearing_idea_a = {
			picture = can_wartime_prices_and_trade_board
			allowed = {
				always = yes
			}

			cancel = {
				has_war_with = SWE
			}

			equipment_bonus = {

				light_tank_destroyer_chassis = {
					build_cost_ic = -0.08  instant = yes
				}

				light_tank_aa_chassis = {
					build_cost_ic = -0.08  instant = yes
				}

				light_tank_artillery_chassis = {
					build_cost_ic = -0.08  instant = yes
				}

				medium_tank_destroyer_chassis = {
					build_cost_ic = -0.05  instant = yes
				}

				medium_tank_aa_chassis = {
					build_cost_ic = -0.06  instant = yes
				}

				medium_tank_artillery_chassis = {
					build_cost_ic = -0.06  instant = yes
				}

				heavy_tank_destroyer_chassis = {
					build_cost_ic = -0.05  instant = yes
				}

				heavy_tank_aa_chassis = {
					build_cost_ic = -0.05  instant = yes
				}

				heavy_tank_artillery_chassis = {
					build_cost_ic = -0.05  instant = yes
				}

				small_plane_cas_airframe = {
					build_cost_ic = -0.08 instant = yes
				}

				cv_small_plane_cas_airframe = {
					build_cost_ic = -0.08 instant = yes
				}

				small_plane_naval_bomber_airframe = {
					build_cost_ic = -0.08 instant = yes
				}

				cv_small_plane_naval_bomber_airframe = {
					build_cost_ic = -0.08 instant = yes
				}

				small_plane_suicide_airframe = {
					build_cost_ic = -0.08 instant = yes
				}

				cv_small_plane_suicide_airframe = {
					build_cost_ic = -0.08 instant = yes
				}

				medium_plane_fighter_airframe = {
					build_cost_ic = -0.06 instant = yes
				}

				medium_plane_scout_plane_airframe = {
					build_cost_ic = -0.06 instant = yes
				}

				large_plane_maritime_patrol_plane_airframe = {
					build_cost_ic = -0.05 instant = yes
				}
			}
		}


		idea_JUNO_truck_production_cost_b = {
			removal_cost = -1
			#picture = ITA_bandits_war
				
			allowed = {
				OR = {
					original_tag = URG
					original_tag = PAR
					original_tag = BOL
					original_tag = BRA
					original_tag = ARG
					original_tag = CHL
				}
			}

			allowed_civil_war = {
				always = yes
			}
					
			equipment_bonus = {
				motorized_equipment = {
					instant = yes
					build_cost_ic = -0.15
					reliability = 0.05
				}
				mechanized_equipment = {
					instant = yes
					build_cost_ic = -0.15
					reliability = 0.05
				}
				amphibious_mechanized_equipment = {
					instant = yes
					build_cost_ic = -0.15
					reliability = 0.05
				}
			}

			modifier = {
			}
		}
		
		surrender_limit_offset = { 
	
			picture = general_staff

			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = no
			}
			
			removal_cost = -1

			modifier = {
				surrender_limit = -0.2
			}
		}
		
		challenged_by_the_general_staff = { 
	
			picture = general_staff

			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = no
			}
			
			removal_cost = -1
		}
		
		convoy_panic = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				naval_speed_factor = 0.25
				convoy_retreat_speed = 0.5
				navy_fuel_consumption_factor = 0.1
			}
		}
		
		evacuation_from_france = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				convoy_retreat_speed = 0.5
				army_speed_factor = 0.5
			}
		}
		
		eco_banned = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				trade_laws_cost_factor = 20
			}
		}
		
		low_tension_wargoal_justification = { #will be removed later
			allowed = {
				always = yes
			}

			available = {
				threat < 0.1
				OR = {
					has_government = communism
					has_government = fascism
				}
			}
			
			removal_cost = -1
			
			modifier = {
				justify_war_goal_time = 1
			}
		}
		
		temporary_debug_idea_port = { #will be removed later
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				production_speed_naval_base_factor = 10
				production_speed_fuel_silo_factor = 10
			}
		}
		
		temporary_debug_idea_navy = { #will be removed later
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				ai_focus_naval_factor = -0.75
			}
		}

		
		CHI_morale_loss_608 = { #will be removed later
			allowed = {
				always = yes
			}

			available = {
				NOT = { controls_state = 608 }
			}

			on_add = {
				add_timed_idea = { idea = CHI_civil_war_deserters days = 30 }
			}
			
			removal_cost = -1
			
			modifier = {
				land_reinforce_rate = -0.05
				army_org_factor = -0.2
				army_morale_factor = -0.2
				army_core_defence_factor = -0.2
				army_core_attack_factor = -0.2
				surrender_limit = -0.10
			}
		}
		
		CHI_morale_loss_605 = { #will be removed later
			allowed = {
				always = yes
			}

			available = {
				NOT = { controls_state = 605 }
			}

			on_add = {
				add_timed_idea = { idea = CHI_civil_war_deserters days = 30 }
			}
			
			removal_cost = -1
			
			modifier = {
				land_reinforce_rate = -0.05
				army_org_factor = -0.2
				army_morale_factor = -0.2
				army_core_defence_factor = -0.2
				army_core_attack_factor = -0.2
				surrender_limit = -0.10
			}
		}
		
		CHI_morale_loss_613 = { #will be removed later
			allowed = {
				always = yes
			}

			available = {
				NOT = { controls_state = 613 }
			}

			on_add = {
				add_timed_idea = { idea = CHI_civil_war_deserters days = 30 }
			}
			
			removal_cost = -1
			
			modifier = {
				land_reinforce_rate = -0.05
				army_org_factor = -0.2
				army_morale_factor = -0.2
				army_core_defence_factor = -0.2
				army_core_attack_factor = -0.2
				surrender_limit = -0.10
			}
		}
		
		CHI_morale_loss_716 = { #will be removed later
			allowed = {
				always = yes
			}

			available = {
				NOT = { controls_state = 716 }
			}

			on_add = {
				add_timed_idea = { idea = CHI_civil_war_deserters days = 30 }
			}
			
			removal_cost = -1
			
			modifier = {
				land_reinforce_rate = -0.05
				army_org_factor = -0.2
				army_morale_factor = -0.2
				army_core_defence_factor = -0.2
				army_core_attack_factor = -0.2
				surrender_limit = -0.10
			}
		}
		
		ENG_homeland_resistance_unorganised_1 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
					}
					add_timed_idea = { idea = ENG_homeland_resistance_unorganised_2 days = 300 }
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states  = 0.05
				compliance_growth_on_our_occupied_states = -0.05
				resistance_target_on_our_occupied_states = 0.05
			}
		}
		
		ENG_homeland_resistance_unorganised_2 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01	
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
					}
					add_timed_idea = { idea = ENG_homeland_resistance_unorganised_3 days = 250 }
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states  = 0.1
				compliance_growth_on_our_occupied_states = -0.1
				resistance_target_on_our_occupied_states = 0.05
			}
		}
		
		ENG_homeland_resistance_unorganised_3 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01	
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
					}
				add_timed_idea = { idea = ENG_homeland_resistance_unorganised_4 days = 200 }
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states  = 0.15
				compliance_growth_on_our_occupied_states = -0.15
				resistance_target_on_our_occupied_states = 0.05
			}
		}
		
		ENG_homeland_resistance_unorganised_4 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01	
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
					}
					add_timed_idea = { idea = ENG_homeland_resistance_unorganised_5 days = 180 }
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states  = 0.2
				compliance_growth_on_our_occupied_states = -0.2
				resistance_damage_to_garrison_on_our_occupied_states = 0.1 
				resistance_target_on_our_occupied_states = 0.05
			}
		}
		
		ENG_homeland_resistance_unorganised_5 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01	
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
					}
					add_timed_idea = { idea = ENG_homeland_resistance_organised_1 days = 150 }
					every_state = {
						limit = { is_core_of = ENG }
						add_dynamic_modifier = { modifier = ENG_clash_with_militia }
					}
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states  = 0.25
				compliance_growth_on_our_occupied_states = -0.25
				resistance_damage_to_garrison_on_our_occupied_states = 0.25 
				resistance_target_on_our_occupied_states = 0.05
			}
		}
		
		ENG_homeland_resistance_organised_1 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01
				any_state = {
					is_core_of = ENG 
					is_owned_by = ENG
					controller = { has_war_with = ENG }
					resistance > 9.9
				}	
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
						any_state = {
							is_core_of = ENG 
							is_owned_by = ENG
							controller = { has_war_with = ENG }
							resistance > 9.9
						}
					}
					add_timed_idea = { idea = ENG_homeland_resistance_organised_2 days = 180 }
					set_global_flag = british_homeland_resistance_organised_flag
					news_event = { hours = 12 id = lsm_news.200 }  
					every_state = { 
						limit = { 
							is_core_of = ENG
						}
						add_dynamic_modifier = { modifier = ENG_clash_with_militia }
					}
				}
				if = { 
					limit = {  
						ENG = { 
							all_core_state = {	
								resistance < 10
							}
						}
					}
					british_resistance_destroyed = yes
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states  = 0.3
				compliance_growth_on_our_occupied_states = -0.3
				resistance_damage_to_garrison_on_our_occupied_states = 0.3 
				resistance_target_on_our_occupied_states = 0.1
			}
		}
		
		ENG_homeland_resistance_organised_2 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01
				any_state = {
					is_core_of = ENG
					is_owned_by = ENG
					controller = { has_war_with = ENG }
					resistance > 9.9
				}		
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
						any_state = {
							is_core_of = ENG  
							is_owned_by = ENG
							controller = { has_war_with = ENG }
							resistance > 9.9
						}
					}
					add_timed_idea = { idea = ENG_homeland_resistance_organised_3 days = 150 }
				}
				if = { 
					limit = {  
						ENG = { 
							all_core_state = {
								resistance < 10
							}
						}
					}
					british_resistance_destroyed = yes
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states  = 0.35
				compliance_growth_on_our_occupied_states = -0.35
				resistance_damage_to_garrison_on_our_occupied_states = 0.35 
				resistance_target_on_our_occupied_states = 0.2
			}
		}
		
		ENG_homeland_resistance_organised_3 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01
				any_state = {
					is_core_of = ENG 
					is_owned_by = ENG
					controller = { has_war_with = ENG }
					resistance > 9.9
				}				
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
						any_state = {
							is_core_of = ENG  
							is_owned_by = ENG
							controller = { has_war_with = ENG }
							NOT = { is_core_of = FRA } 
							resistance > 9.9
						}
					}
					add_timed_idea = { idea = ENG_homeland_resistance_organised_4 days = 120 }
				}
				if = {
					limit = {  
						ENG = { 
							all_core_state = {
									resistance < 10
							}
						}
					}
					british_resistance_destroyed = yes
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states  = 0.4
				compliance_growth_on_our_occupied_states = -0.4
				resistance_damage_to_garrison_on_our_occupied_states = 0.4
				resistance_target_on_our_occupied_states = 0.3
			}
		}
		
		ENG_homeland_resistance_organised_4 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01
				any_state = {
					is_core_of = ENG 
					is_owned_by = ENG
					controller = { has_war_with = ENG }
					resistance > 9.9
				}			
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
						any_state = {
							is_core_of = ENG  
							is_owned_by = ENG
							NOT = { is_core_of = FRA } 
							controller = { has_war_with = ENG }
							resistance > 9.9
						}
					}
					add_timed_idea = { idea = ENG_homeland_resistance_organised_5 days = 30 }
					every_country = {
						limit = {
							has_war_with = ENG
							capital_scope = { is_on_continent = europe }
						}
						country_event = { id = LSM_ENG_churchill.665 hours = 4 }
					}
				}
				if = { 
					limit = {  
						ENG = { 
							all_core_state = {
									resistance < 10
							}
						}
					}
					british_resistance_destroyed = yes
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states  = 0.4
				compliance_growth_on_our_occupied_states = -0.4
				resistance_damage_to_garrison_on_our_occupied_states = 0.4 
				resistance_target_on_our_occupied_states = 0.4
			}
		}
		
		ENG_homeland_resistance_organised_5 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01		
			}
		
			on_remove = {
				every_country = { 
					limit = {
						has_war_with = ENG
						any_controlled_state = { 
							is_core_of = ENG 
							NOT = { is_core_of = PREV }
						}
					}
					set_country_flag = ENG_target_of_vengeance
				}
				add_timed_idea = { idea = ENG_homeland_resistance_organised_6 days = 365 }
				ENG = { country_event = { id = LSM_ENG_churchill.666 hours = 2 } }
				news_event = { hours = 12 id = lsm_news.201 }
			}
			
			removal_cost = -1
			
			modifier = {
				compliance_growth_on_our_occupied_states = -1
			}
		}
		
		ENG_homeland_resistance_organised_6 = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
				surrender_progress > 0.01	
			}
		
			on_remove = {
				if = { 
					limit = { 
						has_war = yes
						surrender_progress > 0.01
					}
				add_timed_idea = { idea = ENG_homeland_resistance_organised_7 days = 1825 }
				}
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states = 0.25
				compliance_growth_on_our_occupied_states = -0.25
				resistance_damage_to_garrison_on_our_occupied_states = 0.25
				resistance_target_on_our_occupied_states = 0.25
			}
		}
		
		ENG_homeland_resistance_organised_7 = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes	
			}
			
			removal_cost = -1
			
			modifier = {
				resistance_growth_on_our_occupied_states = -0.25
				compliance_growth_on_our_occupied_states = 0.25
				resistance_damage_to_garrison_on_our_occupied_states = -0.25
				resistance_target_on_our_occupied_states = -0.25
			}
		}
		
		LSM_production_licensing_idea = { 
			
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				always = yes
			}

			removal_cost = -1
			
			modifier = {
				hidden_modifier = {
					license_tech_difference_speed = 0.25
				}
			}
		}
		
		LSM_production_licensing_idea2 = { 
			
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				always = yes
			}

			removal_cost = -1
			
			modifier = {
				hidden_modifier = {
					license_production_speed = 0.25
				}
			}
		}
		
		AI_aggressive = { #we have been training for years
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}

			removal_cost = -1
		}
		
		AI_aggressive_2 = { #we have been training for years
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}

			removal_cost = -1
		}
		
		d_day_preparation_1 = { #we have been training for years
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war_with = GER
			}

			removal_cost = -1
			
			modifier = {
				naval_invasion_capacity = 40
				invasion_preparation = 50
				naval_invasion_planning_bonus_speed = 0.5
			}
		}
		
		d_day_preparation_2 = { #we are first wave ashore
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war_with = GER
			}
		
			on_add = {
				add_timed_idea = { idea = AI_aggressive days = 180 }
			}

			on_remove = {
				if = {
					limit = { has_global_flag = d_day_was_a_success }
					add_ideas = d_day_preparation_3
				}
				if = {
					limit = { NOT = { has_global_flag = d_day_was_a_success } }
					add_ideas = d_day_preparation_1
				}
				if = {
					limit = { 16 = { controller = { tag = FRA } } }
					add_ideas = d_day_preparation_3
					remove_ideas = d_day_preparation_1
				}
			}

			removal_cost = -1
			
			modifier = {
				naval_invasion_capacity = 100
				invasion_preparation = -0.5
				naval_invasion_planning_bonus_speed = 0.5
				land_reinforce_rate = 0.02
			}
		}
		
		d_day_preparation_3 = { #we are first ones to fall
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_global_flag = d_day_was_a_success
				has_war_with = GER
			}

			on_remove = {
				if = {
					limit = { NOT = { has_global_flag = d_day_was_a_success } }
					add_timed_idea = { idea = d_day_preparation_2 days = 120 }
				}
			}

			removal_cost = -1
			
			modifier = {
				land_night_attack = 0.10 #see that flash of light? the germans are there. bomb the shit out of them
			}
		}
		
		landing_in_asia = { #inactive
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}

			removal_cost = -1
			
			modifier = {
				supply_factor = 0
			}
		}
		
		LSM_military_attache_to_soviet = {
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				always = yes
			}

			picture = FRA_army_of_aggression_focus

			removal_cost = -1
			
			modifier = {
				war_support_factor = 0.1
				max_command_power = -50
				hidden_modifier = {
					experience_gain_army = 0.4
					experience_gain_navy = 0.01
					experience_gain_air = 0.2
				}
			}
		}

		why_are_you_sending_me_troops_fking_puppets = {

			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1

			on_add = {
				set_rule = { units_deployed_to_overlord = no }
			}

			on_remove = {
				set_rule = { units_deployed_to_overlord = no }
			}
		}
		
		FRA_industrial_boost = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			picture = fiat
			
			removal_cost = -1

			modifier = {
				production_factory_efficiency_gain_factor = 0.15
				production_factory_start_efficiency_factor = 0.05
			}

		}
		
		LSM_military_attache_to_germany = {
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				always = yes
			}

			picture = FRA_army_of_aggression_focus

			removal_cost = -1
			
			modifier = {
				war_support_factor = 0.1
				max_command_power = -50
				hidden_modifier = {
					experience_gain_army = 0.8
					experience_gain_navy = 0.02
					experience_gain_air = 0.3
				}
			}
		}
		
		LSM_military_attache_to_britain = {
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				always = yes
			}

			picture = FRA_army_of_aggression_focus

			removal_cost = -1
			
			modifier = {
				war_support_factor = 0.1
				max_command_power = -50
				hidden_modifier = {
					experience_gain_army = 0.1
					experience_gain_navy = 0.3
					experience_gain_air = 0.8
				}
			}
		}
		
		SOV_no_war_on_poland = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				subversive_activites_upkeep = 50
			}
		}
		
		allies_dont_mess_with_soviet_union = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				NOT = { ENG = { has_war_with = SOV } }
				POL = { has_capitulated = no }
			}
			
			removal_cost = -1
			
			modifier = {
				ai_call_ally_desire_factor = -99999
			}
		}
		
		population_boom_minor = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				AND = {
					has_war = no
					OR = { 
						is_major = no
						AND = { 
							is_major = yes
							num_of_controlled_factories < 51
						}
					}
				}	
			}
			
			removal_cost = -1
			
			modifier = {
				monthly_population = 10
			}
		}
		
		LSM_on_our_own_idea = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				OR = {
					date < 1941.1.1
					has_war = no
				}
			}
			
			removal_cost = -1

			rule = {
				can_join_factions = no 
				can_not_declare_war = yes
			}
		}
		
		training_is_chi = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}

			on_remove = {
				add_ideas = training_is_chi2
			}
			
			removal_cost = -1

			modifier = {
				minimum_training_level = -0.1
			}
		}
		
		training_is_chi2 = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = no
			}

			on_remove = {
				add_ideas = training_is_chi
			}
			
			removal_cost = -1
		}
		
		training_is_good = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = no
			}

			on_remove = {
				add_ideas = training_is_alright
			}
			
			removal_cost = -1

			modifier = {
				minimum_training_level = 0.4
			}
		}
		
		training_is_alright = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}

			on_remove = {
				add_ideas = training_is_good
			}
			
			removal_cost = -1
		}
		
		training_is_goodmm = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = no
			}

			on_remove = {
				add_ideas = training_is_alrightmm
			}
			
			removal_cost = -1

			modifier = {
				minimum_training_level = 0.25
			}
		}
		
		training_is_alrightmm = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}

			on_remove = {
				add_ideas = training_is_good
			}
			
			removal_cost = -1
		}
		
		train_train_train = {  #inactive
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				is_ai = yes	
			}
	
			on_remove = {
				add_ideas = train_train_train_2
			}
			
			removal_cost = -1
		}
		
		train_train_train_2 = {  #inactive
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				is_ai = no	
			}
	
			on_remove = {
				add_ideas = train_train_train
			}
			
			removal_cost = -1
		}
		
		reduced_xp_gain = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = no
			}

			on_remove = {
				add_ideas = increased_xp_gain
			}
			
			removal_cost = -1

			modifier = {
				experience_gain_factor = -0.20
			}
		}
		
		increased_xp_gain = {
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}

			on_remove = {
				add_ideas = reduced_xp_gain
			}
			
			removal_cost = -1
		}
		
		SOV_infrastructure_improvement_tier_1 = {  #inactive
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				is_ai = yes	
			}
	
			on_remove = {
				add_ideas = SOV_infrastructure_improvement_tier_2
			}
			
			removal_cost = -1
		}
		
		SOV_infrastructure_improvement_tier_2 = {  #inactive
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				is_ai = no	
			}
	
			on_remove = {
				add_ideas = SOV_infrastructure_improvement_tier_1
			}
			
			removal_cost = -1
		}
		
		battle_of_britain = { #reserved for vanilla history UK only. Not active in any other scenarios
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				NOT = { is_in_faction_with = USA }	
				NOT = { is_in_faction_with = GER }
				NOT = { GER = { has_war_with = SOV } }
			}
			
			removal_cost = -1

			modifier = {
				air_home_defence_factor = 0.10
			}
		}
		
		GER_high_command = { #inactive, only here because some old codes use it
			allowed = {
				always = yes #inactive
			}

			allowed_civil_war = { #inactive since we no longer need it
				always = yes
			}

			available = { 
				always = no
			}
			
			removal_cost = -1

			modifier = {
				experience_gain_army_factor = 0.5
				mobilization_speed = 1
				high_command_cost_factor = -0.5
			}

			equipment_bonus = {
				medium_tank_chassis = {
					build_cost_ic = -0.33 instant = yes
				}
				modern_tank_chassis = {
					build_cost_ic = -0.33 instant = yes
				}
				motorized_equipment = {
					build_cost_ic = -0.33 instant = yes
				}
				mechanized_equipment = {
					build_cost_ic = -0.33 instant = yes
				}
			}
		}
		
		GER_high_command_2 = { #only temporary. Will be removed once AI balancing is completed and Germany can push the Soviet Union again
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = { 
				is_ai = yes
			}
			
			removal_cost = -1

			modifier = {
				high_command_cost_factor = -1
			}
		}
		
		ban_on_advisor = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = no
			}

			available = {
				has_war = no
			}
			
			removal_cost = -1
			
			modifier = {
				high_command_cost_factor = 10
				political_advisor_cost_factor = 10
				army_chief_cost_factor = 10
				air_chief_cost_factor = 10
				navy_chief_cost_factor = 10
			}
		}
		
		SOV_high_command = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = { #we are good to go
				AND = {
					NOT = { has_idea = partial_economic_mobilisation }
					NOT = { has_idea = war_economy }
					NOT = { has_idea = tot_economic_mobilisation }
				}	
				date < 1936.8.1
			}
			
			removal_cost = -1
			
			modifier = {
				high_command_cost_factor = 10
				political_advisor_cost_factor = 10
				army_chief_cost_factor = 10
				air_chief_cost_factor = 10
				navy_chief_cost_factor = 10
			}
		}
		
		SOV_high_command_2 = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = { 
				threat < 0.7
			}
			
			removal_cost = -1
			
			modifier = {
				high_command_cost_factor = 10
				navy_chief_cost_factor = 10
			}
		}
		
		USA_high_command = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = { #we are good to go
				AND = {
					NOT = { has_idea = partial_economic_mobilisation }
					NOT = { has_idea = war_economy }
					NOT = { has_idea = tot_economic_mobilisation }
				}
			}
			
			removal_cost = -1
			
			modifier = {
				high_command_cost_factor = 10
				army_chief_cost_factor = 10
				air_chief_cost_factor = 10
				navy_chief_cost_factor = 10
			}
		}
		
		ENG_high_command = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = { #we are good to go
				AND = {
					NOT = { has_idea = partial_economic_mobilisation }
					NOT = { has_idea = war_economy }
					NOT = { has_idea = tot_economic_mobilisation }
				}
			}
			
			removal_cost = -1
			
			modifier = {
				political_advisor_cost_factor = 10
				high_command_cost_factor = 10
				air_chief_cost_factor = 10
				navy_chief_cost_factor = 10
				theorist_cost_factor = 10
				industrial_concern_cost_factor = 10
			}
		}
		
		CHI_high_command = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_army_experience < 5
			}
			
			removal_cost = -1
			
			modifier = {
				high_command_cost_factor = 10
				air_chief_cost_factor = 10
				navy_chief_cost_factor = 10
				political_advisor_cost_factor = 10
			}
		}
		
		FRA_due_compensation  = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1

			targeted_modifier = {
				tag = GER
				cic_to_target_factor = 0.25 
				mic_to_target_factor = 0.50				
			}
		}
		
		BUL_due_compensation = { 
			allowed = {
				always = yes
			}

			available = {
				NOT = { ITA = { has_country_flag = LSM_eligibility_nation } }
				NOT = { BUL = { has_country_flag = LSM_eligibility_nation } }
				NOT = {
					any_country = {
						original_tag = ITA
						has_war_with = BUL
					}
				}
			}
			
			removal_cost = -1

			targeted_modifier = {
				tag = ITA
				cic_to_target_factor = 0.15 
				mic_to_target_factor = 0.40				
			}
		}
		
		vanilla_navy = { 
			allowed = {
				always = yes
			}

			available = {
				has_navy_size = {
					size < 600
				}
			}
	
			picture = eng_a_change_in_course
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_dockyard = 0.25
			}

			equipment_bonus = {
				carrier = {
					build_cost_ic = -0.5 instant = yes
				}
				capital_ship = {
					build_cost_ic = -0.5 instant = yes
				}
				screen_ship = {
					build_cost_ic = -0.2 instant = yes
				}
			}
		}

		
		LSM_british_migration  = { 
			allowed = {
				always = yes
			}

			available = {
				ENG = { surrender_progress > 0.05 } 
			}
	
			picture = eng_a_change_in_course
		
			on_remove = {
				add_ideas = LSM_british_migration_2
			}
			
			removal_cost = -1
			
			modifier = {
				weekly_manpower = 1000
				industrial_capacity_factory = 0.2
				industrial_capacity_dockyard = 0.2
				production_speed_buildings_factor = 0.2
				consumer_goods_factor = -0.2
				training_time_factor = -0.2
				surrender_limit = 0.1 #compensate for more cores
			}

			targeted_modifier = {
				tag = ENG
				cic_to_target_factor = 0.15 
				mic_to_target_factor = 0.15				
			}
		}
		
		LSM_british_migration_2  = { 
			allowed = {
				always = yes
			}

			available = {
				NOT = { has_war_with = ENG }
			}
	
			picture = eng_a_change_in_course
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.1
				industrial_capacity_dockyard = 0.1
				production_speed_buildings_factor = 0.1
				consumer_goods_factor = -0.1
				training_time_factor = -0.1
				surrender_limit = 0.1 #compensate for more cores
			}
		}
		
		LSM_british_exodus = { 
			allowed = {
				always = yes
			}

			available = {
				ENG = { surrender_progress > 0.05 } 
			}
		
			on_remove = {
				add_timed_idea = { idea = LSM_british_migration days = 1825 }
			}
			
			removal_cost = -1
			
			modifier = {
				weekly_manpower = 5000
				industrial_capacity_factory = 0.5
				industrial_capacity_dockyard = 0.5
				training_time_factor = -0.3
			}

			targeted_modifier = {
				tag = ENG
				cic_to_target_factor = 0.2 
				mic_to_target_factor = 0.2				
			}
		}

		shit_soviet_dockyard_1 = { #used to make sure SOV AI can quickly move on from useless dockyard 
			allowed = {
				always = yes
			}

			available = {
				date < 1946.1.1 #from now on we do it properly
			}
		
			on_remove = {
				every_controlled_state = {
					limit = {
						dockyard > 0
					}
					remove_building = {
						type = dockyard
						level = 1 #time to delete dockyard, sire
					}
				}
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				production_speed_dockyard_factor = 100 #instant dockyard completion 
				industrial_capacity_dockyard = -0.33 #but their dockyard is shit
			}
		}

		shit_soviet_dockyard_2 = { #stackable with the previous one to make sure actual value of those dockyard is shit
			allowed = {
				always = yes
			}

			available = {
				date < 1946.1.1 #from now on we do it properly
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				production_speed_dockyard_factor = 100 #instant dockyard completion 
				industrial_capacity_dockyard = -0.33 #but their dockyard is shit so 30 dockyard worth only as much as 10
			}
		}

		peace_time_prosperity = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = no
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				monthly_population = 1.5
			}
		}
		
		wheelchair_warfare = { 
			allowed = {
				always = yes
			}

			available = {
				surrender_progress > 0.01 #safe now
				OR = {
					controls_state = 64
					controls_state = 58
					controls_state = 55
					controls_state = 50
					controls_state = 52
					controls_state = 4
				}
			}
			
			removal_cost = -1
			
			modifier = {
				surrender_limit = 0.1
				max_command_power = 1000
				command_power_gain_mult = 10
			}
		}
		
		peace_time_prosperity_neutral = { 
			allowed = {
				always = yes
			}

			available = {
				has_war = no
			}
			
			removal_cost = -1
			
			modifier = {
				monthly_population = 0.2
			}
		}
		
		human_wave_offensive_1 = { #AI has been improved to build nearly better than 90% of playerbase but we want them to build at the speed of human for real
			allowed = {
				always = yes
			}

			available = {
				always = yes #inactive iirc
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
			}
		} #this buff is only provided to AI if players have, knowingly or not, consented to it
		
		human_wave_offensive_2 = {  
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes #inactive
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = { # MA L is stronger in AI vs AI, so they should use it instead of using MA R like against players
			}
		} #this buff is only provided to AI if players have, knowingly or not, consented to it
		
		SOV_terra_formar = {

			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				NOT = { has_idea = human_wave_offensive_2 }
			}
			
			removal_cost = -1
			
			modifier = {
			}
		} #i hate collab, go die
		
		reduced_food_consumption = { #inactive

			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
			}
		}

		
		SOV_terra_formar2 = { #i don't think this one is active, lemme check, lesl

			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
			}
		} #i hate collab, go die
	

		kill_the_AI = { #civil war buff so SOV AI can get done with it especially as Right Opposition or as White Russia
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_civil_war = yes
				NOT = { 
					any_other_country = { 
						has_war_with = SOV
						is_major = yes
						NOT = { original_tag = SOV }
					}
				}
			}
			
			removal_cost = -1
			
			modifier = {
				army_core_attack_factor = 1
				attrition = -1
				army_speed_factor = 1
				out_of_supply_factor = -1
			}
		}
	

		SOV_for_the_motherland_1 = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}
			
			removal_cost = -1
			
			modifier = {
				weekly_manpower = 1000
				consumer_goods_factor = -0.05
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
			}
		}
	

		SOV_for_the_motherland_2 = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}
			
			removal_cost = -1
			
			modifier = {
				weekly_manpower = 2000
				consumer_goods_factor = -0.1
				industrial_capacity_factory = 0.1
				industrial_capacity_dockyard = 0.1
			}
		}
	

		SOV_for_the_motherland_3 = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}
			
			removal_cost = -1
			
			modifier = {
				weekly_manpower = 3000
				consumer_goods_factor = -0.15
				industrial_capacity_factory = 0.15
				industrial_capacity_dockyard = 0.15
			}
		}
	

		SOV_for_the_motherland_4 = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}
			
			removal_cost = -1
			
			modifier = {
				weekly_manpower = 4000
				consumer_goods_factor = -0.2
				industrial_capacity_factory = 0.2
				industrial_capacity_dockyard = 0.2
			}
		}
	

		SOV_to_the_last_man = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}
			
			removal_cost = -1
			
			modifier = {
				out_of_supply_factor = -0.25
				attrition = -0.25
				no_supply_grace = 50
			}
		}
	

		SOV_construction_workers = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}
			
			removal_cost = -1
			
			modifier = {
				weekly_manpower = -1000
				production_speed_buildings_factor = 0.20
			}
		}
	

		LSM_the_fight_for_the_home_island_ENG = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
			}
			
			removal_cost = -1
			
			modifier = {
				surrender_limit = 0.15
				army_core_attack_factor = 0.25
			}
		}
		
		LSM_the_fight_for_the_home_island_JAP = { 
			allowed = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}

			available = {
				has_war = yes
				has_war_support > 0
			}
			
			removal_cost = -1
			
			modifier = {
				surrender_limit = 1
				max_surrender_limit_offset = 0.03 
				army_core_attack_factor = 0.25
			}
		}
		
		LSM_prepare_for_war = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}
		
			removal_cost = -1
			
			modifier = {
				training_time_factor = -0.25
			}
		}
		
		LSM_prepare_for_war_2 = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}
		
			removal_cost = -1
			
			modifier = {
				training_time_factor = -0.40
			}
		}
		
		SOV_prepare_for_barbarossa = { 
			allowed = {
				always = yes
			}

			available = {
				NOT = { has_war_with = GER }
				has_war = no
			}

			allowed_civil_war = {
				always = yes
			}
		
			on_remove = {
				if = { 
					limit = { tag = SOV }
					add_timed_idea = { idea = SOV_post_barb_clarity days = 90 }
				}
			}		
			removal_cost = -1
			
			modifier = {
				training_time_factor = -0.5
				dig_in_speed_factor = 1
				army_speed_factor = 1
				production_speed_anti_air_building_factor = 1
			}
		}
		
		GER_prepare_for_barbarossa = { 
			allowed = {
				always = yes
			}

			available = {
				NOT = { has_war_with = SOV }
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				training_time_factor = -0.5
			}
		}
		
		SOV_post_barb_clarity = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}
		
			on_remove = {
				add_timed_idea = { idea = SOV_post_barb_clarity_2 days = 90 }
			}
			
			removal_cost = -1
			
			modifier = {
				production_speed_anti_air_building_factor = 1
				training_time_factor = -0.3
			}
		}
		
		SOV_post_barb_clarity_2 = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}
		
			on_remove = {
				add_timed_idea = { idea = SOV_post_barb_clarity_3 days = 185 }
			}
			
			removal_cost = -1
			
			modifier = {
				production_speed_anti_air_building_factor = 5
				training_time_factor = -0.2
			}
		}
		
		SOV_post_barb_clarity_3 = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}
		
			on_remove = {
				add_ideas = SOV_post_barb_clarity_4
			}
			
			removal_cost = -1
			
			modifier = {
				production_speed_anti_air_building_factor = 0.5
				training_time_factor = -0.1
			}
		}
		
		SOV_post_barb_clarity_4 = { 
			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				production_speed_anti_air_building_factor = 0.25
			}
		}
		
		SOV_kill_FIN = {  #might as well remove it since this is active only after JUN 40 but they kill FIN in 1939 or white peace in MAY 40
			allowed = {
				always = yes
			}

			available = {
				date > 1940.3.1
				has_war_with = FIN
				NOT = { FIN = { is_in_faction = yes } }
				FIN = { is_ai = yes }
				NOT = { 
					any_country = {
						NOT = { tag = FIN }
						NOT = { is_in_faction_with = FIN }
						is_major = yes
						has_war_with = SOV
					}
				}
			}
			
			removal_cost = -1
			
			modifier = {
				supply_node_range = 0.5
			}

			targeted_modifier = {
				tag = FIN
				attack_bonus_against = 0.2
				defense_bonus_against = 0.2
			}
		}
		
		SOV_production_front_1 = { #this series has been completely disabled, it is kept here only because I am too tired to delete it and check for consistency
			allowed = {
				always = yes #ts: should we just delete it then?
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				monthly_population = -0.05
				conscription = 0.01
				weekly_manpower = 1000
				supply_node_range = 0.05
				mobilization_speed = 0.2
				training_time_factor = -0.05
			}
		}


		# SOV production front section is completely inactive since militia function has been disabled
		
		SOV_production_front_2 = { #buff that players may consent to. haven't used it since forever
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.1
				industrial_capacity_dockyard = 0.1
				monthly_population = -0.10
				conscription = 0.02
				weekly_manpower = 2000
				supply_node_range = 0.1
				mobilization_speed = 0.4
				training_time_factor = -0.1
			}
		}
		
		SOV_production_front_3 = { #buff that players may consent to. haven't used it since forever
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.15
				industrial_capacity_dockyard = 0.15
				monthly_population = -0.15
				conscription = 0.03
				weekly_manpower = 3000
				supply_node_range = 0.15
				mobilization_speed = 0.6
				training_time_factor = -0.15
			}
		}
		
		SOV_production_front_4 = { #buff that players may consent to. haven't used it since forever
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.2
				industrial_capacity_dockyard = 0.2
				monthly_population = -0.20
				conscription = 0.04
				weekly_manpower = 4000
				supply_node_range = 0.2
				mobilization_speed = 0.8
				training_time_factor = -0.2
			}
		}
		
		SOV_production_front_5 = { #buff that players may consent to. haven't used it since forever
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.25
				industrial_capacity_dockyard = 0.25
				monthly_population = -0.25
				conscription = 0.05
				weekly_manpower = 5000
				supply_node_range = 0.25
				mobilization_speed = 1
				training_time_factor = -0.25
			}
		}
		
		SOV_production_front_6 = { #buff that players may consent to. haven't used it since forever
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.3
				industrial_capacity_dockyard = 0.3
				monthly_population = -0.30
				conscription = 0.06
				weekly_manpower = 6000
				supply_node_range = 0.3
				mobilization_speed = 1.2
				training_time_factor = -0.3
			}
		}
		
		SOV_production_front_7 = { #buff that players may consent to. haven't used it since forever
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.35
				industrial_capacity_dockyard = 0.35
				monthly_population = -0.35
				conscription = 0.07
				weekly_manpower = 7000
				supply_node_range = 0.35
				mobilization_speed = 1.4
				training_time_factor = -0.35
			}
		}
		
		SOV_production_front_8 = { #buff that players may consent to. haven't used it since forever
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.4
				industrial_capacity_dockyard = 0.4
				monthly_population = -0.40
				conscription = 0.08
				weekly_manpower = 8000
				supply_node_range = 0.4
				mobilization_speed = 1.6
				training_time_factor = -0.4
			}
		}
		
		SOV_production_front_9 = { #buff that players may consent to. haven't used it since forever
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.45
				industrial_capacity_dockyard = 0.45
				monthly_population = -0.45
				conscription = 0.09
				weekly_manpower = 9000
				supply_node_range = 0.45
				mobilization_speed = 1.8
				training_time_factor = -0.45
			}
		}
		
		SOV_production_front_10 = { #buff that players may consent to. haven't used it since forever
			allowed = {
				always = yes
			}

			available = {
				has_war = yes
			}

			allowed_civil_war = {
				always = yes
			}
			
			removal_cost = -1
			
			modifier = {
				industrial_capacity_factory = 0.5
				industrial_capacity_dockyard = 0.5
				monthly_population = -0.50
				conscription = 0.1
				weekly_manpower = 10000
				supply_node_range = 0.5
				mobilization_speed = 2
				training_time_factor = -0.5
			}
		}
		
		training_idea = { 
	
			picture = prc_low_popular_support

			allowed = {
				always = yes
			}

			available = {
				NOT = { has_idea = SOV_prepare_for_barbarossa }
			}

			allowed_civil_war = {
				always = no
			}
			
			removal_cost = -1
			
			modifier = {
				training_time_factor = -0.4
			}
		}
		russo_pusso = {
			
			allowed = {
				always = no
			}

			allowed_civil_war = {
				always = yes
			}

			removal_cost = -1

			modifier = {
				air_cas_efficiency = 0.25
				ground_attack_factor = 0.25
				air_cas_present_factor = 0.25
				army_bonus_air_superiority_factor = 0.05
			}			
		}
		makeshift_construction = { 
	
			picture = general_staff

			allowed = {
				always = yes
			}

			available = {
				always = yes
			}

			allowed_civil_war = {
				always = no
			}
			
			removal_cost = -1

			modifier = {
				production_speed_air_base_factor = 2
			}
		}
	}
}