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

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

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




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

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




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

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

###########################
RAJ_supermarine_organization = {
	include = generic_high_agility_fighter_aircraft_organization
	icon = GFX_idea_supermarine
	
	allowed = {	
		tag = RAJ
		has_dlc = "Arms Against Tyranny"
	}

	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	
		}
	}
}


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

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


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

RAJ_ammunition_factory_khadki_organization = {
	include = generic_infantry_equipment_organization
	icon = GFX_idea_raj_rifle_factory_ishapore
	allowed = {	
		has_dlc = "Graveyard of Empires"
		OR = {
			ROOT = { original_tag = BAN }
			ROOT = { original_tag = PAK }
			ROOT = { original_tag = RAJ }
		}
	}
	name = RAJ_ammunition_factory_khadki
	available = {

	}

	trait = {
		token = RAJ_mio_trait_gun_and_shell_facatory_cassiopore
		name = RAJ_gun_and_shell_factory_cossipore
		icon = GFX_generic_mio_trait_icon_efficiency_gain
		relative_position_id = generic_mio_trait_drum_pattern_sights
		
		special_trait_background  = yes
		position = { x=-1 y=0 }
		available = { RAJ = { has_completed_focus = RAJ_gun_and_shell_factory_cossipore } }
		production_bonus = {
			production_efficiency_cap_factor = 0.05
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
		
		}
	}

	trait = {
		token = RAJ_mio_trait_ordnance_factory_khamaria_jabalpur
		name = RAJ_ordnance_factory_khamaria_jabalpur
		icon = GFX_generic_mio_trait_icon_soft_attack
		relative_position_id = RAJ_mio_trait_gun_and_shell_facatory_cassiopore
		
		special_trait_background  = yes
		position = { x=0 y=1 }
		available = { RAJ = { has_completed_focus = RAJ_ordnance_factory_khamaria_jabalpur } }
		equipment_bonus = {
			breakthrough = 0.05
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
		}
	}

	trait = { 
		token = RAJ_mio_trait_rifle_factory_ishapore
		name = RAJ_rifle_factory_ishapore_west_bengal
		icon = GFX_generic_mio_department_icon_infantry_quality
		relative_position_id = RAJ_mio_trait_ordnance_factory_khamaria_jabalpur
		
		special_trait_background  = yes
		position = { x=0 y=1 }
		available = { RAJ = { has_completed_focus = RAJ_rifle_factory_ishapore_west_bengal } }

		equipment_bonus = {
			defense = 0.05
			ap_attack = 0.1

		}

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
		
		}
	}

	trait = {
		token = RAJ_mio_trait_ordnance_factory_kanpur_uttar_pradesh_inf
		name = RAJ_ordnance_factory_kanpur_uttar_pradesh
		icon = GFX_generic_mio_department_icon_facilities
		relative_position_id = generic_mio_trait_drum_pattern_sights
			

		special_trait_background  = yes
		position = { x=1 y=0 }
		available = { RAJ = { has_completed_focus = RAJ_ordnance_factory_kanpur_uttar_pradesh } }
		organization_modifier = {
			military_industrial_organization_research_bonus = 0.15
			military_industrial_organization_funds_gain = 0.15
		}
	}

	
}

RAJ_ordnance_factory_kanpur_organization = {
	include = generic_artillery_organization
	icon = GFX_idea_raj_ammunition_factory_khadki
	allowed = {	

		has_dlc = "Graveyard of Empires"
		OR = {
			ROOT = { original_tag = BAN }
			ROOT = { original_tag = PAK }
			ROOT = { original_tag = RAJ }
		}
	}
	name = RAJ_ordnance_factory_kanpur_uttar_pradesh
	available = {
	}

	trait = {
		token = RAJ_mio_trait_cordite_factory_aruvankadu_tamil_nadu
		name = RAJ_cordite_factory_aruvankadu_tamil_nadu
		icon = GFX_generic_mio_department_icon_artillery
		relative_position_id = generic_mio_trait_big_guns
		all_parents = {
			generic_mio_trait_big_guns
		}
		special_trait_background  = yes
		position = { x=1 y=1 }
		available = { RAJ = { has_completed_focus = RAJ_cordite_factory_aruvankadu_tamil_nadu } }
		production_bonus = {
			production_cost_factor = 0.05
		}

		equipment_bonus = {
			soft_attack = 0.05
			ap_attack = 0.05
		}

	}

	trait = {
		token = RAJ_mio_trait_ordnance_factory_kanpur_uttar_pradesh_art
		name = RAJ_mio_trait_ordnance_factory_kanpur_uttar_pradesh_art
		icon = GFX_generic_mio_department_icon_facilities
		relative_position_id = generic_mio_trait_big_guns

		special_trait_background  = yes
		position = { x=-1 y=0 }
		available = { RAJ = { has_completed_focus = RAJ_ordnance_factory_kanpur_uttar_pradesh } }
		organization_modifier = {
			military_industrial_organization_research_bonus = 0.1
			military_industrial_organization_funds_gain = 0.1
		}
	}

	
}
# Heavy Vehicles Factory, Avadi generic_infantry_tank_organization
RAJ_ordnance_factory_medak_organization = {
	include = generic_motorized_mechanized_organization
	icon = GFX_idea_raj_ordnance_factory_medak
	allowed = {	

		has_dlc = "Graveyard of Empires"
		OR = {
			ROOT = { original_tag = BAN }
			ROOT = { original_tag = PAK }
			ROOT = { original_tag = RAJ }
		}
	}

	available = {
		hidden_trigger = {
			always = yes	
		}
	}
	trait = {
		token = RAJ_mio_trait_apc_research_effort
		name = RAJ_mio_trait_apc_research_effort
		icon = GFX_generic_mio_department_icon_facilities
		relative_position_id = generic_mio_trait_closed_chassi

		special_trait_background  = yes
		position = { x=1 y=0 }
		available = { RAJ = { has_completed_focus = RAJ_ordnance_factory_medak } }
		organization_modifier = {
			military_industrial_organization_research_bonus = 0.15
		}
	}

	trait = {
		token = RAJ_mio_trait_chariot_of_victory
		name = RAJ_mio_trait_chariot_of_victory
		icon = GFX_generic_mio_department_icon_mechanized_hull
		relative_position_id = RAJ_mio_trait_apc_research_effort
		limit_to_equipment_type = { mechanized_equipment }
		special_trait_background  = yes
		position = { x=0 y=1 }	
		available = { RAJ = { has_completed_focus = RAJ_chariot_of_victory } }

		equipment_bonus = {
			breakthrough = 0.05
			armor_value = 0.05
		}
	}
	
}


RAJ_vickers_armstrong_organization = {
	name = CAN_vickers_armstrong_can_organization
	include = generic_medium_tank_organization
	icon = GFX_idea_vickers_armstrong_can
	allowed = {
		OR = {
			ROOT = { original_tag = BAN }
			ROOT = { original_tag = PAK }
			ROOT = { original_tag = RAJ }
		}
		#has_dlc = "Together for Victory"
	}
}


####

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


RAJ_vauxhall_organization = {
	include = generic_infantry_tank_organization
	icon = GFX_idea_vauxhall

	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}


}

RAJ_harland_wolff_organization = {
	include = generic_task_force_ship_organization
	icon = GFX_idea_harland_wolff
	
	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}


}

RAJ_cammell_laird_organization = {
	include = generic_battle_line_ship_organization
	icon = GFX_idea_cammell_laird
	
	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}


}

RAJ_yarrow_shipbuilders_organization = {
	include = generic_escort_ship_organization
	icon = GFX_idea_yarrow_shipbuilders
	
	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}

}

RAJ_john_brown_organization = {
	include = generic_raider_ship_organization
	icon = GFX_idea_john_brown_company
	
	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}

}


RAJ_hawker_organization = {
	include = generic_cas_aircraft_organization
	icon = GFX_idea_hawker
	
	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}

}

RAJ_de_havilland_organization = {
	include = generic_medium_aircraft_organization
	icon = GFX_idea_de_havilland
	
	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}


}

RAJ_fairey_aviation_organization = {
	include = generic_naval_aircraft_organization
	icon = GFX_idea_fairey_aviation
	
	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}

}

RAJ_avro_organization = {
	include = generic_heavy_aircraft_organization
	icon = GFX_idea_avro
	
	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}
}

#RAJ_royal_arsenal_organization = {
#	include = generic_artillery_organization
#	icon = GFX_idea_royal_arsenal
#	
#	allowed = {	
#		has_dlc = "Graveyard of Empires"
#		original_tag = RAJ
#	}
#}

RAJ_crossley_motors_organization = {
	include = generic_armored_car_organization
	icon = GFX_idea_ENG_crossley_motors
	
	allowed = {	
		has_dlc = "Graveyard of Empires"
		original_tag = RAJ
	}
}



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


### EQUIPMENT STATS ###


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

#maximum_speed
#reliability
#defense
#breakthrough
#armor_value
#soft_attack
#hard_attack
#ap_attack
#air_attack
#build_cost_ic
#fuel_consumption
#hardness
#armor_value
#build_cost_ic
#entrenchment - only if you have DLC NSB  and module dozer_blade
#fuel_capacity - only if you have DLC NSB  and module expanded_fuel_tank



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

#lg_armor_piercing (requires modules)
#lg_attack (requires modules)
#hg_armor_piercing (requires modules)
#hg_attack (requires modules)
#torpedo_attack (requires modules)
#sub_attack (requires modules)
#anti_air_attack (requires modules)
#armor_value (requires modules)
#surface_detection 
#sub_detection (requires modules)
#sub_visibility (sub only)
#surface_visibility (surface only)
#naval_speed 
#reliability
#naval_range
#max_strength
#fuel_consumption
#build_cost_ic
#manpower
#naval_supremacy_factor
#naval_torpedo_enemy_critical_chance_factor (if you have modules adding it)
#naval_torpedo_damage_reduction_factor (if you have modules adding it)
#carrier_size (this will get very bad for you I promise, equipment modifiers are a mistake)
#mines_sweeping (only MTG and with modules)
#mines_planting (only with MTG and modules)
#naval_torpedo_hit_chance_factor (requires modules)
#naval_light_gun_hit_chance_factor (requires modules)
#naval_heavy_gun_hit_chance_factor (requires modules)



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

#air_superiority
#reliability
#naval_strike_attack
#naval_strike_targetting
#manpower
#fuel_consumption
#build_cost_ic
#resources
#thrust - only if you have BBA DLC
#weight - only if you have BBA DLC
#maximum_speed
#air_range
#air_agility
#air_attack
#air_defence
#surface_detection
#sub_detection
#air_ground_attack
#air_bombing
#mines_planting - if you have MtG and BBA
#mines_sweeping - if you have MtG and BBA
#night_penalty - only if you have BBA DLC (you need to have module because base value is 0 - radio navigatio



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

##############################
##### INFANTRY EQUIPMENT #####
##############################
#reliability
#maximum_speed
#defense
#breakthrough
#hardness - it is in the script, but the value is set to 0 (in the game, the UI doesn't show this value)
#armor_value - it is in the script, but the value is set to 0 (in the game, the UI doesn't show this value)
#soft_attack
#hard_attack
#ap_attack
#air_attack - it is in the script but the value is set to 0 (in the game, the UI doesn't show this value)
#build_cost_ic

##############################
##### SUPPORT EQUIPMENT ######
##############################
#reliability
#build_cost_ic


#############################
#### ARTILLERY EQUIPMENT ####
#############################
#reliability
#defense
#breakthrough
#hardness
#armor_value
#soft_attack
#hard_attack
#ap_attack
#air_attack
#build_cost_ic

############################
#### ANTI-AIR EQUIPMENT ####
############################
#reliability
#defense
#breakthrough
#hardness
#armor_value
#soft_attack
#hard_attack
#ap_attack
#air_attack
#build_cost_ic

#############################
#### ANTI-TANK EQUIPMENT ####
#############################
#reliability
#defense
#breakthrough
#hardness
#armor_value
#soft_attack
#hard_attack
#ap_attack
#air_attack
#build_cost_ic

####################################
#### ROCKET ARTILLERY EQUIPMENT ####
####################################
#reliability
#defense
#breakthrough
#hardness
#armor_value
#soft_attack
#hard_attack
#ap_attack
#air_attack
#build_cost_ic


##############################
#### MOTORIZED EQUIPMENT #####
##############################
#maximum_speed
#reliability
#hardness
#breakthrough
#build_cost_ic
#fuel_consumption

####################################
#### MOTORIZED ROCKET EQUIPMENT ####
####################################
#reliability
#defense
#breakthrough
#hardness
#armor_value
#soft_attack
#hard_attack
#ap_attack
#air_attack
#build_cost_ic (edited)

###############################
#### MECHANIZED EQUIPMENT #####
###############################
#maximum_speed
#reliability
#defense
#breakthrough
#hardness
#armor_value
#ap_attack
#air_attack
#build_cost_ic
#fuel_consumption

#########################################
#### AMPHIBIOUS MECHANIZED EQUIPMENT ####
#########################################
#maximum_speed
#reliability
#defense
#breakthrough
#hardness
#armor_value
#ap_attack
#air_attack
#build_cost_ic
#fuel_consumption


################################
#### ARMORED CAR EQUIPMENT #####
################################
#maximum_speed
#reliability
#defense
#breakthrough
#hardness
#armor_value
#soft_attack
#hard_attack
#ap_attack
#air_attack
#build_cost_ic
#fuel_consumption


##########################
#### TRAIN EQUIPMENT #####
##########################
#armor_value
#build_cost_ic
#air_attack

################################
#### RAILWAY GUN EQUIPMENT #####
################################
#reliability
#maximum_speed
#railway_gun_attack
#build_cost_ic


### PRODUCTION MODIFIERS ###
#production_cost_factor
#production_capacity_factor
#production_efficiency_cap_factor
#production_efficiency_gain_factor
#production_resource_need_factor
#production_resource_penalty_factor
#production_conversion_speed_factor

### ORGANIZATION MODIFIERS ###
#military_industrial_organization_research_bonus
#military_industrial_organization_design_team_assign_cost
#military_industrial_organization_design_team_change_cost
#military_industrial_organization_industrial_manufacturer_assign_cost
#military_industrial_organization_task_capacity
#military_industrial_organization_size_up_requirement
#military_industrial_organization_funds_gain