@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 = "AVW_BIOSHIP_MANDIBLE_4"
	size = torpedo
	type = instant
	entity = "invisible_turret_entity"

	icon = "GFX_avw_ship_part_bioship_mandible_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_bioship_mandibles_4" }
	component_set = "AVW_BIOSHIP_MANDIBLE_4"
	
	potential = {
		ship_uses_mauler_components = yes
	}
	
	projectile_gfx = "biogenesis_01_mandible_attack"
	tags = { weapon_type_mandible weapon_type_kinetic g_slot }
	ai_tags = { weapon_role_anti_armor }
	
	upgrades_to = "AVW_BIOSHIP_MANDIBLE_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 133
			rare_crystals = 1.408
		}
		upkeep = {
			food = 1.52
			alloys = 0.304
		}
	}

	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
		}
	}
	
	power = -30
	damage = { min = 27 max = 73 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 1
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 2 max = 6 }
	total_fire_time = 9
	range = 10
	accuracy = 1
	tracking = 0.5

	firing_arc = 25.0
	size_damage_factor = 0.1
	military_power_multiplier = 0.35
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MANDIBLE_5"
	size = torpedo
	type = instant
	entity = "invisible_turret_entity"

	icon = "GFX_avw_ship_part_bioship_mandible_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_bioship_mandibles_5" }
	component_set = "AVW_BIOSHIP_MANDIBLE_5"
	
	potential = {
		ship_uses_mauler_components = yes
	}
	
	projectile_gfx = "biogenesis_01_mandible_attack"
	tags = { weapon_type_mandible weapon_type_kinetic g_slot }
	ai_tags = { weapon_role_anti_armor }
	
	upgrades_to = "AVW_BIOSHIP_MANDIBLE_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 200
			rare_crystals = 2.112
		}
		upkeep = {
			food = 2.28
			alloys = 0.456
		}
	}

	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
		}
	}
	
	power = -39
	damage = { min = 35 max = 95 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 1
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 2 max = 6 }
	total_fire_time = 9
	range = 10
	accuracy = 1
	tracking = 0.5

	firing_arc = 25.0
	size_damage_factor = 0.1
	military_power_multiplier = 0.35
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MANDIBLE_6"
	size = torpedo
	type = instant
	entity = "invisible_turret_entity"

	icon = "GFX_avw_ship_part_bioship_mandible_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_bioship_mandibles_6" }
	component_set = "AVW_BIOSHIP_MANDIBLE_6"
	
	potential = {
		ship_uses_mauler_components = yes
	}
	
	projectile_gfx = "biogenesis_01_mandible_attack"
	tags = { weapon_type_mandible weapon_type_kinetic g_slot }
	ai_tags = { weapon_role_anti_armor }
	
	upgrades_to = "AVW_BIOSHIP_MANDIBLE_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			rare_crystals = 3.168
		}
		upkeep = {
			food = 3.42
			alloys = 0.684
		}
	}

	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
		}
	}
	
	power = -51
	damage = { min = 46 max = 123 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 1
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 2 max = 6 }
	total_fire_time = 9
	range = 10
	accuracy = 1
	tracking = 0.5

	firing_arc = 25.0
	size_damage_factor = 0.1
	military_power_multiplier = 0.35
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MANDIBLE_7"
	size = torpedo
	type = instant
	entity = "invisible_turret_entity"

	icon = "GFX_avw_ship_part_bioship_mandible_7"
	icon_frame = 1
	
	prerequisites = { "tech_avw_bioship_mandibles_7" }
	component_set = "AVW_BIOSHIP_MANDIBLE_7"
	
	potential = {
		ship_uses_mauler_components = yes
	}
	
	projectile_gfx = "biogenesis_01_mandible_attack"
	tags = { weapon_type_mandible weapon_type_kinetic g_slot }
	ai_tags = { weapon_role_anti_armor }
	
	resources = {
		category = ship_components
		cost = {
			alloys = 450
			rare_crystals = 4.752
		}
		upkeep = {
			food = 5.13
			alloys = 1.026
		}
	}

	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
		}
	}
	
	power = -66
	damage = { min = 60 max = 160 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 1
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 2 max = 6 }
	total_fire_time = 9
	range = 10
	accuracy = 1
	tracking = 0.5

	firing_arc = 25.0
	size_damage_factor = 0.1
	military_power_multiplier = 0.35
}

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

	icon = "GFX_mutation_avw_bio_plasma_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_plasma_4" }
	component_set = "AVW_BIOSHIP_PLASMA_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_plasma_4_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	
	upgrades_to = "AVW_BIOSHIP_SMALL_PLASMA_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 53
			exotic_gases = 0.563
		}
		upkeep = {
			food = 0.76
			alloys = 0.152
		}
	}

	ai_weight = {
		weight = 20
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -31
	damage = { min = 35 max = 93 }
	hull_damage = 1.5
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = 20
	accuracy = 0.8
	tracking = 0.4

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_plasma_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_plasma_4" }
	component_set = "AVW_BIOSHIP_PLASMA_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_plasma_4_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_PLASMA_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 133
			exotic_gases = 1.408
		}
		upkeep = {
			food = 1.52
			alloys = 0.304
		}
	}

	ai_weight = {
		weight = 20
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -63
	damage = { min = 70 max = 186 }
	hull_damage = 1.5
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = 60
	accuracy = 0.8
	tracking = 0.2

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_plasma_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_plasma_4" }
	component_set = "AVW_BIOSHIP_PLASMA_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_plasma_4_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	
	upgrades_to = "AVW_BIOSHIP_LARGE_PLASMA_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 333
			exotic_gases = 3.520
		}
		upkeep = {
			food = 3.04
			alloys = 0.608
		}
	}

	ai_weight = {
		weight = 20
		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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -142
	damage = { min = 168 max = 447 }
	hull_damage = 1.5
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 15 max = 60 }
	total_fire_time = 90
	range = 80
	accuracy = 0.8
	tracking = 0.05

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_plasma_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_plasma_5" }
	component_set = "AVW_BIOSHIP_PLASMA_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_plasma_5_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	
	upgrades_to = "AVW_BIOSHIP_SMALL_PLASMA_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 80
			exotic_gases = 0.845
		}
		upkeep = {
			food = 1.14
			alloys = 0.228
		}
	}

	ai_weight = {
		weight = 20
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -41
	damage = { min = 47 max = 124 }
	hull_damage = 1.5
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = 20
	accuracy = 0.8
	tracking = 0.4

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_plasma_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_plasma_5" }
	component_set = "AVW_BIOSHIP_PLASMA_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_plasma_5_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_PLASMA_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 200
			exotic_gases = 2.112
		}
		upkeep = {
			food = 2.28
			alloys = 0.456
		}
	}

	ai_weight = {
		weight = 20
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -84
	damage = { min = 93 max = 247 }
	hull_damage = 1.5
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = 60
	accuracy = 0.8
	tracking = 0.2

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_plasma_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_plasma_5" }
	component_set = "AVW_BIOSHIP_PLASMA_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_plasma_5_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	
	upgrades_to = "AVW_BIOSHIP_LARGE_PLASMA_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 500
			exotic_gases = 5.28
		}
		upkeep = {
			food = 4.56
			alloys = 0.912
		}
	}

	ai_weight = {
		weight = 20
		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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -189
	damage = { min = 223 max = 595 }
	hull_damage = 1.5
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 15 max = 60 }
	total_fire_time = 90
	range = 80
	accuracy = 0.8
	tracking = 0.05

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_plasma_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_plasma_6" }
	component_set = "AVW_BIOSHIP_PLASMA_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_plasma_6_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	
	resources = {
		category = ship_components
		cost = {
			alloys = 120
			exotic_gases = 1.268
		}
		upkeep = {
			food = 1.71
			alloys = 0.342
		}
	}

	ai_weight = {
		weight = 20
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -55
	damage = { min = 63 max = 165 }
	hull_damage = 1.5
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = 20
	accuracy = 0.8
	tracking = 0.4

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_plasma_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_plasma_6" }
	component_set = "AVW_BIOSHIP_PLASMA_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_plasma_6_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			exotic_gases = 3.168
		}
		upkeep = {
			food = 3.42
			alloys = 0.684
		}
	}

	ai_weight = {
		weight = 20
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -112
	damage = { min = 124 max = 329 }
	hull_damage = 1.5
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = 60
	accuracy = 0.8
	tracking = 0.2

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_plasma_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_plasma_6" }
	component_set = "AVW_BIOSHIP_PLASMA_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_plasma_6_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	ai_tag_weight = 3
	
	resources = {
		category = ship_components
		cost = {
			alloys = 750
			exotic_gases = 7.92
		}
		upkeep = {
			food = 6.84
			alloys = 1.368
		}
	}

	ai_weight = {
		weight = 20
		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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -251
	damage = { min = 297 max = 791 }
	hull_damage = 1.5
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 15 max = 60 }
	total_fire_time = 90
	range = 80
	accuracy = 0.8
	tracking = 0.05

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_ship_part_avw_bioship_autocannon_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_autocannons_4" }
	component_set = "AVW_BIOSHIP_AUTOCANNON_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	
	projectile_gfx = "avw_auto_cannons_4_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_AUTOCANNON_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 53
			volatile_motes = 0.563
		}
		upkeep = {
			food = 0.76
			alloys = 0.152
		}
	}

	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
			}
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -30
	damage = { min = 21 max = 44 }
	hull_damage = 1.25
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = 15
	accuracy = 0.85
	tracking = 0.75

	military_power_multiplier = 0.35
}

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

	icon = "GFX_ship_part_avw_bioship_autocannon_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_autocannons_4" }
	component_set = "AVW_BIOSHIP_AUTOCANNON_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_auto_cannons_4_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_AUTOCANNON_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 133
			volatile_motes = 1.408
		}
		upkeep = {
			food = 1.52
			alloys = 0.304
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -64
	damage = { min = 43 max = 88 }
	hull_damage = 1.25
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 2 max = 6 }
	total_fire_time = 9
	range = 35
	accuracy = 0.85
	tracking = 0.5

	military_power_multiplier = 0.35
}

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

	icon = "GFX_ship_part_avw_bioship_autocannon_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_autocannons_4" }
	component_set = "AVW_BIOSHIP_AUTOCANNON_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_auto_cannons_4_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_AUTOCANNON_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 333
			volatile_motes = 3.520
		}
		upkeep = {
			food = 3.04
			alloys = 0.608
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -146
	damage = { min = 101 max = 211 }
	hull_damage = 1.25
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 4 max = 16 }
	total_fire_time = 24
	range = 40
	accuracy = 0.85
	tracking = 0.25

	military_power_multiplier = 0.35
}

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

	icon = "GFX_ship_part_avw_bioship_autocannon_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_autocannons_5" }
	component_set = "AVW_BIOSHIP_AUTOCANNON_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	
	projectile_gfx = "avw_auto_cannons_5_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_AUTOCANNON_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 80
			volatile_motes = 0.845
		}
		upkeep = {
			food = 1.14
			alloys = 0.228
		}
	}

	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
			}
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -39
	damage = { min = 27 max = 87 }
	hull_damage = 1.25
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = 15
	accuracy = 0.85
	tracking = 0.75

	military_power_multiplier = 0.35
}

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

	icon = "GFX_ship_part_avw_bioship_autocannon_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_autocannons_5" }
	component_set = "AVW_BIOSHIP_AUTOCANNON_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_auto_cannons_5_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_AUTOCANNON_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 200
			volatile_motes = 2.112
		}
		upkeep = {
			food = 2.28
			alloys = 0.456
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -83
	damage = { min = 56 max = 114 }
	hull_damage = 1.25
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 2 max = 6 }
	total_fire_time = 9
	range = 35
	accuracy = 0.85
	tracking = 0.5

	military_power_multiplier = 0.35
}

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

	icon = "GFX_ship_part_avw_bioship_autocannon_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_autocannons_5" }
	component_set = "AVW_BIOSHIP_AUTOCANNON_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_auto_cannons_5_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_AUTOCANNON_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 500
			volatile_motes = 5.28
		}
		upkeep = {
			food = 4.56
			alloys = 0.912
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -190
	damage = { min = 131 max = 274 }
	hull_damage = 1.25
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 4 max = 16 }
	total_fire_time = 24
	range = 40
	accuracy = 0.85
	tracking = 0.25

	military_power_multiplier = 0.35
}

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

	icon = "GFX_ship_part_avw_bioship_autocannon_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_autocannons_6" }
	component_set = "AVW_BIOSHIP_AUTOCANNON_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	
	projectile_gfx = "avw_auto_cannons_6_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	
	resources = {
		category = ship_components
		cost = {
			alloys = 120
			volatile_motes = 1.268
		}
		upkeep = {
			food = 1.71
			alloys = 0.342
		}
	}

	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
			}
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -51
	damage = { min = 35 max = 113 }
	hull_damage = 1.25
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = 15
	accuracy = 0.85
	tracking = 0.75

	military_power_multiplier = 0.35
}

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

	icon = "GFX_ship_part_avw_bioship_autocannon_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_autocannons_6" }
	component_set = "AVW_BIOSHIP_AUTOCANNON_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_auto_cannons_6_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			volatile_motes = 3.168
		}
		upkeep = {
			food = 3.42
			alloys = 0.684
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -108
	damage = { min = 73 max = 148 }
	hull_damage = 1.25
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 2 max = 6 }
	total_fire_time = 9
	range = 35
	accuracy = 0.85
	tracking = 0.5

	military_power_multiplier = 0.35
}

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

	icon = "GFX_ship_part_avw_bioship_autocannon_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_autocannons_6" }
	component_set = "AVW_BIOSHIP_AUTOCANNON_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_auto_cannons_6_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth }
	
	resources = {
		category = ship_components
		cost = {
			alloys = 750
			volatile_motes = 7.92
		}
		upkeep = {
			food = 6.84
			alloys = 1.368
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -247
	damage = { min = 170 max = 356 }
	hull_damage = 1.25
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 4 max = 16 }
	total_fire_time = 24
	range = 40
	accuracy = 0.85
	tracking = 0.25

	military_power_multiplier = 0.35
}

weapon_component_template = {
	key = "AVW_BIOSHIP_TORPEDO_SWARMER_3"
	size = torpedo
	type = missile

	icon = "GFX_avw_ship_part_bioship_swarmer_3"
	icon_frame = 1
	
	prerequisites = { "tech_avw_swarmer_missiles_3" }
	component_set = "AVW_BIOSHIP_SWARMER_3"
	
	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
	}

	projectile_gfx = "avw_swarmer_missiles_3"
	tags = { weapon_type_explosive g_slot }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0
	
	upgrades_to = "AVW_BIOSHIP_TORPEDO_SWARMER_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 133
			volatile_motes = 1.408
		}
		upkeep = {
			food = 1.52
			alloys = 0.304
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -29
	damage = { min = 104 max = 145 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 0.5
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 120
	accuracy = 1
	tracking = 0.3

	military_power_multiplier = 1.1
	
	missile_speed = 400
	missile_evasion = 0
	missile_shield = 0
	missile_armor = 20
	missile_health = 40
	missile_retarget_range = 100
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MEDIUM_SWARMER_3"
	size = medium
	type = missile

	icon = "GFX_avw_ship_part_bioship_swarmer_3"
	icon_frame = 1
	
	prerequisites = { "tech_avw_swarmer_missiles_3" }
	component_set = "AVW_BIOSHIP_SWARMER_3"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_swarmer_missiles_3"
	tags = { weapon_type_explosive m_slot }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_SWARMER_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 133
			volatile_motes = 1.408
		}
		upkeep = {
			food = 1.52
			alloys = 0.304
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -29
	damage = { min = 104 max = 145 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 0.5
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 120
	accuracy = 1
	tracking = 0.3

	military_power_multiplier = 1.1
	
	missile_speed = 400
	missile_evasion = 0
	missile_shield = 0
	missile_armor = 20
	missile_health = 40
	missile_retarget_range = 100
}

weapon_component_template = {
	key = "AVW_BIOSHIP_TORPEDO_SWARMER_4"
	size = torpedo
	type = missile

	icon = "GFX_avw_ship_part_bioship_swarmer_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_swarmer_missiles_4" }
	component_set = "AVW_BIOSHIP_SWARMER_4"
	
	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
	}

	projectile_gfx = "avw_swarmer_missiles_4"
	tags = { weapon_type_explosive g_slot }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0
	
	upgrades_to = "AVW_BIOSHIP_TORPEDO_SWARMER_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 200
			volatile_motes = 2.112
		}
		upkeep = {
			food = 2.28
			alloys = 0.456
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -48
	damage = { min = 176 max = 247 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 0.5
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 120
	accuracy = 1
	tracking = 0.3

	military_power_multiplier = 1.1
	
	missile_speed = 400
	missile_evasion = 0
	missile_shield = 0
	missile_armor = 25
	missile_health = 50
	missile_retarget_range = 100
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MEDIUM_SWARMER_4"
	size = medium
	type = missile

	icon = "GFX_avw_ship_part_bioship_swarmer_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_swarmer_missiles_4" }
	component_set = "AVW_BIOSHIP_SWARMER_4"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_swarmer_missiles_4"
	tags = { weapon_type_explosive m_slot }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_SWARMER_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 200
			volatile_motes = 2.112
		}
		upkeep = {
			food = 2.28
			alloys = 0.456
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -48
	damage = { min = 176 max = 247 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 0.5
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 120
	accuracy = 1
	tracking = 0.3

	military_power_multiplier = 1.1
	
	missile_speed = 400
	missile_evasion = 0
	missile_shield = 0
	missile_armor = 25
	missile_health = 50
	missile_retarget_range = 100
}

weapon_component_template = {
	key = "AVW_BIOSHIP_TORPEDO_SWARMER_5"
	size = torpedo
	type = missile

	icon = "GFX_avw_ship_part_bioship_swarmer_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_swarmer_missiles_5" }
	component_set = "AVW_BIOSHIP_SWARMER_5"
	
	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
	}

	projectile_gfx = "avw_swarmer_missiles_5"
	tags = { weapon_type_explosive g_slot }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0
	
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			volatile_motes = 3.168
		}
		upkeep = {
			food = 3.42
			alloys = 0.684
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -82
	damage = { min = 299 max = 420 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 0.5
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 120
	accuracy = 1
	tracking = 0.3

	military_power_multiplier = 1.1
	
	missile_speed = 400
	missile_evasion = 0
	missile_shield = 0
	missile_armor = 30
	missile_health = 60
	missile_retarget_range = 100
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MEDIUM_SWARMER_5"
	size = medium
	type = missile

	icon = "GFX_avw_ship_part_bioship_swarmer_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_swarmer_missiles_5" }
	component_set = "AVW_BIOSHIP_SWARMER_5"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_swarmer_missiles_5"
	tags = { weapon_type_explosive m_slot }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0
	
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			volatile_motes = 3.168
		}
		upkeep = {
			food = 3.42
			alloys = 0.684
		}
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -82
	damage = { min = 299 max = 420 }
	hull_damage = 1.25
	shield_damage = 1
	shield_penetration = 0.5
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 120
	accuracy = 1
	tracking = 0.3

	military_power_multiplier = 1.1
	
	missile_speed = 400
	missile_evasion = 0
	missile_shield = 0
	missile_armor = 30
	missile_health = 60
	missile_retarget_range = 100
}

weapon_component_template = {
	key = "AVW_BIOSHIP_SMALL_LASER_6"
	size = small
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_6" }
	component_set = "AVW_BIOSHIP_LASER_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_6_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_LASER_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 53
			rare_crystals = 0.563
		}
		upkeep = {
			food = 0.76
			alloys = 0.152
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -22
	damage = { min = 28 max = 75 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 20
	accuracy = 0.9
	tracking = 0.5
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MEDIUM_LASER_6"
	size = medium
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_6" }
	component_set = "AVW_BIOSHIP_LASER_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_6_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_LASER_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 133
			rare_crystals = 1.408
		}
		upkeep = {
			food = 1.52
			alloys = 0.304
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -51
	damage = { min = 56 max = 150 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = 60
	accuracy = 0.9
	tracking = 0.3
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_LARGE_LASER_6"
	size = large
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_6" }
	component_set = "AVW_BIOSHIP_LASER_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_6_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_LASER_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 333
			rare_crystals = 3.520
		}
		upkeep = {
			food = 3.04
			alloys = 0.608
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -114
	damage = { min = 133 max = 359 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = 80
	accuracy = 0.9
	tracking = 0.05
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_SMALL_LASER_7"
	size = small
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_7"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_7" }
	component_set = "AVW_BIOSHIP_LASER_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_7_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_LASER_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 80
			rare_crystals = 0.845
		}
		upkeep = {
			food = 1.14
			alloys = 0.228
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -29
	damage = { min = 36 max = 98 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 20
	accuracy = 0.9
	tracking = 0.5
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MEDIUM_LASER_7"
	size = medium
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_7"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_7" }
	component_set = "AVW_BIOSHIP_LASER_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_7_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_LASER_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 200
			rare_crystals = 2.112
		}
		upkeep = {
			food = 2.28
			alloys = 0.456
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -66
	damage = { min = 73 max = 195 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = 60
	accuracy = 0.9
	tracking = 0.3
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_LARGE_LASER_7"
	size = large
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_7"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_7" }
	component_set = "AVW_BIOSHIP_LASER_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_7_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_LASER_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 500
			rare_crystals = 5.28
		}
		upkeep = {
			food = 4.56
			alloys = 0.912
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -187
	damage = { min = 173 max = 467 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = 80
	accuracy = 0.9
	tracking = 0.05
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_SMALL_LASER_8"
	size = small
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_8"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_8" }
	component_set = "AVW_BIOSHIP_LASER_8"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_8_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_LASER_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 120
			rare_crystals = 1.268
		}
		upkeep = {
			food = 1.71
			alloys = 0.342
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -38
	damage = { min = 47 max = 127 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 20
	accuracy = 0.9
	tracking = 0.5
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MEDIUM_LASER_8"
	size = medium
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_8"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_8" }
	component_set = "AVW_BIOSHIP_LASER_8"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_8_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_LASER_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			rare_crystals = 3.168
		}
		upkeep = {
			food = 3.42
			alloys = 0.684
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -86
	damage = { min = 95 max = 254 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = 60
	accuracy = 0.9
	tracking = 0.3
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_LARGE_LASER_8"
	size = large
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_8"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_8" }
	component_set = "AVW_BIOSHIP_LASER_8"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_8_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_LASER_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 750
			rare_crystals = 7.92
		}
		upkeep = {
			food = 6.84
			alloys = 1.368
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -243
	damage = { min = 225 max = 607 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = 80
	accuracy = 0.9
	tracking = 0.05
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_SMALL_LASER_9"
	size = small
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_9"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_9" }
	component_set = "AVW_BIOSHIP_LASER_9"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_9_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_LASER_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 180
			rare_crystals = 1.902
		}
		upkeep = {
			food = 2.565
			alloys = 0.513
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -49
	damage = { min = 61 max = 165 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 20
	accuracy = 0.9
	tracking = 0.5
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MEDIUM_LASER_9"
	size = medium
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_9"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_9" }
	component_set = "AVW_BIOSHIP_LASER_9"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_9_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_LASER_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 450
			rare_crystals = 4.752
		}
		upkeep = {
			food = 5.13
			alloys = 1.026
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -112
	damage = { min = 124 max = 330 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = 60
	accuracy = 0.9
	tracking = 0.3
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_LARGE_LASER_9"
	size = large
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_9"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_9" }
	component_set = "AVW_BIOSHIP_LASER_9"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_9_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_LASER_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 1125
			rare_crystals = 11.88
		}
		upkeep = {
			food = 10.26
			alloys = 2.052
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -316
	damage = { min = 293 max = 789 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = 80
	accuracy = 0.9
	tracking = 0.05
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_SMALL_LASER_10"
	size = small
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_10"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_10" }
	component_set = "AVW_BIOSHIP_LASER_10"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_10_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	resources = {
		category = ship_components
		cost = {
			alloys = 270
			rare_crystals = 2.853
		}
		upkeep = {
			food = 3.848
			alloys = 0.77
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -64
	damage = { min = 79 max = 215 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = 20
	accuracy = 0.9
	tracking = 0.5
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_MEDIUM_LASER_10"
	size = medium
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_10"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_10" }
	component_set = "AVW_BIOSHIP_LASER_10"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_10_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	resources = {
		category = ship_components
		cost = {
			alloys = 675
			rare_crystals = 7.128
		}
		upkeep = {
			food = 7.695
			alloys = 1.539
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -146
	damage = { min = 161 max = 429 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = 60
	accuracy = 0.9
	tracking = 0.3
	
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_LARGE_LASER_10"
	size = large
	type = instant
	
	icon = "GFX_mutation_avw_eye_beam_10"
	icon_frame = 1
	
	prerequisites = { "tech_avw_lasers_10" }
	component_set = "AVW_BIOSHIP_LASER_10"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_laser_10_l"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	
	resources = {
		category = ship_components
		cost = {
			alloys = 1688
			rare_crystals = 17.82
		}
		upkeep = {
			food = 15.39
			alloys = 3.078
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -411
	damage = { min = 381 max = 1025 }
	hull_damage = 1.25
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = 80
	accuracy = 0.9
	tracking = 0.05
	
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_6"
	icon_frame = 1

	prerequisites = { "tech_avw_mass_drivers_6" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_6_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth gunship }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_MASS_DRIVER_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 53
			volatile_motes = 0.563
		}
		upkeep = {
			food =  0.76
			alloys = 0.152
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -22
	damage = { min = 26 max = 75 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 4 max = 14 }
	total_fire_time = 20
	range = 25
	accuracy = 0.75
	tracking = 0.5

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_6" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_mass_driver_6_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield gunship}
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_MASS_DRIVER_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 133
			volatile_motes = 1.408
		}
		upkeep = {
			food =  1.52
			alloys = 0.304
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -51
	damage = { min = 52 max = 150 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = 75
	accuracy = 0.75
	tracking = 0.3

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_6" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_6_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield gunship }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_MASS_DRIVER_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 333
			volatile_motes = 3.520
		}
		upkeep = {
			food =  3.04
			alloys = 0.608
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -114
	damage = { min = 125 max = 359 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 10 max = 40 }
	total_fire_time = 60
	range = 100
	accuracy = 0.75
	tracking = 0.05

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_7"
	icon_frame = 1

	prerequisites = { "tech_avw_mass_drivers_7" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_7"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_7_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth gunship }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_MASS_DRIVER_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 80
			volatile_motes = 0.845
		}
		upkeep = {
			food =  1.14
			alloys = 0.228
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -29
	damage = { min = 34 max = 98 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 4 max = 14 }
	total_fire_time = 20
	range = 25
	accuracy = 0.75
	tracking = 0.5

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_7"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_7" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_7"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_mass_driver_7_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield gunship}
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_MASS_DRIVER_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 200
			volatile_motes = 2.112
		}
		upkeep = {
			food =  2.28
			alloys = 0.456
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -66
	damage = { min = 68 max = 195 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = 75
	accuracy = 0.75
	tracking = 0.3

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_7"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_7" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_7"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_7_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield gunship }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_MASS_DRIVER_8"
	resources = {
		category = ship_components
		cost = {
			alloys = 500
			volatile_motes = 5.28
		}
		upkeep = {
			food =  4.56
			alloys = 0.912
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -148
	damage = { min = 163 max = 467 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 10 max = 40 }
	total_fire_time = 60
	range = 100
	accuracy = 0.75
	tracking = 0.05

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_8"
	icon_frame = 1

	prerequisites = { "tech_avw_mass_drivers_8" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_8"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_8_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth gunship }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_MASS_DRIVER_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 120
			volatile_motes = 1.268
		}
		upkeep = {
			food = 1.71
			alloys = 0.342
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -38
	damage = { min = 44 max = 127 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 4 max = 14 }
	total_fire_time = 20
	range = 25
	accuracy = 0.75
	tracking = 0.5

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_8"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_8" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_8"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_mass_driver_8_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield gunship}
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_MASS_DRIVER_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			volatile_motes = 3.168
		}
		upkeep = {
			food =  3.42
			alloys = 0.684
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -86
	damage = { min = 88 max = 254 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = 75
	accuracy = 0.75
	tracking = 0.3

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_8"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_8" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_8"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_8_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield gunship }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_MASS_DRIVER_9"
	resources = {
		category = ship_components
		cost = {
			alloys = 750
			volatile_motes = 7.92
		}
		upkeep = {
			food =  6.84
			alloys = 1.368
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -192
	damage = { min = 212 max = 607 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 10 max = 40 }
	total_fire_time = 60
	range = 100
	accuracy = 0.75
	tracking = 0.05

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_9"
	icon_frame = 1

	prerequisites = { "tech_avw_mass_drivers_9" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_9"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_9_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth gunship }
	
	upgrades_to = "AVW_BIOSHIP_SMALL_MASS_DRIVER_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 180
			volatile_motes = 1.902
		}
		upkeep = {
			food =  2.565
			alloys = 0.513
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -49
	damage = { min = 57 max = 165 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 4 max = 14 }
	total_fire_time = 20
	range = 25
	accuracy = 0.75
	tracking = 0.5

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_9"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_9" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_9"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_mass_driver_9_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield gunship}
	
	upgrades_to = "AVW_BIOSHIP_MEDIUM_MASS_DRIVER_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 450
			volatile_motes = 4.752
		}
		upkeep = {
			food =  5.13
			alloys = 1.026
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -112
	damage = { min = 114 max = 330 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = 75
	accuracy = 0.75
	tracking = 0.3

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_9"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_9" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_9"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_9_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield gunship }
	
	upgrades_to = "AVW_BIOSHIP_LARGE_MASS_DRIVER_10"
	resources = {
		category = ship_components
		cost = {
			alloys = 1125
			volatile_motes = 11.88
		}
		upkeep = {
			food =  10.26
			alloys = 2.052
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -250
	damage = { min = 276 max = 789 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 10 max = 40 }
	total_fire_time = 60
	range = 100
	accuracy = 0.75
	tracking = 0.05

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_10"
	icon_frame = 1

	prerequisites = { "tech_avw_mass_drivers_10" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_10"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_10_s"
	tags = { weapon_type_kinetic s_slot }
	ai_tags = { weapon_role_anti_shield brawler brawler_stealth gunship }

	resources = {
		category = ship_components
		cost = {
			alloys = 270
			volatile_motes = 2.853
		}
		upkeep = {
			food = 3.848
			alloys = 0.77
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -64
	damage = { min = 74 max = 215 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 4 max = 14 }
	total_fire_time = 20
	range = 25
	accuracy = 0.75
	tracking = 0.5

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_10"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_10" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_10"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "avw_mass_driver_10_m"
	tags = { weapon_type_kinetic m_slot }
	ai_tags = { weapon_role_anti_shield gunship}

	resources = {
		category = ship_components
		cost = {
			alloys = 675
			volatile_motes = 7.128
		}
		upkeep = {
			food = 7.695
			alloys = 1.539
		}
	}

	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 = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -146
	damage = { min = 148 max = 429 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = 75
	accuracy = 0.75
	tracking = 0.3

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_shard_accelerator_10"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_drivers_10" }
	component_set = "AVW_BIOSHIP_MASS_DRIVER_10"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_driver_10_l"
	tags = { weapon_type_kinetic l_slot }
	ai_tags = { weapon_role_anti_shield gunship }

	resources = {
		category = ship_components
		cost = {
			alloys = 1688
			volatile_motes = 17.82
		}
		upkeep = {
			food = 15.39
			alloys = 3.078
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -325
	damage = { min = 359 max = 1026 }
	hull_damage = 1
	shield_damage = 1.5 
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 10 max = 40 }
	total_fire_time = 60
	range = 100
	accuracy = 0.75
	tracking = 0.05

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_disruptor_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_disruptors_4" }
	component_set = "AVW_BIOSHIP_DISRUPTOR_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_disruptor_4_s"
	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_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 53
			rare_crystals = 0.563
		}
		upkeep = {
			food = 0.76
			alloys = 0.152
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	target_type = target_enemies
	injected_modifier = {
		modifier = {
			modifier = disruptor_regen_debuff_4
			days = 10
		}
		stack_info = {
			id = disruptor_regen
			priority = 4
		}
	}
	
	power = -22
	damage = { min = 1 max = 31 }
	hull_damage = 1.00
	shield_damage = 1.25
	shield_penetration = 0.80
	armor_damage = 1.00
	armor_penetration = 0.80
	
	windup = { min = 3 max = 11 }
	total_fire_time = 16
	range = 15
	accuracy = 1
	tracking = 0.6

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_disruptor_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_disruptors_4" }
	component_set = "AVW_BIOSHIP_DISRUPTOR_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_disruptor_4_m"
	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_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 133
			rare_crystals = 1.408
		}
		upkeep = {
			food = 1.52
			alloys = 0.304
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	target_type = target_enemies
	injected_modifier = {
		modifier = {
			modifier = disruptor_regen_debuff_4
			days = 10
		}
		stack_info = {
			id = disruptor_regen
			priority = 4
		}
	}
	
	power = -51
	damage = { min = 1 max = 62 }
	hull_damage = 1.00
	shield_damage = 1.25
	shield_penetration = 0.80
	armor_damage = 1.00
	armor_penetration = 0.80
	
	windup = { min = 4 max = 16 }
	total_fire_time = 24
	range = 40
	accuracy = 1
	tracking = 0.35

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_disruptor_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_disruptors_5" }
	component_set = "AVW_BIOSHIP_DISRUPTOR_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_disruptor_5_s"
	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_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 80
			rare_crystals = 0.845
		}
		upkeep = {
			food = 1.14
			alloys = 0.228
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	target_type = target_enemies
	injected_modifier = {
		modifier = {
			modifier = disruptor_regen_debuff_5
			days = 10
		}
		stack_info = {
			id = disruptor_regen
			priority = 5
		}
	}
	
	power = -29
	damage = { min = 1 max = 40 }
	hull_damage = 1.00
	shield_damage = 1.25
	shield_penetration = 0.90
	armor_damage = 1.00
	armor_penetration = 0.90
	
	windup = { min = 3 max = 11 }
	total_fire_time = 16
	range = 15
	accuracy = 1
	tracking = 0.6

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_disruptor_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_disruptors_5" }
	component_set = "AVW_BIOSHIP_DISRUPTOR_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_disruptor_5_m"
	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_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 200
			rare_crystals = 2.112
		}
		upkeep = {
			food = 2.28
			alloys = 0.456
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	target_type = target_enemies
	injected_modifier = {
		modifier = {
			modifier = disruptor_regen_debuff_5
			days = 10
		}
		stack_info = {
			id = disruptor_regen
			priority = 5
		}
	}
	
	power = -66
	damage = { min = 1 max = 81 }
	hull_damage = 1.00
	shield_damage = 1.25
	shield_penetration = 0.90
	armor_damage = 1.00
	armor_penetration = 0.90
	
	windup = { min = 4 max = 16 }
	total_fire_time = 24
	range = 40
	accuracy = 1
	tracking = 0.35

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_disruptor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_disruptors_6" }
	component_set = "AVW_BIOSHIP_DISRUPTOR_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_disruptor_6_s"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth }
	ai_tag_weight = 5
	
	resources = {
		category = ship_components
		cost = {
			alloys = 120
			rare_crystals = 1.268
		}
		upkeep = {
			food = 1.71
			alloys = 0.342
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	target_type = target_enemies
	injected_modifier = {
		modifier = {
			modifier = disruptor_regen_debuff_6
			days = 10
		}
		stack_info = {
			id = disruptor_regen
			priority = 6
		}
	}
	
	power = -38
	damage = { min = 1 max = 52 }
	hull_damage = 1.00
	shield_damage = 1.25
	shield_penetration = 1.00
	armor_damage = 1.00
	armor_penetration = 1.00
	
	windup = { min = 3 max = 11 }
	total_fire_time = 16
	range = 15
	accuracy = 1
	tracking = 0.6

	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_disruptor_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_disruptors_6" }
	component_set = "AVW_BIOSHIP_DISRUPTOR_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_disruptor_6_m"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth }
	ai_tag_weight = 5
	
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			rare_crystals = 3.168
		}
		upkeep = {
			food = 3.42
			alloys = 0.684
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	target_type = target_enemies
	injected_modifier = {
		modifier = {
			modifier = disruptor_regen_debuff_6
			days = 10
		}
		stack_info = {
			id = disruptor_regen
			priority = 6
		}
	}
	
	power = -86
	damage = { min = 1 max = 105 }
	hull_damage = 1.00
	shield_damage = 1.25
	shield_penetration = 1.00
	armor_damage = 1.00
	armor_penetration = 1.00
	
	windup = { min = 4 max = 16 }
	total_fire_time = 24
	range = 40
	accuracy = 1
	tracking = 0.35

	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_PD_4"
	size = point_defence
	type = point_defence

	icon = "GFX_avw_ship_part_pd_4"
	icon_frame = 1

	prerequisites = { "tech_avw_pd_tracking_4" }
	component_set = "AVW_BIOSHIP_PD_4"
	
	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
	}
	
	projectile_gfx = "red_spitter_gun"
	tags = { weapon_type_point_defense weapon_type_energy }
	ai_tags = { weapon_role_point_defense screen }
	
	upgrades_to = "AVW_BIOSHIP_PD_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 17
		}
		upkeep = {
			food = 0.17
			alloys = 0.017
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -17
	damage = { min = 5 max = 10 }
	hull_damage = 1
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0.25
	
	windup = { min = 1 max = 4 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.4

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_BIOSHIP_PD_5"
	size = point_defence
	type = point_defence

	icon = "GFX_avw_ship_part_pd_5"
	icon_frame = 1

	prerequisites = { "tech_avw_pd_tracking_5" }
	component_set = "AVW_BIOSHIP_PD_5"
	
	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
	}
	
	projectile_gfx = "blue_spitter_gun"
	tags = { weapon_type_point_defense weapon_type_energy }
	ai_tags = { weapon_role_point_defense screen }
	
	upgrades_to = "AVW_BIOSHIP_PD_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 22
		}
		upkeep = {
			food = 0.22
			alloys = 0.022
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -22
	damage = { min = 6 max = 12 }
	hull_damage = 1
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0.25
	
	windup = { min = 1 max = 4 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.6

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_BIOSHIP_PD_6"
	size = point_defence
	type = point_defence

	icon = "GFX_avw_ship_part_pd_6"
	icon_frame = 1

	prerequisites = { "tech_avw_pd_tracking_6" }
	component_set = "AVW_BIOSHIP_PD_6"
	
	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
	}
	
	projectile_gfx = "white_spitter_gun"
	tags = { weapon_type_point_defense weapon_type_energy }
	ai_tags = { weapon_role_point_defense screen }
	
	resources = {
		category = ship_components
		cost = {
			alloys = 29
		}
		upkeep = {
			food = 0.29
			alloys = 0.029
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -29
	damage = { min = 7 max = 14 }
	hull_damage = 1
	shield_damage = 0.25
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0.25
	
	windup = { min = 1 max = 4 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.7

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_BIOSHIP_FLAK_4"
	size = point_defence
	type = point_defence

	icon = "GFX_mutation_avw_barb_4"
	icon_frame = 1

	prerequisites = { "tech_avw_flak_batteries_4" }
	component_set = "AVW_BIOSHIP_FLAK_4"
	
	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
	}
	
	projectile_gfx = "barb_battery_3"
	tags = { weapon_type_point_defense weapon_type_kinetic }
	ai_tags = { weapon_role_point_defense screen }
	
	upgrades_to = "AVW_BIOSHIP_FLAK_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 17
		}
		upkeep = {
			food = 0.17
			alloys = 0.017
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -17
	damage = { min = 5 max = 10 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0.25
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 1 max = 4 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.8

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_BIOSHIP_FLAK_5"
	size = point_defence
	type = point_defence

	icon = "GFX_mutation_avw_barb_5"
	icon_frame = 1

	prerequisites = { "tech_avw_flak_batteries_5" }
	component_set = "AVW_BIOSHIP_FLAK_5"
	
	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
	}
	
	projectile_gfx = "barb_battery_3"
	tags = { weapon_type_point_defense weapon_type_kinetic }
	ai_tags = { weapon_role_point_defense screen }
	
	upgrades_to = "AVW_BIOSHIP_FLAK_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 22
		}
		upkeep = {
			food = 0.22
			alloys = 0.022
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -22
	damage = { min = 6 max = 12 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0.25
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 1 max = 4 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 0.9

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_BIOSHIP_FLAK_6"
	size = point_defence
	type = point_defence

	icon = "GFX_mutation_avw_barb_6"
	icon_frame = 1

	prerequisites = { "tech_avw_flak_batteries_6" }
	component_set = "AVW_BIOSHIP_FLAK_6"
	
	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
	}
	
	projectile_gfx = "barb_battery_3"
	tags = { weapon_type_point_defense weapon_type_kinetic }
	ai_tags = { weapon_role_point_defense screen }
	
	resources = {
		category = ship_components
		cost = {
			alloys = 22
		}
		upkeep = {
			food = 0.22
			alloys = 0.022
		}
	}

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	point_defence_targets = { "missile" "strike_craft" }
	
	power = -29
	damage = { min = 7 max = 14 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0.25
	armor_damage = 0.25
	armor_penetration = 0
	
	windup = { min = 1 max = 4 }
	total_fire_time = 5
	range = 30
	accuracy = 0.75
	tracking = 1.0

	military_power_multiplier = 0.75
}

weapon_component_template = {
	key = "AVW_BIOSHIP_ENERGY_TORPEDO_3"
	size = torpedo
	type = instant
	
	icon = "GFX_mutation_avw_bio_energy_torpedo_3"
	icon_frame = 1
	
	prerequisites = { "tech_avw_energy_torpedoes_3" }
	component_set = "AVW_BIOSHIP_ENERGY_TORPEDO_3"
	
	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
	}
	
	projectile_gfx = "avw_energy_torpedo_3"
	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_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 500
			exotic_gases = 5.283
		}
		upkeep = {
			food = 4.56
			alloys = 0.912
		}
	}
	
	ai_weight = {
		weight = 2
		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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	power = -100
	damage = { min = 79 max = 171 }
	hull_damage = 1.75
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0
	
	windup = { min = 25 max = 100 }
	total_fire_time = 150
	range = 120
	accuracy = 0.75
	tracking = 0
	
	firing_arc = 25.0
	min_range = 45.0
	size_damage_factor = 0.2
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_ENERGY_TORPEDO_4"
	size = torpedo
	type = instant
	
	icon = "GFX_mutation_avw_bio_energy_torpedo_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_energy_torpedoes_4" }
	component_set = "AVW_BIOSHIP_ENERGY_TORPEDO_4"
	
	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
	}
	
	projectile_gfx = "avw_energy_torpedo_4"
	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_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 750
			exotic_gases = 7.925
		}
		upkeep = {
			food = 6.84
			alloys = 1.368
		}
	}
	
	ai_weight = {
		weight = 2
		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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	power = -130
	damage = { min = 103 max = 222 }
	hull_damage = 1.75
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0

	windup = { min = 25 max = 100 }
	total_fire_time = 150
	range = 120
	accuracy = 0.75
	tracking = 0
	
	firing_arc = 25.0
	min_range = 45.0
	size_damage_factor = 0.2
	military_power_multiplier = 1
}

weapon_component_template = {
	key = "AVW_BIOSHIP_ENERGY_TORPEDO_5"
	size = torpedo
	type = instant
	
	icon = "GFX_mutation_avw_bio_energy_torpedo_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_energy_torpedoes_5" }
	component_set = "AVW_BIOSHIP_ENERGY_TORPEDO_5"
	
	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
	}
	
	projectile_gfx = "avw_energy_torpedo_5"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth }
	ai_tag_weight = 0
	
	resources = {
		category = ship_components
		cost = {
			alloys = 1125
			exotic_gases = 11.888
		}
		upkeep = {
			food = 10.26
			alloys = 2.052
		}
	}
	
	ai_weight = {
		weight = 2
		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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}

	power = -169
	damage = { min = 134 max = 288 }
	hull_damage = 1.75
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 1.5
	armor_penetration = 0

	windup = { min = 25 max = 100 }
	total_fire_time = 150
	range = 120
	accuracy = 0.75
	tracking = 0
	
	firing_arc = 25.0
	min_range = 45.0
	size_damage_factor = 0.2
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bombard_3"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_accelerator_3" }
	component_set = "AVW_BIOSHIP_MASS_ACCELERATOR_3"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_accelerator_3"
	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_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 1250
			volatile_motes = 13.208
		}
		upkeep = {
			food = 9.12
			alloys = 1.823
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -338
	damage = { min = 946 max = 2704 }
	hull_damage = 1
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.75
	armor_penetration = 0
	
	windup = { min = 20 max = 80 }
	total_fire_time = 120
	range = 120
	accuracy = 0.75
	tracking = 0

	firing_arc = 25.0
	min_range = 45.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bombard_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_accelerator_4" }
	component_set = "AVW_BIOSHIP_MASS_ACCELERATOR_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_accelerator_4"
	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_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 1875
			volatile_motes = 19.812
		}
		upkeep = {
			food = 13.68
			alloys = 2.735
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -439
	damage = { min = 1230 max = 3515 }
	hull_damage = 1
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.75
	armor_penetration = 0
	
	windup = { min = 20 max = 80 }
	total_fire_time = 120
	range = 120
	accuracy = 0.75
	tracking = 0

	firing_arc = 25.0
	min_range = 45.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bombard_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_accelerator_5" }
	component_set = "AVW_BIOSHIP_MASS_ACCELERATOR_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_accelerator_5"
	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_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 2813
			volatile_motes = 29.718
		}
		upkeep = {
			food = 20.52
			alloys = 4.103
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -571
	damage = { min = 1599 max = 4570 }
	hull_damage = 1
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.75
	armor_penetration = 0
	
	windup = { min = 20 max = 80 }
	total_fire_time = 120
	range = 120
	accuracy = 0.75
	tracking = 0

	firing_arc = 25.0
	min_range = 45.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bombard_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_accelerator_6" }
	component_set = "AVW_BIOSHIP_MASS_ACCELERATOR_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_accelerator_6"
	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_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 4220
			volatile_motes = 44.577
		}
		upkeep = {
			food = 30.78
			alloys = 6.155
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -742
	damage = { min = 2079 max = 5941 }
	hull_damage = 1
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.75
	armor_penetration = 0
	
	windup = { min = 20 max = 80 }
	total_fire_time = 120
	range = 120
	accuracy = 0.75
	tracking = 0

	firing_arc = 25.0
	min_range = 45.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bombard_7"
	icon_frame = 1
	
	prerequisites = { "tech_avw_mass_accelerator_7" }
	component_set = "AVW_BIOSHIP_MASS_ACCELERATOR_7"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_mass_accelerator_7"
	tags = { weapon_type_kinetic weapon_role_artillery x_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0

	resources = {
		category = ship_components
		cost = {
			alloys = 6330
			volatile_motes = 66.866
		}
		upkeep = {
			food = 46.17
			alloys = 9.233
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -965
	damage = { min = 2703 max = 7723 }
	hull_damage = 1
	shield_damage = 1.5
	shield_penetration = 0
	armor_damage = 0.75
	armor_penetration = 0
	
	windup = { min = 20 max = 80 }
	total_fire_time = 120
	range = 120
	accuracy = 0.75
	tracking = 0

	firing_arc = 25.0
	min_range = 45.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_chitin_3"
	icon_frame = 1

	prerequisites = { "tech_avw_kinetic_artillery_3" }
	component_set = "AVW_BIOSHIP_KINETIC_ARTILLERY_3"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_kinetic_artillery_3"
	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_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 500
			volatile_motes = 5.28
		}
		upkeep = {
			food = 4.56
			alloys = 0.912
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -118
	damage = { min = 202 max = 608 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 13 max = 50 }
	total_fire_time = 75
	range = 96
	accuracy = 0.75
	tracking = 0

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_chitin_4"
	icon_frame = 1

	prerequisites = { "tech_avw_kinetic_artillery_4" }
	component_set = "AVW_BIOSHIP_KINETIC_ARTILLERY_4"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_kinetic_artillery_4"
	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_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 750
			volatile_motes = 7.92
		}
		upkeep = {
			food = 6.84
			alloys = 1.368
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -153
	damage = { min = 263 max = 790 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 13 max = 50 }
	total_fire_time = 75
	range = 96
	accuracy = 0.75
	tracking = 0

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_chitin_5"
	icon_frame = 1

	prerequisites = { "tech_avw_kinetic_artillery_5" }
	component_set = "AVW_BIOSHIP_KINETIC_ARTILLERY_5"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_kinetic_artillery_5"
	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_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 1125
			volatile_motes = 11.88
		}
		upkeep = {
			food = 10.26
			alloys = 2.052
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -199
	damage = { min = 342 max = 1027 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 13 max = 50 }
	total_fire_time = 75
	range = 96
	accuracy = 0.75
	tracking = 0

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_chitin_6"
	icon_frame = 1

	prerequisites = { "tech_avw_kinetic_artillery_6" }
	component_set = "AVW_BIOSHIP_KINETIC_ARTILLERY_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_kinetic_artillery_6"
	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_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 1688
			volatile_motes = 17.82
		}
		upkeep = {
			food = 15.39
			alloys = 3.078
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -259
	damage = { min = 445 max = 1335 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 13 max = 50 }
	total_fire_time = 75
	range = 96
	accuracy = 0.75
	tracking = 0

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_chitin_7"
	icon_frame = 1

	prerequisites = { "tech_avw_kinetic_artillery_7" }
	component_set = "AVW_BIOSHIP_KINETIC_ARTILLERY_7"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_kinetic_artillery_7"
	tags = { weapon_type_kinetic l_slot weapon_role_artillery }
	ai_tags = { weapon_role_artillery artillery artillery_stealth }
	ai_tag_weight = 0

	resources = {
		category = ship_components
		cost = {
			alloys = 2532
			volatile_motes = 26.73
		}
		upkeep = {
			food = 23.085
			alloys = 4.617
		}
	}

	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
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -337
	damage = { min = 579 max = 1736 }
	hull_damage = 1
	shield_damage = 2
	shield_penetration = 0
	armor_damage = 0.5
	armor_penetration = 0
	
	windup = { min = 13 max = 50 }
	total_fire_time = 75
	range = 96
	accuracy = 0.75
	tracking = 0

	min_range = 45.0
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_beam_3"
	icon_frame = 1
	
	prerequisites = { "tech_avw_energy_lance_3" }
	component_set = "AVW_BIOSHIP_ENERGY_LANCE_3"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_energy_lance_3"
	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_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 1250
			rare_crystals = 13.208
		}
		upkeep = {
			food = 9.12
			alloys = 1.823
		}
	}

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

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -338
	damage = { min = 811 max = 2028 }
	hull_damage = 1.5
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 18 max = 70 }
	total_fire_time = 105
	range = 120
	accuracy = 0.85
	tracking = 0
	
	firing_arc = 25.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_beam_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_energy_lance_4" }
	component_set = "AVW_BIOSHIP_ENERGY_LANCE_4"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_energy_lance_4"
	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_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 1875
			rare_crystals = 19.812
		}
		upkeep = {
			food = 13.68
			alloys = 2.735
		}
	}

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

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -439
	damage = { min = 1054 max = 2636 }
	hull_damage = 1.5
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 18 max = 70 }
	total_fire_time = 105
	range = 120
	accuracy = 0.85
	tracking = 0
	
	firing_arc = 25.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_beam_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_energy_lance_5" }
	component_set = "AVW_BIOSHIP_ENERGY_LANCE_5"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_energy_lance_5"
	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_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 2813
			rare_crystals = 29.718
		}
		upkeep = {
			food = 20.52
			alloys = 4.103
		}
	}

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

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -571
	damage = { min = 1370 max = 3426 }
	hull_damage = 1.5
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 18 max = 70 }
	total_fire_time = 105
	range = 120
	accuracy = 0.85
	tracking = 0
	
	firing_arc = 25.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_beam_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_energy_lance_6" }
	component_set = "AVW_BIOSHIP_ENERGY_LANCE_6"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_energy_lance_6"
	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_7"
	resources = {
		category = ship_components
		cost = {
			alloys = 4220
			rare_crystals = 44.577
		}
		upkeep = {
			food = 30.78
			alloys = 6.155
		}
	}

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

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -743
	damage = { min = 1781 max = 4454 }
	hull_damage = 1.5
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 18 max = 70 }
	total_fire_time = 105
	range = 120
	accuracy = 0.85
	tracking = 0
	
	firing_arc = 25.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_bio_beam_7"
	icon_frame = 1
	
	prerequisites = { "tech_avw_energy_lance_7" }
	component_set = "AVW_BIOSHIP_ENERGY_LANCE_7"

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

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_energy_lance_7"
	tags = { weapon_type_energy weapon_role_artillery x_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0
	
	resources = {
		category = ship_components
		cost = {
			alloys = 6330
			rare_crystals = 66.866
		}
		upkeep = {
			food = 46.17
			alloys = 9.233
		}
	}

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

	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	power = -965
	damage = { min = 2315 max = 5790 }
	hull_damage = 1.5
	shield_damage = 0.5
	shield_penetration = 0
	armor_damage = 2
	armor_penetration = 0
	
	windup = { min = 18 max = 70 }
	total_fire_time = 105
	range = 120
	accuracy = 0.85
	tracking = 0
	
	firing_arc = 25.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_lightning_emitter_3"
	icon_frame = 1
	
	prerequisites = { "tech_avw_arc_emitter_3" }
	component_set = "AVW_BIOSHIP_ARC_EMITTER_3"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	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_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 1250
			rare_crystals = 13.208
		}
		upkeep = {
			food = 9.12
			alloys = 1.823
		}
	}

	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 }
		}
	}
	
	power = -338
	damage = { min = 3 max = 1718 }
	hull_damage = 1
	shield_damage = 1
	shield_penetration = 1
	armor_damage = 1
	armor_penetration = 1
	
	windup = { min = 18 max = 71 }
	total_fire_time = 106
	range = 120
	accuracy = 1
	tracking = 0
	
	firing_arc = 35.0
	min_range = 10.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

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

	icon = "GFX_mutation_avw_lightning_emitter_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_arc_emitter_4" }
	component_set = "AVW_BIOSHIP_ARC_EMITTER_4"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	projectile_gfx = "focused_arc_emitter"
	tags = { weapon_type_energy weapon_role_artillery x_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0
	
	resources = {
		category = ship_components
		cost = {
			alloys = 1875
			rare_crystals = 19.812
		}
		upkeep = {
			food = 13.68
			alloys = 2.735
		}
	}

	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 }
		}
	}
	
	power = -439
	damage = { min = 4 max = 2233 }
	hull_damage = 1
	shield_damage = 1
	shield_penetration = 1
	armor_damage = 1
	armor_penetration = 1
	
	windup = { min = 18 max = 71 }
	total_fire_time = 106
	range = 120
	accuracy = 1
	tracking = 0
	
	firing_arc = 35.0
	min_range = 10.0
	use_ship_main_target = no
	military_power_multiplier = 1
}

strike_craft_component_template = {
	key = "AVW_BIOSHIP_STRIKE_CRAFT_4"
	size = LARGE
	entity = "bomber_entity"
	weapon_type = point_defence
	
	icon = "GFX_mutation_avw_flagella_4"
	icon_frame = 1
	
	prerequisites = { "tech_avw_strike_craft_4" }
	component_set = "AVW_BIOSHIP_STRIKE_CRAFT_4"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}
	
	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_strike_craft_laser_4"
	tags = { weapon_type_strike_craft }
	ai_tags = { weapon_role_point_defense carrier }
	
	upgrades_to = "AVW_BIOSHIP_STRIKE_CRAFT_5"
	resources = {
		category = ship_components
		cost = {
			food = 333
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			food = 3.04
			alloys = 0.608
		}
	}
	
	ai_weight = {
		weight = 4
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	ship_behavior = "fighters_behavior"
	point_defence_targets = { "strike_craft" }
	
	power = -73
	damage = { min = 3.5 max = 10 }
	hull_damage = 1
	shield_damage = 1
	shield_penetration = 1
	armor_damage = 1.5
	armor_penetration = 0
	
	cooldown = 2.3
	range = 10
	engagement_range = 125
	accuracy = 1.00
	tracking = 1.00
	
	military_power_multiplier = 1
	
	speed = 750
	health = 7
	armor = 15
	shield = 0
	evasion = 0.85

	
	count = 16
	regeneration_per_day = 1
	launch_time = 2
	rotation_speed = 0.80
	acceleration = 1
}

strike_craft_component_template = {
	key = "AVW_BIOSHIP_STRIKE_CRAFT_5"
	size = LARGE
	entity = "bomber_entity"
	weapon_type = point_defence
	
	icon = "GFX_mutation_avw_flagella_5"
	icon_frame = 1
	
	prerequisites = { "tech_avw_strike_craft_5" }
	component_set = "AVW_BIOSHIP_STRIKE_CRAFT_5"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}
	
	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_strike_craft_laser_5"
	tags = { weapon_type_strike_craft }
	ai_tags = { weapon_role_point_defense carrier }
	
	upgrades_to = "AVW_BIOSHIP_STRIKE_CRAFT_6"
	resources = {
		category = ship_components
		cost = {
			food = 500
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			food = 4.56
			alloys = 0.912
		}
	}
	
	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	ship_behavior = "fighters_behavior"
	point_defence_targets = { "strike_craft" }
	
	power = -95
	damage = { min = 4 max = 12 }
	hull_damage = 1
	shield_damage = 1
	shield_penetration = 1
	armor_damage = 1.5
	armor_penetration = 0
	
	cooldown = 2.3
	range = 10
	engagement_range = 125
	accuracy = 1.00
	tracking = 1.00
	
	military_power_multiplier = 1
	
	speed = 800
	health = 8
	armor = 18
	shield = 0
	evasion = 0.90

	
	count = 16
	regeneration_per_day = 1
	launch_time = 2
	rotation_speed = 0.80
	acceleration = 1
}

strike_craft_component_template = {
	key = "AVW_BIOSHIP_STRIKE_CRAFT_6"
	size = LARGE
	entity = "bomber_entity"
	weapon_type = point_defence
	
	icon = "GFX_mutation_avw_flagella_6"
	icon_frame = 1
	
	prerequisites = { "tech_avw_strike_craft_6" }
	component_set = "AVW_BIOSHIP_STRIKE_CRAFT_6"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}
	
	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	projectile_gfx = "avw_strike_craft_laser_6"
	tags = { weapon_type_strike_craft }
	ai_tags = { weapon_role_point_defense carrier }
	
	resources = {
		category = ship_components
		cost = {
			food = 750
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			food = 6.84
			alloys = 1.368
		}
	}
	
	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			avw_fallen_empire_check = true
		}
	}
	
	ship_behavior = "fighters_behavior"
	point_defence_targets = { "strike_craft" }
	
	power = -124
	damage = { min = 5 max = 14 }
	hull_damage = 1
	shield_damage = 1
	shield_penetration = 1
	armor_damage = 1.5
	armor_penetration = 0
	
	cooldown = 2.3
	range = 10
	engagement_range = 125
	accuracy = 1.00
	tracking = 1.00
	
	military_power_multiplier = 1
	
	speed = 850
	health = 8
	armor = 18
	shield = 0
	evasion = 0.95

	
	count = 16
	regeneration_per_day = 1
	launch_time = 2
	rotation_speed = 0.80
	acceleration = 1
}
