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

#############
#	POWER	#
#############

@power_S6 = -15
@power_M6 = -30
@power_L6 = -60

#############
#	COST	#
#############
           
@cost_S6 = 20
@cost_M6 = 40
@cost_L6 = 80

#############
#	SHIELD	#
#############

@shield_S6 = 187
@shield_M6 = 375
@shield_L6 = 750

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

# Phased Shields
utility_component_template = {
	key = "SMALL_SHIELD_ISB_01"
	size = small
	icon = "GFX_ship_part_shield_isb_01"
	icon_frame = 1
	power = @power_S6
	cost = @cost_S6
	
	military_power = 2
	can_recharge_shield = yes
	
	modifier = {
		SHIP_HITPOINTS_ADD = -37
		ship_shield_hp_add = @shield_S6
		ship_shield_regen_add = 5.4 #Regeneration per day
	}
	prerequisites = { "tech_phased_shields" }
	component_set = "SHIELD_ISB_01"
}

utility_component_template = {
	key = "MEDIUM_SHIELD_ISB_01"
	size = medium
	icon = "GFX_ship_part_shield_isb_01"
	icon_frame = 1
	power = @power_M6
	cost = @cost_M6
	
	military_power = 5
	can_recharge_shield = yes
	
	modifier = {
		SHIP_HITPOINTS_ADD = -75
		ship_shield_hp_add = @shield_M6
		ship_shield_regen_add = 8.7 #Regeneration per day
	}
	prerequisites = { "tech_phased_shields" }
	component_set = "SHIELD_ISB_01"
}

utility_component_template = {
	key = "LARGE_SHIELD_ISB_01"
	size = large
	icon = "GFX_ship_part_shield_isb_01"
	icon_frame = 1
	power = @power_L6
	cost = @cost_L6
	
	military_power = 30
	can_recharge_shield = yes
	
	modifier = {
		SHIP_HITPOINTS_ADD = -150
		ship_shield_hp_add = @shield_L6
		ship_shield_regen_add = 12.2 #Regeneration per day
	}
	prerequisites = { "tech_phased_shields" }
	component_set = "SHIELD_ISB_01"
}

# Crystal-Forged Plating 
utility_component_template = {
	key = "SMALL_CRYSTAL_ARMOR_ISB_01"
	size = small
	icon = "GFX_ship_part_crystal_armor_isb_01"
	icon_frame = 1
	power = 0
	cost = 15
	military_power = 5
	can_recharge_shield = yes
	
	modifier = {
		ship_hitpoints_add = 85
	}
	
	prerequisites = { "tech_leviathan_phy_02" }
	component_set = "CRYSTAL_ARMOR_ISB_01"
}

utility_component_template = {
	key = "MEDIUM_CRYSTAL_ARMOR_ISB_01"
	size = medium
	icon = "GFX_ship_part_crystal_armor_isb_01"
	icon_frame = 1
	power = 0
	cost = 30
	military_power = 15
	can_recharge_shield = yes
	
	modifier = {
		ship_hitpoints_add = 170
	}
	
	prerequisites = { "tech_leviathan_phy_02" }
	component_set = "CRYSTAL_ARMOR_ISB_01"
}

utility_component_template = {
	key = "LARGE_CRYSTAL_ARMOR_ISB_01"
	size = large
	icon = "GFX_ship_part_crystal_armor_isb_01"
	icon_frame = 1
	power = 0
	cost = 60
	military_power = 150
	can_recharge_shield = yes
	
	modifier = {
		ship_hitpoints_add = 340
	}
	
	prerequisites = { "tech_leviathan_phy_02" }
	component_set = "CRYSTAL_ARMOR_ISB_01"
}

utility_component_template = {
	key = "STATION_SENSOR_BOOST_PART_ISB_SMALL"
	size = aux
	icon = "GFX_ship_part_sensor_1"
	icon_frame = 1
	power = -200
	cost = 200
	class_restriction = { shipclass_military_station }
	#size_restriction = { military_station_small military_station_medium military_station_large }
	
	prerequisites = { "tech_sensors_2" }
	component_set = "STATION_SENSOR_BOOST_ISB_SMALL"
	
	ship_modifier = {
		ship_sensor_range_mult = 0.5
	}
		
	ai_weight = {
		weight = 0
	}
}

utility_component_template = {
	key = "STATION_SENSOR_BOOST_PART_ISB_MEDIUM"
	size = aux
	icon = "GFX_ship_part_sensor_2"
	icon_frame = 1
	power = -500
	cost = 500
	class_restriction = { shipclass_military_station }
	#size_restriction = { military_station_small military_station_medium military_station_large }
	
	prerequisites = { "tech_sensors_3" }
	component_set = "STATION_SENSOR_BOOST_ISB_MEDIUM"
	
	ship_modifier = {
		ship_sensor_range_mult = 1.5
	}
		
	ai_weight = {
		weight = 0
	}
}

utility_component_template = {
	key = "STATION_SENSOR_BOOST_PART_ISB_LARGE"
	size = aux
	icon = "GFX_ship_part_sensor_3"
	icon_frame = 1
	power = -800
	cost = 800
	class_restriction = { shipclass_military_station }
	#size_restriction = { military_station_small military_station_medium military_station_large }
	
	prerequisites = { "tech_sensors_4" }
	component_set = "STATION_SENSOR_BOOST_ISB_LARGE"
	
	ship_modifier = {
		ship_sensor_range_mult = 3.0
	}
		
	ai_weight = {
		weight = 0
	}
}