#####################
# Ultraheavy Ion-Cannons
#####################

weapon_component_template = {
	key = "SWS_ULTRAHEAVY_ION_CANNON_T1"
	size = extra_large
	type = instant
	icon = "GFX_ship_part_sws_ultraheavy_ion_cannon_01"
	icon_frame = 1

	projectile_gfx = "sws_ultraheavy_ion_cannon"

	prerequisites = { "tech_sws_ultraheavy_ion_cannon_T1" }
	component_set = "SWS_ULTRAHEAVY_ION_CANNON_T1"
	tags = { weapon_type_energy }
	upgrades_to = "SWS_ULTRAHEAVY_ION_CANNON_T2"
	ai_tags = { weapon_role_artillery artillery }

	power = -200
	damage = { min = 800.0 max = 1600.0 }
	windup = { min = 8.0 max = 25.0 }
	total_fire_time = 60.0
	range = 150.0
	accuracy = 0.70
	tracking = 0.00

	shield_damage = 5.00
	shield_penetration = 0.00
	armor_damage = 0.00
	armor_penetration = 0.00
	hull_damage = 0.00

	target_weights = {
		titan = 3
		battleship = 2
	}

	resources = {
		category = ship_components
		cost = {
			alloys = 176
			exotic_gases = 2.6
		}
		upkeep = {
			energy = 1.76
			alloys = 0.352
		}
	}

	ai_weight = {
		weight = 0
	}
}

weapon_component_template = {
	key = "SWS_ULTRAHEAVY_ION_CANNON_T2"
	size = extra_large
	type = instant
	icon = "GFX_ship_part_sws_ultraheavy_ion_cannon_02"
	icon_frame = 1

	projectile_gfx = "sws_ultraheavy_ion_cannon"

	prerequisites = { "tech_sws_ultraheavy_ion_cannon_T2" }
	component_set = "SWS_ULTRAHEAVY_ION_CANNON_T2"
	tags = { weapon_type_energy }
	upgrades_to = "SWS_ULTRAHEAVY_ION_CANNON_T3"
	ai_tags = { weapon_role_artillery artillery }

	power = -260
	damage = { min = 1000.0 max = 2000.0 }
	windup = { min = 8.0 max = 25.0 }
	total_fire_time = 60.0
	range = 150.0
	accuracy = 0.70
	tracking = 0.00

	shield_damage = 5.00
	shield_penetration = 0.00
	armor_damage = 0.00
	armor_penetration = 0.00
	hull_damage = 0.00

	target_weights = {
		titan = 3
		battleship = 2
	}

	resources = {
		category = ship_components
		cost = {
			alloys = 229
			exotic_gases = 3.38
		}
		upkeep = {
			energy = 2.29
			alloys = 0.458
		}
	}

	ai_weight = {
		weight = 0
	}
}

weapon_component_template = {
	key = "SWS_ULTRAHEAVY_ION_CANNON_T3"
	size = extra_large
	type = instant
	icon = "GFX_ship_part_sws_ultraheavy_ion_cannon_03"
	icon_frame = 1

	projectile_gfx = "sws_ultraheavy_ion_cannon"

	prerequisites = { "tech_sws_ultraheavy_ion_cannon_T3" }
	component_set = "SWS_ULTRAHEAVY_ION_CANNON_T3"
	tags = { weapon_type_energy }
	upgrades_to = "SWS_ULTRAHEAVY_ION_CANNON_T4"
	ai_tags = { weapon_role_artillery artillery }

	power = -280
	damage = { min = 1200.0 max = 2400.0 }
	windup = { min = 8.0 max = 25.0 }
	total_fire_time = 60.0
	range = 150.0
	accuracy = 0.70
	tracking = 0.00

	shield_damage = 5.00
	shield_penetration = 0.00
	armor_damage = 0.00
	armor_penetration = 0.00
	hull_damage = 0.00

	target_weights = {
		titan = 3
		battleship = 2
	}

	resources = {
		category = ship_components
		cost = {
			alloys = 298
			exotic_gases = 4.4
		}
		upkeep = {
			energy = 2.98
			alloys = 0.596
		}
	}

	ai_weight = {
		weight = 0
	}
}

weapon_component_template = {
	key = "SWS_ULTRAHEAVY_ION_CANNON_T4"
	size = extra_large
	type = instant
	icon = "GFX_ship_part_sws_ultraheavy_ion_cannon_04"
	icon_frame = 1

	projectile_gfx = "sws_ultraheavy_ion_cannon"

	prerequisites = { "tech_sws_ultraheavy_ion_cannon_T4" }
	component_set = "SWS_ULTRAHEAVY_ION_CANNON_T4"
	tags = { weapon_type_energy }
###	upgrades_to = n/a
	ai_tags = { weapon_role_artillery artillery }

	power = -310
	damage = { min = 1400.0 max = 2800.0 }
	windup = { min = 8.0 max = 25.0 }
	total_fire_time = 60.0
	range = 150.0
	accuracy = 0.70
	tracking = 0.00

	shield_damage = 5.00
	shield_penetration = 0.00
	armor_damage = 0.00
	armor_penetration = 0.00
	hull_damage = 0.00

	target_weights = {
		titan = 3
		battleship = 2
	}

	resources = {
		category = ship_components
		cost = {
			alloys = 387
			exotic_gases = 5.60
		}
		upkeep = {
			energy = 3.87
			alloys = 0.774
		}
	}

	ai_weight = {
		weight = 0
	}
}
