equipment_modules = {
	limit = {
		has_dlc = "No Step Back" 
	}
	limit = {
		has_dlc = "Man the Guns" 
	}
	limit = {
		has_dlc = "By Blood Alone"
	}	
	
	
	
	# 以下为修改部件

	# 现代炮塔

	tank_modern_tank_turret = {
		abbreviation = "mbt"
		category = tank_modern_turret_type
		sfx = sfx_ui_sd_module_turret

		allowed_module_categories = {
			main_armament_slot = {
				tank_medium_main_armament
				tank_heavy_main_armament
			}
		}
		add_stats = {
			build_cost_ic = 8
			breakthrough = 20
			defense = 5
			reliability = 0.15
		}
		multiply_stats = {
			soft_attack = 0.1
			hard_attack = 0.1
			ap_attack = 0.1
		}
		dismantle_cost_ic = 1
		xp_cost = 2

	}


	# 制导反舰导弹

	guided_anti_ship_missile = {
		abbreviation = "asm"
		category = nav_bomber_weapon
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = { naval_bomber maritime_patrol_plane }

		add_stats = {	
			build_cost_ic = 15
		}
		xp_cost = 5
		allow_mission_type = {
			naval_bomber
			port_strike
			naval_patrol
		}
		mission_type_stats = {
			limit = {
				naval_bomber
				port_strike
			}
			add_stats = {
				air_agility = -15
				weight = 15
				naval_strike_attack = 40
			}
			add_average_stats = {
				naval_strike_targetting = 25
			}
		}
	}





	# 以下为添加部件

 	## 空空导弹（飞机|战斗机）AAM
 	# air_to_air_missile

	air_to_air_missile = {
		abbreviation = "aam"
		category = fighter_weapon
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = { fighter heavy_fighter }

		add_stats = {
			build_cost_ic = 8
			air_agility = -1
			weight = 6
			air_attack = 40
		}
		xp_cost = 5
		allow_mission_type = {
			air_superiority
			interception
		}


	}


 	## 制导炸弹（飞机|CAS）GB
 	# guided_bomb

	guided_bomb = {
		abbreviation = "gb"
		category = cas_weapon
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = { cas }

		add_stats = {
			build_cost_ic = 6
		}

		xp_cost = 5

		allow_mission_type = {
			cas
            attack_logistics
            naval_bomber
		}
		mission_type_stats = {
			limit = {
				cas
          		attack_logistics
			}
			add_stats = {
				air_agility = -15
				weight = 5
				air_ground_attack = 25
			}

		}
		mission_type_stats = {
			limit = {
				naval_bomber
			}
			add_stats = {
				air_agility = -15
				naval_strike_attack = 10
			}
			add_average_stats = {
				naval_strike_targetting = 6
			}
		}


	}	















 	## 防空导弹（舰船）ADM
 	# air_defense_missile

	air_defense_missile = {
		abbreviation = "adm"
		category = ship_anti_air

		sfx = sfx_ui_sd_module_turret

		add_equipment_type = anti_air

		add_stats = {
			anti_air_attack = 10
			build_cost_ic = 200
		}
		
		multiply_stats = {
			naval_speed = -0.005
		}

	}



	### 基础型舰对舰导弹 BSSM
 	# Basic_ship_to_ship_missile

	Basic_ship_to_ship_missile = {
		abbreviation = "bssm"
		category = dp_light_battery
		gui_category = ship_light_battery
		sfx = sfx_ui_sd_module_turret
	
		add_stats = {
			lg_attack = 3.5
			anti_air_attack = 4.5
			build_cost_ic = 200
		}
		multiply_stats = {
			naval_speed = -0.03
		}

		add_average_stats = {
			lg_armor_piercing = 2.5
		}

		critical_parts = { damaged_light_guns }
	}




 	### 改进型舰对舰导弹 ISSM
 	# Improved_ship_to_ship_missile

	Improved_ship_to_ship_missile = {
		abbreviation = "issm"
		category = ship_dp_secondaries
		gui_category = ship_secondaries
		sfx = sfx_ui_sd_module_turret
		add_stats = {
			lg_attack = 6
			anti_air_attack = 5
			build_cost_ic = 400
		}

		multiply_stats = {
			naval_speed = -0.02
		}
		
		add_average_stats = {
			lg_armor_piercing = 9
		}

		critical_parts = { damaged_secondaries }
	}




 	### 先进型舰对舰导弹 ASSM
 	# Advanced_ship_to_ship_missile

	Advanced_ship_to_ship_missile = {
		abbreviation = "assm"
		category = ship_light_medium_battery
		gui_category = ship_medium_battery
		sfx = sfx_ui_sd_module_turret
		add_stats = {
			lg_attack = 10
			anti_air_attack = 5.5
			build_cost_ic = 500
		}

		multiply_stats = {
			naval_speed = -0.05
		}
		
		add_average_stats = {
			lg_armor_piercing = 9
			max_strength = 10
		}

		forbid_module_categories = {
		    ship_medium_battery
		}

		critical_parts = { damaged_secondaries }
	}


	### 小型高爆舰对舰导弹 SHESSM
 	# Small_high_explosive_ship_to_ship_missile

	Small_high_explosive_ship_to_ship_missile = {
		abbreviation = "shessm"
		category = ship_light_medium_battery
		gui_category = ship_medium_battery
		sfx = sfx_ui_sd_module_turret
		add_stats = {
			
			lg_attack = 13
			
			build_cost_ic = 450
		}
		multiply_stats = {
			naval_speed = -0.05
		}
		add_average_stats = {
			lg_armor_piercing = 10
			max_strength = 10
		}

		forbid_module_categories = {
		    ship_medium_battery
		}

		critical_parts = { damaged_light_guns }
	}


	### 小型穿甲舰对舰导弹 SAPSSM
 	# Small_armour_piercing_ship_to_ship_missile

	Small_armour_piercing_ship_to_ship_missile = {
		abbreviation = "sapssm"
		category = ship_medium_battery
		add_equipment_type = capital_ship
		sfx = sfx_ui_sd_module_turret

		add_stats = {
			hg_attack = 15
			build_cost_ic = 900
		}
		build_cost_resources = {
			tungsten = 1
		}		
		multiply_stats = {
			naval_speed = -0.05
			max_strength = 0.3
		}
		add_average_stats = {
			hg_armor_piercing = 40
		}

		forbid_module_categories = {
		    ship_light_medium_battery
		    dp_light_battery
		    ship_light_battery 
		}

		critical_parts = { damaged_heavy_guns }
	}



 	### 大型高爆舰对舰导弹 LHESSM
 	# Large_high_explosive_ship_to_ship_missile

	Large_high_explosive_ship_to_ship_missile = {
		abbreviation = "lhessm"
		category = ship_heavy_battery
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = capital_ship
		
		add_stats = {
			
			lg_attack = 26
			build_cost_ic = 1900
			
		}
		multiply_stats = {
			naval_speed = -0.06
		}
		add_average_stats = {
			lg_armor_piercing = 20
		}

		critical_parts = { damaged_heavy_guns }
	}




 	### 大型穿甲舰对舰导弹 LAPSSM
 	# Large_armour_piercing_ship_to_ship_missile

	Large_armour_piercing_ship_to_ship_missile = {
		abbreviation = "lapssm"
		category = ship_heavy_battery
		sfx = sfx_ui_sd_module_turret
		add_equipment_type = capital_ship
		
		add_stats = {
			hg_attack = 30
			build_cost_ic = 2000
		}
		build_cost_resources = {
			tungsten = 2
		}
		multiply_stats = {
			naval_speed = -0.06
		}
		add_average_stats = {
			hg_armor_piercing = 50
		}

		critical_parts = { damaged_heavy_guns }
	}





}







