# ####################
# Voidworms
# ####################

### Spikespores
weapon_component_template = {
	key = "SPIKESPORES_1"
	size = medium

	icon = "GFX_ship_part_spikespores"
	icon_frame = 1
	type = missile

	potential = {
		OR = {
			is_ship_size = voidworms_small
			is_ship_size = voidworms_medium
			is_ship_size = voidworms_large
			is_ship_size = voidworms_titan
		}
	}

	projectile_gfx = "spikespores"
	tags = {
		weapon_type_explosive
		m_slot
		weapon_type_space_fauna
	}
	ai_tags = {
		weapon_role_artillery
		artillery
		artillery_stealth
		energy_torpedoes
		energy_torpedoes_stealth
	}
	ai_tag_weight = 0

	resources = {
		category = ship_components
		cost = {
			food = 68
			minerals = 68
			mult = @fauna_cost_scaling
		}
		upkeep = {
			energy = 0.21
			food = 0.1
			minerals = 0.1
		}
	}

	component_set = "SPIKESPORES"
}
weapon_component_template = {
	key = "SPIKESPORES_2"
	size = large

	icon = "GFX_ship_part_spikespores"
	icon_frame = 1
	type = missile

	potential = {
		OR = {
			is_ship_size = voidworms_small
			is_ship_size = voidworms_medium
			is_ship_size = voidworms_large
			is_ship_size = voidworms_titan
		}
	}

	projectile_gfx = "spikespores"
	tags = {
		weapon_type_explosive
		l_slot
		weapon_type_space_fauna
	}
	ai_tags = {
		weapon_role_artillery
		artillery
		artillery_stealth
		energy_torpedoes
		energy_torpedoes_stealth
	}
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			food = 136
			minerals = 136
			mult = @fauna_cost_scaling
		}
		upkeep = {
			energy = 0.44
			food = 0.2
			minerals = 0.2
		}
	}

	component_set = "SPIKESPORES"
}

### Bite
weapon_component_template = {
	key = "VOIDWORM_BITE_1"
	size = small
	type = instant
	prio_projectile = yes

	icon = "GFX_ship_part_voidworm_bite"
	icon_frame = 1

	firing_arc = 15.0

	tags = {
		weapon_type_space_fauna
		s_slot
	}
	potential = {
		OR = {
			is_ship_size = voidworms_small
			is_ship_size = voidworms_medium
			is_ship_size = voidworms_large
			is_ship_size = voidworms_titan
		}
	}
	projectile_gfx = "voidworm_bite"

	resources = {
		category = ship_components
		cost = {
			food = 30
			minerals = 30
			mult = @fauna_cost_scaling
		}
		upkeep = {
			energy = 0.09
			food = 0.05
			minerals = 0.05
		}
	}

	component_set = "VOIDWORM_BITE"
}
weapon_component_template = {
	key = "VOIDWORM_BITE_2"
	size = medium
	type = instant
	prio_projectile = yes

	icon = "GFX_ship_part_voidworm_bite"
	icon_frame = 1

	firing_arc = 15.0

	tags = {
		weapon_type_space_fauna
		m_slot
	}
	potential = {
		OR = {
			is_ship_size = voidworms_small
			is_ship_size = voidworms_medium
			is_ship_size = voidworms_large
			is_ship_size = voidworms_titan
		}
	}
	projectile_gfx = "voidworm_bite"

	resources = {
		category = ship_components
		cost = {
			food = 60
			minerals = 60
			mult = @fauna_cost_scaling
		}
		upkeep = {
			energy = 0.20
			food = 0.09
			minerals = 0.09
		}
	}

	component_set = "VOIDWORM_BITE"
}
weapon_component_template = {
	key = "VOIDWORM_BITE_3"
	size = large
	type = instant
	prio_projectile = yes

	icon = "GFX_ship_part_voidworm_bite"
	icon_frame = 1

	firing_arc = 15.0

	tags = {
		weapon_type_space_fauna
		l_slot
	}
	potential = {
		OR = {
			is_ship_size = voidworms_small
			is_ship_size = voidworms_medium
			is_ship_size = voidworms_large
			is_ship_size = voidworms_titan
		}
	}
	projectile_gfx = "voidworm_bite"

	resources = {
		category = ship_components
		cost = {
			food = 120
			minerals = 120
			mult = @fauna_cost_scaling
		}
		upkeep = {
			energy = 0.4
			food = 0.18
			minerals = 0.18
		}
	}

	component_set = "VOIDWORM_BITE"
}
