propaganda_efforts = {

	spain_player_must_win = {
        
		icon = generic_civil_support
		name = why_we_fight

		allowed = { 
			OR = { original_tag = SPR original_tag = SPA original_tag = SPB } 
		}
		
		available = {
			is_subject = no
			OR = { original_tag = SPR original_tag = SPA original_tag = SPB } 
			is_ai = no
			date > 1937.6.6
			date < 1939.1.1
            num_of_controlled_states > 0
            casualties > 1000
			OR = { GER = { is_ai = no } ITA = { is_ai = no } SOV = { is_ai = no } FRA = { is_ai = no } }
		}

		visible = { 
			date > 1937.1.1
			date < 1939.2.2
			OR = { original_tag = SPR original_tag = SPA original_tag = SPB } 
            num_of_controlled_states > 0
		}
		
		fire_only_once = yes
		
		cost = 5

		days_remove = 180
		
		modifier = { 
		    weekly_manpower = 5000
			industrial_capacity_factory = 0.15
			army_core_attack_factor = 0.5
			army_core_defence_factor = 0.5
			military_factory_donations = 5
	        industrial_factory_donations = 5
			supply_node_range = 0.1
		}
		
		ai_will_do = {
			factor = 0
		}
	}

	SOV_host_YUG_exile_government = {
	    name = SOV_organization_of_the_partisans
		icon = generic_political_discourse

		allowed = {
			has_dlc = "Man the Guns"
			original_tag = SOV
		}
		available = {
			is_faction_leader = yes
			is_major = yes
		    date > 1939.1.1
		    date < 1944.1.1
		    107 = { CONTROLLER = { has_war_with = ROOT } }
		    OR = { 
			    YUG = { exists = no has_capitulated = no } 
			    YUG = { is_subject = yes NOT = { has_government = communism } has_civil_war = no }
			}
			SOV = { is_major = yes has_government = communism has_war_with = GER } 
		}
		cost = 100
		fire_only_once = yes
		
		ai_will_do = {
			factor = 0
		}
		visible = { 
		    date > 1939.1.1
		    date < 1944.1.1
			has_government = communism
		    OR = { 
			    YUG = { exists = no } 
			    YUG = { is_subject = yes }
			}
		}
		complete_effect = {
		     if = { 
		      limit = { YUG = { exists = no } }
			  YUG = { transfer_state = 107 } 
			  SOV = { add_to_faction = YUG }
			  YUG = { add_to_war = { targeted_alliance = PREV enemy = GER hostility_reason = asked_to_join } }
              YUG = { become_exiled_in = { target = PREV legitimacy = 25 } }
		      YUG = { set_politics = { ruling_party = communism elections_allowed = yes } add_popularity = { ideology = communism popularity = 0.5 } } 
			  GER = { set_state_controller = 107 }
		    }
			if = {
		        limit = { YUG = { exists = yes is_subject = yes NOT = { has_government = communism } has_civil_war = no has_war_with = SOV } }
				YUG = { add_timed_idea = { idea = balkans_partisans_communist_negative days = 365 } add_popularity = { ideology = communism popularity = 0.1 } }
			}
			if = {
		        limit = {  SER = { exists = yes is_subject = yes NOT = { has_government = communism } has_civil_war = no has_war_with = SOV } }
				SER = { add_timed_idea = { idea = balkans_partisans_communist_negative days = 365 } add_popularity = { ideology = communism popularity = 0.1 } }
			}
			if = {
		        limit = {  MNT = { exists = yes  is_subject = yes NOT = { has_government = communism } has_civil_war = no has_war_with = SOV } }
				MNT = { add_timed_idea = { idea = balkans_partisans_communist_negative days = 365 } add_popularity = { ideology = communism popularity = 0.1 } }
			}
			if = {
		        limit = {  BOS = { exists = yes is_subject = yes NOT = { has_government = communism } has_civil_war = no has_war_with = SOV } }
				BOS = { add_timed_idea = { idea = balkans_partisans_communist_negative days = 365 } add_popularity = { ideology = communism popularity = 0.1 } }
			}
	     }
     }
  
    GER_host_RONA_exile_government = {
	    name = usa_borders
		
		icon = generic_political_rally

		allowed = {
			has_dlc = "Man the Guns" original_tag = GER
		}
		available = {
			is_faction_leader = yes
			is_major = yes
			surrender_progress < 0.1
		    248 = { CONTROLLER = { has_war_with = ROOT original_tag = SOV } }
			has_completed_focus = GER_expand_ss_recruitment
			date > 1939.1.1
			date < 1944.1.1
		}
		cost = 100
		fire_only_once = yes
		
		ai_will_do = {
			factor = 0
		}
		visible = { 
			has_government = fascism
			date > 1939.1.1
			date < 1944.1.1
			SOV = { is_major = yes has_government = communism  surrender_progress < 0.6 has_war_with = GER }
		}
		complete_effect = { 
		      add_war_support = -0.05
			  hidden_effect = { RUO = { transfer_state = 248 } }
              release = RUO
			  GER = { add_to_faction = RUO }
			  hidden_effect = {
			  RUO = { add_to_war = { targeted_alliance = PREV enemy = SOV hostility_reason = asked_to_join } } 
			  GER = { set_autonomy = { target = RUO autonomy_state = autonomy_satellite } }
			  SOV = { set_state_controller = 248 }
		      RUO = { 
			    set_politics = { ruling_party = neutrality elections_allowed = yes } add_popularity = { ideology = neutrality  popularity = 0.3 }
				
			create_country_leader = { 
			    name = "Vasily Malyshkin" 
				picture = GFX_portrait_europe_generic_5
				expire = "1946.12.24"
				ideology = despotism
				traits = { editor }
			}
			create_country_leader = {
				name = "Vasily Malyshkin"
				picture = GFX_portrait_europe_generic_5 
				expire = "1946.12.24"
				ideology = gen_nazism
				traits = { propaganda_bungler }
			}
		  }
		}
	  } 
	}
	
    RUA_exile_army = {
	    name = why_we_fight
		
		icon = GFX_decision_generic_nationalism

		allowed = {
		    original_tag = RUO
		}
		available = {
			original_tag = RUO
			GER = { surrender_progress < 0.1 has_government = fascism is_major = yes }
			is_subject_of = GER
		}
		cost = 5
		fire_only_once = yes
		
		ai_will_do = {
			factor = 999
		}
		visible = { 
		    original_tag = RUO
			is_subject_of = GER
		}
		complete_effect = { 
			219 = { add_claim_by = RUO }
			217 = { add_claim_by = RUO }
			195 = { add_claim_by = RUO }
		    add_war_support = 0.05
			add_manpower = 450000
			GER = { add_manpower = 25000 }
			add_timed_idea = { idea = GER_white_russian_advisors days = 730 }
			add_timed_idea = { idea = vrm_new_russia_rona days = 730 }
			hidden_effect = { create_corps_commander = {
		        name = "Mikhail Meandrov"
				gfx = GFX_Portrait_Europe_Generic_land_2
				traits = { winter_specialist }
				skill = 2
				attack_skill = 2
				defense_skill = 2
				planning_skill = 2
				logistics_skill = 2
			}
			
			create_corps_commander = {
		        name = "Dmitriy Zakutny"
				gfx = GFX_Portrait_Europe_Generic_land_3
				traits = { winter_specialist }
				skill = 1
				attack_skill = 1
				defense_skill = 1
				planning_skill = 1
				logistics_skill = 1
			}
			  
					add_equipment_to_stockpile = { 
						type = infantry_equipment_0
						amount = 3000
						producer = GER
					}	
					add_equipment_to_stockpile = { 
						type = infantry_equipment_0
						amount = 2000
						producer = SOV
					}	
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 400
						producer = GER
					}
					add_equipment_to_stockpile = { 
						type = support_equipment
						amount = 500
						producer = SOV
					}
					add_equipment_to_stockpile = { 
						type = artillery_equipment_1
						amount = 150
						producer = GER
					}
					add_equipment_to_stockpile = { 
						type = convoy_1
						amount = 10
						producer = GER
					}
					add_equipment_to_stockpile = { 
						type = train_equipment_1
						amount = 5
						producer = GER
					}
				division_template = {
					name = "ROA Militia"
					priority = 1
					regiments = {
						militia = { x = 0 y = 0 }
						militia = { x = 0 y = 1 }
						militia = { x = 0 y = 2 }
						militia = { x = 1 y = 0 }
						militia = { x = 1 y = 1 }
						militia = { x = 1 y = 2 }
						militia = { x = 2 y = 0 }
						militia = { x = 2 y = 1 }
						militia = { x = 2 y = 2 }
					}
	              	support = {
	              		artillery = { x = 0 y = 0 }
						recon = { x = 0 y = 1 }
	              	}
				}
				}
				64 = {
					create_unit = {
						division = "division_template = \"ROA Militia\" start_experience_factor = 0.5 start_equipment_factor = 0.1"
						owner = ROOT
						count = 10
				}
			}
		 } 
    }
	
    RUO_restore_order = {
	    name = why_we_fight
		
		icon = GFX_decision_generic_operation

		allowed = {
		    original_tag = RUO
		}
		available = {
			original_tag = RUO
			OR = { 
			219 = { is_fully_controlled_by = RUO }
			217 = { is_fully_controlled_by = RUO }
			195 = { is_fully_controlled_by = RUO } 
			}
			num_of_controlled_factories > 15
		}
		cost = 5
		fire_only_once = yes
		
		ai_will_do = {
			factor = 900
		}
		visible = { original_tag = RUO }
		complete_effect = { 
         		add_ideas = SOV_national_brotherhood_idea
				every_state = { 
				limit = { is_core_of = SOV NOT = { is_core_of = UKR } NOT = { is_core_of = BLR } }
				add_core_of = ROOT
				}
		}
    }
	
}



political_actions = {
	
	vrm_research_slot_add_6 = {

		icon = generic_research

		available = {
			amount_research_slots < 7	
			amount_research_slots > 3
			has_stability > 0.25
			has_war_support > 0.25
			surrender_progress < 0.25
			num_of_controlled_factories > 200
			date > 1939.1.1
		}

		visible = { 
			num_of_controlled_factories  > 50	
			amount_research_slots < 7
		}

		fire_only_once = yes
		
		cost = 75

		days_remove = 0
		
		complete_effect = {
		add_ideas = large_factory_strength		
		if = {
		     limit = {
				NOT = { original_tag = SOV original_tag = USA } 
			}
		    add_research_slot = 1
		    }
		}
		ai_will_do = {
			factor = 100
		}
	}
	
	vrm_balkans_partisans_communist = {

		icon = GFX_decision_generic_nationalism

		allowed = {
    		OR = { original_tag = YUG original_tag = SER }
		}

		available = {
		    is_subject = no
			OR = { has_capitulated = yes surrender_progress > 0.95 }
			NOT = { has_government = fascism }
			SOV = { is_major = yes has_government = communism NOT = { has_war_with = ROOT } }
			date > 1941.1.1
			date < 1946.1.1
		}

		visible = { 
		    OR = { original_tag = YUG original_tag = SER }
			NOT = { has_government = fascism }
			date > 1941.1.1
			date < 1946.1.1
		}

		fire_only_once = yes
		
		cost = 200

		
		complete_effect = { 
		    add_war_support = 0.1
		    add_manpower = 200000
			add_political_power = 150
			add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 5000 }    
		    add_timed_idea = { idea = balkans_partisans_communist days = 365 }
			if = { limit = { NOT = { has_template = "Partisan Militia" } }
                division_template = {  name = "Partisan Militia" is_locked = yes				  
		              regiments = { 
	              		militia = { x = 0 y = 0 }
	              		militia = { x = 0 y = 1 }
	              		militia = { x = 0 y = 2 }
	                 	militia = { x = 1 y = 0 }
	              		militia = { x = 1 y = 1 }
	              		militia = { x = 1 y = 2 }
	              	}
			}  
		 }
		 random_core_state = { 
		    limit = { CONTROLLER = { has_war_with = ROOT } }
			create_unit = { division = "division_template = \"Partisan Militia\" start_experience_factor = 0.2 start_equipment_factor = 0.8" 
			owner = ROOT count = 1 allow_spawning_on_enemy_provs = yes }
		 }
		 random_core_state = { 
		    limit = { CONTROLLER = { has_war_with = ROOT } }
			create_unit = { division = "division_template = \"Partisan Militia\" start_experience_factor = 0.2 start_equipment_factor = 0.8" 
			owner = ROOT count = 1 allow_spawning_on_enemy_provs = yes }
		 }
		 random_core_state = { 
		    limit = { CONTROLLER = { has_war_with = ROOT } }
			create_unit = { division = "division_template = \"Partisan Militia\" start_experience_factor = 0.2 start_equipment_factor = 0.8" 
			owner = ROOT count = 2 allow_spawning_on_enemy_provs = yes }
		 }
		 random_core_state = { 
		    limit = { CONTROLLER = { has_war_with = ROOT } }
			create_unit = { division = "division_template = \"Partisan Militia\" start_experience_factor = 0.2 start_equipment_factor = 0.8" 
			owner = ROOT count = 1 allow_spawning_on_enemy_provs = yes }
		 }
		}
		ai_will_do = {
			factor = 999
		}
	}
	
	vrm_pp_farm = {

		icon = generic_civil_support

		available = {
			has_stability > 0.50
			surrender_progress < 0.25	
			NOT = { has_idea = undisturbed_isolation }
			NOT = { has_idea = FRA_disjointed_government }	
			NOT = { has_idea = ENG_the_war_to_end_all_wars }					
		}

		visible = { num_of_factories > 9 }

		fire_only_once = no
		
		cost = 1

		days_remove = 100
		days_re_enable = 300
		
		modifier = {
 			political_power_gain = 0.5
			consumer_goods_factor = 0.15
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
}

avrm_save_country = { 

	not_fall_downfall_counter_offensive = {

		icon = GFX_decision_ger_reichskommissariats

		available = {
            surrender_progress > 0.35
			has_capitulated = no
            is_subject = no 
			num_of_factories > 15
			num_of_controlled_states > 1
			date > 1941.1.1
			original_tag = GER 
		}

		visible = {
			surrender_progress > 0.1
			original_tag = GER
		}
		fire_only_once = yes



		cost = 25
		ai_will_do = {
			factor = 150
		}

		complete_effect = {
			  add_equipment_to_stockpile = { type = infantry_equipment_1 amount = 7000 } 
		      add_manpower = 150000
	          hidden_effect = {
		            delete_unit_template_and_units = {  division_template = "Burgerwehr" disband = yes }
		            delete_unit_template_and_units = {  division_template = "Panzergrendier Reserve" disband = yes }
					create_equipment_variant = {
							name = "Pz. IV(Kriegsmodell)"
							type = medium_tank_chassis_2
						    allow_without_tech = yes 
							parent_version = 0
									modules = {
											main_armament_slot = tank_medium_cannon_2
											turret_type_slot = tank_medium_three_man_tank_turret
											suspension_type_slot = tank_bogie_suspension
											armor_type_slot = tank_welded_armor
											engine_type_slot = tank_gasoline_engine
											special_type_slot_1 = empty
											special_type_slot_2 = empty
											special_type_slot_3 = empty
										}
									upgrades = {
											tank_nsb_engine_upgrade = 5
											tank_nsb_armor_upgrade = 4
										}
								}
				    add_equipment_to_stockpile = { type = medium_tank_chassis_2 variant_name  = "Pz. IV(Kriegsmodell)" amount = 1000 } 
	          }
              division_template = {
	                  name = "Burgerwehr"					
		              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 = {
	              		artillery = { x = 0 y = 0 }
						recon = { x = 0 y = 1 }
						engineer = { x = 0 y = 2 }
	              	}
			  }
              division_template = {
	                  name = "Panzergrendier Reserve"					
		              regiments = {
	              		medium_armor = { x = 0 y = 0 }
	              		medium_armor = { x = 0 y = 1 }
	              		medium_armor = { x = 0 y = 2 }
	                 	medium_armor = { x = 1 y = 0 }
	              		medium_armor = { x = 1 y = 1 }
	              		medium_armor = { x = 1 y = 2 }
 	               		motorized = { x = 2 y = 0 }
	              		motorized = { x = 2 y = 1 }
	              		motorized = { x = 2 y = 2 }
 	               		motorized = { x = 3 y = 0 }
	              		motorized = { x = 3 y = 1 }
	              		motorized = { x = 3 y = 2 }
	              	}
	              	support = {
		               light_tank_recon = { x = 0 y = 0 } 		
			           maintenance_company = { x = 0 y = 1 }
	              	   artillery = { x = 0 y = 2 }
	              	}
			  }
			capital_scope = {
				create_unit = {
					division = "division_template = \"Burgerwehr\" start_experience_factor = 0.6 start_equipment_factor = 0.8" 
					owner = ROOT
					count = 15
				}
				create_unit = {
					division = "division_template = \"Panzergrendier Reserve\" start_experience_factor = 0.6 start_equipment_factor = 0.6" 
					owner = ROOT
					count = 10
				}
			}
		}
	}	
			
	not_fall_downfall = {

		icon = GFX_decision_generic_form_nation
		
		allowed = { }

		#Fail trigger
		available = {surrender_progress < 0.05 }

		days_mission_timeout = 1
		days_remove = 365
		days_re_enable = 730

		fire_only_once = no

		is_good = yes

		activation = {
			has_capitulated = no
            is_subject = no 
			num_of_factories > 1
			num_of_controlled_states > 1
			is_major = yes
			date > 1938.1.1
			surrender_progress > 0.3
			NOT = { original_tag = JAP }
		}


		modifier = {
	        army_core_attack_factor = 0.1
	        army_core_defence_factor = 0.1
			dig_in_speed_factor = 0.15
			production_lack_of_resource_penalty_factor = -0.1
			weekly_manpower = 2500
		}

		#Success
		timeout_effect = { add_war_support = 0.01 }
		#Fail
		complete_effect = { add_war_support = -0.01 }

	}
	
	vrm_rebuild_navy = {

		icon = generic_naval

		available = {
			OR = { original_tag = JAP original_tag = USA original_tag = ITA original_tag = ENG original_tag = FRA }
			has_capitulated = no
            is_subject = no 
			is_major = yes
			dockyard > 35
			date > 1942.2.2
			any_enemy_country = { has_navy_size = { size > 150 } }
			has_navy_size = { size < 81 }
			any_owned_state = { is_coastal = yes naval_base > 0 }
		}

		visible = {
			has_navy_size = { size < 100 }
			OR = { original_tag = JAP original_tag = USA original_tag = ITA original_tag = ENG original_tag = FRA }
		}

		fire_only_once = no

		days_remove = 180
		days_re_enable = 730


		cost = 150
		ai_will_do = {
			factor = 0
		}

		modifier = {
	        industrial_capacity_factory = -0.4
	        industrial_capacity_dockyard = 1.5
			naval_retreat_chance_after_initial_combat = 0.1
			naval_retreat_speed = 0.1
			naval_hit_chance = -0.1
			carrier_traffic = -0.1
			positioning = -0.1
		}
		


		complete_effect = {
            add_war_support = -0.05
		}
	}
	

	one_major_fall = {

		icon = generic_civil_support
		
		name = why_we_fight

		available = {
		    has_capitulated = no
			num_of_controlled_states > 1
			has_civil_war = no
			date > 1939.1.1
            any_allied_country = {
 	            is_major = yes
				has_civil_war = no
				OR = { surrender_progress > 0.7 has_capitulated = yes }
            }	
		}

		visible = {
            any_allied_country = {
 	              is_major = yes
				  OR = { surrender_progress > 0.2 has_capitulated = yes }
            }	
		}

		fire_only_once = yes

		days_remove = 365

		cost = 1
		ai_will_do = {
			factor = 100
		}

		modifier = {
		    weekly_manpower = 500
			industrial_capacity_factory = 0.10
			industrial_capacity_dockyard = 0.10
			production_lack_of_resource_penalty_factor = -0.10
		}
		
	}
	
	eng_hold_mainland = {

		icon = generic_civil_support
		name = ENG_home_defence

		allowed = {	original_tag = ENG }

		#Fail trigger
		available = { }

		days_mission_timeout = 1
		days_remove = 730

		fire_only_once = yes

		is_good = no

		activation = {
			has_war = yes 
			has_capitulated = no
			is_subject = no	
			has_civil_war = no
			OR = { 
			    surrender_progress > 0.05
			    AND = { 
			    any_enemy_country = { is_major = yes } 
                any_allied_country = { OR = { surrender_progress > 0.9 has_capitulated = yes } } 
				}
			}
		}

		modifier = {
			army_core_defence_factor = 0.4
			army_core_attack_factor = 0.4
		}

		#Success
		timeout_effect = { add_war_support = -0.01 }
		#Fail
		complete_effect = { add_war_support = 0.01 }
	}
	
	soviet_not_fall_fast = {

		icon = GFX_decision_generic_military
		
		allowed = { original_tag = SOV }

		available = {
		    original_tag = SOV 
			has_civil_war = no
			num_of_factories > 25
			has_capitulated = no
            is_subject = no 
			date > 1938.1.1
			OR = { 
			   surrender_progress > 0.3 
			   AND = { 
			   has_war_with = GER  has_war_with = JAP 
			   JAP = { is_subject = no num_of_factories > 70 }
			   GER = { is_subject = no num_of_factories > 70 }
			   surrender_progress > 0.15 
			   }
			}
		}

		visible = {  
			surrender_progress > 0.1
			original_tag = SOV
		}

		fire_only_once = yes
		
		cost = 15
		
		complete_effect = { 
		      add_manpower = 250000
			  add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 25000 }
			  add_equipment_to_stockpile = { type = infantry_equipment_1 amount = 10000 }
			  add_equipment_to_stockpile = { type = motorized_equipment_0 amount = 1500 } 	
			  add_equipment_to_stockpile = { type = artillery_equipment_1 amount = 1500 } 				
			  add_equipment_to_stockpile = { type = support_equipment_1 amount = 2000 }
              add_equipment_to_stockpile = { type = train_equipment_1 amount = 15 }		
	          hidden_effect = {
		            delete_unit_template_and_units = {  division_template = "People Militia Troops" disband = yes }
	          }
              division_template = {
	                  name = "People Militia Troops"					
		              regiments = {
	              		militia = { x = 0 y = 0 }
	              		militia = { x = 0 y = 1 }
	              		militia = { x = 0 y = 2 }
	                 	militia = { x = 1 y = 0 }
	              		militia = { x = 1 y = 1 }
	              		militia = { x = 1 y = 2 }
 	               		militia = { x = 2 y = 0 }
	              		militia = { x = 2 y = 1 }
	              		militia = { x = 2 y = 2 }
	              	}
	              	support = {
	              		engineer = { x = 0 y = 0 }
	              		artillery = { x = 0 y = 1 }
	              	}
			  }
			capital_scope = {
				create_unit = {
					division = "division_template = \"People Militia Troops\" start_experience_factor = 0.2 start_equipment_factor = 0.8" 
					owner = ROOT
					count = 30
				}
			}
		}	
		ai_will_do = {
			factor = 700
		}
	}
	
	soviet_frontoviki_attack = {
		name = why_we_fight
		icon = GFX_decision_generic_military
		
		allowed = { original_tag = SOV }

		available = {
		    original_tag = SOV 
			has_civil_war = no
			num_of_factories > 25
			has_capitulated = no
            is_subject = no 
			date > 1941.1.1
			date < 1945.1.1
			OR = {  surrender_progress > 0.35  date > 1944.2.2 }
		}

		visible = {  
			surrender_progress > 0.15
			original_tag = SOV
			date > 1941.1.1
			date < 1945.1.1
		}

		fire_only_once = yes
		
		cost = 15
		
		complete_effect = { 
		      add_manpower = 100000
			  add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 10000 }
			  add_equipment_to_stockpile = { type = infantry_equipment_1 amount = 5000 }
			  add_equipment_to_stockpile = { type = motorized_equipment_1 amount = 500 } 	
			  add_equipment_to_stockpile = { type = artillery_equipment_1 amount = 500 } 				
			  add_equipment_to_stockpile = { type = support_equipment_1 amount = 500 }	
	          hidden_effect = {
		            delete_unit_template_and_units = {  division_template = "Frontoviki Division" disband = yes }
	          }
              division_template = {
	                  name = "Frontoviki Division"					
		              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 }
	              	}
	              	support = {
	              		engineer = { x = 0 y = 0 }
	              		artillery = { x = 0 y = 1 }
						recon = { x = 0 y = 2 }
	              	}
			  }
			capital_scope = {
				create_unit = {
					division = "division_template = \"Frontoviki Division\" start_experience_factor = 0.8 start_equipment_factor = 0.8" 
					owner = ROOT
					count = 15
				}
			}
		}	
		ai_will_do = {
			factor = 700
		}
	}
	
	eng_not_fall_fast = {

		icon = GFX_decision_generic_military
		name = div20_not_fall_fast
		allowed = { original_tag = ENG }

		available = {
		    original_tag = ENG 
			has_civil_war = no
			num_of_factories > 25
			has_capitulated = no
            is_subject = no 
			date > 1938.1.1
			surrender_progress > 0.1 
		}

		visible = {  
			surrender_progress > 0.05
			original_tag = ENG
		}

		fire_only_once = yes
		
		cost = 5
		
		complete_effect = { 
		      add_manpower = 100000
			  add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 5000 }		
              add_equipment_to_stockpile = { type = train_equipment_1 amount = 5 }		
	          hidden_effect = {
		            delete_unit_template_and_units = {  division_template = "Militia Reserve" disband = yes }
	          }
              division_template = {
	                  name = "People Militia Troops"					
		              regiments = {
	              		militia = { x = 0 y = 0 }
	              		militia = { x = 0 y = 1 }
	              		militia = { x = 0 y = 2 }
	                 	militia = { x = 1 y = 0 }
	              		militia = { x = 1 y = 1 }
	              		militia = { x = 1 y = 2 }
 	               		militia = { x = 2 y = 0 }
	              		militia = { x = 2 y = 1 }
	              		militia = { x = 2 y = 2 }
	              	}
	              	support = {
	              		engineer = { x = 0 y = 0 }
	              		artillery = { x = 0 y = 1 }
	              	}
			  }
			capital_scope = {
				create_unit = {
					division = "division_template = \"Militia Reserve\" start_experience_factor = 0.5 start_equipment_factor = 0.8" 
					owner = ROOT
					count = 15
				}
			}
		}	
		ai_will_do = {
			factor = 700
		}
	}

	div20_not_fall_fast = {

		icon = GFX_decision_generic_nationalism
		
		allowed = { OR = { original_tag = GER  original_tag = USA original_tag = RAJ } }

		available = {
		    OR = { original_tag = GER  original_tag = USA original_tag = RAJ } 
			surrender_progress > 0.25
			has_civil_war = no
			num_of_factories > 15
			has_capitulated = no
			date > 1938.1.1
		}

		visible = {  
			surrender_progress > 0.1
			OR = { original_tag = GER original_tag = USA original_tag = RAJ } 
		}

		fire_only_once = yes
		
		cost = 20
		
		complete_effect = { 
		      add_manpower = 250000
			  add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 10000 } 
	          hidden_effect = {
		            delete_unit_template_and_units = {  division_template = "Militia Troops" disband = yes }
	          }
              division_template = {
	                  name = "Militia Troops"					
		              regiments = {
	              		militia = { x = 0 y = 0 }
	              		militia = { x = 0 y = 1 }
	              		militia = { x = 0 y = 2 }
	                 	militia = { x = 1 y = 0 }
	              		militia = { x = 1 y = 1 }
	              		militia = { x = 1 y = 2 }
 	               		militia = { x = 2 y = 0 }
	              		militia = { x = 2 y = 1 }
	              		militia = { x = 2 y = 2 }
	              	}
	              	support = {
	              		engineer = { x = 0 y = 0 }
	              		artillery = { x = 0 y = 1 }
	              	}
			  }
			capital_scope = {
				create_unit = {
					division = "division_template = \"Militia Troops\" start_experience_factor = 0.5 start_equipment_factor = 0.8" 
					owner = ROOT
					count = 20
				}
			}
		}	
		ai_will_do = {
			factor = 700
		}
	}

	div10_not_fall_fast = {

		icon = GFX_decision_generic_nationalism
		
		allowed = { OR = { original_tag = ITA original_tag = AST original_tag = TUR } }

		available = {
		    OR = { original_tag = ITA original_tag = AST original_tag = TUR }
			surrender_progress > 0.2
			num_of_factories > 15
			has_civil_war = no
			has_capitulated = no
			date > 1938.1.1
		}

		visible = {  
		    OR = { original_tag = ITA original_tag = AST original_tag = TUR }
			surrender_progress > 0.1
		}

		fire_only_once = yes
		
		cost = 10

		days_remove = 0
		
		complete_effect = { 
			add_manpower = 250000
			add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 5000 } 
	          hidden_effect = {
		            delete_unit_template_and_units = {  division_template = "Militia Reserve" disband = yes }
	          }
            division_template = {
	                  name = "Militia Reserve"					
		              regiments = {
	              		militia = { x = 0 y = 0 }
	              		militia = { x = 0 y = 1 }
	              		militia = { x = 0 y = 2 }
	                 	militia = { x = 1 y = 0 }
	              		militia = { x = 1 y = 1 }
	              		militia = { x = 1 y = 2 }
 	               		militia = { x = 2 y = 0 }
	              		militia = { x = 2 y = 1 }
	              		militia = { x = 2 y = 2 }
	              	}
	              	support = {
	              		engineer = { x = 0 y = 0 }
	              		artillery = { x = 0 y = 1 }
	              	}
				}
				capital_scope = {
				create_unit = {
					division = "division_template = \"Militia Reserve\" start_experience_factor = 0.5 start_equipment_factor = 0.8" 
					owner = ROOT
					count = 12
				}
			}	
		}
		ai_will_do = {
			factor = 700
		}
	}
	
	div5_not_fall_fast = {

		icon = GFX_decision_generic_nationalism

		available = {
		    is_major = yes 
			surrender_progress > 0.25
			num_of_factories > 15
			has_civil_war = no
			has_capitulated = no
			date > 1938.1.1
		}

		visible = {  
		    NOT = { OR = { original_tag = ENG original_tag = SOV original_tag = GER original_tag = RAJ original_tag = USA original_tag = ITA original_tag = TUR } }
			is_major = yes
			surrender_progress > 0.1
		}

		fire_only_once = yes
		
		cost = 10

		days_remove = 0
		
		complete_effect = { 
			add_manpower = 100000
			add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 5000 } 
	          hidden_effect = {
		            delete_unit_template_and_units = {  division_template = "Militia Infantry" disband = yes }
	          }
              division_template = {
	                  name = "Militia Infantry"					
		              regiments = {
	              		militia = { x = 0 y = 0 }
	              		militia = { x = 0 y = 1 }
	              		militia = { x = 0 y = 2 }
	                 	militia = { x = 1 y = 0 }
	              		militia = { x = 1 y = 1 }
	              		militia = { x = 1 y = 2 }
 	               		militia = { x = 2 y = 0 }
	              		militia = { x = 2 y = 1 }
	              		militia = { x = 2 y = 2 }
	              	}
	              	support = {
	              		engineer = { x = 0 y = 0 }
	              		artillery = { x = 0 y = 1 }
	              	}
				}
				capital_scope = {
				create_unit = {
					division = "division_template = \"Militia Infantry\" start_experience_factor = 0.4 start_equipment_factor = 0.8" 
					owner = ROOT
					count = 7
				}
			}	
		}
		ai_will_do = {
			factor = 700
		}
	}
	
	
	spr_not_die_after_cw = {

		icon = GFX_decision_generic_nationalism

		available = {
			OR = { original_tag = SPR original_tag = SPA original_tag = SPB } 
			surrender_progress > 0.1
			has_capitulated = no
			is_subject = no
			num_of_factories > 5
			OR = {
			any_enemy_country = { num_of_factories > 65 }
			any_enemy_country = { is_major = yes }
			}
			date > 1938.1.1
			date < 1943.1.1
		}

		visible = {  
		    OR = { original_tag = SPR original_tag = SPA original_tag = SPB } 
			OR = { any_enemy_country = { num_of_factories > 45 } any_enemy_country = { is_major = yes } }
			date > 1938.1.1
			date < 1943.1.1
		}

		fire_only_once = yes
		
		cost = 25

		days_remove = 0
		
		complete_effect = { 
			add_manpower = 50000
			add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 2500 } 
	          hidden_effect = {
		            delete_unit_template_and_units = {  division_template = "Militia Troops" disband = yes }
	          }
              division_template = {
	                  name = "Militia Troops"					
		              regiments = {
	              		militia = { x = 0 y = 0 }
	              		militia = { x = 0 y = 1 }
	              		militia = { x = 0 y = 2 }
	                 	militia = { x = 1 y = 0 }
	              		militia = { x = 1 y = 1 }
	              		militia = { x = 1 y = 2 }
 	               		militia = { x = 2 y = 0 }
	              		militia = { x = 2 y = 1 }
	              		militia = { x = 2 y = 2 }
	              	}
	              	support = {
	              		engineer = { x = 0 y = 0 }
	              		artillery = { x = 0 y = 1 }
	              	}
				}
				capital_scope = {
				create_unit = {
					division = "division_template = \"Militia Troops\" start_experience_factor = 0.5 start_equipment_factor = 0.8" 
					owner = ROOT
					count = 10
				}
			}	
		}
		ai_will_do = {
			factor = 700
		}
	}
}