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

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

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


BEL_vickers_armstrong_bel_organization = {
	name = BEL_vickers_armstrong_bel_organization
	include = generic_mobile_tank_organization
	icon = GFX_idea_vickers_armstrong_eng
	allowed = {
		original_tag = BEL
	}

    available = {

    }	

	initial_trait = {
		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
		}
		equipment_bonus = {
			maximum_speed = 0.05
			reliability = 0.05
			armor_value = -0.05
		}
	}

	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_enlarged_breech

		any_parent = { generic_mio_enlarged_breech }

		equipment_bonus = {
			armor_value = 0.05
			breakthrough = 0.05
			build_cost_ic = 0.001
		}
	}

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

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

		any_parent = { generic_mio_streamlined_production }

		production_bonus = {
			production_efficiency_cap_factor = 0.05
		}
		
	}

	add_trait = { 
		token = BEL_mio_trait_fonderie_royale_canons
		name = BEL_mio_trait_fonderie_royale_canons
		icon = GFX_generic_mio_department_icon_tank_medium_tank_weapons
		special_trait_background = yes

        available = {
            owner = {
                has_completed_focus = BEL_fonderie_royale_de_canons_liege
            }
        }	

		position = { x=4 y=0 }

		equipment_bonus = {
			ap_attack = 0.05
			hard_attack = 0.05
			build_cost_ic = 0.001
		}
	}
}

BEL_renault_organization = {
	name = BEL_renault_organization
	include = generic_infantry_tank_organization
	icon = GFX_idea_renault
	allowed = {
		original_tag = BEL
	}

    available = {

    }	

	add_trait = { 
		token = BEL_mio_trait_fonderie_royale_canons
		name = BEL_mio_trait_fonderie_royale_canons
		icon = GFX_generic_mio_department_icon_tank_medium_tank_weapons
		special_trait_background = yes

        available = {
            owner = {
                has_completed_focus = BEL_fonderie_royale_de_canons_liege
            }
        }			

		position = { x=2 y=0 }

		equipment_bonus = {
			ap_attack = 0.05
			hard_attack = 0.05
			build_cost_ic = 0.001
		}
		
	}

	add_trait = { 
		token = FRA_mio_trait_automitrailleuses
		name = FRA_mio_trait_automitrailleuses
		icon = GFX_generic_mio_trait_icon_maximum_speed
		special_trait_background = yes
		
		position = { x=5 y=0 }  
		
		limit_to_equipment_type = { medium_tank_chassis }
		
		equipment_bonus = {
			maximum_speed = 0.05
			armor_value = -0.05
		} 

	}

	add_trait = {
		token = FRA_mio_trait_b1_bis_suspension
		name = FRA_mio_trait_b1_bis_suspension
		icon = GFX_generic_mio_trait_icon_breakthrough
		special_trait_background = yes
		
		position = { x=0 y=4 }  
		relative_position_id = generic_mio_trait_single_engine
		
		any_parent = { generic_mio_trait_single_engine generic_mio_trait_dual_engine_redundancy }
		
		limit_to_equipment_type = { heavy_tank_chassis }
		
		equipment_bonus = {
			maximum_speed = 0.05
			breakthrough = 0.05
			build_cost_ic = 0.001
		} 
	}
}


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

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

BEL_cockerill_shipyards_organization = {
	name = cockerill_shipyards
	include = generic_escort_ship_organization
	icon = GFX_idea_BEL_cockerill_shipyards_organization
	allowed = {
		OR = {
			original_tag = BEL
			original_tag = COG
		}
		has_dlc = "Gotterdammerung"
	}

	available = {
		# When in a Foreign MIO, countries need to be at peace with original country
		IF = {
			limit = {
				FROM = { NOT = { original_tag = BEL } }
			}
			FROM = { NOT = { has_war_with = BEL } }
		}
	}

    equipment_type = {  
        screen_ship
        convoy_1
    }

    trait = {
        token = generic_mio_trait_submarine_hunters
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_high_speed_mine_hunting_equipment
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_advanced_hydrodynamic_design
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_fleet_escorts
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_anti_air_ships
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_escort_in_force
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_anti_air_layout
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_gyro_stabilized_mounts
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_improved_anti_air_gun_mounting
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_mass_production
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_improved_light_gun_mounting
        limit_to_equipment_type = { screen_ship }
    }

	add_trait = { 
		token = BEL_mio_trait_belgium_congo_link
		name = BEL_mio_trait_belgium_congo_link
		icon = GFX_generic_mio_trait_icon_naval_range
		special_trait_background = yes

        available = {
            owner = {
                has_completed_focus = CONGO_compagnie_belge_maritime_du_congo
            }
        }			
		
		position = { x=9 y=0 }  

        limit_to_equipment_type = { screen_ship }
		
		equipment_bonus = {
			naval_range = 0.05
			build_cost_ic = 0.001
		} 

	}

	add_trait = { 
		token = BEL_mio_trait_high_speed_transport
		name = BEL_mio_trait_high_speed_transport
		icon = GFX_generic_mio_trait_icon_maximum_speed
		special_trait_background = yes
		
		position = { x=9 y=1 }  

		any_parent = { BEL_mio_trait_belgium_congo_link }

        limit_to_equipment_type = { convoy }
		
		equipment_bonus = {
			naval_speed = 0.05
			build_cost_ic = 0.001
		} 

	}

	add_trait = { 
		token = BEL_mio_trait_anti_submarine_expertise
		name = BEL_mio_trait_anti_submarine_expertise
		icon = GFX_generic_mio_trait_icon_sub_attack
		special_trait_background = yes
		
		position = { x=9 y=2 }  

		any_parent = { BEL_mio_trait_high_speed_transport }

        limit_to_equipment_type = { screen_ship }
		
		equipment_bonus = {
			sub_detection = 0.05
			sub_attack = 0.05
			build_cost_ic = 0.001
		}

	}

}

BEL_cockerill_shipyards_organization_no_wuw = {
	name = cockerill_shipyards_no_wuw
	include = generic_escort_ship_organization
	icon = GFX_idea_generic_naval_manufacturer_1
	allowed = {
		OR = {
			original_tag = BEL
			original_tag = COG
		}
		NOT = { has_dlc = "Gotterdammerung" } 
	}

	available = {
		# When in a Foreign MIO, countries need to be at peace with original country
		IF = {
			limit = {
				FROM = { NOT = { original_tag = BEL } }
			}
			FROM = { NOT = { has_war_with = BEL } }
		}
	}

    equipment_type = {  
        screen_ship
    }

    trait = {
        token = generic_mio_trait_submarine_hunters
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_high_speed_mine_hunting_equipment
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_advanced_hydrodynamic_design
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_fleet_escorts
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_anti_air_ships
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_escort_in_force
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_anti_air_layout
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_gyro_stabilized_mounts
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_improved_anti_air_gun_mounting
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_mass_production
        limit_to_equipment_type = { screen_ship }
    }

    trait = {
        token = generic_mio_trait_improved_light_gun_mounting
        limit_to_equipment_type = { screen_ship }
    }

}


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

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

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

BEL_renard_organization = {
	name = renard
	include = generic_high_agility_fighter_aircraft_organization
	icon = GFX_idea_BEL_renard_organization
	allowed = {
		OR = {
			original_tag = BEL
			original_tag = COG
		}
		has_dlc = "Gotterdammerung"
	}

	available = {
		# When in a Foreign MIO, countries need to be at peace with original country
		IF = {
			limit = {
				FROM = { NOT = { original_tag = BEL } }
			}
			FROM = { NOT = { has_war_with = BEL } }
		}
	}

	add_trait = { 
		token = BEL_mio_trait_all_metal_expertise
		name = BEL_mio_trait_all_metal_expertise
		icon = GFX_generic_mio_trait_icon_armor_value
		special_trait_background = yes
		
		position = { x=2 y=1 }  

		any_parent = { generic_mio_trait_metal_skin }		

		equipment_bonus = {
			air_defence = 0.10
		}

	}

	add_trait = { 
		token = BEL_mio_trait_browning_collaboration
		name = BEL_mio_trait_browning_collaboration
		icon = GFX_generic_mio_trait_icon_anti_air_attack
		special_trait_background = yes

        available = {
            owner = {
            	OR = {
            		has_completed_focus = COG_standardize_military_production
            		has_completed_focus = BEL_fn_herstal
            	}
            }
        }			
		
		position = { x=7 y=1 }  

		any_parent = { generic_mio_trait_minimum_weapon_requirements }		

		equipment_bonus = {
			air_attack = 0.05
		}

	}

	add_trait = { 
		token = BEL_mio_trait_stampe_et_vertrongen
		name = BEL_mio_trait_stampe_et_vertrongen
		icon = GFX_generic_mio_trait_icon_naval_range
		special_trait_background = yes

        available = {
            owner = {
            	OR = {
            		has_completed_focus = COG_expand_production_facilities
            		has_completed_focus = BEL_stampe_et_vertrongen
            	}
            }
        }		
		
		position = { x=9 y=0 }  

		equipment_bonus = {
			air_agility = 0.05
			air_range = 0.05
		}

	}

	add_trait = { 
		token = BEL_mio_trait_stampe_et_renard
		name = BEL_mio_trait_stampe_et_renard
		icon = GFX_generic_mio_department_icon_plane_fighter_combat
		special_trait_background = yes
		
		position = { x=9 y=1 }  

		any_parent = { BEL_mio_trait_stampe_et_vertrongen }

		equipment_bonus = {
			air_attack = 0.05 
			reliability = 0.05
		}

	}


}

BEL_renard_organization_no_wuw = {
	name = renard
	include = generic_multi_role_aircraft_organization
	icon = GFX_idea_generic_air_manufacturer_2
	allowed = {
		OR = {
			original_tag = BEL
			original_tag = COG
		}
		NOT = { has_dlc = "Gotterdammerung"}
	}

	available = {
		# When in a Foreign MIO, countries need to be at peace with original country
		IF = {
			limit = {
				FROM = { NOT = { original_tag = BEL } }
			}
			FROM = { NOT = { has_war_with = BEL } }
		}
	}
}

BEL_avions_fairey = {
	name = avions_fairey
	include = generic_light_aircraft_organization
	icon = GFX_idea_generic_air_manufacturer_1
	allowed = {
		OR = {
			original_tag = BEL
			original_tag = COG
		}
		NOT = { has_dlc = "Gotterdammerung"}
	}

	available = {
		# When in a Foreign MIO, countries need to be at peace with original country
		IF = {
			limit = {
				FROM = { NOT = { original_tag = BEL } }
			}
			FROM = { NOT = { has_war_with = BEL } }
		}
	}
}

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

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


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

BEL_fn_herstal_organization = {
	name =  BEL_fn_herstal_organization
	include = generic_infantry_equipment_organization
	icon = GFX_idea_BEL_fn_herstal_organization
	allowed = {
		original_tag = BEL
		has_dlc = "Gotterdammerung"
	}


	initial_trait = {
		name = BEL_mio_initial_trait_fn_herstal
		organization_modifier = {
			military_industrial_organization_research_bonus = 0.1
		}

		production_bonus = {
			production_efficiency_cap_factor = 0.05
		}

		equipment_bonus = {
			soft_attack = 0.05
		}

#TODO_GK How to remove the production bonus?

	}

	add_trait = { 
		token = BEL_mio_trait_outsourced_production
		name = BEL_mio_trait_outsourced_production
		icon = GFX_generic_mio_trait_icon_production_capacity
		special_trait_background = yes

        available = {
            owner = {
                has_completed_focus = BEL_fn_herstal
            }
        }	

		position = { x=0 y=0 }  

		production_bonus = {
			production_cost_factor = -0.05
		}

	}

	add_trait = { 
		token = BEL_mio_trait_browning_automatic_rifles
		name = BEL_mio_trait_browning_automatic_rifles
		icon = GFX_generic_mio_trait_icon_soft_attack
		special_trait_background = yes

		position = { x=0 y=1 }  

		any_parent = { BEL_mio_trait_outsourced_production }

		equipment_bonus = {
			soft_attack = 0.05
		}

	}

	add_trait = { 
		token = BEL_mio_trait_assault_rifles
		name = BEL_mio_trait_assault_rifles
		icon = GFX_generic_mio_department_icon_infantry_quality
		special_trait_background = yes

		position = { x=0 y=2 }  

		any_parent = { BEL_mio_trait_browning_automatic_rifles }

		equipment_bonus = {
			soft_attack = 0.05
		}

		production_bonus = { 
			production_cost_factor = 0.05 
		}

	}

}

BEL_fabrique_nationale_organization = {
	name =  fabrique_nationale
	include = generic_infantry_equipment_organization
	icon = GFX_idea_generic_infantry_equipment_manufacturer_2
	allowed = {
		original_tag = BEL
		NOT = { has_dlc = "Gotterdammerung" } 
	}

}

BEL_fonderie_royale_de_canons_liege_organization = {
	name = BEL_fonderie_royale_de_canons_liege_organization
	include = generic_artillery_organization
	icon = GFX_idea_BEL_fonderie_royale_de_canons_liege
	allowed = {
		original_tag = BEL
		has_dlc = "Gotterdammerung"
	}

	initial_trait = {
		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
		}

		production_bonus = {
			production_cost_factor = -0.05
		}

		equipment_bonus = {
			ap_attack = 0.05
			hard_attack = 0.05
		}
	}

	add_trait = { 
		token = BEL_mio_trait_47mm_at_guns
		name = BEL_mio_trait_47mm_at_guns
		icon = GFX_generic_mio_department_icon_anti_tank
		special_trait_background = yes

		position = { x=5 y=1 }  

		limit_to_equipment_type = { 
			anti_tank_equipment
		}		

		any_parent = { generic_mio_trait_rapid_fire }

		equipment_bonus = {
			ap_attack = 0.05
			hard_attack = 0.05
		}

	}

	add_trait = { 
		token = BEL_mio_trait_excellent_machining_tools
		name = BEL_mio_trait_excellent_machining_tools
		icon = GFX_generic_mio_trait_icon_production_capacity
		special_trait_background = yes

        available = {
            owner = {
                has_completed_focus = BEL_cockerill
            }
        }	

		position = { x=7 y=1 }  

		any_parent = {
			generic_mio_trait_advanced_barrel_forging
			generic_mio_trait_big_guns
		}

		production_bonus = {
			production_efficiency_gain_factor = 0.1
			production_efficiency_cap_factor = 0.05
		}

	}

}		

BEL_minerva_imperia_armored_car_organization = {
	name = BEL_minerva_imperia_armored_car_organization
	include = generic_armored_car_organization
	icon = GFX_idea_BEL_minerva_imperia_armored_car_organization
	allowed = {
		OR = {
			original_tag = BEL
			original_tag = COG
		}
		has_dlc = "Gotterdammerung"
		has_dlc = "La Resistance"
	}

	initial_trait = {
		name = BEL_minerva_imperia_armored_car_organization
		equipment_bonus = {
			armor_value = 0.05
			defense =0.05
			build_cost_ic = -0.05
			reliability = 0.05
		}
	}

	add_trait = { 
		token = BEL_mio_trait_knight_engines
		name = BEL_mio_trait_knight_engines
		icon = GFX_generic_mio_department_icon_armored_car_production
		special_trait_background = yes

        available = {
            owner = {
            	OR = {
            		has_completed_focus = BEL_minerva_imperia
            		has_completed_focus = COG_standardize_military_production
            	}
            }
        }	

		position = { x=8 y=0 }  

		equipment_bonus = {
			reliability = 0.05
			maximum_speed = 0.05
		}

	}

	add_trait = { 
		token = BEL_mio_trait_heavy_machine_guns
		name = BEL_mio_trait_heavy_machine_guns
		icon = GFX_generic_mio_department_icon_armored_car_offense
		special_trait_background = yes

		any_parent = { BEL_mio_trait_knight_engines }

		position = { x=8 y=1 }  

		equipment_bonus = {
			soft_attack = 0.03
		}

	}

	add_trait = { 
		token = BEL_mio_trait_high_grade_armor
		name = BEL_mio_trait_high_grade_armor
		icon = GFX_generic_mio_trait_icon_armor_value
		special_trait_background = yes

		any_parent = { BEL_mio_trait_knight_engines }

		position = { x=9 y=1 }  

		equipment_bonus = {
			armor_value = 0.05
		}

	}

}

BEL_minerva_imperia_motorized_organization = {
	name = BEL_minerva_imperia_motorized_organization
	include = generic_motorized_mechanized_organization
	icon = GFX_idea_BEL_minerva_imperia_motorized_organization
	allowed = {
		OR = {
			original_tag = BEL
			original_tag = COG
		}
		has_dlc = "Gotterdammerung"
	}

	available = {
		# When in a Foreign MIO, countries need to be at peace with original country
		IF = {
			limit = {
				FROM = { NOT = { original_tag = BEL } }
			}
			FROM = { NOT = { has_war_with = BEL } }
		}
	}

	add_trait = { 
		token = BEL_mio_trait_flourishing_automobile_industry
		name = BEL_mio_trait_flourishing_automobile_industry
		icon = GFX_generic_mio_department_icon_motorized_production
		special_trait_background = yes

		position = { x=3 y=0 }  

		limit_to_equipment_type = { 
			motorized_equipment
		}			

		production_bonus = {
			production_capacity_factor = 0.05
		}

	}

	add_trait = { 
		token = BEL_mio_trait_knight_engines_motorized
		name = BEL_mio_trait_knight_engines
		icon = GFX_generic_mio_trait_icon_maximum_speed
		special_trait_background = yes

		position = { x=5 y=0 }  

		equipment_bonus = {
			reliability = 0.05
			maximum_speed = 0.05
		}

	}

  	add_trait = { 
		token = BEL_mio_trait_high_grade_armor_mech
		name = BEL_mio_trait_high_grade_armor
		icon = GFX_generic_mio_trait_icon_armor_value
		special_trait_background = yes

		any_parent = { BEL_mio_trait_knight_engines_motorized }

		position = { x=5 y=1 }  

		limit_to_equipment_type = { 
			mechanized_equipment
		}	

		equipment_bonus = {
			armor_value = 0.05
		}

	}      

}

BEL_laboratoire_aerotechnique_de_belgique_organization = {
	include = generic_helicopter_organization
	icon = GFX_idea_generic_helicopter_1
	
	allowed = {	
		original_tag = BEL 
		has_dlc = "Gotterdammerung"		
	}
}
