utility_component_template = {
	key = "AFTERBURNER_MSY_1"
	size = aux
	icon = "GFX_ship_part_afterburner_1"
	icon_frame = 1
	power = -45
	resources = {
		category = ship_components
		cost = {
			alloys = 25
		}
	}
	modifier = {
		ship_speed_mult = 0.05
	}
	class_restriction = { shipclass_starbase }
	size_restriction = { wsg_mobile_shipyard }
	prerequisites = { "tech_afterburners_1" }
	component_set = "AFTERBURNER_MSY_1"
	upgrades_to = "AFTERBURNER_MSY_2"
	
	ai_weight = {
		weight = 10
		modifier = {
			factor = 2.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.5
			is_preferred_weapons = weapon_type_explosive
		}		
	}
}

utility_component_template = {
	key = "AFTERBURNER_MSY_2"
	size = aux
	icon = "GFX_ship_part_afterburner_2"
	icon_frame = 1
	power = -60
	resources = {
		category = ship_components
		cost = {
			alloys = 40
		}
	}
	modifier = {
		ship_speed_mult = 0.1
	}
	class_restriction = { shipclass_starbase }
	size_restriction = { wsg_mobile_shipyard }
	prerequisites = { "tech_afterburners_2" }
	component_set = "AFTERBURNER_2"
	
	ai_weight = {
		weight = 15
		modifier = {
			factor = 2.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.5
			is_preferred_weapons = weapon_type_explosive
		}	
	}
}


#反应堆
utility_component_template = {
	key = "MSY_FISSION_REACTOR"
	size = small
	icon = "GFX_ship_part_reactor_1"
	icon_frame = 1
	power = 300
	resources = {
		category = ship_components
		cost = {
			alloys = 25
		}	
		upkeep = {
			energy = 0.10
			alloys = 0.01
		}
	}
	
	prerequisites = { "tech_fission_power" }
	component_set = "power_core"
	size_restriction = { wsg_mobile_shipyard }
	upgrades_to = "MSY_FUSION_REACTOR"
	
	ai_weight = {
		weight = 1
	}
}

utility_component_template = {
	key = "MSY_FUSION_REACTOR"
	size = small
	icon = "GFX_ship_part_reactor_2"
	icon_frame = 1
	power = 400
	resources = {
		category = ship_components
		cost = {
			alloys = 50
		}	
		upkeep = {
			energy = 0.15
			alloys = 0.015
		}
	}
	
	prerequisites = { "tech_fusion_power" }
	component_set = "power_core"
	size_restriction = { wsg_mobile_shipyard }
	upgrades_to = "MSY_COLD_FUSION_REACTOR"
	
	ai_weight = {
		weight = 2
	}
}

utility_component_template = {
	key = "MSY_COLD_FUSION_REACTOR"
	size = small
	icon = "GFX_ship_part_reactor_3"
	icon_frame = 1
	power = 500
	resources = {
		category = ship_components
		cost = {
			alloys = 80
		}	
		upkeep = {
			energy = 0.2
			alloys = 0.02
		}
	}
	
	prerequisites = { "tech_cold_fusion_power" }
	component_set = "power_core"
	size_restriction = { wsg_mobile_shipyard }
	upgrades_to = "MSY_ANTIMATTER_REACTOR"
	
	ai_weight = {
		weight = 3
	}
}

utility_component_template = {
	key = "MSY_ANTIMATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_reactor_4"
	icon_frame = 1
	power = 600
	resources = {
		category = ship_components
		cost = {
			alloys = 100
		}	
		upkeep = {
			energy = 0.25
			alloys = 0.025
		}
	}
	
	prerequisites = { "tech_antimatter_power" }
	component_set = "power_core"
	size_restriction = { wsg_mobile_shipyard }
	upgrades_to = "MSY_ZERO_POINT_REACTOR"
	
	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "MSY_ZERO_POINT_REACTOR"
	size = small
	icon = "GFX_ship_part_reactor_5"
	icon_frame = 1
	power = 700
	resources = {
		category = ship_components
		cost = {
			alloys = 150
		}
		upkeep = {
			energy = 0.30
			alloys = 0.030
		}
	}
	
	prerequisites = { "tech_zero_point_power" }
	component_set = "power_core"
	size_restriction = { wsg_mobile_shipyard }
	upgrades_to = "MSY_DARK_MATTER_REACTOR"
	
	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "MSY_DARK_MATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_dark_matter_power_core"
	icon_frame = 1
	power = 1000
	resources = {
		category = ship_components
		cost = {
			alloys = 200
			sr_dark_matter = 5
		}
		upkeep = {
			energy = 0.35
			alloys = 0.035
		}
	}
	
	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	size_restriction = { wsg_mobile_shipyard }
	
	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "MSY_ALPHA_REACTOR"
	size = small
	icon = "GFX_ship_part_wsg_alpha_REACTOR"
	icon_frame = 1
	power = 1500
	resources = {
		category = ship_components
		cost = {
			sr_alpha = 1
			alloys = 10
		}
		upkeep = {
			energy = 0.5
			alloys = 0.05
		}
	}
	
	prerequisites = { "tech_wsg_alpha_power" }
	component_set = "power_core"
	size_restriction = { wsg_mobile_shipyard }
	
	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "MSY_SRSE_REACTOR"
	size = small
	icon = "GFX_ship_part_sh_senergy_REACTOR"
	icon_frame = 1
	power = 1500
	resources = {
		category = ship_components
		cost = {
			sr_se = 1.5
			alloys = 15
		}
		upkeep = {
			energy = 0.5
			alloys = 0.05
		}
	}
	
	prerequisites = { "tech_sh_senergy_reactor" }
	component_set = "power_core"
	size_restriction = { wsg_mobile_shipyard }
	
	ai_weight = {
		weight = 6
	}
}
#推进器


utility_component_template = {
	key = "MSY_THRUSTER_1"
	size = small
	icon = "GFX_ship_part_thruster_1"
	icon_frame = 1
	power = -25
	resources = {
		category = ship_components
		cost = {
			alloys = 30
		}
	}
	
	modifier = {
	}
		
	prerequisites = { "tech_thrusters_1" }
	component_set = "thruster_components"
	size_restriction = { wsg_mobile_shipyard }
	upgrades_to = "MSY_THRUSTER_2"
	
	ai_weight = {
		weight = 1
	}
}

utility_component_template = {
	key = "MSY_THRUSTER_2"
	size = small
	icon = "GFX_ship_part_thruster_2"
	icon_frame = 1
	power = -50
	resources = {
		category = ship_components
		cost = {
			alloys = 45
		}
	}
	modifier = {
		ship_speed_mult = 0.20
	}

	prerequisites = { "tech_thrusters_2" }
	component_set = "thruster_components"
	size_restriction = { wsg_mobile_shipyard }
	upgrades_to = "MSY_THRUSTER_3"
	
	ai_weight = {
		weight = 2
	}
}

utility_component_template = {
	key = "MSY_THRUSTER_3"
	size = small
	icon = "GFX_ship_part_thruster_3"
	icon_frame = 1
	power = -100
	resources = {
		category = ship_components
		cost = {
			alloys = 75
		}
	}
	modifier = {
		ship_speed_mult = 0.40
	}

	prerequisites = { "tech_thrusters_3" }
	component_set = "thruster_components"
	size_restriction = { wsg_mobile_shipyard }
	upgrades_to = "MSY_THRUSTER_4"
	
	ai_weight = {
		weight = 3
	}
}

utility_component_template = {
	key = "MSY_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_thruster_4"
	icon_frame = 1
	power = -150
	resources = {
		category = ship_components
		cost = {
			alloys = 120
		}
	}
	modifier = {
		ship_speed_mult = 0.80
	}


	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	size_restriction = { wsg_mobile_shipyard }
	upgrades_to = "MSY_THRUSTER_5"
	
	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "MSY_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_thruster_5"
	icon_frame = 1
	power = -250
	resources = {
		category = ship_components
		cost = {
			alloys = 200
		}
	}
	modifier = {
		ship_speed_mult = 1.20
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	size_restriction = { wsg_mobile_shipyard }
	
	ai_weight = {
		weight = 4
	}
}	
utility_component_template = {
	key = "MSY_SHIP_THRUSTER_WSG"
	size = small
	icon = "GFX_ship_part_thruster_wsg"
	icon_frame = 1
	power = -450
	resources = {
		category = ship_components
		cost = {
			sr_alpha = 5
			alloys = 50
			sr_dark_matter = 3
		}
	}
	modifier = {
		ship_base_speed_mult = 1.5
	}

	prerequisites = { "tech_wsg_alpha_propulsion" }
	component_set = "thruster_components"
	size_restriction = { wsg_mobile_shipyard }
	
	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			has_monthly_income = { resource = sr_dark_matter value <= 0 }
		}
	}
}

utility_component_template = {
	key = "MSY_SHIP_THRUSTER_SH"
	size = small
	icon = "GFX_ship_part_thruster_sh"
	icon_frame = 1
	power = -450
	resources = {
		category = ship_components
		cost = {
			alloys = 80
			sr_se = 10
		}
	}
	modifier = {
		ship_base_speed_mult = 1.5
	}
	prerequisites = {
		"tech_sh_propulsion"
	}
	component_set = "thruster_components"
	size_restriction = {
		wsg_mobile_shipyard
	}
	ai_weight = {
		weight = 5
		modifier = {
			factor = 0
			has_monthly_income = {
				resource = sr_se
				value <= 0
			}
		}
	}
}
#电脑
utility_component_template = {
	key = "COMBAT_COMPUTER_MSY"
	size = small
	icon = "GFX_ship_part_computer_default"
	icon_frame = 1
	power = -10
	resources = {
		category = ship_components
		cost = {
			alloys = 25
		}
	}
	ship_behavior = "colossus"

	class_restriction = { shipclass_starbase }
	size_restriction = { wsg_mobile_shipyard }
	component_set = "combat_computers"

	ai_weight = {
		weight = 0
	}
}

utility_component_template = {
	key = "SHIP_AURA_MSY_REPAIR"
	size = medium
	icon = "GFX_ship_part_aura_msy_repair"
	icon_frame = 1
	power = 0

	size_restriction = { wsg_mobile_shipyard }
	component_set = "ship_aura_components"
	friendly_aura = {
		name = "aura_inspiring_presence"
		system_wide = yes
		radius = 250
		apply_on = ships
		stack_info = {
			id = friendly_msy_aura
			priority = 20
		}
		modifier = {
			ship_armor_regen_add_perc = 1
			ship_hull_regen_add_perc = 1
		}
		graphics = {
			area_effect = {
				entity = "circle_area_entity"
				dynamic_scale = yes
			}
			ship_effect = {
				entity = "ship_aura_positive_entity"
				dynamic_scale = no
			}
		}
	}
	ai_weight = {
		weight = 10
	}
}
