# Icons set here are the ones show in the actual slot. The reason is so that we can support different icons for different sizes. 

#############
#	ARMOR	#
#############

@armor_1S = 200
@armor_1M = 2000
@armor_1L = 10000

@armor_2S = 400
@armor_2M = 3000
@armor_2L = 15000

@armor_3S = 600
@armor_3M = 4000
@armor_3L = 20000

@armor_4S = 800
@armor_4M = 5000
@armor_4L = 25000

@armor_5S = 1200
@armor_5M = 6000
@armor_5L = 30000

#############
#	COST	#
#############

@cost_1S = 5
@cost_1M = 120
@cost_1L = 250

@cost_2S = 5
@cost_2M = 120
@cost_2L = 250

@cost_3S = 5
@cost_3M = 120
@cost_3L = 250

@cost_4S = 5
@cost_4M = 120
@cost_4L = 250

@cost_5S = 5
@cost_5M = 120
@cost_5L = 250

#############
# UTILITIES #
#############

utility_component_template = {
	key = "MEDIUM_SCIENCE_LAB_1"
	size = medium
	icon = "GFX_ship_part_science_lab_1"
	icon_frame = 1
	power = 0
	cost = 0
	science_lab_speed = 1
	science_lab_level = 1
	class_restriction = { shipclass_science_ship }

	component_set = "science_labs"
	
	ai_weight = {
		weight = 1
	}
}

# Plasteel Armor
utility_component_template = {
	key = "SMALL_ARMOR_1"
	size = small
	icon = "GFX_ship_part_armor_1"
	icon_frame = 1
	power = 0
	cost = @cost_1S
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_1S
	}
	
	prerequisites = { "tech_ship_armor_1" }
	component_set = "ARMOR_1"
}

utility_component_template = {
	key = "MEDIUM_ARMOR_1"
	size = medium
	icon = "GFX_ship_part_armor_1"
	icon_frame = 1
	power = 0
	cost = @cost_1M
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_1M
	}
		
	prerequisites = { "tech_ship_armor_1" }
	component_set = "ARMOR_1"
}

utility_component_template = {
	key = "LARGE_ARMOR_1"
	size = large
	icon = "GFX_ship_part_armor_1"
	icon_frame = 1
	power = 0
	cost = @cost_1L
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_1L
	}
		
	prerequisites = { "tech_ship_armor_1" }
	component_set = "ARMOR_1"
}

# Durasteel Armor
utility_component_template = {
	key = "SMALL_ARMOR_2"
	size = small
	icon = "GFX_ship_part_armor_2"
	icon_frame = 1
	power = 0
	cost = @cost_2S
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_2S
	}
		
	prerequisites = { "tech_ship_armor_2" }
	component_set = "ARMOR_2"
}

utility_component_template = {
	key = "MEDIUM_ARMOR_2"
	size = medium
	icon = "GFX_ship_part_armor_2"
	icon_frame = 1
	power = 0
	cost = @cost_2M
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_2M
	}
		
	prerequisites = { "tech_ship_armor_2" }
	component_set = "ARMOR_2"
}

utility_component_template = {
	key = "LARGE_ARMOR_2"
	size = large
	icon = "GFX_ship_part_armor_2"
	icon_frame = 1
	power = 0
	cost = @cost_2L
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_2L
	}
	
	prerequisites = { "tech_ship_armor_2" }
	component_set = "ARMOR_2"
}

# Ceramo-Metal Armor
utility_component_template = {
	key = "SMALL_ARMOR_3"
	size = small
	icon = "GFX_ship_part_armor_3"
	icon_frame = 1
	power = 0
	cost = @cost_3S
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_3S
	}
	
	prerequisites = { "tech_ship_armor_3" }
	component_set = "ARMOR_3"
}

utility_component_template = {
	key = "MEDIUM_ARMOR_3"
	size = medium
	icon = "GFX_ship_part_armor_3"
	icon_frame = 1
	power = 0
	cost = @cost_3M
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_3M
	}
	
	prerequisites = { "tech_ship_armor_3" }
	component_set = "ARMOR_3"
}

utility_component_template = {
	key = "LARGE_ARMOR_3"
	size = large
	icon = "GFX_ship_part_armor_3"
	icon_frame = 1
	power = 0
	cost = @cost_3L
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_3L
	}
	
	prerequisites = { "tech_ship_armor_3" }
	component_set = "ARMOR_3"
}

# Nanocomposite Armor
utility_component_template = {
	key = "SMALL_ARMOR_4"
	size = small
	icon = "GFX_ship_part_armor_4"
	icon_frame = 1
	power = 0
	cost = @cost_4S
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_4S
	}
	
	prerequisites = { "tech_ship_armor_4" }
	component_set = "ARMOR_4"
}

utility_component_template = {
	key = "MEDIUM_ARMOR_4"
	size = medium
	icon = "GFX_ship_part_armor_4"
	icon_frame = 1
	power = 0
	cost = @cost_4M
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_4M
	}
	
	prerequisites = { "tech_ship_armor_4" }
	component_set = "ARMOR_4"
}

utility_component_template = {
	key = "LARGE_ARMOR_4"
	size = large
	icon = "GFX_ship_part_armor_4"
	icon_frame = 1
	power = 0
	cost = @cost_4L
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_4L
	}
	
	prerequisites = { "tech_ship_armor_4" }
	component_set = "ARMOR_4"
}

# Neutronium Armor
utility_component_template = {
	key = "SMALL_ARMOR_5"
	size = small
	icon = "GFX_ship_part_armor_5"
	icon_frame = 1
	power = 0
	cost = @cost_5S
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_5S
	}
	
	prerequisites = { "tech_ship_armor_5" }
	component_set = "ARMOR_5"
}

utility_component_template = {
	key = "MEDIUM_ARMOR_5"
	size = medium
	icon = "GFX_ship_part_armor_5"
	icon_frame = 1
	power = 0
	cost = @cost_5M
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_5M
	}
	
	prerequisites = { "tech_ship_armor_5" }
	component_set = "ARMOR_5"
}

utility_component_template = {
	key = "LARGE_ARMOR_5"
	size = large
	icon = "GFX_ship_part_armor_5"
	icon_frame = 1
	power = 0
	cost = @cost_5L
	armor_value = 0

	modifier = {
		ship_hitpoints_add = @armor_5L
	}
	
	prerequisites = { "tech_ship_armor_5" }
	component_set = "ARMOR_5"
}

# Crystal-Infused Plating 
utility_component_template = {
	key = "SMALL_CRYSTAL_ARMOR_1"
	size = small
	icon = "GFX_ship_part_crystal_armor_1"
	icon_frame = 1
	power = 0
	cost = @cost_3S
	
	modifier = {
		ship_hitpoints_add = @armor_3S
	}
	
	prerequisites = { "tech_crystal_armor_1" }
	component_set = "CRYSTAL_ARMOR_1"
}

utility_component_template = {
	key = "MEDIUM_CRYSTAL_ARMOR_1"
	size = medium
	icon = "GFX_ship_part_crystal_armor_1"
	icon_frame = 1
	power = 0
	cost = @cost_3M
	
	modifier = {
		ship_hitpoints_add = @armor_3M
	}
	
	prerequisites = { "tech_crystal_armor_1" }
	component_set = "CRYSTAL_ARMOR_1"
}

utility_component_template = {
	key = "LARGE_CRYSTAL_ARMOR_1"
	size = large
	icon = "GFX_ship_part_crystal_armor_1"
	icon_frame = 1
	power = 0
	cost = @cost_3L
	
	modifier = {
		ship_hitpoints_add = @armor_3L
	}
	
	prerequisites = { "tech_crystal_armor_1" }
	component_set = "CRYSTAL_ARMOR_1"
}

# Crystal-Forged Plating 
utility_component_template = {
	key = "SMALL_CRYSTAL_ARMOR_2"
	size = small
	icon = "GFX_ship_part_crystal_armor_2"
	icon_frame = 1
	power = 0
	cost = @cost_5S
	
	modifier = {
		ship_hitpoints_add = @armor_5S
	}
	
	prerequisites = { "tech_crystal_armor_2" }
	component_set = "CRYSTAL_ARMOR_2"
}

utility_component_template = {
	key = "MEDIUM_CRYSTAL_ARMOR_2"
	size = medium
	icon = "GFX_ship_part_crystal_armor_2"
	icon_frame = 1
	power = 0
	cost = @cost_5M
	
	modifier = {
		ship_hitpoints_add = @armor_5M
	}
	
	prerequisites = { "tech_crystal_armor_2" }
	component_set = "CRYSTAL_ARMOR_2"
}

utility_component_template = {
	key = "LARGE_CRYSTAL_ARMOR_2"
	size = large
	icon = "GFX_ship_part_crystal_armor_2"
	icon_frame = 1
	power = 0
	cost = @cost_5L
	
	modifier = {
		ship_hitpoints_add = @armor_5L
	}
	
	prerequisites = { "tech_crystal_armor_2" }
	component_set = "CRYSTAL_ARMOR_2"
}

utility_component_template = {
	key = "BORDER_EXTRUDER_1"
	size = medium
	icon = "GFX_ship_part_border_extruder_1"
	icon_frame = 1
	power = 0
	cost = 20
	border_extrusion_range = 15
	class_restriction = { shipclass_outpost_station }
	
	component_set = "border_extruders"
	
	ai_weight = {
		weight = 1
	}
}

utility_component_template = {
	key = "BORDER_EXTRUDER_2"
	size = medium
	icon = "GFX_ship_part_border_extruder_2"
	icon_frame = 1
	power = 0
	cost = 20
	border_extrusion_range = 20
	class_restriction = { shipclass_outpost_station }
	hidden = yes
	
	component_set = "border_extruders"
	
	ai_weight = {
		weight = 2
	}
}

utility_component_template = {
	key = "BORDER_EXTRUDER_3"
	size = medium
	icon = "GFX_ship_part_border_extruder_3"
	icon_frame = 1
	power = 0
	cost = 20
	border_extrusion_range = 25
	class_restriction = { shipclass_outpost_station }
	hidden = yes
	
	component_set = "border_extruders"
	
	ai_weight = {
		weight = 3
	}
}

