foreign_mio_decisions_category = {
	# German MIOs
	# Tanks
	invite_GER_henschel_organization = {

		icon = generic_tank

		cost = 50

		fire_only_once = yes
		
		targets = { GER }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			GER = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE_IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			GER = { 
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = GER
				}
				#is_in_faction_with = GER
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_henschel_mio_flag }
			custom_effect_tooltip = available_mio_tt
			custom_effect_tooltip = GER_henschel_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_german_tank_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_german_tank_designer_flag
			}		
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				GER = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				GER = { is_in_faction_with = ROOT }
			}
			modifier = { #EAI
				factor = -1000
				original_tag = BUL
				date < 1942.12.15
			}
		}
	}

	# planes
	invite_GER_heinkel_organization = {

		icon = generic_air

		cost = 50

		fire_only_once = yes

		targets = { GER }

		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
			}
		}

		visible = {
			GER = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			GER = { 
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = GER
				}
				#is_in_faction_with = GER
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_heinkel_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = GER_heinkel_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_german_aircraft_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_german_aircraft_designer_flag
			}		
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				GER = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				GER = { is_in_faction_with = ROOT }
			}
			modifier = { #EAI
				factor = -1000
				original_tag = BUL
				date < 1942.12.15
			}
		}
	}

	invite_GER_junkers_organization = {

		icon = generic_air 

		cost = 50

		fire_only_once = yes 

		targets = { GER }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			GER = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			GER = { 
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_GER_junkers_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = GER_junkers_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				GER = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				GER = { is_in_faction_with = ROOT }
			}
			modifier = { #EAI
				factor = -1000
				original_tag = BUL
				date < 1942.12.15
			}
		}
	}

	# materiel
	invite_GER_opel_organization = {

		icon = generic_motorized

		cost = 50

		fire_only_once = yes 

		targets = { GER }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				} 
			}
		}

		visible = {
			GER = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			GER = { 
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = GER
				}
				#is_in_faction_with = GER
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_opel_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = GER_opel_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_german_materiel_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_german_materiel_designer_flag
			}		
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				GER = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				GER = { is_in_faction_with = ROOT }
			}
			modifier = { #EAI
				factor = -1000
				original_tag = BUL
				date < 1942.12.15
			}
		}
	}

	invite_GER_mauser_organization = {

		icon = generic_prepare_civil_war

		cost = 50

		fire_only_once = yes 

		targets = { GER }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				} 
			}
		}

		visible = {
			GER = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			GER = { 
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_GER_mauser_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = GER_mauser_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				GER = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				GER = { is_in_faction_with = ROOT }
			}
			modifier = { #EAI
				factor = -1000
				original_tag = BUL
				date < 1942.12.15
			}
		}
	}

	# Soviet MIOs 
	invite_SOV_okmo_organization = {

		icon = generic_tank

		cost = 50

		fire_only_once = yes 

		targets = { SOV }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
			}
		}

		visible = {
			SOV = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			SOV = { 
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = SOV
				}
				#is_in_faction_with = SOV
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_okmo_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = SOV_okmo_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_soviet_tank_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_soviet_tank_designer_flag
			}		
		}
		
		ai_will_do = {
		base = 10
			modifier = {
				factor = 5
				SOV = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				SOV = { is_in_faction_with = ROOT }
			}
		}
	}

	# Ships 
	invite_SOV_nevskoye_design_bureau_organization = {

		icon = generic_naval

		cost = 50

		fire_only_once = yes 

		targets = { SOV }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
			}
		}

		visible = {
			SOV = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				OR = {
					has_completed_focus = BUL_contract_foreign_companies
					has_completed_focus = BUL_a_black_sea_fleet
				}
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			SOV = { 
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = SOV
				}
				#is_in_faction_with = SOV
				has_completed_focus = BUL_a_black_sea_fleet
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_nevskoye_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = SOV_nevskoye_design_bureau_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_soviet_naval_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_coastal = yes 
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_soviet_naval_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				SOV = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				SOV = { is_in_faction_with = ROOT }
			}
		}
	}

	#Planes
	invite_SOV_ilyushin_design_bureau_organization = {

		icon = generic_air

		cost = 50

		fire_only_once = yes 

		targets = { SOV }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
			}
		}

		visible = {
			SOV = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			SOV = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = SOV
				}
				#is_in_faction_with = SOV
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_ilyushin_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = SOV_ilyushin_design_bureau_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_soviet_aircraft_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_soviet_aircraft_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				SOV = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				SOV = { is_in_faction_with = ROOT }
			}
		}
	}
	# Materiel 
	invite_SOV_gaz_organization = {

		icon = generic_motorized

		cost = 50

		fire_only_once = yes 

		targets = { SOV }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				} 
			}
		}

		visible = {
			SOV = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			SOV = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = SOV
				}
				#is_in_faction_with = SOV
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_gaz_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = SOV_gaz_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_soviet_materiel_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_soviet_materiel_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				SOV = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				SOV = { is_in_faction_with = ROOT }
			}
		}
	}

	# British MIOs 
	# Tanks
	invite_ENG_vickers_armstrong_eng_organization = {

		icon = generic_tank

		cost = 50

		fire_only_once = yes 

		targets = { ENG }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			ENG = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE_IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			ENG = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = ENG
				}
				#is_in_faction_with = ENG
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_vickers_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = ENG_vickers_armstrong_eng_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_british_tank_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_british_tank_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				ENG = { is_in_faction_with = ROOT }
			}
		}
	}

	# Ships
	invite_ENG_yarrow_shipbuilders_organization = {

		icon = generic_naval

		cost = 50

		fire_only_once = yes 

		targets = { ENG }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
			}
		}

		visible = {
			ENG = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				OR = {
					has_completed_focus = BUL_contract_foreign_companies
					has_completed_focus = BUL_a_black_sea_fleet
				}
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			ENG = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = ENG
				}
				#is_in_faction_with = ENG
				has_completed_focus = BUL_a_black_sea_fleet
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_yarrow_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = ENG_yarrow_shipbuilders_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_british_naval_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_coastal = yes 
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_british_naval_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				ENG = { is_in_faction_with = ROOT }
			}
		}
	}

	invite_ENG_john_brown_organization = {

		icon = generic_naval

		cost = 50

		fire_only_once = yes 

		targets = { ENG }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			ENG = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				OR = {
					has_completed_focus = BUL_contract_foreign_companies
					has_completed_focus = BUL_a_black_sea_fleet
				}
			}
			ELSE_IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			ENG = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = ENG
				}
				#is_in_faction_with = ENG
				has_completed_focus = BUL_a_black_sea_fleet
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_ENG_john_brown_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = ENG_john_brown_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_british_naval_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_coastal = yes 
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_british_naval_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				ENG = { is_in_faction_with = ROOT }
			}
		}
	}
	# Planes 
	invite_ENG_fairey_aviation_organization = {

		icon = generic_air

		cost = 50

		fire_only_once = yes 

		targets = { ENG }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			ENG = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE_IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			ENG = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = ENG
				}
				#is_in_faction_with = ENG
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_fairey_aviation_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = ENG_fairey_aviation_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_british_aircraft_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_british_aircraft_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				ENG = { is_in_faction_with = ROOT }
			}
		}
	}

	# materiel
	invite_ENG_vauxhall_organization = {

		icon = generic_motorized

		cost = 50

		fire_only_once = yes 

		targets = { ENG }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			ENG = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE_IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			ENG = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = ENG
				}
				#is_in_faction_with = ENG
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = { #This decision unlocks both Vauxhall MIOs (tanks and motorized)
			hidden_effect = { set_country_flag = has_invited_vauxhall_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = ENG_vauxhall_organization
			show_mio_tooltip = ENG_vauxhall_automotive_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_british_materiel_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_british_materiel_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				ENG = { is_in_faction_with = ROOT }
			}
		}
	}

	# Italian MIOs 
	# Tanks
	invite_ITA_fiat_organization = {

		icon = generic_tank

		cost = 50

		fire_only_once = yes 

		targets = { ITA }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
			}
		}

		visible = {
			ITA = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			ITA = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = ITA
				}
				#is_in_faction_with = ITA
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_fiat_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = ITA_fiat_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_italian_tank_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_italian_tank_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				ITA = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				ITA = { is_in_faction_with = ROOT }
			}
			modifier = { #EAI
				factor = -1000
				original_tag = BUL
				date < 1942.12.15
			}
		}
	}

	# Ships 
	invite_ITA_crda_organization = {

		icon = generic_naval
	
		cost = 50

		fire_only_once = yes 

		targets = { ITA }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
			}
		}

		visible = {
			ITA = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				OR = {
					has_completed_focus = BUL_contract_foreign_companies
					has_completed_focus = BUL_a_black_sea_fleet
				}
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			ITA = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = ITA
				}
				#is_in_faction_with = ITA
				has_completed_focus = BUL_a_black_sea_fleet
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_crda_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = ITA_crda_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_italian_naval_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_italian_naval_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				ITA = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				ITA = { is_in_faction_with = ROOT }
			}
			modifier = { #EAI
				factor = -1000
				original_tag = BUL
				date < 1942.12.15
			}
		}
	}

	# Materiel
	invite_ITA_lancia_organization = {

		icon = generic_motorized

		cost = 50

		fire_only_once = yes 

		targets = { ITA }
		
		allowed = {
			OR = {
				AND = {
					tag = BUL
					has_dlc = "Battle for the Bosporus"
				}
			}
		}

		visible = {
			ITA = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = BUL }
				has_completed_focus = BUL_contract_foreign_companies
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			ITA = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}

			IF = {
				limit = { original_tag = BUL }
				OR = {
					is_subject = no
					is_subject_of = ITA
				}
				#is_in_faction_with = ITA
				NOT = { has_completed_focus = BUL_nationalization }
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_lancia_mio_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = ITA_lancia_organization
			
			### Bulgaria specific
			if = {
				limit = {
					original_tag = BUL 
					NOT = { has_country_flag = contract_with_italian_materiel_designer_flag }
				}
				random_owned_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				set_country_flag = contract_with_italian_materiel_designer_flag
			}		
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				ITA = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				ITA = { is_in_faction_with = ROOT }
			}
			modifier = { #EAI
				factor = -1000
				original_tag = BUL
				date < 1942.12.15
			}
		}
	}

	### Czech MIOs 
	# Tanks 
	invite_CZE_ckd_organization = {

		icon = generic_tank

		cost = 50

		fire_only_once = yes 

		targets = { CZE }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				} 
			}
		}

		visible = {
			CZE = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			CZE = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_CZE_ckd_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = CZE_ckd_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				CZE = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				CZE = { is_in_faction_with = ROOT }
			}
		}
	}

	invite_CZE_skoda_armor_organization = {

		icon = generic_tank

		cost = 50

		fire_only_once = yes 

		targets = { CZE }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			CZE = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}

			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			CZE = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_CZE_skoda_armor_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = CZE_skoda_armor_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				CZE = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				CZE = { is_in_faction_with = ROOT }
			}
		}
	}

	# Planes
	invite_CZE_avia_organization = {

		icon = generic_air

		cost = 50

		fire_only_once = yes 

		targets = { CZE }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			CZE = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}

			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			CZE = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_CZE_avia_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = CZE_avia_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				CZE = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				CZE = { is_in_faction_with = ROOT }
			}
		}
	}

	# Materiel
	invite_CZE_skoda_artillery_organization = {

		icon = generic_industry

		cost = 50

		fire_only_once = yes 

		targets = { CZE }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				} 
			}
		}

		visible = {
			CZE = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}

			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			CZE = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_CZE_skoda_artillery_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = CZE_skoda_artillery_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				CZE = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				CZE = { is_in_faction_with = ROOT }
			}
		}
	}

	#### French MIOs 
	# Tanks
	invite_FRA_renault_organization = {

		icon = generic_tank

		cost = 50

		fire_only_once = yes 

		targets = { FRA }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			FRA = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			FRA = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_FRA_renault_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = FRA_renault_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				FRA = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				FRA = { is_in_faction_with = ROOT }
			}
		}
	} 

	# Planes
	invite_FRA_bloch_organization = {

		icon = generic_air

		cost = 50

		fire_only_once = yes 
		
		targets = { FRA }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				} 
			}
		}

		visible = {
			FRA = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			FRA = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_FRA_bloch_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = FRA_bloch_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				FRA = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				FRA = { is_in_faction_with = ROOT }
			}
		}
	}

	# Materiel
	invite_FRA_mas_organization = {

		icon = generic_prepare_civil_war
		cost = 50

		fire_only_once = yes 

		targets = { FRA }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			FRA = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			FRA = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_FRA_mas_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = FRA_mas_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				FRA = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				FRA = { is_in_faction_with = ROOT }
			}
		}
	}

	# Japanese MIOs
	# Ships
	invite_JAP_maizuru_naval_arsenal_organization = {

		icon = generic_naval

		cost = 50

		fire_only_once = yes
		
		targets = { JAP }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			JAP = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			JAP = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_JAP_maizuru_naval_arsenal_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = JAP_maizuru_naval_arsenal_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				JAP = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				JAP = { is_in_faction_with = ROOT }
			}
		}
	}
	# Planes
	invite_JAP_mitsubishi_organization = {

		icon = generic_air

		cost = 50

		fire_only_once = yes 

		targets = { JAP }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				} 
			}
		}

		visible = {
			JAP = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			JAP = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_JAP_mitsubishi_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = JAP_mitsubishi_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				JAP = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				JAP = { is_in_faction_with = ROOT }
			}
		}
	}

	# Materiel
	invite_JAP_nissan_organization = {

		icon = generic_motorized

		cost = 50

		fire_only_once = yes 

		targets = { JAP }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			JAP = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			JAP = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_JAP_nissan_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = JAP_nissan_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				JAP = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				JAP = { is_in_faction_with = ROOT }
			}
		}	
	}

# Swedish MIOs
	# Tanks
	invite_SWE_landsverk_organization = {

		icon = generic_tank

		cost = 50

		fire_only_once = yes
		
		targets = { SWE }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			SWE = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			SWE = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_SWE_landsverk_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = SWE_landsverk_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				SWE = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				SWE = { is_in_faction_with = ROOT }
			}
		}
	}

	# Materiel
	invite_SWE_volvo_organization = {

		icon = generic_motorized

		cost = 50

		fire_only_once = yes
		
		targets = { SWE }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			SWE = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			SWE = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_SWE_volvo_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = SWE_volvo_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				SWE = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				SWE = { is_in_faction_with = ROOT }
			}
		}
	}

	invite_SWE_bofors_organization = {

		icon = generic_industry

		cost = 50

		fire_only_once = yes
		
		targets = { SWE }
		
		allowed = {
			OR = {
				AND = {
					tag = ETH 
					has_dlc = "By Blood Alone"
				}
			}
		}

		visible = {
			SWE = {
				mio_original_country_exists_and_not_at_war_with_ROOT = yes
			}
			IF = {
				limit = { original_tag = ETH }
				has_completed_focus = ETH_invite_foreign_industrialists
			}
			ELSE = {
				always = no 
			}
		}

		available = {
			SWE = {
				mio_original_country_available_with_opinion_subject_and_war_requirements_fulfilled = yes
			}
		}

		complete_effect = {
			hidden_effect = { set_country_flag = has_invited_SWE_bofors_organization_flag }
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = SWE_bofors_organization
			
		}
		
		ai_will_do = {
			base = 10
			modifier = {
				factor = 5
				SWE = { has_government = ROOT }
			}
			modifier = {
				factor = 5
				SWE = { is_in_faction_with = ROOT }
			}
		}
	}
}


# generic_naval
# generic_air
