vrm_annex_minors = {

	GER_must_end_with_FRA = {

		icon = GFX_decision_hol_draw_up_staff_plans
		
		name = GER_operational_planning
		
		allowed = { }

		#Fail trigger
		available = { has_capitulated = yes }

		days_mission_timeout = 120
		days_remove = 1

		fire_only_once = yes

		is_good = yes

		activation = {
		    original_tag = GER
			has_war_with = FRA
			FRA = { is_ai = no has_capitulated = no has_civil_war = no controls_state = 16 }
			has_capitulated = no
			has_civil_war = no
			num_of_controlled_factories > 24
			date > 1940.5.5
			date < 1940.10.10
		}
		complete_effect = { 
			FRA = { add_war_support = -0.05 add_stability = -0.05 }
	    }
		
		targeted_modifier = {
			tag = FRA
			attack_bonus_against = 1.0
			breakthrough_bonus_against = 1.0
		}
		targeted_modifier = {
			tag = HOL
			attack_bonus_against = 1.0
			breakthrough_bonus_against = 1.0
		}
		targeted_modifier = {
			tag = BEL
			attack_bonus_against = 1.0
			breakthrough_bonus_against = 1.0
		}
	}


	tech_major_vrm = {

		icon = GFX_decision_generic_form_nation
		
		allowed = { }

		#Fail trigger
		available = { has_capitulated = yes }

		days_mission_timeout = 1
		days_remove = 1

		fire_only_once = yes

		is_good = yes

		activation = {
			has_capitulated = no
			has_civil_war = no
			num_of_controlled_factories > 1
			date > 1939.1.1
			date < 1946.1.1
			OR = { 
			  original_tag = GER original_tag = USA original_tag = ITA original_tag = SOV original_tag = JAP original_tag = ENG 
			  AND = { date > 1942.4.4 exists = yes }
			}
		}

		modifier = {
			production_lack_of_resource_penalty_factor = -0.05
		}

		#Success
		timeout_effect = { 
		   #infantry
			if = {
				limit = { NOT = { has_tech = infantry_weapons } }
				set_technology = { infantry_weapons = 1 }
			}
			if = {
				limit = { NOT = { has_tech = infantry_weapons1 } }
				set_technology = { infantry_weapons1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = tech_trucks } }
				set_technology = { tech_trucks = 1 }
			}
			if = {
				limit = { NOT = { has_tech = motorised_infantry } }
				set_technology = { motorised_infantry = 1 }
			}
			if = {
				limit = { NOT = { has_tech = armored_car1 } }
				set_technology = { armored_car1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = armored_car2 } }
				set_technology = { armored_car2 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = paratroopers } }
				set_technology = { paratroopers = 1 }
			}
			if = {
				limit = { NOT = { has_tech = marines } }
				set_technology = { marines = 1 }
			}
			if = {
				limit = { NOT = { has_tech = tech_mountaineers } }
				set_technology = { tech_mountaineers = 1 }
			}
			
		   #tanks
			if = {
				limit = { NOT = { has_tech = gwtank_chassis } }
				set_technology = { gwtank_chassis = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_light_tank_chassis } }
				set_technology = { basic_light_tank_chassis = 1 }
			}
			if = {
				limit = { NOT = { has_tech = improved_light_tank_chassis } }
				set_technology = { improved_light_tank_chassis = 1 }
			}
			if = {
				limit = { NOT = { has_tech = amphibious_tank_chassis } }
				set_technology = { amphibious_tank_chassis = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_medium_tank_chassis } }
				set_technology = { basic_medium_tank_chassis = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_heavy_tank_chassis } }
				set_technology = { basic_heavy_tank_chassis = 1 }
			}
			if = {
				limit = { NOT = { has_tech = armor_tech_1 } }
				set_technology = { armor_tech_1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = armor_tech_2 } }
				set_technology = { armor_tech_2 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = engine_tech_1 } }
				set_technology = { engine_tech_1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = engine_tech_2 } }
				set_technology = { engine_tech_2 = 1 }
			}
			
		   #artillery
			if = {
				limit = { NOT = { has_tech = gw_artillery } }
				set_technology = { gw_artillery = 1 }
			}
			if = {
				limit = { NOT = { has_tech = interwar_artillery } }
				set_technology = { interwar_artillery = 1 }
			}
			if = {
				limit = { NOT = { has_tech = artillery1 } }
				set_technology = { artillery1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = interwar_antiair } }
				set_technology = { interwar_antiair = 1 }
			}
			if = {
				limit = { NOT = { has_tech = antiair1 } }
				set_technology = { antiair1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = interwar_antitank } }
				set_technology = { interwar_antitank = 1 }
			}
			if = {
				limit = { NOT = { has_tech = antitank1 } }
				set_technology = { antitank1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = antitank2 } }
				set_technology = { antitank2 = 1 }
			}
			
		   #navy_support
			if = {
				limit = { NOT = { has_tech = basic_battery } }
				set_technology = { basic_battery = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_light_battery } }
				set_technology = { basic_light_battery = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_light_shell } }
				set_technology = { basic_light_shell = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_medium_battery } }
				set_technology = { basic_medium_battery = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_medium_shell } }
				set_technology = { basic_medium_shell = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_heavy_battery } }
				set_technology = { basic_heavy_battery = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_heavy_shell } }
				set_technology = { basic_heavy_shell = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_torpedo } }
				set_technology = { basic_torpedo = 1 }
			}
			if = {
				limit = { NOT = { has_tech = improved_ship_torpedo_launcher } }
				set_technology = { improved_ship_torpedo_launcher = 1 }
			}
			if = {
				limit = { NOT = { has_tech = damage_control_1 } }
				set_technology = { damage_control_1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = fire_control_methods_1 } }
				set_technology = { fire_control_methods_1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_naval_mines } }
				set_technology = { basic_naval_mines = 1 }
			}
			if = {
				limit = { NOT = { has_tech = mtg_transport } }
				set_technology = { mtg_transport = 1 }
			}
			#navy ships
			if = {
				limit = { NOT = { has_tech = early_ship_hull_light } }
				set_technology = { early_ship_hull_light = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_ship_hull_light } }
				set_technology = { basic_ship_hull_light = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_depth_charges } }
				set_technology = { basic_depth_charges = 1 }
			}
			if = {
				limit = { NOT = { has_tech = sonar } }
				set_technology = { sonar = 1 }
			}
			
			if = {
				limit = { NOT = { has_tech = early_ship_hull_cruiser } }
				set_technology = { early_ship_hull_cruiser = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_ship_hull_cruiser } }
				set_technology = { basic_ship_hull_cruiser = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_cruiser_armor_scheme } }
				set_technology = { basic_cruiser_armor_scheme = 1 }
			}
			
			if = {
				limit = { NOT = { has_tech = early_ship_hull_heavy } }
				set_technology = { early_ship_hull_heavy = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_ship_hull_heavy } }
				set_technology = { basic_ship_hull_heavy = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_heavy_armor_scheme } }
				set_technology = { basic_heavy_armor_scheme = 1 }
			}
			
			if = {
				limit = { NOT = { has_tech = early_ship_hull_carrier } }
				set_technology = { early_ship_hull_carrier = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_ship_hull_carrier } }
				set_technology = { basic_ship_hull_carrier = 1 }
			}
			if = {
				limit = { NOT = { has_tech = early_ship_hull_submarine } }
				set_technology = { early_ship_hull_submarine = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_ship_hull_submarine } }
				set_technology = { basic_ship_hull_submarine = 1 }
			}
 
            #air
			if = {
				limit = { NOT = { has_tech = bba_early_transport_plane } }
				set_technology = { bba_early_transport_plane = 1 }
			}
			if = {
				limit = { NOT = { has_tech = iw_small_airframe } }
				set_technology = { iw_small_airframe = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_small_airframe } }
				set_technology = { basic_small_airframe = 1 }
			}
			if = {
				limit = { NOT = { has_tech = iw_medium_airframe } }
				set_technology = { iw_medium_airframe = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_medium_airframe } }
				set_technology = { basic_medium_airframe = 1 }
			}
			if = {
				limit = { NOT = { has_tech = iw_large_airframe } }
				set_technology = { iw_large_airframe = 1 }
			}
			if = {
				limit = { NOT = { has_tech = basic_large_airframe } }
				set_technology = { basic_large_airframe = 1 }
			}
			if = {
				limit = { NOT = { has_tech = early_bombs } }
				set_technology = { early_bombs = 1 }
			}
			if = {
				limit = { NOT = { has_tech = photo_reconnaisance } }
				set_technology = { photo_reconnaisance = 1 }
			}
			if = {
				limit = { NOT = { has_tech = air_torpedoe_1 } }
				set_technology = { air_torpedoe_1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = aa_lmg } }
				set_technology = { aa_lmg = 1 }
			}
			if = {
				limit = { NOT = { has_tech = aa_cannon_1 } }
				set_technology = { aa_cannon_1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = engines_1 } }
				set_technology = { engines_1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = engines_2 } }
				set_technology = { engines_2 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = range_improvements } }
				set_technology = { range_improvements = 1 }
			}
			if = {
				limit = { NOT = { has_tech = aircraft_construction } }
				set_technology = { aircraft_construction = 1 }
			}
			#industry 
			if = {
				limit = { NOT = { has_tech = basic_machine_tools } }
				set_technology = { basic_machine_tools = 1 }
			}
			if = {
				limit = { NOT = { has_tech = improved_machine_tools } }
				set_technology = { improved_machine_tools = 1 }
			}
			
			if = {
				limit = { NOT = { has_tech = fuel_silos } }
				set_technology = { fuel_silos = 1 }
			}
			if = {
				limit = { NOT = { has_tech = fuel_refining } }
				set_technology = { fuel_refining = 1 }
			}
			if = {
				limit = { NOT = { has_tech = synth_oil_experiments } }
				set_technology = { synth_oil_experiments = 1 }
			}
			if = {
				limit = { NOT = { has_tech = construction1 } }
				set_technology = { construction1 = 1 }
			}
			if = {
				limit = { NOT = { has_tech = construction2 } }
				set_technology = { construction2 = 1 }
			}
			#electro
			if = {
				limit = { NOT = { has_tech = electronic_mechanical_engineering } }
				set_technology = { electronic_mechanical_engineering = 1 }
			}
			if = {
				limit = { NOT = { has_tech = radio } }
				set_technology = { radio = 1 }
			}
			if = {
				limit = { NOT = { has_tech = mechanical_computing } }
				set_technology = { mechanical_computing = 1 }
			}
			
			#support
			if = {
				limit = { NOT = { has_tech = tech_support } }
				set_technology = { tech_support = 1 }
			}
			if = {
				limit = { NOT = { has_tech = tech_engineers } }
				set_technology = { tech_engineers = 1 }
			}
			if = {
				limit = { NOT = { has_tech = tech_recon } }
				set_technology = { tech_recon = 1 }
			}
			if = {
				limit = { NOT = { has_tech = tech_military_police } }
				set_technology = { tech_military_police = 1 }
			}
			if = {
				limit = { NOT = { has_tech = tech_maintenance_company } }
				set_technology = { tech_maintenance_company = 1 }
			}
			if = {
				limit = { NOT = { has_tech = tech_field_hospital } }
				set_technology = { tech_field_hospital = 1 }
			}
			if = {
				limit = { NOT = { has_tech = tech_logistics_company } }
				set_technology = { tech_logistics_company = 1 }
			}
			if = {
				limit = { NOT = { has_tech = tech_signal_company } }
				set_technology = { tech_signal_company = 1 }
			}
		}
		#Fail
		complete_effect = { add_war_support = -0.01 }

	}


	aoi_must_have_cores = {
	    name = USA_reintegration
		icon = generic_civil_support
		
		available = {
			num_of_controlled_states > 0
		}

		visible = { 
			original_tag = AOI
		}

		fire_only_once = yes
		
		cost = 100

		complete_effect = {
			every_state = {
				limit = { is_core_of = ETH }
				add_core_of = ROOT
			}
			every_controlled_state = {
				limit = { is_core_of = SOM }
				add_core_of = ROOT
			}
		}
		ai_will_do = {
			factor = 200
		}
	}

    CSA_restore_order = {
	    name = USA_reintegration
		
		icon = eng_propaganda_campaigns

		allowed = {
		    OR = { original_tag = CSA original_tag = USA original_tag = USB }
		}
		available = {
		    date > 1940.1.1
			OR = { original_tag = CSA original_tag = USA original_tag = USB }
			378 = { is_fully_controlled_by = ROOT }
			358 = { is_fully_controlled_by = ROOT } 
			395 = { is_fully_controlled_by = ROOT } 
			375 = { is_fully_controlled_by = ROOT } 
			
			OR = {
			378 = { NOT = { is_core_of = ROOT } }
			358 = { NOT = { is_core_of = ROOT } } 
			395 = { NOT = { is_core_of = ROOT } } 
			375 = { NOT = { is_core_of = ROOT } } 
			}
			num_of_controlled_factories > 250
		}
		cost = 25
		fire_only_once = yes
		
		ai_will_do = {
			factor = 900
		}
		visible = { 
		    OR = { original_tag = CSA original_tag = USA original_tag = USB }
			OR = {
			378 = { NOT = { is_core_of = ROOT } }
			358 = { NOT = { is_core_of = ROOT } } 
			395 = { NOT = { is_core_of = ROOT } } 
			375 = { NOT = { is_core_of = ROOT } } 
			}
		}
		complete_effect = { 
		        add_stability = -0.05
				add_war_support = -0.05
				every_state = { 
				limit = { is_core_of = USA NOT = { is_core_of = ROOT } }
				add_core_of = ROOT
				}
		}
    }


    RAJ_restore_order = {
	    name = USA_reintegration
		
		icon = eng_propaganda_campaigns

		allowed = {
		    original_tag = RAJ 
		}
		available = {
		    date > 1941.1.1
			original_tag = RAJ
			439 = { is_fully_controlled_by = ROOT }
			425 = { is_fully_controlled_by = ROOT } 
			431 = { is_fully_controlled_by = ROOT } 
			num_of_controlled_factories > 25
			has_civil_war = no
		}
		cost = 25
		fire_only_once = yes
		
		ai_will_do = {
			factor = 900
		}
		visible = { 
		    original_tag = RAJ 
		}
		complete_effect = { 
			every_state = { 
				limit = { 
				   is_core_of = RAJ 
				   NOT = { is_core_of = ROOT }
				}
				add_core_of = ROOT
			}
			every_state = { 
				limit = { 
				   OR = { is_core_of = RJP is_core_of = WIS is_core_of = CIP is_core_of = HYD is_core_of = KOL is_core_of = MYS is_core_of = RAS is_core_of = MPU }
				   NOT = { is_core_of = ROOT }
				}
				add_core_of = ROOT
			}
		}
    }


	convoy_anti_bug = {
	    name = "convoy_1" 
		
		available = { num_of_controlled_factories > 0 }

		visible = {
            date > 1937.1.1
		}
		
		cost = 1
		days_re_enable = 180
		
		complete_effect = { add_equipment_to_stockpile = { type = convoy_1 amount = 1 } }
		ai_will_do = {
			factor = 0
		}
	}
	
    vrm_add_faction_member = { 
        name = all_annex_autonomy
		icon = generic_political_rally
		
		allowed = { }
		
		target_trigger = {
			FROM = { 
			  has_civil_war = no
			  is_in_faction_with = ROOT
			  num_of_controlled_factories > 0
			}
		}
		
		targets_dynamic = yes
		
		available = {
		 	date > 1941.1.1
		    FROM = { 
			   is_subject = no
			   has_civil_war = no
			   is_in_faction_with = ROOT
			   num_of_controlled_factories > 0
			}
			is_faction_leader = yes
			has_civil_war = no
            is_subject = no
			surrender_progress < 0.15
			num_of_controlled_factories > 9
		}

		visible = { 
		    is_subject = no	
			is_faction_leader = yes
			FROM = { is_subject = no }
		}
		
		fire_only_once = no
		cost = 75
		
		days_re_enable = 180
	    days_remove = 30

		modifier = {
			consumer_goods_factor = 0.25
		}
		
		complete_effect = { 
			every_country = {
				limit = { is_subject_of = FROM }
				ROOT = { set_autonomy = { target = PREV autonomy_state = autonomy_supervised_state end_wars = no end_civil_wars = no} }
			}
			set_autonomy = { target = FROM autonomy_state = autonomy_supervised_state end_wars = no end_civil_wars = no}
		}
		ai_will_do = {
			factor = 0
		}
	}

	chi_annex_yun_gxc = { 
		icon = GFX_decision_eng_trade_unions_support
		
		allowed = { original_tag = CHI }
		available = {
		 	date > 1937.1.1
			date < 1940.2.2
			original_tag = CHI
			has_civil_war = no is_subject = no 
			surrender_progress < 0.15
			num_of_controlled_factories > 10
			YUN = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.15
			   has_civil_war = no
			}
			GXC = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.15
			   has_civil_war = no
			}
		}

		visible = {  
			original_tag = CHI
			date < 1940.2.2
		}
		
		fire_only_once = yes
		cost = 10
		
		complete_effect = { 
			  annex_country = { target = YUN }
			  YUN = {  remove_state_core = 325 remove_state_core = 747 }
			  annex_country = { target = GXC }
			  GXC = {  remove_state_core = 599  remove_state_core = 594  remove_state_core = 593  remove_state_core = 592  remove_state_core = 591 }
		}
		ai_will_do = {
			factor = 300
		}
	}
	
	prc_annex_shx = { 
		icon = GFX_decision_eng_trade_unions_support
		
		allowed = { original_tag = PRC }
		 available = {
		 	date > 1937.1.1
		 	date < 1940.2.2
			original_tag = PRC
			has_civil_war = no is_subject = no 
			surrender_progress < 0.15
			num_of_controlled_factories > 5
			SHX = { 
			     is_ai = yes is_puppet = no 
				 surrender_progress < 0.15
				 has_civil_war = no	
			}
		}

		visible = {  
			original_tag = PRC
			date < 1940.2.2
		}
		
		fire_only_once = yes
		cost = 10
		
		complete_effect = { 
			annex_country = { target = SHX }
			SHX = {  remove_state_core = 621 remove_state_core = 746 remove_state_core = 615 }
		}
		
		ai_will_do = {
			factor = 300
		}
	}


	raj_annex_small = { 
		icon = GFX_decision_eng_trade_unions_support
		
		allowed = { original_tag = RAJ }
		available = {
		 	date > 1937.1.1
			date < 1940.2.2
			original_tag = RAJ
			has_civil_war = no
			surrender_progress < 0.15
			num_of_controlled_factories > 10
			   NEP = { 
			     is_ai = yes is_subject = no 
				 surrender_progress < 0.15
				 has_civil_war = no
			  }
			  BHU = { 
			     is_ai = yes is_subject = no 
				 surrender_progress < 0.15
				 has_civil_war = no
			 }
		}

		visible = {  
			original_tag = RAJ
			date < 1940.2.2
		}
		
		fire_only_once = yes
		cost = 25
		
		complete_effect = { 
			annex_country = { target = NEP }
			annex_country = { target = BHU }
		    every_owned_state = { limit = { is_controlled_by = ROOT  OR = { is_core_of = NEP is_core_of = BHU } }
			  add_compliance = 50
		    }
		}
		ai_will_do = {
			factor = 300
		}
	}	
	
	unite_central_america = { 
		icon = generic_political_rally
		
		allowed = { OR = { original_tag = NIC original_tag = GUA  original_tag = HON  original_tag = ELS original_tag = COS } }
		
		target_trigger = {
			FROM = { 
			has_civil_war = no
			is_ai = yes is_subject = no
			surrender_progress < 0.15 
			OR = { original_tag = NIC original_tag = GUA  original_tag = HON  original_tag = ELS original_tag = COS } 
			}
		}
		
		targets = { NIC GUA HON ELS COS }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.15
			   has_civil_war = no
			   OR = { original_tag = NIC original_tag = GUA  original_tag = HON  original_tag = ELS original_tag = COS } 
			}
		 	date > 1937.1.1
		 	date < 1940.1.1
			has_civil_war = no
            is_subject = no
			surrender_progress < 0.15
			num_of_controlled_factories > 1
		}

		visible = { 
		    is_subject = no	
			date < 1940.1.1
			FROM = { is_subject = no is_ai = yes }
		}
		
		fire_only_once = no
		cost = 15
		
		days_re_enable = 14
		
		complete_effect = { 
		    add_manpower = 1000
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 35
		    }
		}
		ai_will_do = {
			factor = 100
		}
	}

	unite_caribeans = { 
		icon = generic_political_rally
		
		allowed = {  OR = { original_tag = HAI original_tag = DOM } }
		target_trigger = {
			FROM = { 
			   has_civil_war = no
			   is_ai = yes is_subject = no
			   surrender_progress < 0.15 
			   OR = { original_tag = HAI original_tag = DOM }
			}
		}
		
		targets = { HAI DOM }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.15
			   has_civil_war = no
			   OR = { original_tag = HAI original_tag = DOM }
			}
		 	date > 1937.1.1
		 	date < 1940.1.1
			has_civil_war = no
            is_subject = no
			surrender_progress < 0.05
			num_of_controlled_factories > 1
		}

		visible = { 
		    is_subject = no	
		 	date < 1940.1.1
			FROM = { is_subject = no is_ai = yes }
		}
		
		fire_only_once = yes
		cost = 50
		
		days_re_enable = 14
		
		complete_effect = { 
			add_manpower = 1000
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 35
		    }
		}
		ai_will_do = {
			factor = 300
		}
	}	
	
    unite_grand_columbia = { 
	
		icon = generic_political_rally
		
		allowed = { OR = { original_tag = ECU original_tag = COL original_tag = VEN } }
		target_trigger = {
			FROM = { 
			has_civil_war = no
			is_ai = yes is_subject = no
			surrender_progress < 0.15 
			   OR = { original_tag = ECU original_tag = COL original_tag = VEN } 
			}
		}
		
		targets = { ECU COL VEN }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.15
			   has_civil_war = no
			   OR = { original_tag = ECU original_tag = COL original_tag = VEN } 
			}
		 	date > 1938.1.1
			date < 1941.1.1
			has_civil_war = no
            is_subject = no
			surrender_progress < 0.05
			num_of_controlled_factories > 1
		}

		visible = { 
		    is_subject = no	
			date < 1941.1.1
			FROM = { is_subject = no is_ai = yes }
		}
		
		fire_only_once = no
		cost = 25
		
		days_re_enable = 14
		
		complete_effect = { 
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 35
		    }
		}
		ai_will_do = {
			factor = 250
		}
	}

    south_am_unite_bol_pru = { 
		icon = generic_political_rally
		
		allowed = { OR = { original_tag = PRU original_tag = BOL } }
		target_trigger = {
			FROM = { has_civil_war = no
			is_ai = yes is_subject = no
			surrender_progress < 0.15 
			   OR = { original_tag = PRU original_tag = BOL } 
			}
		}
		
		targets = { BOL PRU }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.15
			   has_civil_war = no
			   OR = { original_tag = PRU original_tag = BOL } 
			}
		 	date > 1938.1.1
			date < 1941.1.1
			has_civil_war = no
            is_subject = no
			surrender_progress < 0.05
			num_of_controlled_factories > 1
		}

		visible = { 
		    is_subject = no	
			date < 1941.1.1
			FROM = { is_subject = no is_ai = yes }
		}
		
		fire_only_once = yes
		cost = 25
		 
		days_re_enable = 14
		
		complete_effect = { 
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 35
		    }
		}
		ai_will_do = {
			factor = 250
		}
	}
	
    persia_unite = { 
		icon = generic_political_rally
		
		allowed = { OR = { original_tag = PER original_tag = IRQ original_tag = AFG } }
		target_trigger = {
			FROM = { 
			has_civil_war = no
			is_ai = yes is_subject = no
			surrender_progress < 0.15
			   OR = { original_tag = AFG original_tag = PER original_tag = IRQ } 
			}
		}
		
		targets = { AFG PER IRQ }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.15
			   has_civil_war = no
			   OR = { original_tag = AFG original_tag = PER original_tag = IRQ } 
			}
		 	date > 1937.1.1
			date < 1940.1.1
			has_civil_war = no
            is_subject = no
			surrender_progress < 0.15
			num_of_controlled_factories > 1
		}

		visible = { 
		    is_subject = no	
			date < 1940.1.1
			FROM = { is_subject = no is_ai = yes }
		}
		
		fire_only_once = no
		cost = 25
		 
		days_re_enable = 14
		
		complete_effect = { 
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 50
		    }
		}
		ai_will_do = {
			factor = 200
		}
	}
	
    ast_annex_nzl = { 
		icon = generic_political_rally
		
		allowed = { original_tag = AST }
		target_trigger = {
			FROM = { 
			has_civil_war = no
			is_ai = yes 
			surrender_progress < 0.15 
			   original_tag = NZL 
			}
		}
		
		targets = { NZL }
		targets_dynamic = yes
		
		available = {
		    FROM = {
			   is_ai = yes
			   surrender_progress < 0.15
			   has_civil_war = no
			   original_tag = NZL 
			   is_in_faction_with = ROOT
			}
		 	date > 1939.1.1
			date < 1941.1.1
			has_civil_war = no
			surrender_progress < 0.15
			num_of_controlled_factories > 1
		}

		visible = { 
			date < 1941.1.1
			FROM = { is_ai = yes }
		}
		
		fire_only_once = yes
		cost = 25
		
		days_re_enable = 14
		
		complete_effect = { 
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 50
		    }
			add_state_claim = 723
			add_state_claim = 284
		}
		ai_will_do = {
			factor = 0
		}
	}
	
    eng_annex_around = { 
		icon = generic_political_rally
		
		allowed = { original_tag = ENG }
		target_trigger = {
			FROM = { 
			has_civil_war = no
			is_ai = yes is_subject = no
			surrender_progress < 0.1
			   OR = { original_tag = ICE original_tag = CAN original_tag = SAF }
			}
		}
		
		targets = { ICE CAN SAF }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.1
			   has_civil_war = no
			   OR = { original_tag = ICE original_tag = CAN original_tag = SAF  }
			}
		 	date > 1937.1.1
			date < 1940.1.1
			is_major = yes
			has_civil_war = no is_subject = no
			surrender_progress < 0.1
			num_of_controlled_factories > 1
		}

		visible = { 
			date < 1940.1.1
			FROM = { is_ai = yes is_subject = no }
		}
		
		fire_only_once = no
		cost = 25
		
		days_re_enable = 14
		
		complete_effect = { 
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 50
		    }
		}
		ai_will_do = {
			factor = 0
		}
	}
	
    ger_control_bul = { 
		icon = generic_political_rally
		
		allowed = { original_tag = GER }
		target_trigger = {
			FROM = { 
			has_civil_war = no is_subject = no
			surrender_progress < 0.1
			is_major = no
			OR = { original_tag = ROM original_tag = BUL original_tag = HUN original_tag = SWE } 
			}
		}
		
		targets = { BUL ROM HUN SWE }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_subject = no 
			   surrender_progress < 0.1
			   has_civil_war = no
			   is_major = no
			   OR = { has_government = ROOT has_government = neutrality is_in_faction_with = ROOT } 
			   OR = { original_tag = ROM original_tag = BUL original_tag = HUN original_tag = SWE } 
			}
			is_subject = no 
			is_faction_leader = yes 
		 	date > 1939.1.1
			date < 1942.1.1
			has_civil_war = no
			surrender_progress < 0.1
			num_of_controlled_factories > 1
		}

		visible = { 
			date > 1938.1.1
			date < 1942.1.1
		}
		
		fire_only_once = yes
		cost = 25

		complete_effect = { 
			every_country = {
				limit = { is_subject_of = FROM }
				ROOT = { set_autonomy = { target = PREV autonomy_state = autonomy_supervised_state end_wars = no end_civil_wars = no} }
			}
			set_autonomy = { target = FROM autonomy_state = autonomy_supervised_state end_wars = no end_civil_wars = no}
		}
		ai_will_do = {
			factor = 0
		}
	}
	
    usa_borders = { 
		icon = generic_political_rally
		
		allowed = { original_tag = USA }
		target_trigger = {
			FROM = { 
			has_civil_war = no
			is_ai = yes is_subject = no
			surrender_progress < 0.1
			OR = { original_tag = MEX original_tag = NIC original_tag = GUA  original_tag = HON original_tag = ELS original_tag = COS }
			}
		}
		
		targets = { MEX NIC GUA HON ELS COS }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.1
			   has_civil_war = no
			   OR = { original_tag = MEX original_tag = NIC original_tag = GUA  original_tag = HON original_tag = ELS original_tag = COS }
			}
		 	date > 1938.2.2
			date < 1941.1.1
			has_civil_war = no
			surrender_progress < 0.1
			is_major = yes
		}

		visible = { 
            date > 1938.2.2
			date < 1941.1.1
			FROM = { is_ai = yes is_subject = no }
		}
		
		fire_only_once = no
		cost = 50
		
		days_re_enable = 14
		
		complete_effect = { 
           ROOT = { set_autonomy = { target = FROM autonomy_state = autonomy_colony } }
		}
		ai_will_do = {
			factor = 0
		}
	}
	
   sau_unite_arabia = { 
		icon = generic_political_rally
		
		allowed = { 
			original_tag = SAU
		}
				
		target_trigger = {
			FROM = { 
			has_civil_war = no
			is_ai = yes
			surrender_progress < 0.15
			   OR = { original_tag = YEM original_tag = OMA } 
			}
		}
		
		targets = { YEM OMA }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes is_subject = no 
			   surrender_progress < 0.15
			   has_civil_war = no
			   OR = { original_tag = YEM original_tag = OMA } 
		    }
		 	date > 1938.1.1
			date < 1941.1.1
			has_civil_war = no
			surrender_progress < 0.15
			num_of_controlled_factories > 1
		}

		visible = { 
			date < 1941.1.1
			FROM = { is_ai = yes is_subject = no }
		}
		
		fire_only_once = no
		cost = 15
		
		days_re_enable = 14
		
		complete_effect = { 
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 50
		    }
		}
		ai_will_do = {
			factor = 200
		}
	}
	
    all_reduce_autonomy = { 
		icon = hol_attract_foreign_investors
		
		target_trigger = {
			FROM = { is_subject_of = ROOT is_ai = yes }
		}
		
		targets_dynamic = yes
		
		available = {
		 	date > 1937.1.1
			FROM = { 
			   is_ai = yes
			   surrender_progress < 0.15
			   has_civil_war = no
			   is_subject_of = ROOT 
			}
			has_civil_war = no
			surrender_progress < 0.15
			num_of_controlled_factories > 1
		}

		visible = { 
		    num_subjects > 0
			is_ai = no
			FROM = { is_subject_of = ROOT }
		}
		
		fire_only_once = no
		cost = 10
		
		days_re_enable = 90
		complete_effect = { 	
		     FROM ={  
      			 add_autonomy_ratio = {
					value = -0.95
				}
			}
	    }
		ai_will_do = {
			factor = 0
		}
	}
	
    all_annex_autonomy = { 
		icon = hol_attract_foreign_investors
		
		target_trigger = {
			FROM = { is_subject_of = ROOT is_ai = yes }
		}
		
		targets_dynamic = yes
		
		available = {
		 	date > 1939.1.1
			FROM = { 
			   is_ai = yes surrender_progress < 0.15
			   has_civil_war = no is_subject_of = ROOT 
			}
			FROM = {
			    OR = { 
				  AND = { compare_autonomy_progress_ratio < 0.25 has_autonomy_state = autonomy_collaboration_government }
				  AND = { compare_autonomy_progress_ratio < 0.25 has_autonomy_state = autonomy_integrated_puppet }
				  AND = { compare_autonomy_progress_ratio < 0.25 has_autonomy_state = autonomy_reichskommissariat }
				  AND = { compare_autonomy_progress_ratio < 0.25 has_autonomy_state = autonomy_wtt_imperial_protectorate }
				  AND = { compare_autonomy_progress_ratio < 0.25 has_autonomy_state = autonomy_supervised_state }
				  AND = { compare_autonomy_progress_ratio < 0.25 has_autonomy_state = autonomy_aat_defense_council_member }
				  AND = { compare_autonomy_progress_ratio < 0.25 has_autonomy_state = autonomy_austro_hungarian_subject }
				  AND = { compare_autonomy_progress_ratio < 0.25 has_autonomy_state = autonomy_eu_member }
				  AND = { compare_autonomy_progress_ratio < 0.25 has_autonomy_state = autonomy_volkskommissariat }
				}
			}
			
			has_civil_war = no
			surrender_progress < 0.15
			num_of_controlled_factories > 1
		}

		visible = { 
		    num_subjects > 0
			is_ai = no
			FROM = { is_subject_of = ROOT }
		}
		
		fire_only_once = no
		cost = 25
		
		days_re_enable = 30
		complete_effect = { 	
			annex_country = { target = FROM }
		    every_owned_state = { 
			  limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 50
		    }
	    }
		ai_will_do = {
			factor = 0
		}
	}
	
	spr_must_have_cores = {

		icon = generic_civil_support
		
		allowed = {  
		    OR = { original_tag = SPR original_tag = SPA original_tag = SPB } 
		}
		
		available = {
		    OR = { original_tag = SPR original_tag = SPA original_tag = SPB }
			num_of_factories > 10
			num_of_controlled_states > 0
			surrender_progress < 0.25
			OR = {
			    AND = { date > 1940.1.1 any_enemy_country = { num_of_factories > 70 }  }
			    AND = { 
				date > 1939.1.1
				OR = {
				has_completed_focus = SPA_strengthen_the_supreme_reality_of_spain
				has_completed_focus = SPA_stamp_out_the_maquis
				has_completed_focus = SPR_the_inevitable_counterblow
				has_completed_focus = SPR_all_must_do_their_part
				has_completed_focus = SPR_red_bulwark_in_the_west
				has_completed_focus = SPR_stabilize_the_nation }
			    }
				AND = { is_subject = yes date > 1938.1.1 }
			}
		}

		visible = { 
			OR = { original_tag = SPR original_tag = SPA original_tag = SPB }
            date > 1938.1.1		
		}

		fire_only_once = yes
		
		cost = 100
		
		complete_effect = {
		        add_manpower = 25000
				delete_unit_template_and_units = {
					division_template = "Guarnición Nacionalista"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Brigada de la Guardia Civil"
					disband = yes
				}
		     hidden_effect = {
				delete_unit_template_and_units = {
					division_template = "División de la Guardia de Asalto"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Brigada de la Guardia Civil"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Fifth Columnist Brigade"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Requeté Carlista"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Guarnición Republicana"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "División de la Guardia de Asalto"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Carabineros"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Brigada Popular"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Brigada de Juventudes Sindicales"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Brigada Anarquista"
					disband = yes
				}
			add_state_core = 41
			add_state_core = 165
			add_state_core = 166
			add_state_core = 167
			add_state_core = 168
			add_state_core = 169
			add_state_core = 170
			add_state_core = 171
			add_state_core = 172
			add_state_core = 173
			add_state_core = 175
			add_state_core = 176
			add_state_core = 177
			add_state_core = 178
			add_state_core = 788
			add_state_core = 789
			add_state_core = 790
			add_state_core = 791
			add_state_core = 792
			add_state_core = 793
			add_state_core = 794 
			}
		
			every_state = {
				limit = { is_core_of = SPR }
				add_core_of = ROOT
			}
			
		}
		ai_will_do = {
			factor = 75
		}
	}

#ai_only
	can_leave_union = {
        name = USA_reintegration
		icon = generic_industry

		available = {
			original_tag = CAN 
			has_civil_war = no
			has_government = democratic
            NOT = { has_completed_focus = CAN_patriation }
			OR = {
			   AND = {
			      is_subject_of = ENG
			      ENG = { surrender_progress > 0.5 }
			   }
			   AND = {
			      is_subject_of = ENG
				  ENG = { has_war_with = FRA  NOT = { has_war_with = USA } }
			   }
			   AND = {
			      is_subject_of = ENG 
				  ENG = { is_in_faction_with = GER NOT = { has_war_with = USA } }
			   }
			   AND = { 
			      is_subject_of = ENG 
				  ENG = { is_in_faction_with = ITA  NOT = { has_war_with = USA } }
			   }
			   ENG = { has_completed_focus = ENG_a_change_in_course }
			}
			USA = { num_of_factories > 50 has_government = democratic is_subject = no }
			USA = { OR = { NOT = { has_completed_focus = USA_america_first } NOT = { has_completed_focus = USA_guarantee_the_american_dream } } }
			NOT = { has_war_with = USA }
		}

		visible = { original_tag = CAN has_government = democratic NOT = { has_completed_focus = CAN_patriation } }

		fire_only_once = yes
		
		cost = 50
		
		complete_effect = { 
			set_autonomy = { target = CAN autonomy_state = autonomy_free }
		    leave_faction = yes
            USA = { set_autonomy = { target = CAN autonomy_state = autonomy_supervised_state } }
		}
		ai_will_do = {
			factor = 100
		}
	}
	
    no_micro_state_eth = { 
		icon = generic_political_rally
		
		allowed = { 
		     OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
			} 
		}
				
		target_trigger = {
			FROM = { has_civil_war = no is_ai = yes
			surrender_progress < 0.15
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
			} 
			}
		}
		
		targets = { ETH ERI SOM TIG QEM AFA QEM AFA HAR ORO SID GBA BEG }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes
			   surrender_progress < 0.1
			   has_civil_war = no
			   has_capitulated = no
			   has_war = no
			   is_subject = no
			   OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
			   } 
			}
		 	date > 1942.1.1
			surrender_progress < 0.05
			num_of_controlled_factories > 4
			num_of_controlled_states > 1
		}

		visible = { 
		    num_of_controlled_factories > 1
			num_of_controlled_states > 0
			is_ai = yes
		}
		
		fire_only_once = no
		cost = 100
		
		days_re_enable = 30
		
		complete_effect = { 
		    add_manpower = 1000
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 50
		    }
		}
		ai_will_do = {
			factor = 100
		}
	}
	
    no_micro_state_est_africa = { 
		icon = generic_political_rally
		
		allowed = { 
		     OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
			} 
		}
				
		target_trigger = {
			FROM = {
			has_civil_war = no
			is_ai = yes
			surrender_progress < 0.05 
			  OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi 
				} 
			}
		}
		
		targets = { KEN UGA TZN RWA BRD }
		targets_dynamic = yes
		
		available = {
		    FROM = { 
			   is_ai = yes
			   surrender_progress < 0.05
			   has_civil_war = no
			   has_capitulated = no
			   has_war = no
			   is_subject = no
			   OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi 
			    }
			}
		 	date > 1942.1.1
			surrender_progress < 0.05
			num_of_controlled_factories > 4 
			num_of_controlled_states > 1
	    }

		visible = { 
		    num_of_controlled_factories > 1
			num_of_controlled_states > 0
			is_ai = yes
		}
		
		fire_only_once = no
		cost = 100

		days_re_enable = 30
		
		complete_effect = { 
		    add_manpower = 1000
			add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 50 }
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 50
		    }
		}
		ai_will_do = {
			factor = 100
		}
	}
	
    no_micro_state_north_africa = { 
		icon = generic_political_rally
		
		allowed = { 
		     OR = {
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
				original_tag = WES
				original_tag = LBA
			} 
		}
				
		target_trigger = {
			FROM = { has_civil_war = no
			is_ai = yes
			surrender_progress < 0.15 
			OR = {
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
				original_tag = WES
				original_tag = LBA
			   } 
			}
		}
		
		targets = { MOR ALG TUN WES LBA }
		targets_dynamic = yes
		
		available = {
		    FROM = {
			   is_ai = yes
			   surrender_progress < 0.05
			   has_civil_war = no
			   has_capitulated = no
			   has_war = no
			   is_subject = no
			OR = {
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
				original_tag = WES
				original_tag = LBA
			   } 
			}
		 	date > 1940.1.1
			surrender_progress < 0.05
		    num_of_controlled_factories > 4
			num_of_controlled_states > 1
		}

		visible = { 
		    num_of_controlled_factories > 1
			num_of_controlled_states > 0
			is_ai = yes
		}
		
		fire_only_once = no
		cost = 100

		days_re_enable = 30
		
		complete_effect = { 
		    add_manpower = 1000
			add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 50 }
			annex_country = { target = FROM }
		    every_owned_state = { limit = { is_controlled_by = ROOT  is_core_of = FROM }
			  add_compliance = 50
		    }
		}
		ai_will_do = {
			factor = 100
		}
	}
}