@attack_range = 10
@engagement_range = 125
@launch_time = 2
@strike_craft_speed1 = 550
@strike_craft_speed2 = 600
@strike_craft_speed3 = 650
@strike_craft_speed4 = 700
@strike_craft_speed5 = 725
@count = 16
@regen = 1
@bio_strike_craft_power1 = -20
@bio_strike_craft_power2 = -34
@bio_strike_craft_power3 = -45
@bio_strike_craft_power4 = -59
@bio_strike_craft_power5 = -73

weapon_component_template = {
	key = "MANDIBLE_3"
	size = torpedo
	entity = "invisible_turret_entity"

	icon = "GFX_ship_part_mandible_3"
	icon_frame = 1
	type = instant

	firing_arc = 25.0

	prerequisites = { "tech_mandibles_3" }
	component_set = "MANDIBLE_3"
	projectile_gfx = "biogenesis_01_mandible_attack"
	tags = { weapon_type_mandible weapon_type_kinetic g_slot }
	ai_tags = { weapon_role_anti_armor }
	potential = {
		ship_uses_mauler_components = yes
	}
	upgrades_to = "AVW_BIOSHIP_MANDIBLE_4"
	resources = {
		category = ship_components
		cost = {
			alloys = @m_t5_cost
			rare_crystals = @m_t5_rare
		}
		upkeep = {
			food = @m_t5_upkeep_energy
			alloys = @m_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

weapon_component_template = {
	key = "SMALL_BIO_PLASMA_3"
	size = small
	type = instant

	icon = "GFX_mutation_bio_plasma_3"
	icon_frame = 1

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_plasma_3" }
	component_set = "BIO_PLASMA_3"
	projectile_gfx = "plasma_cannon_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	upgrades_to = "AVW_BIOSHIP_SMALL_PLASMA_4"
	resources = {
		category = ship_components
		cost = {
			alloys = @s_t5_cost
			exotic_gases = @s_t5_rare
		}
		upkeep = {
			food = @s_t5_upkeep_energy
			alloys = @s_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
	}
}

weapon_component_template = {
	key = "MEDIUM_BIO_PLASMA_3"
	size = medium
	type = instant

	icon = "GFX_mutation_bio_plasma_3"
	icon_frame = 1

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_plasma_3" }
	component_set = "BIO_PLASMA_3"
	projectile_gfx = "plasma_cannon_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	upgrades_to = "AVW_BIOSHIP_MEDIUM_PLASMA_4"
	resources = {
		category = ship_components
		cost = {
			alloys = @m_t5_cost
			exotic_gases = @m_t5_rare
		}
		upkeep = {
			food = @m_t5_upkeep_energy
			alloys = @m_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
	}
}

weapon_component_template = {
	key = "LARGE_BIO_PLASMA_3"
	size = large
	type = instant

	icon = "GFX_mutation_bio_plasma_3"
	icon_frame = 1

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	min_range = 45.0

	prerequisites = { "tech_plasma_3" }
	component_set = "BIO_PLASMA_3"
	projectile_gfx = "plasma_cannon_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	upgrades_to = "AVW_BIOSHIP_LARGE_PLASMA_4"
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t5_cost
			exotic_gases = @l_t5_rare
		}
		upkeep = {
			food = @l_t5_upkeep_energy
			alloys = @l_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

weapon_component_template = {
	type = instant

	key = "SMALL_BIO_AUTOCANNON_3"
	size = small

	icon = "GFX_ship_part_bio_autocannon_3"
	icon_frame = 1

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_autocannons_3" }
	component_set = "BIO_AUTOCANNON_3"
	projectile_gfx = "stormfire_auto_cannons_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	upgrades_to = "AVW_BIOSHIP_SMALL_AUTOCANNON_4"
	resources = {
		category = ship_components
		cost = {
			alloys = @s_t5_cost
			volatile_motes = @s_t5_rare
		}
		upkeep = {
			food = @s_t5_upkeep_energy
			alloys = @s_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = 10
			from = {
				ship_uses_mauler_components = yes
			}
		}
	}
}

weapon_component_template = {
	type = instant

	key = "MEDIUM_BIO_AUTOCANNON_3"
	size = medium

	icon = "GFX_ship_part_bio_autocannon_3"
	icon_frame = 1

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_autocannons_3" }
	component_set = "BIO_AUTOCANNON_3"
	projectile_gfx = "stormfire_auto_cannons_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	upgrades_to = "AVW_BIOSHIP_MEDIUM_AUTOCANNON_4"
	resources = {
		category = ship_components
		cost = {
			alloys = @m_t5_cost
			volatile_motes = @m_t5_rare
		}
		upkeep = {
			food = @m_t5_upkeep_energy
			alloys = @m_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

weapon_component_template = {
	type = instant

	key = "LARGE_BIO_AUTOCANNON_3"
	size = large

	icon = "GFX_ship_part_bio_autocannon_3"
	icon_frame = 1

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_autocannons_3" }
	component_set = "BIO_AUTOCANNON_3"
	projectile_gfx = "stormfire_auto_cannons_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	upgrades_to = "AVW_BIOSHIP_LARGE_AUTOCANNON_4"
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t5_cost
			volatile_motes = @l_t5_rare
		}
		upkeep = {
			food = @l_t5_upkeep_energy
			alloys = @l_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

weapon_component_template = {
	key = "TORPEDO_BIO_SWARMER_MISSILE_2"
	size = torpedo

	icon = "GFX_ship_part_bio_swarmer_missile_2"
	icon_frame = 1
	type = missile

	potential = {
		OR = {
			ship_uses_harbinger_components = yes
			is_ship_size = military_station_small
		}
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_swarmer_missiles_2" }
	component_set = "BIO_SWARMER_MISSILE_2"
	projectile_gfx = "swarmer_missiles_02"
	tags = { weapon_type_explosive g_slot }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0
	upgrades_to = "AVW_BIOSHIP_TORPEDO_SWARMER_3"
	resources = {
		category = ship_components
		cost = {
			alloys = @m_t5_cost
			volatile_motes = @m_t5_rare
		}
		upkeep = {
			food = @m_t5_upkeep_energy
			alloys = @m_t5_upkeep_alloys
		}
	}

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

weapon_component_template = {
	key = "MEDIUM_BIO_SWARMER_MISSILE_2"
	size = medium

	icon = "GFX_ship_part_bio_swarmer_missile_2"
	icon_frame = 1
	type = missile

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_swarmer_missiles_2" }
	component_set = "BIO_SWARMER_MISSILE_2"
	projectile_gfx = "swarmer_missiles_02"
	tags = { weapon_type_explosive m_slot }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0
	upgrades_to = "AVW_BIOSHIP_MEDIUM_SWARMER_3"
	resources = {
		category = ship_components
		cost = {
			alloys = @m_t5_cost
			volatile_motes = @m_t5_rare
		}
		upkeep = {
			food = @m_t5_upkeep_energy
			alloys = @m_t5_upkeep_alloys
		}
	}

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

weapon_component_template = {
	key = "SMALL_GAMMA_BIO_LASER"
	size = small
	type = instant
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	icon = "GFX_mutation_eye_beam_5"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	prerequisites = { "tech_lasers_5" }
	component_set = "GAMMA_BIO_LASER"
	projectile_gfx = "gamma_laser_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	upgrades_to = "AVW_BIOSHIP_SMALL_LASER_6"
	resources = {
		category = ship_components
		cost = {
			alloys = @s_t5_cost
			rare_crystals = @s_t5_rare
		}
		upkeep = {
			food = @s_t5_upkeep_energy
			alloys = @s_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	key = "MEDIUM_GAMMA_BIO_LASER"
	size = medium
	type = instant
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	icon = "GFX_mutation_eye_beam_5"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	prerequisites = { "tech_lasers_5" }
	component_set = "GAMMA_BIO_LASER"
	projectile_gfx = "gamma_laser_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	upgrades_to = "AVW_BIOSHIP_MEDIUM_LASER_6"
	resources = {
		category = ship_components
		cost = {
			alloys = @m_t5_cost
			rare_crystals = @m_t5_rare
		}
		upkeep = {
			food = @m_t5_upkeep_energy
			alloys = @m_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	key = "LARGE_GAMMA_BIO_LASER"
	size = large
	type = instant
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	icon = "GFX_mutation_eye_beam_5"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	prerequisites = { "tech_lasers_5" }
	component_set = "GAMMA_BIO_LASER"
	projectile_gfx = "gamma_laser_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	upgrades_to = "AVW_BIOSHIP_LARGE_LASER_6"
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t5_cost
			rare_crystals = @l_t5_rare
		}
		upkeep = {
			food = @l_t5_upkeep_energy
			alloys = @l_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	type = instant

	key = "SMALL_BIO_MASS_DRIVER_5"
	size = small

	icon = "GFX_mutation_shard_accelerator_5"
	icon_frame = 1

    potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_mass_drivers_5" }
	component_set = "BIO_MASS_DRIVER_5"
	projectile_gfx = "gauss_cannon_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth gunship }
	upgrades_to = "AVW_BIOSHIP_SMALL_MASS_DRIVER_6"
	resources = {
		category = ship_components
		cost = {
			alloys = @s_t5_cost
			volatile_motes = @s_t5_rare
		}
		upkeep = {
			food =  @s_t5_upkeep_energy
			alloys = @s_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

weapon_component_template = {
	type = instant

	key = "MEDIUM_BIO_MASS_DRIVER_5"
	size = medium

	icon = "GFX_mutation_shard_accelerator_5"
	icon_frame = 1

    potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_mass_drivers_5" }
	component_set = "BIO_MASS_DRIVER_5"
	projectile_gfx = "gauss_cannon_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield gunship}
	upgrades_to = "AVW_BIOSHIP_MEDIUM_MASS_DRIVER_6"
	resources = {
		category = ship_components
		cost = {
			alloys = @m_t5_cost
			volatile_motes = @m_t5_rare
		}
		upkeep = {
			food =  @m_t5_upkeep_energy
			alloys = @m_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

weapon_component_template = {
	type = instant

	key = "LARGE_BIO_MASS_DRIVER_5"
	size = large

	icon = "GFX_mutation_shard_accelerator_5"
	icon_frame = 1

    potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	min_range = 45.0

	prerequisites = { "tech_mass_drivers_5" }
	component_set = "BIO_MASS_DRIVER_5"
	projectile_gfx = "gauss_cannon_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield gunship }
	upgrades_to = "AVW_BIOSHIP_LARGE_MASS_DRIVER_6"
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t5_cost
			volatile_motes = @l_t5_rare
		}
		upkeep = {
			food =  @l_t5_upkeep_energy
			alloys = @l_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

weapon_component_template = {
	key = "SMALL_BIO_DISRUPTOR_3"
	size = small
	type = instant

	icon = "GFX_mutation_disruptor_3"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	prerequisites = { "tech_disruptors_3" }
	component_set = "BIO_DISRUPTOR_3"
	projectile_gfx = "disruptor_3_small"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth }
	ai_tag_weight = 5
	upgrades_to = "AVW_BIOSHIP_SMALL_DISRUPTOR_4"
	target_type = target_enemies
	injected_modifier = {
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}
	resources = {
		category = ship_components
		cost = {
			alloys = @s_t5_cost
			rare_crystals = @s_t5_rare
		}
		upkeep = {
			alloys = @s_t5_upkeep_alloys
			food = @s_t5_upkeep_energy
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	key = "MEDIUM_BIO_DISRUPTOR_3"
	size = medium
	type = instant

	icon = "GFX_mutation_disruptor_3"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	prerequisites = { "tech_disruptors_3" }
	component_set = "BIO_DISRUPTOR_3"
	projectile_gfx = "disruptor_3_medium"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth }
	ai_tag_weight = 5
	upgrades_to = "AVW_BIOSHIP_MEDIUM_DISRUPTOR_4"
	target_type = target_enemies
	injected_modifier = {
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}
	resources = {
		category = ship_components
		cost = {
			alloys = @m_t5_cost
			rare_crystals = @m_t5_rare
		}
		upkeep = {
			alloys = @m_t5_upkeep_alloys
			food = @m_t5_upkeep_energy
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	key = "BIO_POINT_DEFENCE_3"
	size = point_defence

	icon = "GFX_mutation_spitter_gun_3"
	icon_frame = 1

	prerequisites = { "tech_pd_tracking_3" }
	potential = {
		ship_uses_weaver_components = no
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "BIO_POINT_DEFENCE_3"
	type = point_defence

	projectile_gfx = "white_laser_pd"
	tags = { weapon_type_point_defense weapon_type_energy }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = "AVW_BIOSHIP_PD_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 13
		}
		upkeep = {
			food = 0.13
			alloys = 0.013
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
}

weapon_component_template = {
	type = point_defence

	key = "BIO_FLAK_BATTERY_3"
	size = point_defence

	icon = "GFX_mutation_barb_3"
	icon_frame = 1

	prerequisites = { "tech_flak_batteries_3" }
	potential = {
		ship_uses_weaver_components = no
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "BIO_FLAK_BATTERY_3"
	projectile_gfx = "flak_pd_3"
	tags = { weapon_type_point_defense weapon_type_kinetic }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = "AVW_BIOSHIP_FLAK_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 13
		}
		upkeep = {
			food = 0.13
			alloys = 0.013
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
}

weapon_component_template = {
	key = "BIO_ENERGY_TORPEDO_2"
	size = torpedo
	type = instant

	firing_arc = 25.0
	min_range = 45.0

	icon = "GFX_mutation_thrower_2"
	icon_frame = 1
	prerequisites = { "tech_energy_torpedoes_2" }
	potential = {
		ship_uses_mauler_components = no
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "BIO_ENERGY_TORPEDO_2"
	projectile_gfx = "neutron_torpedoes"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth }
	ai_tag_weight = 0
	upgrades_to = "AVW_BIOSHIP_ENERGY_TORPEDO_3"
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t6_cost
			exotic_gases = @l_t6_rare
		}
		upkeep = {
			alloys = @l_t6_upkeep_alloys
			food = @l_t6_upkeep_energy
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

weapon_component_template = {
	type = instant

	key = "BIO_MASS_ACCELERATOR_2"
	size = extra_large

	icon = "GFX_mutation_bombard_2"
	icon_frame = 1

	firing_arc = 25.0
	min_range = 45.0
	use_ship_main_target = no

	prerequisites = { "tech_mass_accelerator_2" }
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "BIO_MASS_ACCELERATOR_2"
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic weapon_role_artillery x_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0
	upgrades_to = "AVW_BIOSHIP_MASS_ACCELERATOR_3"
	resources = {
		category = ship_components
		cost = {
			alloys = @xl_t6_cost
			volatile_motes = @xl_t6_rare
		}
		upkeep = {
			food = @xl_t6_upkeep_energy
			alloys = @xl_t6_upkeep_alloys
		}
	}

	target_weights = {
		titan = 3
		battleship = 2
		stinger_stage_1 = 1.5
		stinger_stage_2 = 2
		stinger_stage_3 = 2
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

weapon_component_template = {
	type = instant

	key = "BIO_KINETIC_ARTILLERY_2"
	size = large

	icon = "GFX_mutation_chitin_2"
	icon_frame = 1

	min_range = 45.0

	prerequisites = { "tech_kinetic_artillery_2" }
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "BIO_KINETIC_ARTILLERY_2"
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic l_slot weapon_role_artillery }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0
	upgrades_to = "AVW_BIOSHIP_KINETIC_ARTILLERY_3"
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t6_cost
			volatile_motes = @l_t6_rare
		}
		upkeep = {
			food = @l_t6_upkeep_energy
			alloys = @l_t6_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

weapon_component_template = {
	key = "BIO_ENERGY_LANCE_2"
	size = extra_large
	type = instant

	icon = "GFX_mutation_beam_2"
	icon_frame = 1

	firing_arc = 25.0
	use_ship_main_target = no
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	prerequisites = { "tech_energy_lance_2" }
	component_set = "BIO_ENERGY_LANCE_2"
	projectile_gfx = "tachyon_lance"
	tags = { weapon_type_energy weapon_role_artillery x_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0
	upgrades_to = "AVW_BIOSHIP_ENERGY_LANCE_3"
	resources = {
		category = ship_components
		cost = {
			alloys = @xl_t6_cost
			rare_crystals = @xl_t6_rare
		}
		upkeep = {
			alloys = @xl_t6_upkeep_alloys
			food = @xl_t6_upkeep_energy
		}
	}

	target_weights = {
		titan = 3
		battleship = 2
		stinger_stage_1 = 1.5
		stinger_stage_2 = 2
		stinger_stage_3 = 2
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	key = "BIO_ARC_EMITTER_2"
	size = extra_large
	type = instant

	icon = "GFX_mutation_lightning_emitter_2"
	icon_frame = 1
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	firing_arc = 35.0
	min_range = 10.0
	use_ship_main_target = no

	prerequisites = { "tech_arc_emitter_2" }
	component_set = "BIO_ARC_EMITTER_2"
	projectile_gfx = "focused_arc_emitter"
	tags = { weapon_type_energy weapon_role_artillery x_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0
	upgrades_to = "AVW_BIOSHIP_ARC_EMITTER_3"
	resources = {
		category = ship_components
		cost = {
			alloys = @xl_t6_cost
			rare_crystals = @xl_t6_rare
		}
		upkeep = {
			alloys = @xl_t6_upkeep_alloys
			food = @xl_t6_upkeep_energy
		}
	}

	target_weights = {
		titan = 3
		battleship = 2
		stinger_stage_1 = 1.5
		stinger_stage_2 = 2
		stinger_stage_3 = 2
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

strike_craft_component_template = {
	key = "BIO_STRIKE_CRAFT_HANGAR_3"
	size = LARGE
	entity = "bomber_entity"

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	power = @bio_strike_craft_power4
	resources = {
		category = ship_components
		cost = {
			food = @l_t5_cost
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			food = @l_t5_upkeep_energy
			alloys = @l_t5_upkeep_alloys
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	count = @count
	regeneration_per_day = @regen
	launch_time = @launch_time

	damage = { min = 3 max = 8.5 }
	cooldown = 2.3
	range = @attack_range
	engagement_range = @engagement_range
	accuracy = 1.00
	tracking = 1.00

	health = 6
	armor = 12.5
	shield = 0
	evasion = 0.80

	speed = @strike_craft_speed4
	rotation_speed = 0.8
	acceleration = 1

	shield_penetration = 1.0
	armor_damage = 1.5

	ship_behavior = "fighters_behavior"

	icon = "GFX_mutation_flagella_marsupium_3"
	icon_frame = 1
	component_set = "BIO_STRIKE_CRAFT_HANGAR_3"
	prerequisites = { "tech_strike_craft_3" }
	upgrades_to = "AVW_BIOSHIP_STRIKE_CRAFT_4"

	tags = { weapon_type_strike_craft }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }
}
