GER_annex = {

	GER_annex_HUN = {
	
		icon = generic_army_support
         
		available = {
		    HUN = { is_ai = yes }
			any_other_country = {
				original_tag = HUN
				exists = yes
			}
			date > 1938.1.1 
		}

		target_trigger = {
			FROM = {
				OR = {
					original_tag = HUN
				}
			}
		}

		fire_only_once = yes
		
		complete_effect = {
		    HUN = {
				every_unit_leader = {
					set_unit_leader_flag = flag_former_french_general
					set_nationality = GER
				}
			}
			GER = { 
					set_autonomy = {
						target = HUN
						autonomy_state = autonomy_reichskommissariat
					}
					set_technology = { mechanised_infantry = 1 }
					army_experience = 100
			}
		}
	}

	GER_annex_ROM = {
	
		icon = generic_army_support

		available = {
		    ROM = { is_ai = yes }
			any_other_country = {
				original_tag = ROM
				exists = yes
			}
			date > 1938.1.1 
		}

		target_trigger = {
			FROM = {
				OR = {
					original_tag = ROM
				}
			}
		}

		fire_only_once = yes
		
		complete_effect = {
			ROM = {
				set_technology = { excavation1 = 1 }
				set_technology = { excavation2 = 1 }
				set_technology = { excavation3 = 1 }
				set_technology = { excavation4 = 1 }
				every_unit_leader = {
					set_unit_leader_flag = flag_former_french_general
					set_nationality = GER
				}
			}
			GER = { 
					set_autonomy = {
						target = ROM
						autonomy_state = autonomy_reichskommissariat
					}
					set_technology = { modern_oil_processing = 1 }
			}			
		}
	}

	GER_annex_BUL = {
	
		icon = generic_army_support

		available = {
		    BUL = { is_ai = yes }
			any_other_country = {
				original_tag = BUL
				exists = yes
			}
			date > 1938.1.1 
		}

		target_trigger = {
			FROM = {
				OR = {
					original_tag = BUL
				}
			}
		}

		fire_only_once = yes
		
		complete_effect = {
		    BUL = {
				every_unit_leader = {
					set_unit_leader_flag = flag_former_french_general
					set_nationality = GER
				}
			}
			GER = { 
					set_autonomy = {
						target = BUL
						autonomy_state = autonomy_reichskommissariat
					}
					set_technology = { support_weapons = 1 }
					set_technology = { support_weapons2 = 1 }
				}			
		}
	}
	
	GER_VICHY = {
	
		icon = generic_army_support

		available = {
		    any_other_country = {
				original_tag = VIC
				exists = yes
			}
			FRA = {
				has_capitulated = yes
			}
		}

		target_trigger = {
			FROM = {
				OR = {
					original_tag = FRA
				}
			}
		}

		fire_only_once = yes
		
		complete_effect = {
			VIC = {
			give_resource_rights = {
				receiver = ROOT 
				state = 20
			}
			give_resource_rights = {
				receiver = ROOT 
				state = 21
			}
			give_resource_rights = {
				receiver = ROOT 
				state = 22
			}
			give_resource_rights = {
				receiver = ROOT 
				state = 32
			}	
			}			
		}
	}
	
	
	GER_ITA = {
	
		icon = generic_army_support
         
		available = {
			NOT = {115 = { is_controlled_by = ITA }}
			NOT = {114 = { is_controlled_by = ITA }}
			date > 1941.1.1 
		}

		target_trigger = {
			FROM = {
				OR = {
					original_tag = ITA
				}
			}
		}

		fire_only_once = yes
		
		complete_effect = {
		    ITA = { add_ideas = german_occupation}
				
            GER = { 
			 transfer_state = 39
			 transfer_state = 850
			}	
			39 = {set_compliance = 100}
			850 = { set_compliance = 100} 
			hidden_effect = {
				news_event = { id = news_ost_west.2 }
			}
		}
	}
	
	GER_annex_VIC = {
	
		icon = generic_ignite_civil_war
		
		available = {
			any_other_country = {
				original_tag = VIC
				exists = yes
			}
			date > 1943.1.1 
                       VIC = { is_ai = yes }
		}

		target_trigger = {
			FROM = {
				OR = {
					original_tag = VIC
				}
			}
		}

		fire_only_once = yes
		
		complete_effect = {
			GER = { 
					set_autonomy = {
						target = VIC
						autonomy_state = autonomy_reichskommissariat
					}
				}	
			VIC = {give_resource_rights = { receiver = GER state = 20 }}	
            VIC = {give_resource_rights = { receiver = GER state = 22 }}	
            VIC = {give_resource_rights = { receiver = GER state = 21 }}
            VIC = {give_resource_rights = { receiver = GER state = 32 }}
		}
	}
}
