equipment_modules = {


#   ###  ##  #  # ###     ###   ##  ### ### ### ###  #   # Rata
#    #  #    #  #  #      #  # #  #  #   #  #   #  #  # #  Increased speed and speed multiplier on heavy_nuclear_reactor_module and its upgrade
#    #  # ## ####  #      ###  ####  #   #  ##  ###    #   Decreased reliability penalties on these reactors
#    #  #  # #  #  #      #  # #  #  #   #  #   #  #   #   Increased speed and speed multiplier on heavy_ship_engine 5 and 6
### ###  ##  #  #  #      ###  #  #  #   #  ### #  #   #   Needs testing, did i overdo it?



	ship_light_battery_1 = {
		category = ship_light_battery
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 1
			build_cost_ic = 90	
		}
		
		add_average_stats = {
			lg_armor_piercing = 1
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 60
		}

		critical_parts = { damaged_light_guns }
	}

	ship_light_battery_2 = {
		category = ship_light_battery
		parent = ship_light_battery_1
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 1.5
			build_cost_ic = 120
			
		}
		
		add_average_stats = {
			lg_armor_piercing = 2
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 75 #conversion cost from ANY ship_light_battery module
		}
		
		can_convert_from = {
			module = ship_light_battery_1
			convert_cost_ic = 45 #conversion cost from that specific module
		}
		critical_parts = { damaged_light_guns }
	}

	ship_light_battery_3 = {
		category = ship_light_battery
		parent = ship_light_battery_2
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 2
			build_cost_ic = 150			
		}
		
		add_average_stats = {
			lg_armor_piercing = 2.5
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 75
		}
		
		can_convert_from = {
			module= ship_light_battery_2
			convert_cost_ic = 45
		}
		critical_parts = { damaged_light_guns }
	}

	ship_light_battery_4 = {
		category = ship_light_battery
		parent = ship_light_battery_3
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 2.5
			build_cost_ic = 175	
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 3
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 180
		}
			
		can_convert_from = {
			module = ship_light_battery_3
			convert_cost_ic = 120
		}
		critical_parts = { damaged_light_guns }
	}
	ship_60_light_battery = {
		category = ship_light_battery
		parent = ship_light_battery_4
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 4
			build_cost_ic = 175	
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 4
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 180
		}
			
		can_convert_from = {
			module = ship_light_battery_4
			convert_cost_ic = 120
		}
		critical_parts = { damaged_light_guns }
	}
	ship_70_light_battery = {
		category = ship_light_battery
		parent = ship_60_light_battery
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 6
			build_cost_ic = 175	
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 5
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 180
		}
			
		can_convert_from = {
			module = ship_60_light_battery
			convert_cost_ic = 120
		}
		critical_parts = { damaged_light_guns }
	}
	ship_80_light_battery = {
		category = ship_light_battery
		parent = ship_70_light_battery
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 8
			build_cost_ic = 175	
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 6
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 180
		}
			
		can_convert_from = {
			module = ship_70_light_battery
			convert_cost_ic = 120
		}
		critical_parts = { damaged_light_guns }
	}
	ship_90_light_battery = {
		category = ship_light_battery
		parent = ship_80_light_battery
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 10
			build_cost_ic = 175	
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 7
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 180
		}
			
		can_convert_from = {
			module = ship_80_light_battery
			convert_cost_ic = 120
		}
		critical_parts = { damaged_light_guns }
	}
	dp_light_battery_1 = {
		abbreviation = "sae"
		category = dp_light_battery
		gui_category = ship_light_battery
		sfx = sfx_ui_sd_module_turret
	
		add_stats = {
			lg_attack = 1
			anti_air_attack = 1
			build_cost_ic = 100
		}
		multiply_stats = {
			naval_speed = -0.01
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 0.5
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 100
		}
		critical_parts = { damaged_light_guns }
	}

	dp_light_battery_2 = {
		abbreviation = "saf"
		category = dp_light_battery
		gui_category = ship_light_battery
		sfx = sfx_ui_sd_module_turret
	
		add_stats = {
			lg_attack = 1.5
			anti_air_attack = 2
			build_cost_ic = 130
		}
		multiply_stats = {
			naval_speed = -0.02
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 1
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 85 #conversion cost from ANY ship_light_battery module
		}
		
		can_convert_from = {
			module = ship_light_battery_1
			convert_cost_ic = 55 #conversion cost from that specific module
		}
		critical_parts = { damaged_light_guns }
	}

	dp_light_battery_3 = {
		abbreviation = "sag"
		category = dp_light_battery
		gui_category = ship_light_battery
		sfx = sfx_ui_sd_module_turret
	
		add_stats = {
			lg_attack = 2
			anti_air_attack = 3
			build_cost_ic = 160
		}
		multiply_stats = {
			naval_speed = -0.03
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 1.75
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 85
		}
		
		can_convert_from = {
			module= ship_light_battery_2
			convert_cost_ic = 55
		}
		critical_parts = { damaged_light_guns }
	}

	dp_light_battery_4 = {
		abbreviation = "sah"
		category = dp_light_battery
		gui_category = ship_light_battery
		sfx = sfx_ui_sd_module_turret
	
		add_stats = {
			lg_attack = 2.5
			anti_air_attack = 4
			build_cost_ic = 185
		}
		multiply_stats = {
			naval_speed = -0.04
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 1.75
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 200
		}
			
		can_convert_from = {
			module = ship_light_battery_3
			convert_cost_ic = 130
		}
		critical_parts = { damaged_light_guns }
	}
	ship_60_light_battery_dp = {
		category = ship_light_battery
		parent = ship_light_battery_4
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 3
			anti_air_attack = 4
			build_cost_ic = 330	
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 4
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 180
		}
			
		can_convert_from = {
			module = ship_light_battery_4
			convert_cost_ic = 120
		}
		critical_parts = { damaged_light_guns }
	}
	ship_70_light_battery_dp = {
		category = ship_light_battery
		parent = ship_60_light_battery
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 4
			anti_air_attack = 5
			build_cost_ic = 360	
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 5
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 180
		}
			
		can_convert_from = {
			module = ship_60_light_battery
			convert_cost_ic = 120
		}
		critical_parts = { damaged_light_guns }
	}
	ship_80_light_battery_dp = {
		category = ship_light_battery
		parent = ship_70_light_battery
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 6
			anti_air_attack = 6
			build_cost_ic = 390	
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 6
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 180
		}
			
		can_convert_from = {
			module = ship_70_light_battery
			convert_cost_ic = 120
		}
		critical_parts = { damaged_light_guns }
	}
	ship_90_light_battery_dp = {
		category = ship_light_battery
		parent = ship_80_light_battery
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			lg_attack = 8
			anti_air_attack = 7
			build_cost_ic = 420	
		}
		build_cost_resources = {
			steel = 1
		}
		add_average_stats = {
			lg_armor_piercing = 7
		}
		
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 180
		}
			
		can_convert_from = {
			module = ship_80_light_battery
			convert_cost_ic = 120
		}
		critical_parts = { damaged_light_guns }
	}

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



	ship_heavy_battery_1 = {
		category = ship_heavy_battery
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = capital_ship
		
		add_stats = {
			
			hg_attack = 11
			build_cost_ic = 1275
		}
		
		add_average_stats = {
			hg_armor_piercing = 31
		}
		build_cost_resources = {
			steel = 1
		}
		can_convert_from = {
			module_category = ship_heavy_battery
			convert_cost_ic = 700
		}
		critical_parts = { damaged_heavy_guns }
	}

	ship_heavy_battery_2 = {
		category = ship_heavy_battery
		parent = ship_heavy_battery_1
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = capital_ship
		
		add_stats = {
			hg_attack = 12
			build_cost_ic = 1350
		}
		multiply_stats = {
			naval_speed = -0.1
		}
		add_average_stats = {
			hg_armor_piercing = 36
		}
		build_cost_resources = {
			steel = 1
		}
		can_convert_from = {
			module_category = ship_heavy_battery
			convert_cost_ic = 900
		}
		
		can_convert_from = {
			module = ship_heavy_battery_1
			convert_cost_ic = 600
		}
		critical_parts = { damaged_heavy_guns }
	}

	ship_heavy_battery_3 = {
		category = ship_heavy_battery
		parent = ship_heavy_battery_2
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = capital_ship
		
		add_stats = {
			hg_attack = 13
			build_cost_ic = 1450
		}
		multiply_stats = {
			naval_speed = -0.15
		}
		add_average_stats = {
			hg_armor_piercing = 40
		}
		build_cost_resources = {
			steel = 1
		}
		can_convert_from = {
			module_category = ship_heavy_battery
			convert_cost_ic = 1200
		}
		
		can_convert_from = {
			module = ship_heavy_battery_2
			convert_cost_ic = 600
		}
		critical_parts = { damaged_heavy_guns }
	}

	ship_heavy_battery_4 = {
		category = ship_heavy_battery
		parent = ship_heavy_battery_3
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = capital_ship
		
		add_stats = {
			
			hg_attack = 15
			build_cost_ic = 1650
			
		}
		multiply_stats = {
			naval_speed = -0.2
		}
		add_average_stats = {
			hg_armor_piercing = 43
		}
		build_cost_resources = {
			steel = 2
		}
		can_convert_from = {
			module_category = ship_heavy_battery
			convert_cost_ic = 1800
		}
		
		can_convert_from = {
			module = ship_heavy_battery_3
			convert_cost_ic = 800
		}
		critical_parts = { damaged_heavy_guns }
	}

	ship_super_heavy_battery_1 = {
		category = ship_super_heavy_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_heavy_battery_5
		add_equipment_type = capital_ship
		
		add_stats = {
			hg_attack = 16
			build_cost_ic = 1800
		}
		build_cost_resources = {
			steel = 2
		}
		multiply_stats = {
			naval_speed = -0.1
		}
		add_average_stats = {
			hg_armor_piercing = 50
		}
		critical_parts = { damaged_heavy_guns }
	}


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


	ship_medium_battery_1 = {
		category = ship_medium_battery
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = capital_ship
		add_stats = {
			hg_attack = 6.75
			build_cost_ic = 750
			surface_visibility = 3.5
		}
		multiply_stats = {
			naval_speed = -0.05
			max_strength = 0.4
		}
		add_average_stats = {
			hg_armor_piercing = 11
		}
		build_cost_resources = {
			steel = 1
		}
		can_convert_from = {
			module_category = ship_light_battery
			convert_cost_ic = 400
		}
		can_convert_from = {
			module_category = ship_medium_battery
			convert_cost_ic = 400
		}
		critical_parts = { damaged_heavy_guns }
	}
	ship_medium_battery_2 = {
		category = ship_medium_battery
		parent = ship_medium_battery_1
		sfx = sfx_ui_sd_module_turret

		add_equipment_type = capital_ship
		add_stats = {
			hg_attack = 7.25
			build_cost_ic = 800
			surface_visibility = 3.5
		}
		multiply_stats = {
			naval_speed = -0.075
			max_strength = 0.4
		}
		add_average_stats = {
			hg_armor_piercing = 12
		}
		build_cost_resources = {
			steel = 1
		}
		can_convert_from = {
			module_category = ship_medium_battery
			convert_cost_ic = 400
		}
		can_convert_from = {
			module = ship_medium_battery_1
			convert_cost_ic = 300
		}
		critical_parts = { damaged_heavy_guns }
	}
	ship_medium_battery_3 = {
		category = ship_medium_battery
		parent = ship_medium_battery_2
		add_equipment_type = capital_ship
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			hg_attack = 7.75
			build_cost_ic = 825
			surface_visibility = 3.5
		}
		multiply_stats = {
			naval_speed = -0.1
			max_strength = 0.4
		}
		add_average_stats = {
			hg_armor_piercing = 13
		}
		build_cost_resources = {
			steel = 1
		}
		can_convert_from = {
			module_category = ship_medium_battery
			convert_cost_ic = 500
		}
		can_convert_from = {
			module = ship_medium_battery_2
			convert_cost_ic = 350
		}
		critical_parts = { damaged_heavy_guns }
	}
	ship_medium_battery_4 = {
		category = ship_medium_battery
		parent = ship_medium_battery_3
		add_equipment_type = capital_ship
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			hg_attack = 9
			build_cost_ic = 900
			surface_visibility = 3.5
		}
		multiply_stats = {
			naval_speed = -0.125
			max_strength = 0.4
		}
		add_average_stats = {
			hg_armor_piercing = 14
		}
		build_cost_resources = {
			steel = 1
		}
		can_convert_from = {
			module_category = ship_medium_battery
			convert_cost_ic = 600
			convert_cost_resources = {
				steel = 1
			}
		}
		can_convert_from = {
			module = ship_medium_battery_3
			convert_cost_ic = 400
		}
		critical_parts = { damaged_heavy_guns }
	}
	ship_light_medium_battery_1 = {
		category = ship_medium_battery
		gui_category = ship_light_battery

		sfx = sfx_ui_sd_module_turret

		add_stats = {	
			lg_attack = 4
			build_cost_ic = 225
		}
		multiply_stats = {
			naval_speed = -0.025
		}
		add_average_stats = {
			lg_armor_piercing = 5.5
			max_strength = 20
		}
		can_convert_from = {
			module_category = ship_medium_battery
			convert_cost_ic = 500
		}
		critical_parts = { damaged_light_guns }
	}
	ship_light_medium_battery_2 = {
		category = ship_medium_battery
		gui_category = ship_light_battery
		parent = ship_light_medium_battery_1
		sfx = sfx_ui_sd_module_turret

		add_stats = {	
			lg_attack = 5
			build_cost_ic = 275
		}
		multiply_stats = {
			naval_speed = -0.05
		}
		add_average_stats = {
			lg_armor_piercing = 7.0
			max_strength = 20
		}
		can_convert_from = {
			module_category = ship_medium_battery
			convert_cost_ic = 400
		}
		can_convert_from = {
			module = ship_light_medium_battery_1
			convert_cost_ic = 300
		}
		critical_parts = { damaged_light_guns }
	}
	ship_light_medium_battery_3 = {
		category = ship_medium_battery
		gui_category = ship_light_battery
		parent = ship_light_medium_battery_2
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			
			lg_attack = 6
			build_cost_ic = 300
		}
		multiply_stats = {
			naval_speed = -0.075
		}
		add_average_stats = {
			lg_armor_piercing = 8
			max_strength = 20
		}
		can_convert_from = {
			module_category = ship_medium_battery
			convert_cost_ic = 500
		}
		can_convert_from = {
			module = ship_light_medium_battery_2
			convert_cost_ic = 350
		}
		critical_parts = { damaged_light_guns }
	}
	ship_light_medium_battery_4 = {
		category = ship_medium_battery
		sfx = sfx_ui_sd_module_turret
		gui_category = ship_light_battery
		parent = ship_light_medium_battery_3
		add_stats = {
			
			lg_attack = 7.5
			
			build_cost_ic = 350
		}
		multiply_stats = {
			naval_speed = -0.1
		}
		add_average_stats = {
			lg_armor_piercing = 9
			max_strength = 20
		}
		can_convert_from = {
			module_category = ship_medium_battery
			convert_cost_ic = 600
		}
		can_convert_from = {
			module = ship_light_medium_battery_3
			convert_cost_ic = 400
		}
		critical_parts = { damaged_light_guns }
	}

	dp_ship_medium_1 = {
		abbreviation = "sdq"
		category = ship_light_medium_battery
		gui_category = ship_medium_battery
		sfx = sfx_ui_sd_module_turret
		parent = ship_light_medium_battery_3
		add_stats = {
			lg_attack = 7.5
			anti_air_attack = 4.5
			build_cost_ic = 450
		}

		multiply_stats = {
			naval_speed = -0.06
		}
		
		add_average_stats = {
			lg_armor_piercing = 8
			max_strength = 20
		}

		forbid_module_categories = {
		     ship_medium_battery
		}
		
		can_convert_from = {
			module_category = ship_medium_battery
			convert_cost_ic = 650
			convert_cost_resources = {
				steel = 1
			}
		}
		can_convert_from = {
			module = ship_light_medium_battery_3
			convert_cost_ic = 450
		}
		critical_parts = { damaged_secondaries }
	}

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



	ship_secondaries_1 = {
		category = ship_secondaries
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			lg_attack = 3
			build_cost_ic = 180
		}
		
		add_average_stats = {
			lg_armor_piercing = 5.5
		}
		
		can_convert_from = {
			module_category = ship_secondaries
			convert_cost_ic = 100
		}
		critical_parts = { damaged_secondaries }
	}

	ship_secondaries_2 = {
		category = ship_secondaries
		parent = ship_secondaries_1
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			lg_attack = 4
			build_cost_ic = 240
		}
		
		add_average_stats = {
			lg_armor_piercing = 7
		}
		
		can_convert_from = {
			module_category = ship_secondaries
			convert_cost_ic = 120
		}
		critical_parts = { damaged_secondaries }
	}
	dp_ship_secondaries = {
		category = ship_secondaries
		parent = ship_secondaries_2
		gfx = ship_secondaries_3
		sfx = sfx_ui_sd_module_turret
		add_stats = {
			lg_attack = 4.5
			anti_air_attack = 2.5
			build_cost_ic = 290
		}
		
		add_average_stats = {
			lg_armor_piercing = 8
		}
		
		can_convert_from = {
			module_category = ship_secondaries
			convert_cost_ic = 150
		}
		critical_parts = { damaged_secondaries }
	}
	dp_ship_secondaries_1 = {
		category = ship_secondaries
		parent = ship_secondaries_2
		gfx = ship_secondaries_3
		sfx = sfx_ui_sd_module_turret
		add_stats = {
			lg_attack = 5
			anti_air_attack = 4
			build_cost_ic = 340
		}
		
		add_average_stats = {
			lg_armor_piercing = 8
		}
		
		can_convert_from = {
			module_category = ship_secondaries
			convert_cost_ic = 150
		}
		critical_parts = { damaged_secondaries }
	}
	dp_ship_secondaries_2 = {
		category = ship_secondaries
		parent = ship_secondaries_2
		gfx = ship_secondaries_3
		sfx = sfx_ui_sd_module_turret
		add_stats = {
			lg_attack = 6
			anti_air_attack = 5
			build_cost_ic = 380
		}
		
		add_average_stats = {
			lg_armor_piercing = 9
		}
		
		can_convert_from = {
			module_category = ship_secondaries
			convert_cost_ic = 150
		}
		critical_parts = { damaged_secondaries }
	}
	dp_ship_secondaries_3 = {
		category = ship_secondaries
		parent = ship_secondaries_2
		gfx = ship_secondaries_3
		sfx = sfx_ui_sd_module_turret
		add_stats = {
			lg_attack = 7
			anti_air_attack = 6
			build_cost_ic = 420
		}
		
		add_average_stats = {
			lg_armor_piercing = 10
		}
		
		can_convert_from = {
			module_category = ship_secondaries
			convert_cost_ic = 150
		}
		critical_parts = { damaged_secondaries }
	}
	dp_ship_secondaries_4 = {
		category = ship_secondaries
		parent = ship_secondaries_2
		gfx = ship_secondaries_3
		sfx = sfx_ui_sd_module_turret
		add_stats = {
			lg_attack = 8
			anti_air_attack = 7
			build_cost_ic = 460
		}
		
		add_average_stats = {
			lg_armor_piercing = 10
		}
		
		can_convert_from = {
			module_category = ship_secondaries
			convert_cost_ic = 150
		}
		critical_parts = { damaged_secondaries }
	}

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



	ship_anti_air_1 = {
		category = ship_anti_air
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = anti_air
		
		add_stats = {
			anti_air_attack = 1.5
			build_cost_ic = 90
		}
		
		multiply_stats = {
			build_cost_ic = 0.025
			anti_air_attack = 0.1
		}

		can_convert_from = {
			module_category = ship_anti_air
			convert_cost_ic = 60
		}
	}

	ship_anti_air_2 = {
		category = ship_anti_air
		parent = ship_anti_air_1
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = anti_air
		
		add_stats = {
			anti_air_attack = 2
			build_cost_ic = 120
		}
		
		multiply_stats = {
			naval_speed = -0.025
			build_cost_ic = 0.025
			anti_air_attack = 0.1
		}

		can_convert_from = {
			module_category = ship_anti_air
			convert_cost_ic = 90
		}

		can_convert_from = {
			module = ship_anti_air_1
			convert_cost_ic = 60
		}
	}
	ship_anti_air_3 = {
		category = ship_anti_air
		parent = ship_anti_air_2
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = anti_air
		add_stats = {
			anti_air_attack = 3
			build_cost_ic = 150
		}
		
		multiply_stats = {
			naval_speed = -0.025
			build_cost_ic = 0.025
			anti_air_attack = 0.125
		}

		can_convert_from = {
			module_category = ship_anti_air
			convert_cost_ic = 90
		}

		can_convert_from = {
			module = ship_anti_air_2
			convert_cost_ic = 60
		}
	}
	ship_anti_air_4 = {
		category = ship_anti_air
		parent = ship_anti_air_2
		sfx = sfx_ui_sd_module_turret

		add_equipment_type = anti_air
		add_stats = {
			anti_air_attack = 4
			build_cost_ic = 190
		}
		
		multiply_stats = {
			naval_speed = -0.05
			build_cost_ic = 0.025
			anti_air_attack = 0.15
		}

		can_convert_from = {
			module_category = ship_anti_air
			convert_cost_ic = 120
		}

		can_convert_from = {
			module = ship_anti_air_3
			convert_cost_ic = 50
		}
	}
	ship_anti_air_5 = {
		category = ship_anti_air
		parent = ship_anti_air_2
		sfx = sfx_ui_sd_module_turret

		add_equipment_type = anti_air
		add_stats = {
			anti_air_attack = 4.5
			build_cost_ic = 230
		}
		
		multiply_stats = {
			naval_speed = -0.05
			build_cost_ic = 0.025
			anti_air_attack = 0.17
		}

		can_convert_from = {
			module_category = ship_anti_air
			convert_cost_ic = 120
		}

		can_convert_from = {
			module = ship_anti_air_4
			convert_cost_ic = 50
		}
	}
	ship_anti_air_6 = {
		category = ship_anti_air
		parent = ship_anti_air_2
		sfx = sfx_ui_sd_module_turret

		add_equipment_type = anti_air
		add_stats = {
			anti_air_attack = 5
			build_cost_ic = 270
		}
		
		multiply_stats = {
			naval_speed = -0.04
			build_cost_ic = 0.025
			anti_air_attack = 0.20
		}

		can_convert_from = {
			module_category = ship_anti_air
			convert_cost_ic = 120
		}

		can_convert_from = {
			module = ship_anti_air_5
			convert_cost_ic = 50
		}
	}
	ship_anti_air_7 = {
		category = ship_anti_air
		parent = ship_anti_air_2
		sfx = sfx_ui_sd_module_turret

		add_equipment_type = anti_air
		add_stats = {
			anti_air_attack = 5.5
			build_cost_ic = 310
		}
		
		multiply_stats = {
			naval_speed = -0.04
			build_cost_ic = 0.025
			anti_air_attack = 0.25
		}

		can_convert_from = {
			module_category = ship_anti_air
			convert_cost_ic = 120
		}

		can_convert_from = {
			module = ship_anti_air_6
			convert_cost_ic = 50
		}
	}
	ship_anti_air_8 = {
		category = ship_anti_air
		parent = ship_anti_air_2
		sfx = sfx_ui_sd_module_turret

		add_equipment_type = anti_air
		add_stats = {
			anti_air_attack = 6
			build_cost_ic = 350
		}
		
		multiply_stats = {
			naval_speed = -0.03
			build_cost_ic = 0.025
			anti_air_attack = 0.25
		}

		can_convert_from = {
			module_category = ship_anti_air
			convert_cost_ic = 120
		}

		can_convert_from = {
			module = ship_anti_air_7
			convert_cost_ic = 50
		}
	}
	ship_anti_air_9 = {
		category = ship_anti_air
		parent = ship_anti_air_2
		sfx = sfx_ui_sd_module_turret

		add_equipment_type = anti_air
		add_stats = {
			anti_air_attack = 6.5
			build_cost_ic = 390
		}
		
		multiply_stats = {
			naval_speed = -0.02
			build_cost_ic = 0.025
			anti_air_attack = 0.30
		}

		can_convert_from = {
			module_category = ship_anti_air
			convert_cost_ic = 120
		}

		can_convert_from = {
			module = ship_anti_air_8
			convert_cost_ic = 50
		}
	}

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



	ship_fire_control_system_0 = {
		category = ship_fire_control_system
		gfx = ship_fire_control_system
		sfx = sfx_ui_sd_module_sonar

		add_stats = {
			build_cost_ic = 60
			naval_light_gun_hit_chance_factor = 0.025
			naval_heavy_gun_hit_chance_factor = 0.025
		}
		
		multiply_stats = {
			lg_attack = 0.05
			hg_attack = 0.05
		}
	}

	ship_fire_control_system_1 = {
		category = ship_fire_control_system
	
		sfx = sfx_ui_sd_module_sonar

		add_stats = {
			build_cost_ic = 90
			naval_light_gun_hit_chance_factor = 0.05
			naval_heavy_gun_hit_chance_factor = 0.05
		}
		
		multiply_stats = {
			anti_air_attack = 0.1
			#reliability = -0.1
		}

		can_convert_from = {
			module = ship_fire_control_system_0
			convert_cost_ic = 40
		}
	}
	ship_fire_control_system_2 = {
		category = ship_fire_control_system
		sfx = sfx_ui_sd_module_sonar

		
		add_stats = {
			build_cost_ic = 120
			naval_light_gun_hit_chance_factor = 0.075
			naval_heavy_gun_hit_chance_factor = 0.075
		}
		
		multiply_stats = {
			anti_air_attack = 0.15
			#reliability = -0.15
		}
		can_convert_from = {
			module = ship_fire_control_system_1
			convert_cost_ic = 60
		}
		can_convert_from = {
			module_category = ship_fire_control_system
			convert_cost_ic = 100
		}
	}
	ship_fire_control_system_3 = {
		category = ship_fire_control_system
		sfx = sfx_ui_sd_module_sonar

		
		add_stats = {
			build_cost_ic = 180
			naval_light_gun_hit_chance_factor = 0.1
			naval_heavy_gun_hit_chance_factor = 0.1
		}
		
		multiply_stats = {
			anti_air_attack = 0.2
			#reliability = -0.2
		}
		can_convert_from = {
			module = ship_fire_control_system_2
			convert_cost_ic = 75
		}
		can_convert_from = {
			module_category = ship_fire_control_system
			convert_cost_ic = 100
		}
	}


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



	ship_radar_1 = {
		category = ship_radar
		sfx = sfx_ui_sd_module_sonar
		
		add_stats = {
			build_cost_ic = 80
			surface_detection = 5
		}
	}
	ship_radar_2 = {
		category = ship_radar
		sfx = sfx_ui_sd_module_sonar
		
		multiply_stats = {
			anti_air_attack = 0.05
		}
		add_stats = {
			naval_light_gun_hit_chance_factor = 0.025
			naval_heavy_gun_hit_chance_factor = 0.025
			build_cost_ic = 130
			surface_detection = 7
			sub_detection = 2
		}
		
		can_convert_from = {
			module = ship_radar_1
			convert_cost_ic = 30
		}
	}
	ship_radar_3 = {
		category = ship_radar
		sfx = sfx_ui_sd_module_sonar
		
		multiply_stats = {
			anti_air_attack = 0.075
		}
		add_stats = {
			naval_light_gun_hit_chance_factor = 0.05
			naval_heavy_gun_hit_chance_factor = 0.05
			surface_detection = 12
			sub_detection = 6
			build_cost_ic = 160
		}
		can_convert_from = {
			module = ship_radar_2
			convert_cost_ic = 30
		}
		can_convert_from = {
			module_category = ship_radar
			convert_cost_ic = 60
		}
	}
	ship_radar_4 = {
		category = ship_radar
		sfx = sfx_ui_sd_module_sonar

		multiply_stats = {
			anti_air_attack = 0.1
		}
		add_stats = {
			naval_light_gun_hit_chance_factor = 0.1
			naval_heavy_gun_hit_chance_factor = 0.1
			build_cost_ic = 190
			surface_detection = 18
			sub_detection = 14
		}
		can_convert_from = {
			module = ship_radar_3
			convert_cost_ic = 30
		}
		can_convert_from = {
			module_category = ship_radar
			convert_cost_ic = 90
		}
	}
	ship_radar_5 = {
		category = ship_radar
		sfx = sfx_ui_sd_module_sonar

		multiply_stats = {
			anti_air_attack = 0.125
		}
		add_stats = {
			naval_light_gun_hit_chance_factor = 0.15
			naval_heavy_gun_hit_chance_factor = 0.15
			build_cost_ic = 220
			surface_detection = 24
			sub_detection = 22
		}
		can_convert_from = {
			module = ship_radar_4
			convert_cost_ic = 30
		}
		can_convert_from = {
			module_category = ship_radar
			convert_cost_ic = 110
		}
	}
	ship_radar_6 = {
		category = ship_radar
		sfx = sfx_ui_sd_module_sonar

		multiply_stats = {
			anti_air_attack = 0.15
		}
		add_stats = {
			naval_light_gun_hit_chance_factor = 0.2
			naval_heavy_gun_hit_chance_factor = 0.2
			build_cost_ic = 250
			surface_detection = 30
			sub_detection = 26
		}
		can_convert_from = {
			module = ship_radar_3
			convert_cost_ic = 30
		}
		can_convert_from = {
			module_category = ship_radar
			convert_cost_ic = 90
		}
	}
	ship_radar_7 = {
		category = ship_radar
		sfx = sfx_ui_sd_module_sonar

		multiply_stats = {
			anti_air_attack = 0.175
		}
		add_stats = {
			naval_light_gun_hit_chance_factor = 0.25
			naval_heavy_gun_hit_chance_factor = 0.25
			build_cost_ic = 280
			surface_detection = 36
			sub_detection = 32
		}
		can_convert_from = {
			module = ship_radar_3
			convert_cost_ic = 30
		}
		can_convert_from = {
			module_category = ship_radar
			convert_cost_ic = 90
		}
	}
	ship_radar_8 = {
		category = ship_radar
		sfx = sfx_ui_sd_module_sonar

		multiply_stats = {
			anti_air_attack = 0.2
		}
		add_stats = {
			naval_light_gun_hit_chance_factor = 0.3
			naval_heavy_gun_hit_chance_factor = 0.3
			build_cost_ic = 320
			surface_detection = 42
			sub_detection = 36
		}
		can_convert_from = {
			module = ship_radar_3
			convert_cost_ic = 30
		}
		can_convert_from = {
			module_category = ship_radar
			convert_cost_ic = 90
		}
	}
	ship_radar_9 = {
		category = ship_radar
		sfx = sfx_ui_sd_module_sonar

		multiply_stats = {
			anti_air_attack = 0.225
		}
		add_stats = {
			naval_light_gun_hit_chance_factor = 0.35
			naval_heavy_gun_hit_chance_factor = 0.35
			build_cost_ic = 360
			surface_detection = 48
			sub_detection = 30
		}
		can_convert_from = {
			module = ship_radar_3
			convert_cost_ic = 30
		}
		can_convert_from = {
			module_category = ship_radar
			convert_cost_ic = 90
		}
	}


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



	light_ship_engine_1 = {
		category = light_ship_engine
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 7
			build_cost_ic = 90
		}
		
		multiply_stats = {
			naval_speed = 0.2
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}

	}

	light_ship_engine_2 = {
		category = light_ship_engine
		parent = light_ship_engine_1
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 8
			build_cost_ic = 120
		}
		
		multiply_stats = {
			naval_speed = 0.3
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = light_ship_engine_1
			convert_cost_ic = 230
		}
	}

	light_ship_engine_3 = {
		category = light_ship_engine
		parent = light_ship_engine_2
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 150
		}
		
		multiply_stats = {
			naval_speed = 0.4
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = light_ship_engine_2
			convert_cost_ic = 230
		}
	}
	light_ship_engine_4 = {
		category = light_ship_engine
		parent = light_ship_engine_3
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_speed = 0.45
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = light_ship_engine_3
			convert_cost_ic = 230
		}
	}
	light_ship_engine_5 = {
		category = light_ship_engine
		parent = light_ship_engine_4
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_speed = 0.5
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = light_ship_engine_4
			convert_cost_ic = 230
		}
	}
	light_ship_engine_6 = {
		category = light_ship_engine
		parent = light_ship_engine_5
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_speed = 0.55
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = light_ship_engine_5
			convert_cost_ic = 230
		}
	}
	light_ship_engine_7 = {
		category = light_ship_engine
		parent = light_ship_engine_6
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_speed = 0.60
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = light_ship_engine_6
			convert_cost_ic = 230
		}
	}
	light_ship_engine_8 = {
		category = light_ship_engine
		parent = light_ship_engine_7
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_speed = 0.65
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = light_ship_engine_7
			convert_cost_ic = 230
		}
	}
	light_ship_engine_9 = {
		category = light_ship_engine
		parent = light_ship_engine_8
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_speed = 0.70
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = light_ship_engine_8
			convert_cost_ic = 230
		}
	}
	light_ship_engine_10 = {
		category = light_ship_engine
		parent = light_ship_engine_9
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_speed = 0.75
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = light_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = light_ship_engine_9
			convert_cost_ic = 230
		}
	}
	sub_ship_engine_1 = {
		category = sub_ship_engine
		sfx = sfx_ui_sd_module_engine
		
		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 7
			build_cost_ic = 90
		}
		
		multiply_stats = {
			naval_speed = 0.05
			reliability = -0.2

		}

		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
	}

	sub_ship_engine_2 = {
		category = sub_ship_engine
		parent = sub_ship_engine_1
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 8
			build_cost_ic = 120
		}
		
		multiply_stats = {
			naval_speed = 0.1
			reliability = -0.2
			#sub_visibility = -0.05
		}
		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = sub_ship_engine_1
			convert_cost_ic = 230
		}
	}

	sub_ship_engine_3 = {
		category = sub_ship_engine
		parent = sub_ship_engine_2
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 150
		}
		
		multiply_stats = {
			naval_speed = 0.15
			reliability = -0.2
			#sub_visibility = -0.1
		}
		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = sub_ship_engine_2
			convert_cost_ic = 230
		}
	}
	sub_ship_engine_4 = {
		category = sub_ship_engine
		parent = sub_ship_engine_3
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_speed = 0.2
			reliability = -0.2
			#sub_visibility = -0.15
		}
		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = sub_ship_engine_3
			convert_cost_ic = 230
		}
	}
	

	ship_engine_sub_aip_1 = {
		abbreviation = "sne"
		category = sub_ship_engine
		sfx = sfx_ui_sd_module_engine
		gfx = sub_ship_aip_engine_1
		add_stats = {
			fuel_consumption = 60
		}

		multiply_stats = {
			naval_range= -0.66
			build_cost_ic = 0.25
			sub_visibility = -0.15
			naval_speed = 0.15
		}
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 300
		}
		
		can_convert_from = {
			module = sub_ship_engine_2
			convert_cost_ic = 270
		}
	}

	ship_engine_sub_aip_2 = {
		abbreviation = "sne"
		category = sub_ship_engine
		sfx = sfx_ui_sd_module_engine
		gfx = sub_ship_aip_engine_2
		add_stats = {
			fuel_consumption = 45
		}

		multiply_stats = {
			naval_range= -0.33
			build_cost_ic = 0.3
			sub_visibility = -0.17
			naval_speed = 0.15
		}
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 300
		}
		
		can_convert_from = {
			module = ship_engine_sub_aip_1
			convert_cost_ic = 270
		}
	}	

	ship_engine_sub_aip_3 = {
		abbreviation = "sne"
		category = sub_ship_engine
		sfx = sfx_ui_sd_module_engine
		gfx = sub_ship_aip_engine_3
		add_stats = {
			fuel_consumption = 30
		}

		multiply_stats = {
			#naval_range= -0.75
			build_cost_ic = 0.35
			sub_visibility = -0.2
			naval_speed = 0.35
		}
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 300
		}
		
		can_convert_from = {
			module = ship_engine_sub_aip_2
			convert_cost_ic = 270
		}
	}	


	cruiser_ship_engine_1 = {
		category = cruiser_ship_engine
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 12
			build_cost_ic = 400
		}
		
		multiply_stats = {
			naval_speed = 0.2
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
	}

	cruiser_ship_engine_2 = {
		category = cruiser_ship_engine
		parent = cruiser_ship_engine_1
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 6
			fuel_consumption = 16
			build_cost_ic = 480
		}
		
		multiply_stats = {
			naval_speed = 0.3
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = cruiser_ship_engine_1
			convert_cost_ic = 2300
		}
	}

	cruiser_ship_engine_3 = {
		category = cruiser_ship_engine
		parent = cruiser_ship_engine_2
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 7
			fuel_consumption = 20
			build_cost_ic = 550
		}
		
		multiply_stats = {
			naval_speed = 0.35
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = cruiser_ship_engine_2
			convert_cost_ic = 2300
		}
	}
	cruiser_ship_engine_4 = {
		category = cruiser_ship_engine
		parent = cruiser_ship_engine_3
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 7
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.4
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = cruiser_ship_engine_3
			convert_cost_ic = 2300
		}
	}
	cruiser_ship_engine_5 = {
		category = cruiser_ship_engine
		parent = cruiser_ship_engine_4
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 7
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.45
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = cruiser_ship_engine_4
			convert_cost_ic = 2300
		}
	}
	cruiser_ship_engine_6 = {
		category = cruiser_ship_engine
		parent = cruiser_ship_engine_5
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 7
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.5
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = cruiser_ship_engine_5
			convert_cost_ic = 2300
		}
	}
	cruiser_ship_engine_7 = {
		category = cruiser_ship_engine
		parent = cruiser_ship_engine_6
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 7
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.55
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = cruiser_ship_engine_6
			convert_cost_ic = 2300
		}
	}
	cruiser_ship_engine_8 = {
		category = cruiser_ship_engine
		parent = cruiser_ship_engine_7
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 7
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.60
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = cruiser_ship_engine_7
			convert_cost_ic = 2300
		}
	}
	cruiser_ship_engine_9 = {
		category = cruiser_ship_engine
		parent = cruiser_ship_engine_8
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 7
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.65
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = cruiser_ship_engine_8
			convert_cost_ic = 2300
		}
	}
	cruiser_ship_engine_10 = {
		category = cruiser_ship_engine
		parent = cruiser_ship_engine_9
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 7
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.7
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = cruiser_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = cruiser_ship_engine_9
			convert_cost_ic = 2300
		}
	}
	heavy_ship_engine_1 = {
		category = heavy_ship_engine
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 20
			build_cost_ic = 1800
		}
		
		multiply_stats = {
			naval_speed = 0.2
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = heavy_ship_engine
			convert_cost_ic = 4800
		}
	}

	heavy_ship_engine_2 = {
		category = heavy_ship_engine
		parent = heavy_ship_engine_1
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 10
			fuel_consumption = 25
			build_cost_ic = 2200
		}
		
		multiply_stats = {
			naval_speed = 0.3
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = heavy_ship_engine
			convert_cost_ic = 5000
		}
		
		can_convert_from = {
			module = heavy_ship_engine_1
			convert_cost_ic = 4800
		}
	}

	heavy_ship_engine_3 = {
		category = heavy_ship_engine
		parent = heavy_ship_engine_2
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 11
			fuel_consumption = 30
			build_cost_ic = 2600
		}
		
		multiply_stats = {
			naval_speed = 0.4
			reliability = -0.2
			
		}
		
		can_convert_from = {
			module_category = heavy_ship_engine
			convert_cost_ic = 5000
		}
		
		can_convert_from = {
			module = heavy_ship_engine_2
			convert_cost_ic = 4800
		}
	}
	heavy_ship_engine_4 = {
		category = heavy_ship_engine
		parent = heavy_ship_engine_3
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 12
			fuel_consumption = 35
			build_cost_ic = 3000
		}
		
		multiply_stats = {
			naval_speed = 0.45
			reliability = -0.2
			
		}
		
		can_convert_from = {
			module_category = heavy_ship_engine
			convert_cost_ic = 5000
		}
		
		can_convert_from = {
			module = heavy_ship_engine_3
			convert_cost_ic = 4800
		}
	}
	heavy_ship_engine_5 = {
		category = heavy_ship_engine
		parent = heavy_ship_engine_4
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 15
			fuel_consumption = 35
			build_cost_ic = 3000
		}
		
		multiply_stats = {
			naval_speed = 0.70
			reliability = -0.2
			
		}
		
		can_convert_from = {
			module_category = heavy_ship_engine
			convert_cost_ic = 5000
		}
		
		can_convert_from = {
			module = heavy_ship_engine_4
			convert_cost_ic = 4800
		}
	}
	heavy_ship_engine_6 = {
		category = heavy_ship_engine
		parent = heavy_ship_engine_5
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 15
			fuel_consumption = 35
			build_cost_ic = 3000
		}
		
		multiply_stats = {
			naval_speed = 0.95
			reliability = -0.2
			
		}
		
		can_convert_from = {
			module_category = heavy_ship_engine
			convert_cost_ic = 5000
		}
		
		can_convert_from = {
			module = heavy_ship_engine_5
			convert_cost_ic = 4800
		}
	}
	carrier_ship_engine_1 = {
		category = carrier_ship_engine
		sfx = sfx_ui_sd_module_engine
		
		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 12
			build_cost_ic = 400
		}
		
		multiply_stats = {
			naval_speed = 0.2
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
	}

	carrier_ship_engine_2 = {
		category = carrier_ship_engine
		parent = carrier_ship_engine_1
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 16
			build_cost_ic = 480
		}
		
		multiply_stats = {
			naval_speed = 0.3
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = carrier_ship_engine_1
			convert_cost_ic = 2300
		}
	}

	carrier_ship_engine_3 = {
		category = carrier_ship_engine
		parent = carrier_ship_engine_2
		sfx = sfx_ui_sd_module_engine
		
		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 20
			build_cost_ic = 550
		}
		
		multiply_stats = {
			naval_speed = 0.4
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = carrier_ship_engine_2
			convert_cost_ic = 2300
		}
	}
	carrier_ship_engine_4 = {
		category = carrier_ship_engine
		parent = carrier_ship_engine_3
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.45
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = carrier_ship_engine_3
			convert_cost_ic = 2300
		}
	}
	carrier_ship_engine_5 = {
		category = carrier_ship_engine
		parent = carrier_ship_engine_4
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.50
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = carrier_ship_engine_4
			convert_cost_ic = 2300
		}
	}
	carrier_ship_engine_6 = {
		category = carrier_ship_engine
		parent = carrier_ship_engine_5
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.55
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = carrier_ship_engine_5
			convert_cost_ic = 2300
		}
	}
	carrier_ship_engine_7 = {
		category = carrier_ship_engine
		parent = carrier_ship_engine_6
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.60
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = carrier_ship_engine_6
			convert_cost_ic = 2300
		}
	}
	carrier_ship_engine_8 = {
		category = carrier_ship_engine
		parent = carrier_ship_engine_7
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.65
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = carrier_ship_engine_7
			convert_cost_ic = 2300
		}
	}
	carrier_ship_engine_9 = {
		category = carrier_ship_engine
		parent = carrier_ship_engine_8
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.70
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = carrier_ship_engine_8
			convert_cost_ic = 2300
		}
	}
	carrier_ship_engine_10 = {
		category = carrier_ship_engine
		parent = carrier_ship_engine_9
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 24
			build_cost_ic = 670
		}
		
		multiply_stats = {
			naval_speed = 0.75
			reliability = -0.2
		}
		
		can_convert_from = {
			module_category = carrier_ship_engine
			convert_cost_ic = 2500
		}
		
		can_convert_from = {
			module = carrier_ship_engine_9
			convert_cost_ic = 2300
		}
	}

	


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



	ship_torpedo_1 = {
		category = ship_torpedo
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			torpedo_attack = 18
			build_cost_ic = 90
		}
		
		build_cost_resources = {
			steel = 0
		}
		critical_parts = { damaged_torpedoes }
	}

	ship_torpedo_2 = {
		category = ship_torpedo
		parent = ship_torpedo_1
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 27
			build_cost_ic = 120
		}
		
		build_cost_resources = {
			steel = 0
		}
		 
		dismantle_cost_ic = 60
		dismantle_cost_resources = {
			steel = 0
		}

		can_convert_from = {
			module_category = ship_torpedo
			convert_cost_ic = 60
			convert_cost_resources = {
				steel = 0
			}
		}
		critical_parts = { damaged_torpedoes }
	}

	ship_torpedo_3 = {
		category = ship_torpedo
		parent = ship_torpedo_2
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 36
			build_cost_ic = 150
		}
		
		dismantle_cost_ic = 60

		can_convert_from = {
			module_category = ship_torpedo
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}

	ship_torpedo_4 = {
		category = ship_torpedo
		parent = ship_torpedo_3
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 45
			build_cost_ic = 180
		}
		
		dismantle_cost_ic = 60

		can_convert_from = {
			module_category = ship_torpedo
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}

	ship_torpedo_sub_1 = {
		category = ship_torpedo_sub
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			torpedo_attack = 14
			build_cost_ic = 80
		}
		
		build_cost_resources = {
			steel = 0
		}
		critical_parts = { damaged_torpedoes }
	}

	ship_torpedo_sub_2 = {
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_1
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 18
			build_cost_ic = 100
		}
		
		build_cost_resources = {
			steel = 0
		}
		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}

	ship_torpedo_sub_3 = {
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_2
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 23
			build_cost_ic = 120
		}
		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}

	ship_torpedo_sub_4 = {
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_3
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 30
			build_cost_ic = 140
		}
		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}
	
	ship_torpedo_sub_nuclear = {
		abbreviation = "sco"
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_4
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 44
			build_cost_ic = 520
			naval_torpedo_hit_chance_factor = 0.05
			reliability = -0.15
		}

		multiply_stats = {
			naval_speed = -0.05	
		}

		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 240
		}
		critical_parts = { damaged_torpedoes }
	}


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



	ship_mine_layer_1 = {
		category = ship_mine_layer
		gui_category = ship_mine_warfare
		gfx = ship_mine_layer
		
		add_stats = {
			mines_planting = 1
			build_cost_ic = 90
		}
	}

	ship_mine_layer_sub = {
		category = ship_mine_layer_sub
		gfx = ship_mine_layer_sub
		
		add_stats = {
			mines_planting = 1
			build_cost_ic = 90
		}
	}


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



	ship_mine_sweeper_1 = {
		category = ship_mine_warfare
		gfx = ship_mine_sweeper
		
		add_stats = {
			mines_sweeping = 1
			build_cost_ic = 30
		}
	}


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



	ship_depth_charge_1 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret
		
		
		add_stats = {
			sub_attack = 8
			build_cost_ic = 90
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 60
		}
	}

	ship_depth_charge_2 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			sub_attack = 12
			build_cost_ic = 120
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 90
		}
	}

	ship_depth_charge_3 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			sub_attack = 16
			build_cost_ic = 150
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 120
		}
	}

	ship_depth_charge_4 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			sub_attack = 20
			build_cost_ic = 180
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 150
		}
	}


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



	ship_sub_snorkel_1 = {
		category = ship_sub_snorkel
		gfx = ship_sub_snorkel_1
		
		multiply_stats = {
			sub_visibility = -0.1 
		}
		
		add_stats = {
			build_cost_ic = 50
		}
	}
	ship_sub_snorkel_2 = {
		category = ship_sub_snorkel
		gfx = ship_sub_snorkel_2
		
		multiply_stats = {
			sub_visibility = -0.2
		}
		
		add_stats = {
			build_cost_ic = 70
		}

		can_convert_from = {
			module_category = ship_sub_snorkel
			convert_cost_ic = 30
		}
	}
	ship_sub_snorkel_3 = {
		category = ship_sub_snorkel
		gfx = ship_sub_snorkel_3
		
		multiply_stats = {
			sub_visibility = -0.22
		}
		
		add_stats = {
			surface_detection = 7
			sub_detection = 2
			build_cost_ic = 90
		}

		can_convert_from = {
			module_category = ship_sub_snorkel
			convert_cost_ic = 40
		}
	}
	ship_sub_snorkel_4 = {
		category = ship_sub_snorkel
		gfx = ship_sub_snorkel_4
		
		multiply_stats = {
			sub_visibility = -0.24
		}
		
		add_stats = {
			build_cost_ic = 110
			surface_detection = 10
			sub_detection = 4
		}

		can_convert_from = {
			module_category = ship_sub_snorkel
			convert_cost_ic = 50
		}
	}
	ship_sub_snorkel_5 = {
		category = ship_sub_snorkel
		gfx = ship_sub_snorkel_5
		
		multiply_stats = {
			sub_visibility = -0.26
		}
		
		add_stats = {
			surface_detection = 13
			sub_detection = 6
			build_cost_ic = 130
		}

		can_convert_from = {
			module_category = ship_sub_snorkel
			convert_cost_ic = 60
		}
	}
	ship_sub_snorkel_6 = {
		category = ship_sub_snorkel
		gfx = ship_sub_snorkel_6
		
		multiply_stats = {
			sub_visibility = -0.28
		}
		
		add_stats = {
			build_cost_ic = 150
			surface_detection = 18
			sub_detection = 8
		}

		can_convert_from = {
			module_category = ship_sub_snorkel
			convert_cost_ic = 70
		}
	}
	ship_sub_snorkel_7 = {
		category = ship_sub_snorkel
		gfx = ship_sub_snorkel_7
		
		multiply_stats = {
			sub_visibility = -0.3
		}
		
		add_stats = {
			surface_detection = 22
			sub_detection = 12
			build_cost_ic = 170
		}

		can_convert_from = {
			module_category = ship_sub_snorkel
			convert_cost_ic = 80
		}
	}
	ship_sub_snorkel_8 = {
		category = ship_sub_snorkel
		gfx = ship_sub_snorkel_8
		
		multiply_stats = {
			sub_visibility = -0.32
		}
		
		add_stats = {
			surface_detection = 26
			sub_detection = 14
			build_cost_ic = 190
		}

		can_convert_from = {
			module_category = ship_sub_snorkel
			convert_cost_ic = 90
		}
	}
	
 ##   ##   ##  ### ### #  #  ##  
#  # #  # #  #  #   #  ## # #    
#    #  # ####  #   #  # ## # ## 
#  # #  # #  #  #   #  #  # #  # 
 ##   ##  #  #  #  ### #  #  ##  


	ship_anechoic_tile = {
		abbreviation = "scsat"
		category = ship_sub_coating
		gfx = ship_sub_anechoic_tile_1
		multiply_stats = {
			sub_visibility = -0.2
			build_cost_ic = 0.25
		}
		build_cost_resources = {
			rubber = 2
		}

		can_convert_from = {
			module_category = ship_sub_snorkel
			convert_cost_ic = 150
		}
	}
	
 ## #  # ###  #   #  ##  ###  ### #  # ###     ###   ##  ### ### ### ###  ### ###  ## 
#   #  # #  # ## ## #  # #  #  #  ## # #       #  # #  #  #   #  #   #  #  #  #   #   
 #  #  # ###  # # # #### ###   #  # ## ##      ###  ####  #   #  ##  ###   #  ##   #  
  # #  # #  # #   # #  # #  #  #  #  # #       #  # #  #  #   #  #   #  #  #  #     # 
##   ##  ###  #   # #  # #  # ### #  # ###     ###  #  #  #   #  ### #  # ### ### ##  

	
	ship_light_battery_sub = {
		abbreviation = "smg"
		category = ship_light_battery_sub
		sfx = sfx_ui_sd_module_turret
		
		add_stats = {
			convoy_raiding_coordination = 0.2
			build_cost_ic = 110	
		}
		multiply_stats = {
			sub_visibility = 0.05
		}

		critical_parts = { damaged_light_guns }
	}


 ##  ### ###   ##  ###   ##  ### ###     #    ##  #  # #  #  ##  #  # ### ###  
#  #  #  #  # #  # #  # #  # #    #      #   #  # #  # ## # #  # #  # #   #  # 
####  #  ###  #    ###  #### ##   #      #   #### #  # # ## #    #### ##  ###  
#  #  #  #  # #  # #  # #  # #    #      #   #  # #  # #  # #  # #  # #   #  # 
#  # ### #  #  ##  #  # #  # #    #      ### #  #  ##  #  #  ##  #  # ### #  # 
	ship_airplane_launcher_1 = {
		category = ship_airplane_launcher
		gfx = ship_airplane_launcher_1
		
		add_stats = {
			surface_detection = 7
			sub_detection = 2.5
			build_cost_ic = 150
		}
	}
	ship_airplane_launcher_2 = {
		category = ship_airplane_launcher
		gfx = ship_airplane_launcher_2
		
		add_stats = {
			surface_detection = 10
			sub_detection = 3.5
			build_cost_ic = 170
		}
		can_convert_from = {
			module_category = ship_airplane_launcher
			convert_cost_ic = 80
		}
	}	
	ship_airplane_launcher_3 = {
		category = ship_airplane_launcher
		gfx = ship_airplane_launcher_3
		
		add_stats = {
			surface_detection = 13
			sub_detection = 4.5
			sub_attack = 14
			build_cost_ic = 190
		}
		can_convert_from = {
			module_category = ship_airplane_launcher
			convert_cost_ic = 80
		}
	}
	ship_airplane_launcher_4 = {
		category = ship_airplane_launcher
		gfx = ship_airplane_launcher_4
		
		add_stats = {
			surface_detection = 16
			sub_detection = 5.5
			sub_attack = 17
			torpedo_attack = 10
			build_cost_ic = 210
		}
		can_convert_from = {
			module_category = ship_airplane_launcher
			convert_cost_ic = 80
		}
	}
	ship_airplane_launcher_5 = {
		category = ship_airplane_launcher
		gfx = ship_airplane_launcher_5
		
		add_stats = {
			surface_detection = 19
			sub_detection = 6.5
			sub_attack = 18
			torpedo_attack = 12
			build_cost_ic = 230
		}
		can_convert_from = {
			module_category = ship_airplane_launcher
			convert_cost_ic = 80
		}
	}




###  ###  ##  # #      ## ###   ##   ##  ### 
#  # #   #  # # #     #   #  # #  # #  # #   
#  # ##  #    ##       #  ###  #### #    ##  
#  # #   #  # # #       # #    #  # #  # #   
###  ###  ##  # #     ##  #    #  #  ##  ### 
	ship_deck_space = {
		category = ship_deck_space
		gfx = ship_deck_space

		add_equipment_type = capital_ship
		add_stats = {
			carrier_size = 2
			build_cost_ic = 2000
		}
		manpower = 500 #outside the add_stats section for code reasons
		multiply_stats = {
			naval_speed = -0.05
		}
		build_cost_resources = {
			steel = 1
		}
		dismantle_cost_ic = 700
	}
	
	# HABAKKUK
	big_ship_deck_space = {
		abbreviation = "sdb"
		category = big_ship_deck_space
		gfx = big_ship_deck_space

		add_equipment_type = capital_ship

		add_stats = {
			carrier_size = 3
			build_cost_ic = 2000
		}
		mega_carrier = yes
		manpower = 800 #outside the add_stats section for code reasons
		multiply_stats = {
			naval_speed = -0.1
		}
		build_cost_resources = {
			steel = 2
		}
		dismantle_cost_ic = 1000
	}

# Rocket Modules

	sub_missile_launcher = {
		abbreviation = "sml"
		category = ship_rocket
		add_equipment_type = missile_launcher
		allow_equipment_type = { missile ballistic_missile }

		add_stats = {
			build_cost_ic = 1500
			reliability = -0.1 
		}
		multiply_stats = {
			sub_visibility = 0.15
		}
		dismantle_cost_ic = 700 
	}

	slbm_launcher = {
		abbreviation = "slb"
		category = ship_nuclear_rocket
		add_equipment_type = missile_launcher
		allow_equipment_type = { nuclear_missile }

		add_stats = {
			build_cost_ic = 2000
			reliability = -0.15 
		}
		multiply_stats = {
			sub_visibility = 0.2 
		}
		dismantle_cost_ic = 1000 
	}

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

	ship_extra_fuel_tank = {
		category = ship_extra_fuel_tank
		
		
		add_stats = {
			naval_range = 1000
		}
		multiply_stats = {
			build_cost_ic = 0.05
		}
		dismantle_cost_ic = 700
	}
 ##  ##  #  #  ##  ###  
#   #  # ## # #  # #  # 
 #  #  # # ## #### ###  
  # #  # #  # #  # #  # 
##   ##  #  # #  # #  # 


	ship_sonar_1 = {
		category = ship_sonar
		gfx = ship_sonar_1
		sfx = sfx_ui_sd_module_sonar
		
		add_stats = {
			sub_detection = 4
			build_cost_ic = 40
		}
	}

	ship_sonar_2 = {
		category = ship_sonar
		gfx = ship_sonar_2
		sfx = sfx_ui_sd_module_sonar
		
		add_stats = {
			sub_detection = 6.5
			build_cost_ic = 60
		}
		can_convert_from = {
			module_category = ship_sonar
			convert_cost_ic = 25
		}
	}
	ship_sonar_3 = {
		category = ship_sonar
		gfx = ship_sonar_3
		sfx = sfx_ui_sd_module_sonar
		
		add_stats = {
			sub_detection = 8
			build_cost_ic = 70
		}
		can_convert_from = {
			module_category = ship_sonar
			convert_cost_ic = 30
		}
	}
	ship_sonar_4 = {
		category = ship_sonar
		gfx = ship_sonar_4
		sfx = sfx_ui_sd_module_sonar
		
		add_stats = {
			sub_detection = 10
			build_cost_ic = 80
		}
		can_convert_from = {
			module_category = ship_sonar
			convert_cost_ic = 35
		}
	}
	ship_sonar_5 = {
		category = ship_sonar
		gfx = ship_sonar_5
		sfx = sfx_ui_sd_module_sonar
		
		add_stats = {
			sub_detection = 12
			build_cost_ic = 90
		}
		can_convert_from = {
			module_category = ship_sonar
			convert_cost_ic = 40
		}
	}
	ship_sonar_6 = {
		category = ship_sonar
		gfx = ship_sonar_6
		sfx = sfx_ui_sd_module_sonar
		
		add_stats = {
			sub_detection = 14
			build_cost_ic = 100
		}
		can_convert_from = {
			module_category = ship_sonar
			convert_cost_ic = 50
		}
	}
 ##  ###  #   #  ##  ###       ##  ##  #  # ### #   # ###  ## 
#  # #  # ## ## #  # #  #     #   #  # #  # #   ## ## #   #   
#### ###  # # # #  # ###       #  #    #### ##  # # # ##   #  
#  # #  # #   # #  # #  #       # #  # #  # #   #   # #     # 
#  # #  # #   #  ##  #  #     ##   ##  #  # ### #   # ### ##  

	ship_armor_bb_1 = {
		category = ship_heavy_armor
		gfx = ship_armor_thick_1
		
		multiply_stats = {
			build_cost_ic = 0.2
			naval_speed = -0.2
			max_strength = 0.05
		}
		build_cost_resources = {
			steel = 1
		}
		add_stats = {
			armor_value = 26
			surface_visibility = 10
		}
		dismantle_cost_ic = 5500
		
	}
	ship_armor_bc_1 = {
		category = ship_heavy_armor
		gfx = ship_armor_1
		
		multiply_stats = {
			build_cost_ic = 0.075
			naval_speed = -0.1
			max_strength = 0.05
		}

		add_stats = {
			armor_value = 20
			surface_visibility = 8
		}
		dismantle_cost_ic = 4500
		
	}
	ship_armor_bb_2 = {
		category = ship_heavy_armor
		gfx = ship_armor_thick_2
		
		multiply_stats = {
			build_cost_ic = 0.2
			naval_speed = -0.2
			max_strength = 0.1
		}
		build_cost_resources = {
			steel = 1
		}
		add_stats = {
			armor_value = 31
			surface_visibility = 10
		}
		dismantle_cost_ic = 6000
		
	}
	ship_armor_bc_2 = {
		category = ship_heavy_armor
		gfx = ship_armor_2
		
		multiply_stats = {
			build_cost_ic = 0.075
			naval_speed = -0.1
			max_strength = 0.1
		}
		build_cost_resources = {
			steel = 1
		}
		add_stats = {
			armor_value = 25
			surface_visibility = 8
		}
		dismantle_cost_ic = 5500
	}
	ship_armor_bb_3 = {
		category = ship_heavy_armor
		gfx = ship_armor_thick_3
		
		multiply_stats = {
			build_cost_ic = 0.2
			naval_speed = -0.2
			max_strength = 0.15
		}
		build_cost_resources = {
			steel = 2
			chromium = 1
		}
		add_stats = {
			armor_value = 40
			surface_visibility = 10
		}
		dismantle_cost_ic = 7500
		
	}
	ship_armor_bc_3 = {
		category = ship_heavy_armor
		gfx = ship_armor_3
		
		multiply_stats = {
			build_cost_ic = 0.075
			naval_speed = -0.1
			max_strength = 0.15
		}
		build_cost_resources = {
			steel = 1
			chromium = 1
		}
		add_stats = {
			armor_value = 30
			surface_visibility = 8
		}
		dismantle_cost_ic = 6200
		
	}
	ship_armor_shbb = {
		category = ship_super_heavy_armor
		gfx = ship_armor_thick_3
		
		multiply_stats = {
			build_cost_ic = 0.25
			naval_speed = -0.25
			max_strength = 0.1
		}
		build_cost_resources = {
			steel = 2
			chromium = 1
		}
		add_stats = {
			armor_value = 55
			surface_visibility = 10
		}
		dismantle_cost_ic = 8200
		
	}
	ship_armor_cruiser_1 = {
		category = ship_cruiser_armor
		gfx = ship_armor_thin_1
		
		multiply_stats = {
			build_cost_ic = 0.1
			naval_speed = -0.05
		}
		dismantle_cost_ic = 2500
		
		add_stats = {
			armor_value = 6
		}
	}
	ship_armor_cruiser_2 = {
		category = ship_cruiser_armor
		gfx = ship_armor_thin_2
		
		multiply_stats = {
			build_cost_ic = 0.15
			naval_speed = -0.075
			max_strength = 0.05
		}
		dismantle_cost_ic = 3000
		
		add_stats = {
			armor_value = 8
		}
		build_cost_resources = {
			steel = 1
		}
	}
	ship_armor_cruiser_3 = {
		category = ship_cruiser_armor
		gfx = ship_armor_thin_3
		
		multiply_stats = {
			build_cost_ic = 0.2
			naval_speed = -0.1
			max_strength = 0.1
		}
		dismantle_cost_ic = 3500
		
		add_stats = {
			armor_value = 10
		}
		build_cost_resources = {
			steel = 1
			chromium = 1
		}
	}
	ship_armor_cruiser_4 = {
		category = ship_cruiser_armor
		gfx = ship_armor_thin_4
		
		multiply_stats = {
			build_cost_ic = 0.25
			naval_speed = -0.125
			max_strength = 0.15
		}
		dismantle_cost_ic = 4000
		
		add_stats = {
			armor_value = 12
		}
		build_cost_resources = {
			steel = 2
			chromium = 1
		}
	}
	ship_armor_carrier_deck = {
		category = ship_carrier_armor
		gfx = ship_cruiser_armor
		
		multiply_stats = {
			build_cost_ic = 0.1
		}
		build_cost_resources = {
			steel = 1
		}
		multiply_stats = {
			naval_speed = -0.05
		}
		add_stats = {
			armor_value = 5
			max_strength = 25
		}
		dismantle_cost_ic = 2500
	}
	
	ship_armor_ice_carrier_deck_1 = {
		abbreviation = "sdr"
		category = ship_ice_carrier_armor
		gfx = ship_armor_ice_carrier_deck_1

		multiply_stats = {
			build_cost_ic = 0.1
			naval_speed = -0.1
		}

		build_cost_resources = {
			steel = 2
		}

		add_stats = {
			max_strength = 30
			naval_weather_penalty_factor = -0.05
			armor_value = 2
		}

		dismantle_cost_ic = 3000
	}

	ship_armor_ice_carrier_deck_2 = {
		abbreviation = "sdr"
		category = ship_ice_carrier_armor
		gfx = ship_armor_ice_carrier_deck_2
		parent = ship_armor_ice_carrier_deck_1
		multiply_stats = {
			build_cost_ic = 0.15
			naval_speed = -0.15
		}

		build_cost_resources = {
			steel = 2
		}

		add_stats = {
			max_strength = 35
			naval_weather_penalty_factor = -0.1
			armor_value = 4
		}

		dismantle_cost_ic = 3500
	}

	ship_armor_ice_carrier_deck_3 = {
		abbreviation = "sdr"
		category = ship_ice_carrier_armor
		gfx = ship_armor_ice_carrier_deck_3
		parent = ship_armor_ice_carrier_deck_2
		multiply_stats = {
			build_cost_ic = 0.2
			naval_speed = -0.15
		}

		build_cost_resources = {
			steel = 3
		}

		add_stats = {
			max_strength = 40
			naval_weather_penalty_factor = -0.15
			armor_value = 6
		}

		dismantle_cost_ic = 4000
	}		
	# MISSILES
	ship_ciws_1 = {
		category = ship_ciws
		sfx = sfx_ui_sd_module_turret
		gfx = ship_ciws_1
		
		add_stats = {
			armor_value = 60
			anti_air_attack = 20
			build_cost_ic = 1000	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 2
			chromium = 2
		}
		
		multiply_stats = {
			naval_speed = -0.1
		}
		
		critical_parts = { damaged_light_guns }
	}
	ship_ciws_2 = {
		category = ship_ciws
		sfx = sfx_ui_sd_module_turret
		gfx = ship_ciws_2
		
		add_stats = {
			armor_value = 80
			anti_air_attack = 25
			build_cost_ic = 1000	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 2
			chromium = 2
		}
		
		multiply_stats = {
			naval_speed = -0.12
		}
		
		critical_parts = { damaged_light_guns }
	}	
	ship_light_ASM_battery_1 = {
		category = ship_light_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_light_ASM_battery_1
		
		add_stats = {
			lg_attack = 15
			hg_attack = 12
			build_cost_ic = 1000	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.1
		}
		
		add_average_stats = {
			lg_armor_piercing = 11
			hg_armor_piercing = 17
		}
		
		critical_parts = { damaged_light_guns }
	}
	ship_light_ASM_battery_2 = {
		category = ship_light_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_light_ASM_battery_2
		
		add_stats = {
			lg_attack = 20
			hg_attack = 15
			build_cost_ic = 1000	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.12
		}
		
		add_average_stats = {
			lg_armor_piercing = 11
			hg_armor_piercing = 17
		}
		
		critical_parts = { damaged_light_guns }
	}
	ship_light_ASM_battery_3 = {
		category = ship_light_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_light_ASM_battery_3
		
		add_stats = {
			lg_attack = 25
			hg_attack = 18
			build_cost_ic = 1000	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.15
		}
		
		add_average_stats = {
			lg_armor_piercing = 11
			hg_armor_piercing = 17
		}
		
		critical_parts = { damaged_light_guns }
	}
	ship_light_ASM_battery_4 = {
		category = ship_light_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_light_ASM_battery_4
		
		add_stats = {
			lg_attack = 30
			hg_attack = 21
			build_cost_ic = 1000	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.17
		}
		
		add_average_stats = {
			lg_armor_piercing = 11
			hg_armor_piercing = 17
		}
		
		critical_parts = { damaged_light_guns }
	}
	ship_light_ASM_battery_5 = {
		category = ship_light_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_light_ASM_battery_5
		
		add_stats = {
			lg_attack = 35
			hg_attack = 24
			build_cost_ic = 1000	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.2
		}
		
		add_average_stats = {
			lg_armor_piercing = 11
			hg_armor_piercing = 17
		}
		
		critical_parts = { damaged_light_guns }
	}
	
	ship_heavy_ASM_battery_1 = {
		category = ship_heavy_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_heavy_ASM_battery_1
		
		add_stats = {
			lg_attack = 30
			hg_attack = 24
			build_cost_ic = 2250	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.15
		}
		
		add_average_stats = {
			lg_armor_piercing = 15
			hg_armor_piercing = 50
		}
		
		critical_parts = { damaged_heavy_guns }
	}
	ship_heavy_ASM_battery_2 = {
		category = ship_heavy_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_heavy_ASM_battery_2
		
		add_stats = {
			lg_attack = 32
			hg_attack = 30
			build_cost_ic = 2250	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.18
		}
		
		add_average_stats = {
			lg_armor_piercing = 15
			hg_armor_piercing = 50
		}
		
		critical_parts = { damaged_heavy_guns }
	}
	ship_heavy_ASM_battery_3 = {
		category = ship_heavy_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_heavy_ASM_battery_3
		
		add_stats = {
			lg_attack = 34
			hg_attack = 35
			build_cost_ic = 2250	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.21
		}
		
		add_average_stats = {
			lg_armor_piercing = 15
			hg_armor_piercing = 50
		}
		
		critical_parts = { damaged_heavy_guns }
	}
	ship_heavy_ASM_battery_4 = {
		category = ship_heavy_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_heavy_ASM_battery_4
		
		add_stats = {
			lg_attack = 37
			hg_attack = 40
			build_cost_ic = 2250	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.24
		}
		
		add_average_stats = {
			lg_armor_piercing = 15
			hg_armor_piercing = 50
		}
		
		critical_parts = { damaged_heavy_guns }
	}
	ship_heavy_ASM_battery_5 = {
		category = ship_heavy_ASM_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_heavy_ASM_battery_5
		
		add_stats = {
			lg_attack = 39
			hg_attack = 50
			build_cost_ic = 2250	
		}
				
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.27
		}
		
		add_average_stats = {
			lg_armor_piercing = 15
			hg_armor_piercing = 50
		}
		
		critical_parts = { damaged_heavy_guns }
	}
	
	ship_dp_missile_battery_1 = {
		category = ship_dp_missile_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_dp_missile_battery_1
		
		add_stats = {
			lg_attack = 9
			hg_attack = 12
			build_cost_ic = 1000	
			anti_air_attack = 12
		}
		
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.1
		}
		
		add_average_stats = {
			lg_armor_piercing = 5.5
			hg_armor_piercing = 8.5
		}
		
		critical_parts = { damaged_secondaries }
	}
	
	ship_sam_missile_battery_1 = {
		category = ship_sam_missile_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_sam_missile_battery_1
							
		add_stats = {
			anti_air_attack = 20
			build_cost_ic = 500
		}		
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.12
		}
		
	}
	
	ship_sam_missile_battery_2 = {
		category = ship_sam_missile_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_sam_missile_battery_2
		
		add_stats = {
			anti_air_attack = 30
			build_cost_ic = 500
		}		
		build_cost_resources = {
			steel = 2
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = -0.12
		}
		
	}
	ship_sam_missile_battery_3 = {
		category = ship_sam_missile_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_sam_missile_battery_3
		
		add_stats = {
			anti_air_attack = 40
			build_cost_ic = 500
		}		
		build_cost_resources = {
			steel = 4
			tungsten = 2
			chromium = 2
		}
		
		multiply_stats = {
			naval_speed = -0.12
		}
		
	}
	ship_sam_missile_battery_4 = {
		category = ship_sam_missile_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_sam_missile_battery_4
		
		add_stats = {
			anti_air_attack = 50
			build_cost_ic = 500
		}		
		build_cost_resources = {
			steel = 4
			tungsten = 2
			chromium = 3
		}
		
		multiply_stats = {
			naval_speed = -0.12
		}
		
	}
	ship_sam_missile_battery_5 = {
		category = ship_sam_missile_battery
		sfx = sfx_ui_sd_module_turret
		gfx = ship_sam_missile_battery_5
		
		add_stats = {
			anti_air_attack = 60
			build_cost_ic = 500
		}		
		build_cost_resources = {
			steel = 4
			tungsten = 3
			chromium = 4
		}
		
		multiply_stats = {
			naval_speed = -0.12
		}
		
	}
	ship_depth_charge_5 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			sub_attack = 28
			build_cost_ic = 230
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 180
		}

		multiply_stats = {
			naval_speed = -0.1
		}
	}
	
	ship_depth_charge_6 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			sub_attack = 30
			build_cost_ic = 240
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 180
		}

		multiply_stats = {
			naval_speed = -0.1
		}
	}

	ship_depth_charge_7 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			sub_attack = 34
			build_cost_ic = 270
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 210
		}

		multiply_stats = {
			naval_speed = -0.10
		}
	}
	ship_depth_charge_8 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			sub_attack = 36
			build_cost_ic = 300
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 210
		}

		multiply_stats = {
			naval_speed = -0.11
		}
	}
	ship_depth_charge_9 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			sub_attack = 40
			build_cost_ic = 330
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 210
		}

		multiply_stats = {
			naval_speed = -0.12
		}
	}
	ship_depth_charge_10 = {
		category = ship_depth_charge
		sfx = sfx_ui_sd_module_turret

		
		add_stats = {
			sub_attack = 45
			build_cost_ic = 360
		}

		can_convert_from = {
			module_category = ship_depth_charge
			convert_cost_ic = 210
		}

		multiply_stats = {
			naval_speed = -0.13
		}
	}
	#TORPEDOES
	

	ship_torpedo_5 = {
		category = ship_torpedo
		parent = ship_torpedo_4
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 50
			sub_attack = 10
			build_cost_ic = 210
		}
		multiply_stats = {
			naval_speed = -0.01		
		}
		build_cost_resources = {
			steel = 0
		}
		 
		dismantle_cost_ic = 60
		dismantle_cost_resources = {
			steel = 0
		}

		can_convert_from = {
			module_category = ship_torpedo
			convert_cost_ic = 60
			convert_cost_resources = {
				steel = 0
			}
		}
		critical_parts = { damaged_torpedoes }
	}

	ship_torpedo_6 = {
		category = ship_torpedo
		parent = ship_torpedo_5
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 59
			sub_attack = 15
			build_cost_ic = 240
		}
		multiply_stats = {
			naval_speed = -0.01			
		}
		dismantle_cost_ic = 60

		can_convert_from = {
			module_category = ship_torpedo
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}

	ship_torpedo_7 = {
		category = ship_torpedo
		parent = ship_torpedo_6
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 68
			sub_attack = 18
			build_cost_ic = 270
		}
		multiply_stats = {
			naval_speed = -0.01			
		}
		dismantle_cost_ic = 60

		can_convert_from = {
			module_category = ship_torpedo
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}
	
	
	ship_torpedo_sub_5 = {
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_4
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 37
			sub_attack = 10
			build_cost_ic = 160
		}
		multiply_stats = {
			naval_speed = -0.05
		}
		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}
	
	
	ship_torpedo_sub_6 = {
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_5
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 44
			sub_attack = 15
			build_cost_ic = 180
		}
		multiply_stats = {
			naval_speed = -0.07
		}
		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}
	ship_torpedo_sub_7 = {
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_6
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 50
			sub_attack = 20
			build_cost_ic = 180
		}
		multiply_stats = {
			naval_speed = -0.1
		}
		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}
	ship_torpedo_sub_8 = {
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_7
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 60
			sub_attack = 25
			build_cost_ic = 180
		}
		multiply_stats = {
			naval_speed = -0.12
		}
		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}
	ship_torpedo_sub_9 = {
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_8
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 65
			sub_attack = 30
			build_cost_ic = 180
		}
		multiply_stats = {
			naval_speed = -0.15
		}
		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}
	ship_torpedo_sub_10 = {
		category = ship_torpedo_sub
		parent = ship_torpedo_sub_9
		
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			torpedo_attack = 70
			sub_attack = 35
			build_cost_ic = 180
		}
		multiply_stats = {
			naval_speed = -0.17
		}
		can_convert_from = {
			module_category = ship_torpedo_sub
			convert_cost_ic = 60
		}
		critical_parts = { damaged_torpedoes }
	}
	# SUB ENGINE
	
	

	sub_ship_engine_5 = {
		category = sub_ship_engine
		parent = sub_ship_engine_4
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 210
		}
		
		multiply_stats = {
			naval_speed = 0.24
			reliability = -0.2
			sub_visibility = -0.17
		}
		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = sub_ship_engine_2
			convert_cost_ic = 230
		}
	}
	sub_ship_engine_6 = {
		category = sub_ship_engine
		parent = sub_ship_engine_5
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 240
		}
		
		multiply_stats = {
			naval_speed = 0.27
			reliability = -0.2
			sub_visibility = -0.2
		}
		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = sub_ship_engine_3
			convert_cost_ic = 230
		}
	}
	sub_ship_engine_7 = {
		category = sub_ship_engine
		parent = sub_ship_engine_6
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 240
		}
		
		multiply_stats = {
			naval_speed = 0.30
			reliability = -0.2
			sub_visibility = -0.23
		}
		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = sub_ship_engine_3
			convert_cost_ic = 230
		}
	}
	sub_ship_engine_8 = {
		category = sub_ship_engine
		parent = sub_ship_engine_7
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 240
		}
		
		multiply_stats = {
			naval_speed = 0.32
			reliability = -0.2
			sub_visibility = -0.25
		}
		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = sub_ship_engine_3
			convert_cost_ic = 230
		}
	}
	sub_ship_engine_9 = {
		category = sub_ship_engine
		parent = sub_ship_engine_8
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 240
		}
		
		multiply_stats = {
			naval_speed = 0.35
			reliability = -0.2
			sub_visibility = -0.27
		}
		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = sub_ship_engine_3
			convert_cost_ic = 230
		}
	}
	sub_ship_engine_10 = {
		category = sub_ship_engine
		parent = sub_ship_engine_9
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			naval_speed = 5
			fuel_consumption = 10
			build_cost_ic = 240
		}
		
		multiply_stats = {
			naval_speed = 0.38
			reliability = -0.2
			sub_visibility = -0.3
		}
		
		can_convert_from = {
			module_category = sub_ship_engine
			convert_cost_ic = 250
		}
		
		can_convert_from = {
			module = sub_ship_engine_3
			convert_cost_ic = 230
		}
	}
	cruiser_nuclear_reactor_module = {
		category = cruiser_nuclear_reactor
		sfx = sfx_ui_sd_module_engine
		gfx = cruiser_nuclear_reactor_module
		
		
		add_stats = {
			naval_speed = 6
			fuel_consumption = -20
			build_cost_ic = 750
			naval_range = 50000
		}
		
		build_cost_resources = {
			tungsten = 2
			chromium = 2
		}
		
		multiply_stats = {
			naval_speed = 0.5
			reliability = -0.2
		}
	}
	
	cruiser_nuclear_reactor_module2 = {
		category = cruiser_nuclear_reactor
		sfx = sfx_ui_sd_module_engine
		gfx = cruiser_nuclear_reactor_module
		
		
		add_stats = {
			naval_speed = 6
			fuel_consumption = -20
			build_cost_ic = 750
			naval_range = 50000
		}
		
		build_cost_resources = {
			tungsten = 2
			chromium = 2
		}
		
		multiply_stats = {
			naval_speed = 0.9
			reliability = -0.1
		}
	}
	
	heavy_ship_nuclear_engine_1 = {		#1 is before blank because it comes from paradox
		abbreviation = "sbn"
		category = heavy_ship_nuclear_engine
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			#naval_speed = 5
			#fuel_consumption = 10
			#build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_range = 1
			naval_speed = 0.6
			build_cost_ic = 0.25
			fuel_consumption = -1
		}
		
		can_convert_from = {
			
		}
		
		can_convert_from = {
			
		}
	}
	
	heavy_nuclear_reactor_module = {
		category = heavy_nuclear_reactor
		sfx = sfx_ui_sd_module_engine
		gfx = cruiser_nuclear_reactor_module
				
		add_stats = {
			naval_speed = 6
			fuel_consumption = -67
			build_cost_ic = 1000
			naval_range = 50000
		}
		
		build_cost_resources = {
			tungsten = 3
			chromium = 3
		}
		
		multiply_stats = {
			naval_speed = 0.80
			reliability = -0.1
		}
	}
	heavy_nuclear_reactor_module2 = {
		category = heavy_nuclear_reactor
		sfx = sfx_ui_sd_module_engine
		gfx = cruiser_nuclear_reactor_module
				
		add_stats = {
			naval_speed = 6
			fuel_consumption = -67
			build_cost_ic = 1000
			naval_range = 50000
		}
		
		build_cost_resources = {
			tungsten = 4
			chromium = 4
		}
		
		multiply_stats = {
			naval_speed = 0.90
			reliability = -0.05
		}
	}
	
	carrier_ship_nuclear_engine_1 = {		#1 comes before blank because it comes from paradox
		abbreviation = "sbn"
		category = carrier_ship_nuclear_engine
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			#naval_speed = 5
			#fuel_consumption = 10
			#build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_range = 1
			naval_speed = 0.6
			build_cost_ic = 0.25
			fuel_consumption = -1
		}
		
		can_convert_from = {
			
		}
		
		can_convert_from = {
			
		}
	}
	
	carrier_nuclear_reactor_module = {
		category = carrier_nuclear_reactor
		sfx = sfx_ui_sd_module_engine
		gfx = cruiser_nuclear_reactor_module
				
		add_stats = {
			naval_speed = 6
			fuel_consumption = -87
			build_cost_ic = 1000
			naval_range = 50000
		}
		
		build_cost_resources = {
			tungsten = 3
			chromium = 3
		}
		
		multiply_stats = {
			naval_speed = 0.8
			reliability = -0.2
		}
	}
	carrier_nuclear_reactor_module2 = {
		category = carrier_nuclear_reactor
		sfx = sfx_ui_sd_module_engine
		gfx = cruiser_nuclear_reactor_module
				
		add_stats = {
			naval_speed = 6
			fuel_consumption = -87
			build_cost_ic = 1000
			naval_range = 50000
		}
		
		build_cost_resources = {
			tungsten = 3
			chromium = 3
		}
		
		multiply_stats = {
			naval_speed = 0.9
			reliability = -0.1
		}
	}
	
	sub_ship_nuclear_engine_1 = {		#1 comes before blank because its from paradox
		abbreviation = "sbn"
		category = sub_ship_nuclear_engine
		sfx = sfx_ui_sd_module_engine

		
		add_stats = {
			#naval_speed = 5
			#fuel_consumption = 10
			#build_cost_ic = 170
		}
		
		multiply_stats = {
			naval_speed = 0.1
			build_cost_ic = 0.25
			fuel_consumption = -1
		}
		
		can_convert_from = {
			
		}
		
		can_convert_from = {
			
		}
	}
	
	sub_nuclear_reactor_module = {
		category = sub_nuclear_reactor
		sfx = sfx_ui_sd_module_engine
		gfx = cruiser_nuclear_reactor_module
				
		add_stats = {
			naval_speed = 6
			fuel_consumption = -1
			build_cost_ic = 500
			naval_range = 50000
			sub_visibility = -0.25
		}
		
		build_cost_resources = {
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = 0.3
			reliability = -0.2
		}
	}
	sub_nuclear_reactor_module2 = {
		category = sub_nuclear_reactor
		sfx = sfx_ui_sd_module_engine
		gfx = cruiser_nuclear_reactor_module
				
		add_stats = {
			naval_speed = 6
			fuel_consumption = -1
			build_cost_ic = 500
			naval_range = 50000
			sub_visibility = -0.25
		}
		
		build_cost_resources = {
			tungsten = 1
			chromium = 1
		}
		
		multiply_stats = {
			naval_speed = 0.4
			reliability = -0.1
		}
	}
	ship_fire_control_system_4 = {
        	category = ship_fire_control_system
       		sfx = sfx_ui_sd_module_sonar

        
        	add_stats = {
            		build_cost_ic = 200
        	}
        
        	multiply_stats = {
            		lg_attack = 0.25
            		hg_attack = 0.25
            		anti_air_attack = 0.25
            		#reliability = -0.15
       	 	}
        	can_convert_from = {
            		module = ship_fire_control_system_3
            		convert_cost_ic = 75
        	}
        	can_convert_from = {
            		module_category = ship_fire_control_system
            		convert_cost_ic = 100
        	}
    	}
    	ship_fire_control_system_5 = {
        	category = ship_fire_control_system
        	sfx = sfx_ui_sd_module_sonar

        
        	add_stats = {
            		build_cost_ic = 220
        	}
        
        	multiply_stats = {
            		lg_attack = 0.3
            		hg_attack = 0.3
            		anti_air_attack = 0.3
            		#reliability = -0.1
        	}
        	can_convert_from = {
            		module = ship_fire_control_system_4
            		convert_cost_ic = 75
        	}
        	can_convert_from = {
            		module_category = ship_fire_control_system
            		convert_cost_ic = 100
        	}
    	}
    	ship_fire_control_system_6 = {
        	category = ship_fire_control_system
        	sfx = sfx_ui_sd_module_sonar

        
        	add_stats = {
            		build_cost_ic = 240
        	}
        
        	multiply_stats = {
            		lg_attack = 0.35
            		hg_attack = 0.35
            		anti_air_attack = 0.35
            		#reliability = 0.0
        	}
        	can_convert_from = {
            		module = ship_fire_control_system_5
            		convert_cost_ic = 75
        	}
        	can_convert_from = {
            		module_category = ship_fire_control_system
            		convert_cost_ic = 100
        	}
	}
}