#####################

###  ##  #  # # #  ## 
 #  #  # ## # # # #   
 #  #### # ## ##   #  
 #  #  # #  # # #   # 
 #  #  # #  # # # ## 

 #################### 
CAN_vickers_armstrong_can_organization = {
	name = CAN_vickers_armstrong_can_organization
	include = generic_medium_tank_organization
	icon = GFX_idea_vickers_armstrong_can
	allowed = {
		original_TAG = CAN
		has_dlc = "Together for Victory"
	}
	
	initial_trait = {
		name = USA_mio_trait_dedicated_tank_factory
		
		production_bonus = {
			production_efficiency_gain_factor = 0.1
		}
	}
	
	equipment_type = { armor }
	
	add_trait = { 
		token = ENG_mio_trait_expanded_turret_capacity
		name = ENG_mio_trait_expanded_turret_capacity
		icon = GFX_generic_mio_department_icon_tank_medium_tank_engine
		special_trait_background = yes

		position = { x=1 y=1 }
		relative_position_id = generic_mio_trait_all_round_cupola

		any_parent = { generic_mio_trait_all_round_cupola }
		limit_to_equipment_type = { mio_cat_eq_all_medium_tank }

		equipment_bonus = {
			breakthrough = 0.05
		}
	}

	add_trait = { 
		token = ENG_mio_trait_expanded_production_facilities
		name = ENG_mio_trait_expanded_production_facilities
		icon = GFX_generic_mio_department_icon_tank_medium_tank_technology
		special_trait_background = yes

		position = { x=2 y=1 }
		relative_position_id = generic_mio_trait_simplified_turret_design

		all_parents = { generic_mio_trait_simplified_turret_design generic_mio_trait_armor_steel_working }
		production_bonus = {
			production_efficiency_cap_factor = 0.05
		}
		
	}
}


#####################

 ## #  # ### ###   ## 
#   #  #  #  #  # #   
 #  ####  #  ###   #  
  # #  #  #  #      # 
##  #  # ### #    ##  
 
#####################

CAN_kingston_shipbuilding_organization = {
	name = CAN_kingston_shipbuilding_organization
	include = generic_task_force_ship_organization
	icon = GFX_idea_kingston_shipbuilding
	allowed = {
		original_TAG = CAN
	}
}

CAN_halifax_shipyard_organization = {
	name = CAN_halifax_shipyard_organization
	include = generic_escort_ship_organization
	icon = GFX_idea_halifax_shipyard
	allowed = {
		original_TAG = CAN
	}
}

###########################

###  #    ##  #  # ###  ## 
#  # #   #  # ## # #   #   
###  #   #### # ## ##   #  
#    #   #  # #  # #     # 
#    ### #  # #  # ### ##  

###########################
CAN_de_havilland_organization = {
	name = CAN_de_havilland_organization
	include = generic_medium_aircraft_organization
	icon = GFX_idea_de_havilland
	allowed = {
		original_TAG = CAN
	}
}

CAN_canadian_car_foundry_organization = {
	name = CAN_canadian_car_foundry_organization
	include = generic_light_aircraft_organization
	icon = GFX_idea_canadian_car_foundry
	allowed = {
		original_TAG = CAN
	}
}

CAN_fairchild_aircraft_ltd_organization = {
	name = CAN_fairchild_aircraft_ltd_organization
	include = generic_high_agility_fighter_aircraft_organization
	icon = GFX_idea_generic_air_manufacturer_2
	allowed = {
		original_TAG = CAN
		has_dlc = "Together for Victory"
	}
	available = {
		owner = { has_completed_focus = CAN_fund_fairchilds_development }
	}
	equipment_type = {
		mio_cat_eq_all_small_plane
		maritime_patrol_plane
	}	

	research_categories = {	
		mio_cat_all_light_fighter_and_modules 
#		mio_cat_all_naval_bomber_and_modules 
			#Could be used to allow Supermarine to research naval bombs, but this could overpower English fighter MIO trait gain early on.
	}

	override_trait = {
		token = generic_mio_trait_fuel_injection_engines
		
		position = { x=0 y=2 }
		relative_position_id = generic_mio_trait_bigger_engines
	}

	override_trait = {
		token = generic_mio_trait_high_octane_fuels
		
		position = { x=1 y=1 }
		relative_position_id = generic_mio_trait_bigger_engines
	}

	override_trait = {
		token = generic_mio_trait_subsidiary_suppliers
		
		position = { x=0 y=2 }
		relative_position_id = generic_mio_trait_fuel_injection_engines
	}

	add_trait = { 
		token = ENG_mio_trait_seaplane_origins
		name = ENG_mio_trait_seaplane_origins
		icon = GFX_generic_mio_trait_icon_detection
		special_trait_background = yes

		position = { x=2 y=0 }
		relative_position_id = generic_mio_trait_minimum_weapon_requirements

		#any_parent = { generic_mio_trait_super_heavy_shells generic_mio_trait_semi_armor_piercing_shells generic_mio_trait_high_velocity_guns }

		limit_to_equipment_type = { mio_cat_eq_all_small_plane mio_cat_eq_all_large_plane }

		equipment_bonus = {
			sub_detection = 0.05
			surface_detection = 0.05
			naval_strike_targetting = 0.05
		}
	}

	add_trait = { 
		token = ENG_mio_trait_elliptical_wings
		name = ENG_mio_trait_elliptical_wings
		icon = GFX_generic_mio_trait_icon_defense
		special_trait_background = yes

		position = { x=0 y=1 }
		relative_position_id = generic_mio_trait_cantilever_wing_structure

		any_parent = { generic_mio_trait_cantilever_wing_structure }

		equipment_bonus = {
			air_defence = 0.05	
		}
	}

	add_trait = { 
		token = ENG_mio_trait_supercharger
		name = ENG_mio_trait_supercharger
		icon = GFX_generic_mio_trait_icon_defense
		special_trait_background = yes

		position = { x=1 y=1 }
		relative_position_id = generic_mio_trait_fuel_injection_engines

		all_parents = { generic_mio_trait_fuel_injection_engines generic_mio_trait_high_octane_fuels }

		equipment_bonus = {
			air_defence = 0.05	
		}
	}
	
}

CAN_handley_page_organization = {
	name = CAN_handley_page_organization
	include = generic_heavy_aircraft_organization
	icon = GFX_idea_generic_air_manufacturer_3
	allowed = {
		original_TAG = CAN
		has_dlc = "Together for Victory"
	}
	add_trait = {
		token = GER_mio_trait_advanced_night_equipment
		name = GER_mio_trait_advanced_night_equipment
		icon = GFX_generic_mio_trait_icon_detection
		special_trait_background = yes
		
		position = { x=-1 y=1 }
		relative_position_id = generic_mio_trait_pressurized_cockpit
		all_parents = { generic_mio_trait_pressurized_cockpit }

		equipment_bonus = {
			night_penalty = -0.05
		} 
	} 

	add_trait = {
		token = GER_mio_trait_stepless_cockpit
		name = GER_mio_trait_stepless_cockpit
		icon = GFX_generic_mio_trait_icon_strategic_attack
		special_trait_background = yes
		
		position = { x=1 y=1 }
		relative_position_id = generic_mio_trait_pressurized_cockpit
		all_parents = { generic_mio_trait_pressurized_cockpit }

		limit_to_equipment_type = { large_plane_airframe }

		equipment_bonus = {
			air_bombing = 0.05
		} 
	} 
	
	available = {
		owner = { has_completed_focus = CAN_cookie_carriers }
	}
}


################################### 

#   #  ##  ### ### ###  ### ### #   
## ## #  #  #  #   #  #  #  #   #   
# # # ####  #  ##  ###   #  ##  #   
#   # #  #  #  #   #  #  #  #   #   
#   # #  #  #  ### #  # ### ### ### 


###################################

CAN_inglis_company_organization = {
	name = CAN_inglis_company_organization
	include = generic_support_equipment_organization
	icon = GFX_idea_inglis_company
	allowed = {
		original_TAG = CAN
		has_dlc = "Together for Victory"
	}
}

CAN_small_arms_limited_organization = {
	name = CAN_small_arms_limited_organization
	include = generic_infantry_equipment_organization
	icon = GFX_idea_small_arms_limited
	allowed = {
		original_TAG = CAN
		has_dlc = "Together for Victory"
	}
}