weapon_component_template = {
	key = "EW_BIO_CRUISE_MISSILE_1"
	size = large
  entity = "turret_missile_large_entity"
	
	icon = "GFX_ew_ship_part_cruise_missile_1"
	icon_frame = 1
	type = missile
	
	component_set = "EW_BIO_CRUISE_MISSILE_1"
	projectile_gfx = "bio_torpedo_01"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_anti_shield weapon_role_anti_armor explosive }

	damage = { min = 261 max = 433 }
	windup = { min = 10 max = 20 }
	total_fire_time = 85
  
  min_range = 40
	range = 160.0
	accuracy = 1.0
	tracking = 0.175

	missile_speed = 40
	missile_evasion = 0.2
	missile_shield = 20
	missile_armor = 20
	missile_health = 60
	missile_retarget_range = 250
	
	shield_penetration = 1.1
	armor_damage = 1.2
	size_damage_factor = 0.075

	power = -60
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t6_cost
			volatile_motes = @l_t6_rare
		}		
		upkeep = {
			energy = @l_t6_upkeep_energy
			alloys = @l_t6_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	prerequisites = { "EW_tech_accelerated_crystal_growth" }
	upgrades_to = "EW_BIO_CRUISE_MISSILE_2"
}

weapon_component_template = {
	key = "EW_BIO_CRUISE_MISSILE_2"
	size = large
  entity = "turret_missile_large_entity"
	
	icon = "GFX_ew_ship_part_cruise_missile_2"
	icon_frame = 1
	type = missile

	component_set = "EW_BIO_CRUISE_MISSILE_2"
	projectile_gfx = "bio_torpedo_02"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_anti_shield weapon_role_anti_armor explosive }
  
	damage = { min = 312 max = 518 }
	windup = { min = 10 max = 20 }
	total_fire_time = 85
  
  min_range = 40
	range = 190.0
	accuracy = 1.0
	tracking = 0.2

	missile_speed = 48
	missile_evasion = 0.25
	missile_shield = 40
	missile_armor = 40
	missile_health = 90
	missile_retarget_range = 250
	
	shield_penetration = 1.25
	armor_damage = 1.3
	size_damage_factor = 0.075

	power = -70
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t6_cost
			volatile_motes = @l_t6_rare
		}		
		upkeep = {
			energy = @l_t6_upkeep_energy
			alloys = @l_t6_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	prerequisites = { "EW_tech_rapid_crystal_growth" }
	upgrades_to = "EW_BIO_CRUISE_MISSILE_3"
}

weapon_component_template = {
	key = "EW_BIO_CRUISE_MISSILE_3"
	size = large
  entity = "turret_missile_large_entity"
	
	icon = "GFX_ew_ship_part_cruise_missile_3"
	icon_frame = 1
	type = missile
	
	component_set = "EW_BIO_CRUISE_MISSILE_3"
	projectile_gfx = "bio_torpedo_03"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_anti_shield weapon_role_anti_armor explosive }
  
	damage = { min = 375 max = 625 }
	windup = { min = 10 max = 20 }
	total_fire_time = 85
  
  min_range = 40
	range = 220.0
	accuracy = 1.0
	tracking = 0.225

	missile_speed = 56
	missile_evasion = 0.3
	missile_shield = 60
	missile_armor = 60
	missile_health = 120
	missile_retarget_range = 250
	
	shield_penetration = 1.33
	armor_damage = 1.4
	size_damage_factor = 0.075

	power = -80
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t6_cost
			volatile_motes = @l_t6_rare
		}		
		upkeep = {
			energy = @l_t6_upkeep_energy
			alloys = @l_t6_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	prerequisites = { "EW_tech_violate_crystal_growth" }
	upgrades_to = "EW_BIO_CRUISE_MISSILE_4"
}

weapon_component_template = {
	key = "EW_BIO_CRUISE_MISSILE_4"
	size = large
  entity = "turret_missile_large_entity"
	
	icon = "GFX_ew_ship_part_cruise_missile_4"
	icon_frame = 1
	type = missile
	
	component_set = "EW_BIO_CRUISE_MISSILE_4"
	projectile_gfx = "bio_torpedo_04"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_anti_shield weapon_role_anti_armor explosive }
  
	damage = { min = 450 max = 750 }
	windup = { min = 10 max = 20 }
	total_fire_time = 85
  
  min_range = 40
	range = 250.0
	accuracy = 1.0
	tracking = 0.25

	missile_speed = 64
	missile_evasion = 0.333
	missile_shield = 80
	missile_armor = 80
	missile_health = 150
	missile_retarget_range = 250
	
	shield_penetration = 1.5
	armor_damage = 1.5
	size_damage_factor = 0.075

	power = -90
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t6_cost
			volatile_motes = @l_t6_rare
		}		
		upkeep = {
			energy = @l_t6_upkeep_energy
			alloys = @l_t6_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	prerequisites = { "EW_tech_compressed_core" }
}