vrm_annex_minors = {

    all_delete_army = { 
		icon = revolt
		name = demobilization_manpower
		
		available = {
			has_capitulated = no
			has_civil_war = no
			date > 1937.1.1 
			has_war_with_non_exiled_country = no
			date < 1939.1.1
			is_ai = no
		}

		visible = { 
			is_ai = no
			date < 1939.1.1
		}
		
		fire_only_once = no
		cost = 150
		
		days_re_enable = 360
		complete_effect = { 	
            delete_unit = { disband = yes }
	    }
		ai_will_do = {
			factor = 0
		}
	}
	
	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_ai = yes 
			}
			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 = 100
		
		days_re_enable = 30
	    days_remove = 30

		modifier = {
			consumer_goods_factor = 0.1
		}
		
		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
		}
	}
	
    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.1
			   has_civil_war = no
			   is_subject_of = ROOT 
			}
			has_civil_war = no
			surrender_progress < 0.1
			num_of_controlled_factories > 1
		}

		visible = { 
		    num_subjects > 0
			is_ai = no
			FROM = { 
			    is_subject_of = ROOT  
                 NOT = {
				  OR = { 
				  AND = { compare_autonomy_progress_ratio < 0.24 has_autonomy_state = autonomy_collaboration_government }
				  AND = { compare_autonomy_progress_ratio < 0.24 has_autonomy_state = autonomy_integrated_puppet }
				  AND = { compare_autonomy_progress_ratio < 0.24 has_autonomy_state = autonomy_reichskommissariat }
				  AND = { compare_autonomy_progress_ratio > 0.24 has_autonomy_state = autonomy_wtt_imperial_protectorate }
				  AND = { compare_autonomy_progress_ratio < 0.24 has_autonomy_state = autonomy_supervised_state }
				  AND = { compare_autonomy_progress_ratio < 0.24 has_autonomy_state = autonomy_aat_defense_council_member }
				  AND = { compare_autonomy_progress_ratio < 0.24 has_autonomy_state = autonomy_austro_hungarian_subject }
				  AND = { compare_autonomy_progress_ratio < 0.24 has_autonomy_state = autonomy_eu_member }
				  AND = { compare_autonomy_progress_ratio < 0.24 has_autonomy_state = autonomy_volkskommissariat }
				  }
				}
			}
		}
		
		fire_only_once = no
		cost = 10
		
		days_re_enable = 30
		days_remove = 30
		modifier = {
			consumer_goods_factor = 0.05
		}
		complete_effect = { 	
		     FROM ={  
      			 add_autonomy_ratio = {
					value = -0.75
				}
			}
	    }
		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.1
			   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.1
			num_of_controlled_factories > 1
		}

		visible = { 
		    num_subjects > 0
			is_ai = no
			FROM = { 
			    is_subject_of = ROOT 
			    OR = { 
				  AND = { compare_autonomy_progress_ratio < 0.3 has_autonomy_state = autonomy_collaboration_government }
				  AND = { compare_autonomy_progress_ratio < 0.3 has_autonomy_state = autonomy_integrated_puppet }
				  AND = { compare_autonomy_progress_ratio < 0.3 has_autonomy_state = autonomy_reichskommissariat }
				  AND = { compare_autonomy_progress_ratio < 0.3 has_autonomy_state = autonomy_wtt_imperial_protectorate }
				  AND = { compare_autonomy_progress_ratio < 0.3 has_autonomy_state = autonomy_supervised_state }
				  AND = { compare_autonomy_progress_ratio < 0.3 has_autonomy_state = autonomy_aat_defense_council_member }
				  AND = { compare_autonomy_progress_ratio < 0.3 has_autonomy_state = autonomy_austro_hungarian_subject }
				  AND = { compare_autonomy_progress_ratio < 0.3 has_autonomy_state = autonomy_eu_member }
				  AND = { compare_autonomy_progress_ratio < 0.3 has_autonomy_state = autonomy_volkskommissariat }
				}
			}
		}
		
		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 = 40
		    }
	    }
		ai_will_do = {
			factor = 0
		}
	}

}
