## Mini Arc Emitter

weapon_component_template = {
	key = "MINI_ARC_EMITTER_1"

	size = large
	entity = "large_kinetic_gun_entity"
	type = instant

	icon = "GFX_ship_part_mini_arc_emitter_1"
	icon_frame = 1
	
	potential = {
		from = {
			country_uses_bio_ships = no
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}

	min_range = 5.0
	power = -78
	damage = { min = 1 max = 140 }
	windup = { min = 20 max = 140 }
	cooldown = 96
	range = 100
	accuracy = 1.0
	tracking = 0
	military_power = 1
	armor_penetration = 1
	shield_penetration = 1
	
	static_rotation = yes
	use_ship_kill_target = no

	prerequisites = { "tech_mini_arc_emitter_1" }
	component_set = "MINI_ARC_EMITTER_1"

	projectile_gfx = "mini_arc_emitter"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	upgrades_to = "MINI_ARC_EMITTER_2"

	resources = {
		category = ship_components
		cost = {
			alloys = @l_t5_cost
			rare_crystals = @l_t5_rare
		}		
		upkeep = {
			energy = @l_t5_upkeep_energy
			alloys = @l_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			has_monthly_income = { resource = rare_crystals value <= 0 }
		}
	}
}

weapon_component_template = {
	key = "MINI_ARC_EMITTER_2"

	size = large
	entity = "large_kinetic_gun_entity"
	type = instant

	icon = "GFX_ship_part_mini_arc_emitter_2"
	icon_frame = 1
	
	potential = {
		from = {
			country_uses_bio_ships = no
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}

	min_range = 5.0
	power = -107
	damage = { min = 1 max = 230}
	windup = { min = 20 max = 140 }
	cooldown = 96
	range = 100
	accuracy = 1.0
	tracking = 0
	military_power = 1
	armor_penetration = 1
	shield_penetration = 1
	
	static_rotation = yes
	use_ship_kill_target = no

	prerequisites = { "tech_mini_arc_emitter_2" }
	component_set = "MINI_ARC_EMITTER_2"

	projectile_gfx = "mini_focused_arc_emitter"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0

	resources = {
		category = ship_components
		cost = {
			alloys = @l_t6_cost
			rare_crystals = @l_t6_rare
		}		
		upkeep = {
			energy = @l_t6_upkeep_energy
			alloys = @l_t6_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			has_monthly_income = { resource = rare_crystals value <= 0 }
		}
	}
}

weapon_component_template = {
	key = "MINI_ARC_EMITTER_BIO_1"

	size = large
	entity = "large_kinetic_gun_entity"
	type = instant

	icon = "GFX_ship_part_mini_arc_emitter_1"
	icon_frame = 1
	
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	min_range = 5.0
	power = -48
	damage = { min = 1 max = 80}
	windup = { min = 20 max = 140 }
	cooldown = 96
	range = 100
	accuracy = 1.0
	tracking = 0
	military_power = 1
	armor_penetration = 1
	shield_penetration = 1
	
	static_rotation = yes
	use_ship_kill_target = no

	prerequisites = { "tech_mini_arc_emitter_1" }
	component_set = "MINI_ARC_EMITTER_1_BIO"

	projectile_gfx = "mini_arc_emitter"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	upgrades_to = "MINI_ARC_EMITTER_BIO_2"

	resources = {
		category = ship_components
		cost = {
			alloys = @l_t4_cost
			rare_crystals = @l_t4_rare
		}		
		upkeep = {
			food = @l_t4_upkeep_energy
			alloys = @l_t4_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			has_monthly_income = { resource = rare_crystals value <= 0 }
		}
	}
}

weapon_component_template = {
	key = "MINI_ARC_EMITTER_BIO_2"

	size = large
	entity = "large_kinetic_gun_entity"
	type = instant

	icon = "GFX_ship_part_mini_arc_emitter_2"
	icon_frame = 1
	
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	min_range = 5.0
	power = -70
	damage = { min = 1 max = 130}
	windup = { min = 20 max = 140 }
	cooldown = 96
	range = 100
	accuracy = 1.0
	tracking = 0
	military_power = 1
	armor_penetration = 1
	shield_penetration = 1
	
	static_rotation = yes
	use_ship_kill_target = no

	prerequisites = { "tech_mini_arc_emitter_2" }
	component_set = "MINI_ARC_EMITTER_BIO_2"

	projectile_gfx = "mini_focused_arc_emitter"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0

	resources = {
		category = ship_components
		cost = {
			alloys = @l_t5_cost
			rare_crystals = @l_t5_rare
		}		
		upkeep = {
			food = @l_t5_upkeep_energy
			alloys = @l_t5_upkeep_alloys
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			has_monthly_income = { resource = rare_crystals value <= 0 }
		}
	}
}