##########################
# VANILLA OVERRIDES
##########################

###################
# Null void beam
###################

# Heavy Buff, between railgun & advanced railgun

weapon_component_template = {
	key = "SMALL_NV_WEAPON"

	size = small
	entity = "small_kinetic_gun_entity"
	type = instant
	icon = "GFX_ship_part_null_void_weapon" #
	icon_frame = 1
	projectile_gfx = "space_whale_weapon"
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_shield }

	component_set = "NULL_VOID"
	prerequisites = { "null_void_beam" }
	resources = {
		category = ship_components
		cost = {
			alloys = @s_t2_cost
		}
		upkeep = {
			alloys = @s_t2_upkeep_alloys
		}
		upkeep = {
			trigger = {
				from = {
					country_uses_bio_ships = no
				}
			}
			energy = @s_t2_upkeep_energy
		}
		upkeep = {
			trigger = {
				from = {
					country_uses_bio_ships = yes
				}
			}
			food = @s_t2_upkeep_energy
		}
	}

	damage = {
		min = 10
		max = 30
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 20
			has_country_flag = dportal_country
		}
	}
}

weapon_component_template = {
	key = "MEDIUM_NV_WEAPON"

	size = medium
	entity = "medium_kinetic_gun_entity"
	type = instant
	icon = "GFX_ship_part_null_void_weapon"
	icon_frame = 1
	projectile_gfx = "space_whale_weapon"
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_shield }

	component_set = "NULL_VOID"
	prerequisites = { "null_void_beam" }
	resources = {
		category = ship_components
		cost = {
			alloys = @m_t2_cost
		}
		upkeep = {
			alloys = @m_t2_upkeep_alloys
		}
		upkeep = {
			trigger = {
				from = {
					country_uses_bio_ships = no
				}
			}
			energy = @m_t2_upkeep_energy
		}
		upkeep = {
			trigger = {
				from = {
					country_uses_bio_ships = yes
				}
			}
			food = @m_t2_upkeep_energy
		}
	}

	damage = {
		min = 25
		max = 75
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 20
			has_country_flag = dportal_country
		}
	}
}

weapon_component_template = {
	key = "LARGE_NV_WEAPON"

	size = large
	entity = "large_kinetic_gun_entity"
	type = instant
	icon = "GFX_ship_part_null_void_weapon"
	icon_frame = 1
	projectile_gfx = "space_whale_weapon"
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_shield }

	component_set = "NULL_VOID"
	prerequisites = { "null_void_beam" }
	resources = {
		category = ship_components
		cost = {
			alloys = @l_t2_cost
		}
		upkeep = {
			alloys = @l_t2_upkeep_alloys
		}
		upkeep = {
			trigger = {
				from = {
					country_uses_bio_ships = no
				}
			}
			energy = @l_t2_upkeep_energy
		}
		upkeep = {
			trigger = {
				from = {
					country_uses_bio_ships = yes
				}
			}
			food = @l_t2_upkeep_energy
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 20
			has_country_flag = dportal_country
		}
	}
}