# 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_S1 = 0
@power_M1 = 0
@power_L1 = 0
             
@power_S2 = 0
@power_M2 = 0
@power_L2 = 0
             
@power_S3 = 0
@power_M3 = 0
@power_L3 = 0
             
@power_S4 = 0
@power_M4 = 0
@power_L4 = 0
             
@power_S5 = 0
@power_M5 = 0
@power_L5 = 0

@power_ss = -2
@power_mm = -2
@power_ll = -2

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

@cost_S1 = 3
@cost_M1 = 20
@cost_L1 = 50
           
@cost_S2 = 3
@cost_M2 = 22
@cost_L2 = 60
           
@cost_S3 = 3
@cost_M3 = 24
@cost_L3 = 70
           
@cost_S4 = 4
@cost_M4 = 26
@cost_L4 = 80
           
@cost_S5 = 4
@cost_M5 = 30
@cost_L5 = 100

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

@shield_S1 = 600
@shield_M1 = 2500
@shield_L1 = 6000

@shield_S2 = 800
@shield_M2 = 3000
@shield_L2 = 7000

@shield_S3 = 1000
@shield_M3 = 3500
@shield_L3 = 8000

@shield_S4 = 1200
@shield_M4 = 4000
@shield_L4 = 9000

@shield_S5 = 1400
@shield_M5 = 4500
@shield_L5 = 10000

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

# Deflectors
utility_component_template = {
	key = "SMALL_SHIELD_1"
	size = small
	icon = "GFX_ship_part_shield_1"
	icon_frame = 1
	power = @power_S1
	cost = @cost_S1
	modifier = {
		ship_shield_hp_add = @shield_S1
		ship_shield_regen_add = 1
		
	}
	prerequisites = { "tech_shields_1" }
	component_set = "SHIELD_1"
}

utility_component_template = {
	key = "MEDIUM_SHIELD_1"
	size = medium
	icon = "GFX_ship_part_shield_1"
	icon_frame = 1
	power = @power_M1
	cost = @cost_M1
	modifier = {
		ship_shield_hp_add = @shield_M1
		ship_shield_regen_add = 3
	}
	prerequisites = { "tech_shields_1" }
	component_set = "SHIELD_1"
}

utility_component_template = {
	key = "LARGE_SHIELD_1"
	size = large
	icon = "GFX_ship_part_shield_1"
	icon_frame = 1
	power = @power_L1
	cost = @cost_L1
	modifier = {
		ship_shield_hp_add = @shield_L1
		ship_shield_regen_add = 6
	}
	prerequisites = { "tech_shields_1" }
	component_set = "SHIELD_1"
}

# Advanced Deflectors
utility_component_template = {
	key = "SMALL_SHIELD_2"
	size = small
	icon = "GFX_ship_part_shield_2"
	icon_frame = 1
	power = @power_S2
	cost = @cost_S2
	modifier = {
		ship_shield_hp_add = @shield_S2
		ship_shield_regen_add = 1
	}
	prerequisites = { "tech_shields_2" }
	component_set = "SHIELD_2"
}

utility_component_template = {
	key = "MEDIUM_SHIELD_2"
	size = medium
	icon = "GFX_ship_part_shield_2"
	icon_frame = 1
	power = @power_M2
	cost = @cost_M2
	modifier = {
		ship_shield_hp_add = @shield_M2
		ship_shield_regen_add = 3
	}
	prerequisites = { "tech_shields_2" }
	component_set = "SHIELD_2"
}

utility_component_template = {
	key = "LARGE_SHIELD_2"
	size = large
	icon = "GFX_ship_part_shield_2"
	icon_frame = 1
	power = @power_L2
	cost = @cost_L2
	modifier = {
		ship_shield_hp_add = @shield_L2
		ship_shield_regen_add = 6
	}
	prerequisites = { "tech_shields_2" }
	component_set = "SHIELD_2"
}

# Shields
utility_component_template = {
	key = "SMALL_SHIELD_3"
	size = small
	icon = "GFX_ship_part_shield_3"
	icon_frame = 1
	power = @power_S3
	cost = @cost_S3
	modifier = {
		ship_shield_hp_add = @shield_S3
		ship_shield_regen_add = 1
	}
	prerequisites = { "tech_shields_3" }
	component_set = "SHIELD_3"
}

utility_component_template = {
	key = "MEDIUM_SHIELD_3"
	size = medium
	icon = "GFX_ship_part_shield_3"
	icon_frame = 1
	power = @power_M3
	cost = @cost_M3
	modifier = {
		ship_shield_hp_add = @shield_M3
		ship_shield_regen_add = 3
	}
	prerequisites = { "tech_shields_3" }
	component_set = "SHIELD_3"
}

utility_component_template = {
	key = "LARGE_SHIELD_3"
	size = large
	icon = "GFX_ship_part_shield_3"
	icon_frame = 1
	power = @power_L3
	cost = @cost_L3
	modifier = {
		ship_shield_hp_add = @shield_L3
		ship_shield_regen_add = 6
	}
	prerequisites = { "tech_shields_3" }
	component_set = "SHIELD_3"
}

# Advanced Shields
utility_component_template = {
	key = "SMALL_SHIELD_4"
	size = small
	icon = "GFX_ship_part_shield_4"
	icon_frame = 1
	power = @power_S4
	cost = @cost_S4
	modifier = {
		ship_shield_hp_add = @shield_S4
		ship_shield_regen_add = 1
	}
	prerequisites = { "tech_shields_4" }
	component_set = "SHIELD_4"
}

utility_component_template = {
	key = "MEDIUM_SHIELD_4"
	size = medium
	icon = "GFX_ship_part_shield_4"
	icon_frame = 1
	power = @power_M4
	cost = @cost_M4
	modifier = {
		ship_shield_hp_add = @shield_M4
		ship_shield_regen_add = 3
	}
	prerequisites = { "tech_shields_4" }
	component_set = "SHIELD_4"
}

utility_component_template = {
	key = "LARGE_SHIELD_4"
	size = large
	icon = "GFX_ship_part_shield_4"
	icon_frame = 1
	power = @power_L4
	cost = @cost_L4
	modifier = {
		ship_shield_hp_add = @shield_L4
		ship_shield_regen_add = 6
	}
	prerequisites = { "tech_shields_4" }
	component_set = "SHIELD_4"
}

# Hyper Shields
utility_component_template = {
	key = "SMALL_SHIELD_5"
	size = small
	icon = "GFX_ship_part_shield_5"
	icon_frame = 1
	power = @power_S5
	cost = @cost_S5
	modifier = {
		ship_shield_hp_add = @shield_S5
		ship_shield_regen_add = 1
	}
	prerequisites = { "tech_shields_5" }
	component_set = "SHIELD_5"
}

utility_component_template = {
	key = "MEDIUM_SHIELD_5"
	size = medium
	icon = "GFX_ship_part_shield_5"
	icon_frame = 1
	power = @power_M5
	cost = @cost_M5
	modifier = {
		ship_shield_hp_add = @shield_M5
		ship_shield_regen_add = 3
	}
	prerequisites = { "tech_shields_5" }
	component_set = "SHIELD_5"
}

utility_component_template = {
	key = "LARGE_SHIELD_5"
	size = large
	icon = "GFX_ship_part_shield_5"
	icon_frame = 1
	power = @power_L5
	cost = @cost_L5
	modifier = {
		ship_shield_hp_add = @shield_L5
		ship_shield_regen_add = 6
	}
	prerequisites = { "tech_shields_5" }
	component_set = "SHIELD_5"
}

# Shield Recharger
utility_component_template = {
	key = "SMALL_SHIELD_RECHARGER"
	size = small
	icon = "GFX_ship_part_shield_recharger"
	icon_frame = 1
	power = @power_ss
	cost = @cost_S4
	modifier = {
		ship_shield_regen_add = 15 #Regeneration per day
	}
	prerequisites = { "tech_shield_rechargers_1" }
	component_set = "SHIELD_RECHARGER"
}

utility_component_template = {
	key = "MEDIUM_SHIELD_RECHARGER"
	size = medium
	icon = "GFX_ship_part_shield_recharger"
	icon_frame = 1
	power = @power_mm
	cost = @cost_M4
	modifier = {
		ship_shield_regen_add = 45 #Regeneration per day
	}
	prerequisites = { "tech_shield_rechargers_1" }
	component_set = "SHIELD_RECHARGER"
}

utility_component_template = {
	key = "LARGE_SHIELD_RECHARGER"
	size = large
	icon = "GFX_ship_part_shield_recharger"
	icon_frame = 1
	power = @power_ll
	cost = @cost_L4
	modifier = {
		ship_shield_regen_add = 100 #Regeneration per day
	}
	prerequisites = { "tech_shield_rechargers_1" }
	component_set = "SHIELD_RECHARGER"
}