#########################################Sensors
utility_component_template = {
	key = "SENSOR_IC"
	size = medium
	icon = "GFX_ship_part_sensor_ic"
	icon_frame = 1
	power = -10
	resources = {
		category = ship_components
		cost = {
			alloys = 5
		}
	}
	sensor_range = 5
	hyperlane_range = 6

	ship_modifier = {
		ship_tracking_add = 18
	}

	prerequisites = { "tech_sensors_ic" }
	component_set = "sensor_components"
	upgrades_to = "LEA_SENSOR_TIER2"

	ai_weight = {
		weight = 1000
	}
}

#################Computers#################################
utility_component_template = {
	key = "COMBAT_COMPUTER_SWARM_IC"
	size = small
	icon = "GFX_ship_part_computer_swarm_ic"
	icon_frame = 1
	power = -50
	resources = {
		category = ship_components
		cost = {
			alloys = 10
		}
	}
	ship_behavior = "swarm"
	
	modifier = {
		ship_evasion_mult = 0.15
		ship_speed_mult = 0.25
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.20
	}

	class_restriction = { shipclass_military }
	size_restriction = { corvette crisis_corvette offspring_corvette nanite_swarmer lea_small_basic_ship}
	prerequisites = { "tech_tech_ultima" }
	component_set = "combat_computers"
	upgrades_to = "LEA_COMBAT_COMPUTER_SWARM_TIER2"

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "COMBAT_COMPUTER_PICKET_IC"
	size = small
	icon = "GFX_ship_part_computer_picket_ic"
	icon_frame = 1
	power = -50
	resources = {
		category = ship_components
		cost = {
			alloys = 10
		}
	}
	ship_behavior = "picket"
	
	modifier = {
		ship_evasion_mult = 0.05
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.20
		ship_tracking_add = 45
	}

	class_restriction = { shipclass_military }
	size_restriction = { corvette offspring_corvette cosmo_crisis_destroyer destroyer crisis_destroyer offspring_destroyer cruiser crisis_cruiser offspring_cruiser lea_small_basic_ship}
	component_set = "combat_computers"
	upgrades_to = "LEA_COMBAT_COMPUTER_PICKET_TIER2"
	prerequisites = { "tech_tech_ultima" }

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "COMBAT_COMPUTER_LINE_IC"
	size = small
	icon = "GFX_ship_part_computer_line_ic"
	icon_frame = 1
	power = -50
	resources = {
		category = ship_components
		cost = {
			alloys = 10
		}
	}
	ship_behavior = "line"
	
	modifier = {
		ship_evasion_mult = 0.05
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.25
		ship_accuracy_add = 10
		ship_tracking_add = 5
	}

	class_restriction = { shipclass_military }
	size_restriction = { destroyer crisis_destroyer cosmo_crisis_destroyer cosmo_crisis_battlecruiser offspring_destroyer cruiser battleship offspring_battleship crisis_cruiser offspring_cruiser lea_small_basic_ship lea_medium_basic_ship}
	component_set = "combat_computers"
	prerequisites = { "tech_tech_ultima" }
	upgrades_to = "LEA_COMBAT_COMPUTER_LINE_TIER2"

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "COMBAT_COMPUTER_TORPEDO_IC"
	size = small
	icon = "GFX_ship_part_computer_torpedo_ic"
	icon_frame = 1
	power = -50
	resources = {
		category = ship_components
		cost = {
			alloys = 10
		}
	}
	ship_behavior = "torpedo"
	
	modifier = {
		ship_evasion_mult = 0.05
		weapon_type_explosive_weapon_damage_mult = 0.15
	}
	
	ship_modifier = {
		ship_fire_rate_mult = 0.05
		ship_accuracy_add = 5
	}
	
	class_restriction = { shipclass_military }
	size_restriction = { frigate crisis_destroyer cruiser cosmo_crisis_destroyer offspring_cruiser lea_small_basic_ship lea_medium_basic_ship}
	component_set = "combat_computers"
	prerequisites = { "tech_tech_ultima" }
	upgrades_to = "LEA_COMBAT_COMPUTER_TORPEDO_TIER2"

	ai_tags = { explosive }
	ai_tag_weight = 0

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "COMBAT_COMPUTER_ARTILLERY_IC"
	size = small
	icon = "GFX_ship_part_computer_artillery_ic"
	icon_frame = 1
	power = -50
	resources = {
		category = ship_components
		cost = {
			alloys = 10
		}
	}
	ship_behavior = "artillery"
	
	modifier = {
		ship_evasion_mult = 0.02
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.25
		ship_weapon_range_mult = 0.15
		ship_tracking_add = 5
	}

	class_restriction = { shipclass_military shipclass_starbase shipclass_military_special }
	size_restriction = { frigate destroyer crisis_destroyer cosmo_crisis_destroyer cosmo_crisis_battlecruiser cosmo_crisis_titan offspring_destroyer cruiser battleship offspring_battleship crisis_cruiser offspring_cruiser titan juggernaut star_eater lea_small_basic_ship lea_medium_basic_ship lea_large_basic_ship}
	component_set = "combat_computers"
	upgrades_to = "LEA_COMBAT_COMPUTER_ARTILLERY_TIER2"
	prerequisites = { "tech_tech_ultima" }

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "COMBAT_COMPUTER_CARRIER_IC"
	size = small
	icon = "GFX_ship_part_computer_carrier_ic"
	icon_frame = 1
	power = -50
	resources = {
		category = ship_components
		cost = {
			alloys = 10
		}
	}
	class_restriction = { shipclass_military shipclass_starbase shipclass_military_special }
	size_restriction = { cruiser offspring_cruiser battleship cosmo_crisis_battlecruiser cosmo_crisis_titan offspring_battleship juggernaut titan star_eater lea_medium_basic_ship lea_large_basic_ship}
	component_set = "combat_computers"
	ship_behavior = "carrier"
	prerequisites = { "tech_tech_ultima" }
	upgrades_to = "LEA_COMBAT_COMPUTER_CARRIER_TIER2"

	modifier = {
		ship_evasion_mult = 0.10
	}
	ship_modifier = {
		ship_engagement_range_mult = 1.25
	}

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "COMBAT_COMPUTER_PLATFORM_IC"
	size = small
	icon = "GFX_ship_part_computer_platform_ic"
	icon_frame = 1
	power = -50
	resources = {
		category = ship_components
		cost = {
			alloys = 10
		}
	}
	
	class_restriction = { shipclass_military_station }
	component_set = "combat_computers"
	ship_behavior = "platform"
	prerequisites = { "tech_tech_ultima" }
	upgrades_to = "LEA_COMBAT_COMPUTER_PLATFORM_TIER2"

	ship_modifier = {
		ship_fire_rate_mult = 0.40
		ship_tracking_add = 15
		ship_hull_mult = 0.5
	}

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "STARBASE_COMBAT_COMPUTER_IC"
	size = small
	icon = "GFX_ship_part_computer_starbase_ic"
	icon_frame = 1
	power = 0
	class_restriction = { shipclass_starbase }
	size_restriction = {
		starbase_outpost
		starbase_starport
		starbase_starhold
		starbase_starfortress
		starbase_citadel
		starbase_deep_space_citadel_1
		starbase_deep_space_citadel_2
		starbase_deep_space_citadel_3
		
	}
	component_set = "combat_computers"
	ship_behavior = "platform"
	prerequisites = { "tech_tech_ultima" }
	upgrades_to = "LEA_STARBASE_COMBAT_COMPUTER_TIER2"

	ship_modifier = {
		ship_fire_rate_mult = 0.40
		ship_tracking_add = 15
		ship_hull_mult = 0.5
	}

	ai_weight = {
		weight = 10
	}
}


################TIER2
#####################
#####################

###SENSORS
#########################################Sensors
utility_component_template = {
	key = "LEA_SENSOR_TIER2"
	size = medium
	icon = "GFX_ship_part_sensor_ic2"
	icon_frame = 1
	power = -15
	resources = {
		category = ship_components
		cost = {
			alloys = 7
		}
	}
	sensor_range = 5
	hyperlane_range = 7

	ship_modifier = {
		ship_tracking_add = 22
	}

	prerequisites = { "tech_sensors_ic2" }
	component_set = "sensor_components"

	ai_weight = {
		weight = 1000
	}
}


#################Computers#################################
utility_component_template = {
	key = "LEA_COMBAT_COMPUTER_SWARM_TIER2"
	size = small
	icon = "GFX_ship_part_computer_swarm_ic2"
	icon_frame = 1
	power = -60
	resources = {
		category = ship_components
		cost = {
			alloys = 15
		}
	}
	ship_behavior = "swarm"
	
	modifier = {
		ship_evasion_mult = 0.20
		ship_speed_mult = 0.35
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.30
		ship_hull_mult = 0.10
	}

	class_restriction = { shipclass_military }
	size_restriction = { corvette crisis_corvette offspring_corvette lea_small_basic_ship}
	prerequisites = { "tech_ult_second_tier" }
	component_set = "combat_computers"

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "LEA_COMBAT_COMPUTER_PICKET_TIER2"
	size = small
	icon = "GFX_ship_part_computer_picket_ic2"
	icon_frame = 1
	power = -60
	resources = {
		category = ship_components
		cost = {
			alloys = 15
		}
	}
	ship_behavior = "picket"
	
	modifier = {
		ship_evasion_mult = 0.10
		ship_speed_mult = 0.10
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.30
		ship_tracking_add = 50
		ship_hull_mult = 0.10
	}

	class_restriction = { shipclass_military }
	size_restriction = { corvette offspring_corvette cosmo_crisis_destroyer destroyer crisis_destroyer offspring_destroyer cruiser crisis_cruiser offspring_cruiser lea_small_basic_ship}
	component_set = "combat_computers"
	prerequisites = { "tech_ult_second_tier" }

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "LEA_COMBAT_COMPUTER_LINE_TIER2"
	size = small
	icon = "GFX_ship_part_computer_line_ic2"
	icon_frame = 1
	power = -60
	resources = {
		category = ship_components
		cost = {
			alloys = 15
		}
	}
	ship_behavior = "line"
	
	modifier = {
		ship_evasion_mult = 0.10
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.35
		ship_accuracy_add = 15
		ship_tracking_add = 5
		ship_hull_mult = 0.10
	}

	class_restriction = { shipclass_military }
	size_restriction = { destroyer crisis_destroyer cosmo_crisis_destroyer cosmo_crisis_battlecruiser offspring_destroyer cruiser battleship offspring_battleship crisis_cruiser offspring_cruiser lea_small_basic_ship lea_medium_basic_ship}
	component_set = "combat_computers"
	prerequisites = { "tech_ult_second_tier" }

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "LEA_COMBAT_COMPUTER_TORPEDO_TIER2"
	size = small
	icon = "GFX_ship_part_computer_torpedo_ic2"
	icon_frame = 1
	power = -60
	resources = {
		category = ship_components
		cost = {
			alloys = 15
		}
	}
	ship_behavior = "torpedo"
	
	modifier = {
		ship_evasion_mult = 0.05
		weapon_type_explosive_weapon_damage_mult = 0.25
	}
	
	ship_modifier = {
		ship_fire_rate_mult = 0.30
		ship_accuracy_add = 10
		ship_hull_mult = 0.10
	}
	
	class_restriction = { shipclass_military }
	size_restriction = { frigate crisis_destroyer cruiser cosmo_crisis_destroyer offspring_cruiser lea_small_basic_ship lea_medium_basic_ship}
	component_set = "combat_computers"
	prerequisites = { "tech_ult_second_tier" }
	ai_tags = { explosive }
	ai_tag_weight = 0

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "LEA_COMBAT_COMPUTER_ARTILLERY_TIER2"
	size = small
	icon = "GFX_ship_part_computer_artillery_ic2"
	icon_frame = 1
	power = -60
	resources = {
		category = ship_components
		cost = {
			alloys = 15
		}
	}
	ship_behavior = "artillery"
	
	modifier = {
		ship_evasion_mult = 0.05
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.35
		ship_weapon_range_mult = 0.30
		ship_tracking_add = 10
		ship_hull_mult = 0.10
	}

	class_restriction = { shipclass_military shipclass_starbase shipclass_military_special }
	size_restriction = { frigate destroyer crisis_destroyer cosmo_crisis_destroyer cosmo_crisis_battlecruiser cosmo_crisis_titan offspring_destroyer cruiser battleship offspring_battleship crisis_cruiser offspring_cruiser titan juggernaut star_eater lea_small_basic_ship lea_medium_basic_ship lea_large_basic_ship}
	component_set = "combat_computers"
	prerequisites = { "tech_ult_second_tier" }

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "LEA_COMBAT_COMPUTER_CARRIER_TIER2"
	size = small
	icon = "GFX_ship_part_computer_carrier_ic2"
	icon_frame = 1
	power = -60
	resources = {
		category = ship_components
		cost = {
			alloys = 15
		}
	}
	class_restriction = { shipclass_military shipclass_starbase shipclass_military_special }
	size_restriction = { cruiser offspring_cruiser battleship cosmo_crisis_battlecruiser cosmo_crisis_titan offspring_battleship juggernaut titan star_eater lea_medium_basic_ship lea_large_basic_ship}
	component_set = "combat_computers"
	ship_behavior = "carrier"
	prerequisites = { "tech_ult_second_tier" }

	modifier = {
		ship_evasion_mult = 0.10
	}
	ship_modifier = {
		ship_engagement_range_mult = 1.50
		ship_weapon_range_mult = 0.10
		weapon_type_strike_craft_weapon_damage_mult = 0.20
		ship_hull_mult = 0.10
	}

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "LEA_COMBAT_COMPUTER_PLATFORM_TIER2"
	size = small
	icon = "GFX_ship_part_computer_platform_ic2"
	icon_frame = 1
	power = -60
	resources = {
		category = ship_components
		cost = {
			alloys = 15
		}
	}
	
	class_restriction = { shipclass_military_station }
	component_set = "combat_computers"
	ship_behavior = "platform"
	prerequisites = { "tech_ult_second_tier" }

	ship_modifier = {
		ship_fire_rate_mult = 0.60
		ship_tracking_add = 20
		ship_hull_mult = 0.75
	}

	ai_weight = {
		weight = 10
	}
}

utility_component_template = {
	key = "LEA_STARBASE_COMBAT_COMPUTER_TIER2"
	size = small
	icon = "GFX_ship_part_computer_starbase_ic2"
	icon_frame = 1
	power = 0
	class_restriction = { shipclass_starbase }
	size_restriction = {
		starbase_outpost
		starbase_starport
		starbase_starhold
		starbase_starfortress
		starbase_citadel
		starbase_deep_space_citadel_1
		starbase_deep_space_citadel_2
		starbase_deep_space_citadel_3
	}
	component_set = "combat_computers"
	ship_behavior = "platform"
	prerequisites = { "tech_ult_second_tier" }

	ship_modifier = {
		ship_fire_rate_mult = 0.60
		ship_tracking_add = 20
		ship_hull_mult = 0.75
	}

	ai_weight = {
		weight = 10
	}
}