##################
#Tier 2 weapons###
##################
####################Tachyon Laser
weapon_component_template = {
	key = "SMALL_LEA_LASER_TIER2"
	size = small
	type = instant
	
	icon = "GFX_ship_part_lea_laser_tier2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	prerequisites = { "tech_tachyon_laser" }
	component_set = "LEA_LASER_TIER2"
	projectile_gfx = "gamma_laser_s"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	
	damage = { min = 35 max = 75 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 45
	min_range = 0
	accuracy = 0.9
	power = -25
	hull_damage = 1.25
	armor_penetration = 0
	armor_damage = 1.70
	shield_penetration = 0.0
	shield_damage = 0.70
	tracking = 0.55
	
	resources = {
		category = ship_components
		cost = {
			alloys = 20
			nanites = 1
		}		
		upkeep = {
			energy = 0.4
			alloys = 0.01
		}
	}

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

weapon_component_template = {
	key = "MEDIUM_LEA_LASER_TIER2"
	size = medium
	type = instant
	
	icon = "GFX_ship_part_lea_laser_tier2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 75 max = 190 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 70
	min_range = 0
	accuracy = 0.9
	power = -50
	hull_damage = 1.25
	armor_penetration = 0
	armor_damage = 1.70
	shield_penetration = 0.0
	shield_damage = 0.70
	tracking = 0.40
	
	prerequisites = { "tech_tachyon_laser" }
	component_set = "LEA_LASER_TIER2"
	projectile_gfx = "gamma_laser_m"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	resources = {
		category = ship_components
		cost = {
			alloys = 40
			nanites = 2
		}		
		upkeep = {
			energy = 0.8
			alloys = 0.02
		}
	}

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

weapon_component_template = {
	key = "LARGE_LEA_LASER_TIER2"
	size = large
	type = instant
	
	icon = "GFX_ship_part_lea_laser_tier2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 180 max = 430 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 95
	min_range = 0
	accuracy = 0.9
	power = -80
	hull_damage = 1.25
	armor_penetration = 0
	armor_damage = 1.70
	shield_penetration = 0.0
	shield_damage = 0.70
	tracking = 0.15
	
	prerequisites = { "tech_tachyon_laser" }
	component_set = "LEA_LASER_TIER2"
	projectile_gfx = "gamma_laser_l"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	resources = {
		category = ship_components
		cost = {
			alloys = 100
			nanites = 2
		}		
		upkeep = {
			energy = 1.5
			alloys = 0.02
		}
	}

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

#### Strange Matter Cannon
weapon_component_template = {
	key = "SMALL_LEA_PLASMA_TIER2"
	size = small
	type = instant
	
	icon = "GFX_ship_part_lea_plasma_tier2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 44 max = 85 }
	windup = { min = 2 max = 20 }
	total_fire_time = 34
	range = 45
	accuracy = 0.8
	power = -20
	hull_damage = 1.6
	armor_penetration = 0
	armor_damage = 2.10
	shield_penetration = 0.0
	shield_damage = 0.4
	tracking = 0.5
	
	prerequisites = { "tech_strange_matter_cannon" }
	component_set = "LEA_PLASMA_TIER2"
	projectile_gfx = "plasma_cannon_s"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	ai_tag_weight = 3
	resources = {
		category = ship_components
		cost = {
			alloys = 30
			nanites = 2
		}		
		upkeep = {
			energy = 0.25
			alloys = 0.04
		}
	}

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

weapon_component_template = {
	key = "MEDIUM_LEA_PLASMA_TIER2"
	size = medium
	type = instant
	
	icon = "GFX_ship_part_lea_plasma_tier2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 90 max = 170 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 70
	accuracy = 0.8
	power = -40
	hull_damage = 1.6
	armor_penetration = 0
	armor_damage = 2.10
	shield_penetration = 0.0
	shield_damage = 0.4
	tracking = 0.25
	
	prerequisites = { "tech_strange_matter_cannon" }
	component_set = "LEA_PLASMA_TIER2"
	projectile_gfx = "plasma_cannon_m"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	ai_tag_weight = 3
	resources = {
		category = ship_components
		cost = {
			alloys = 60
			nanites = 4
		}		
		upkeep = {
			energy = 0.5
			alloys = 0.08
		}
	}

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

weapon_component_template = {
	key = "LARGE_LEA_PLASMA_TIER2"
	size = large
	type = instant
	
	icon = "GFX_ship_part_lea_plasma_tier2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 200 max = 420 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 90
	min_range = 40
	accuracy = 0.8
	power = -80
	hull_damage = 1.6
	armor_penetration = 0
	armor_damage = 2.10
	shield_penetration = 0.0
	shield_damage = 0.4
	tracking = 0.07
	
	prerequisites = { "tech_strange_matter_cannon" }
	component_set = "LEA_PLASMA_TIER2"
	projectile_gfx = "plasma_cannon_l"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	ai_tag_weight = 3
	resources = {
		category = ship_components
		cost = {
			alloys = 100
			nanites = 8
		}		
		upkeep = {
			energy = 1
			alloys = 0.16
		}
	}

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

### Concentrated Higgs Lance
weapon_component_template = {
	key = "LEA_ARC_EMITTER_TIER2"
	size = extra_large
	type = instant
	
	icon = "GFX_ship_part_lea_arc_emitter_tier2"
	icon_frame = 1
	
	firing_arc = 35.0
	min_range = 0
	damage = { min = 1350 max = 2700 }
	windup = { min = 2 max = 20 }
	total_fire_time = 70
	range = 180
	accuracy = 0.90
	power = -400
	hull_damage = 1.75
	armor_penetration = 0
	armor_damage = 2.25
	shield_penetration = 0.0
	shield_damage = 0.6
	tracking = 0.0
	
	prerequisites = { "tech_higgs_lance2" }
	component_set = "LEA_ARC_EMITTER_TIER2"
	projectile_gfx = "focused_arc_emitter"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			nanites = 10
		}		
		upkeep = {
			energy = 3
			alloys = 0.5
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = nanites }
		}
	}
}
####Neutron Launcher
weapon_component_template = {
	key = "LEA_ENERGY_TORPEDO_TIER2"
	size = large
	entity = "turret_energy_torpedo_entity"
	type = instant
	
	icon = "GFX_ship_part_energy_torpedo_tier2"
	icon_frame = 1
	
	damage = { min = 750 max = 1700 }
	windup = { min = 2 max = 20 }
	total_fire_time = 130
	range = 140
	min_range = 35
	accuracy = 0.90
	power = -100
	hull_damage = 2
	armor_penetration = 0
	armor_damage = 1.75
	shield_penetration = 0.0
	shield_damage = 0.7
	tracking = 0.0
	
	prerequisites = { "tech_quantum_launcher2" }
	component_set = "ENERGY_TORPEDO_TIER2"
	projectile_gfx = "neutron_torpedoes"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 140
			nanites = 2
		}		
		upkeep = {
			energy = 2
			alloys = 0.3
		}
	}

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


#Quark Annihilator
weapon_component_template = {
	key = "LEA_SMALL_DISRUPTOR_TIER2"
	size = small
	type = instant
	
	icon = "GFX_ship_part_lea_disruptor_tier2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	min_range = 0
	damage = { min = 4 max = 57 }
	windup = { min = 2 max = 20 }
	total_fire_time = 30
	range = 35
	accuracy = 1
	power = -23
	hull_damage = 1.3
	armor_penetration = 1
	armor_damage = 1
	shield_penetration = 1
	shield_damage = 1
	tracking = 0.70
	
	prerequisites = { "tech_higgs_disruptor2" }
	component_set = "LEA_SMALL_DISRUPTOR_TIER2"
	projectile_gfx = "disruptor_3_small"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_hull }
	ai_tag_weight = 5
	resources = {
		category = ship_components
		cost = {
			alloys = 35
			nanites = 1
			sr_living_metal = 1
		}		
		upkeep = {
			energy = 0.25
			alloys = 0.06
		}
	}

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

weapon_component_template = {
	key = "LEA_MEDIUM_DISRUPTOR_TIER2"
	size = medium
	type = instant
	
	icon = "GFX_ship_part_lea_disruptor_tier2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	min_range = 0
	damage = { min = 4 max = 120 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 60
	accuracy = 1
	power = -45
	hull_damage = 1.3
	armor_penetration = 1
	armor_damage = 1
	shield_penetration = 1
	shield_damage = 1
	tracking = 0.45
	
	prerequisites = { "tech_higgs_disruptor2" }
	component_set = "LEA_SMALL_DISRUPTOR_TIER2"
	projectile_gfx = "disruptor_3_medium"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_hull }
	ai_tag_weight = 5
	resources = {
		category = ship_components
		cost = {
			alloys = 70
			nanites = 2
			sr_living_metal = 2
		}		
		upkeep = {
			energy = 0.50
			alloys = 0.12
		}
	}

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

weapon_component_template = {
	key = "LEA_LARGE_DISRUPTOR_TIER2"
	size = large
	type = instant
	
	icon = "GFX_ship_part_lea_disruptor_tier2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	min_range = 0
	damage = { min = 4 max = 285 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 90
	accuracy = 1
	power = -110
	hull_damage = 1.3
	armor_penetration = 1
	armor_damage = 1
	shield_penetration = 1
	shield_damage = 1
	tracking = 0.12
	
	prerequisites = { "tech_higgs_disruptor2" }
	component_set = "LEA_SMALL_DISRUPTOR_TIER2"
	projectile_gfx = "disruptor_3_medium"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_hull }
	ai_tag_weight = 5
	resources = {
		category = ship_components
		cost = {
			alloys = 135
			nanites = 3
			sr_living_metal = 3
		}		
		upkeep = {
			energy = 1
			alloys = 0.40
		}
	}

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


### Higgs Collapse Cannon
weapon_component_template = {
	type = instant
	
	key = "LEA_SMALL_HIGGS_CANNON_TIER2"
	size = small
	
	icon = "GFX_ship_part_lea_higgs_cannon_tier2"
	icon_frame = 1
	
	min_range = 0
	damage = { min = 17 max = 82 }
	windup = { min = 2 max = 20 }
	total_fire_time = 19
	range = 55
	accuracy = 0.8
	power = -22
	hull_damage = 1
	armor_penetration = 0
	armor_damage = 0.6
	shield_penetration = 0
	shield_damage = 1.7
	tracking = 0.55
	
	prerequisites = { "tech_higgs_cannon2" }
	component_set = "LEA_SMALL_HIGGS_CANNON_TIER2"
	projectile_gfx = "gauss_cannon_s"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_shield }
	resources = {
		category = ship_components
		cost = {
			alloys = 22
			nanites = 1
			sr_living_metal = 1
		}		
		upkeep = {
			energy = 0.2
			alloys = 0.08
		}
	}

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

weapon_component_template = {
	type = instant
	
	key = "LEA_MEDIUM_HIGGS_CANNON_TIER2"
	size = medium
	
	icon = "GFX_ship_part_lea_higgs_cannon_tier2"
	icon_frame = 1
	
	min_range = 0
	damage = { min = 40 max = 190 }
	windup = { min = 2 max = 20 }
	total_fire_time = 21
	range = 80
	accuracy = 0.75
	power = -40
	hull_damage = 1
	armor_penetration = 0
	armor_damage = 0.5
	shield_penetration = 0
	shield_damage = 1.6
	tracking = 0.35
	
	prerequisites = { "tech_higgs_cannon2" }
	component_set = "LEA_SMALL_HIGGS_CANNON_TIER2"
	projectile_gfx = "gauss_cannon_m"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_shield }
	resources = {
		category = ship_components
		cost = {
			alloys = 44
			nanites = 1
			sr_living_metal = 1
		}		
		upkeep = {
			energy = 0.4
			alloys = 0.16
		}
	}

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

weapon_component_template = {
	type = instant
	
	key = "LEA_LARGE_HIGGS_CANNON_TIER2"
	size = large
	
	icon = "GFX_ship_part_lea_higgs_cannon_tier2"
	icon_frame = 1
	
	min_range = 40
	damage = { min = 90 max = 440 }
	windup = { min = 2 max = 20 }
	total_fire_time = 24
	range = 110
	accuracy = 0.75
	power = -80
	hull_damage = 1
	armor_penetration = 0
	armor_damage = 0.5
	shield_penetration = 0
	shield_damage = 1.6
	tracking = 0.12
	
	prerequisites = { "tech_higgs_cannon2" }
	component_set = "LEA_SMALL_HIGGS_CANNON_TIER2"
	projectile_gfx = "gauss_cannon_l"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_shield }
	resources = {
		category = ship_components
		cost = {
			alloys = 90
			nanites = 2
			sr_living_metal = 2
		}		
		upkeep = {
			energy = 0.8
			alloys = 0.30
		}
	}

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


################################################################ VOID Craft
strike_craft_component_template = {
	key = "LEA_STRIKE_CRAFT_HANGAR_TIER2"
	size = LARGE
	entity = "bomber_entity"

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	power = -90
	resources = {
		category = ship_components
		cost = {
			alloys = 140
			nanites = 2
		}		
		upkeep = {
			energy = 2
			alloys = 0.25
		}
	}

	count = 10
	regeneration_per_day = 1.5
	launch_time = 0.25

	damage = { min = 15 max = 40 }
	cooldown = 2.3
	range = 15
	engagement_range = 120
	accuracy = 1.00
	tracking = 1.00

	health = 80
	armor = 20
	shield = 30
	evasion = 0.85

	speed = 750
	rotation_speed = 0.8
	acceleration = 1

	shield_penetration = 1.0
	armor_damage = 1.6

	ship_behavior = "fighters_behavior"

	icon = "GFX_ship_part_lea_strike_craft_hangar_tier2"
	icon_frame = 1
	component_set = "LEA_STRIKE_CRAFT_HANGAR_TIER2"
	prerequisites = { "tech_nanites_strike_craft2" }

	tags = { weapon_type_strike_craft }
	ai_tags = { weapon_role_point_defense }

}

### Graviton Bombarda
weapon_component_template = {
	type = point_defence
	
	key = "LEA_FLAK_BATTERY_TIER2"
	size = point_defence
	
	damage = { min = 8 max = 12 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = 35
	accuracy = 0.80
	power = -18
	hull_damage = 1.25
	armor_penetration = 0
	armor_damage = 0.6
	shield_penetration = 0
	shield_damage = 2
	tracking = 0.80
	
	icon = "GFX_ship_part_lea_flak_battery_tier2"
	icon_frame = 1
	
	prerequisites = { "tech_nexus_point_defence2" }
	component_set = "LEA_FLAK_BATTERY_TIER2"
	projectile_gfx = "flak_pd_1"
	tags = { weapon_type_point_defense weapon_type_kinetic }
	ai_tags = { weapon_role_point_defense }
	resources = {
		category = ship_components
		cost = {
			alloys = 10
			nanites = 1
			sr_living_metal = 1
		}
		upkeep = {
			energy = 0.05
			alloys = 0.04
		}
	}
}

# ## Oblivion Beam
weapon_component_template = {
	key = "LEA_TITAN_LASER_TIER2"
	size = titanic
	type = instant
	prio_projectile = yes
	
	icon = "GFX_ship_part_lea_titan_laser_tier2"
	icon_frame = 1
	
	damage = { min = 12000 max = 18000 }
	windup = { min = 100 max = 100 }
	total_fire_time = 180
	range = 380
	min_range = 0
	accuracy = 1.0
	missile_speed = 11 
	missile_evasion = 0
	missile_health = 4000
	missile_retarget_range = 5
	power = -900
	hull_damage = 2.5
	armor_damage = 2.5
	armor_penetration = 0.0
	shield_damage = 2.5
	shield_penetration = 0.0
	tracking = 0.00
	
	prerequisites = { "tech_purifier_beam2" }
	component_set = "LEA_TITAN_LASER_TIER2"
	projectile_gfx = "titan_laser"
	resources = {
		category = ship_components
		cost = {
			alloys = 350
			nanites = 20
			sr_living_metal = 20
		}		
		upkeep = {
			energy = 10
			alloys = 2
		}
	}

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


# ## Hyper Artillery
weapon_component_template = {
	type = instant
	
	key = "LEA_HYPER_ARTILLERY_TIER2"
	size = large
	
	icon = "GFX_ship_part_lea_hyper_artillery_tier2"
	icon_frame = 1
	
	min_range = 10.0
	damage = { min = 375 max = 800 }
	windup = { min = 2 max = 20 }
	total_fire_time = 50
	range = 130
	min_range = 40
	accuracy = 0.80
	power = -100
	hull_damage = 1.3
	armor_penetration = 0
	armor_damage = 0.6
	shield_penetration = 0
	shield_damage = 2.25
	tracking = 0.0
	
	prerequisites = { "tech_hyper_artillery2" }
	component_set = "LEA_HYPER_ARTILLERY_TIER2"
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 140
			nanites = 10
		}		
		upkeep = {
			energy = 1.2
			alloys = 0.4
		}
	}

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

###### Mass Accelerator 2
weapon_component_template = {
	type = instant
	
	key = "LEA_DOOMSDAY_CANNON_TIER2"
	size = extra_large
	
	icon = "GFX_ship_part_lea_doomsday_cannon_tier2"
	icon_frame = 1
	
	firing_arc = 25.0
	min_range = 10.0
	damage = { min = 2250 max = 3500 }
	windup = { min = 2 max = 20 }
	total_fire_time = 80
	range = 170
	min_range = 40
	accuracy = 0.80
	power = -300
	hull_damage = 1.50
	armor_penetration = 0
	armor_damage = 0.75
	shield_penetration = 0
	shield_damage = 1.5
	tracking = 0.0
	
	prerequisites = { "tech_doomsday_cannon2" }
	component_set = "LEA_DOOMSDAY_CANNON_TIER2"
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 250
			nanites = 10
			sr_living_metal = 10
		}		
		upkeep = {
			energy = 2.2
			alloys = 0.8
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = nanites }
			no_resource_for_component = { RESOURCE = sr_living_metal }
		}
	}
}


##########Autocannon

weapon_component_template = {
	key = "LEA_SMALL_AUTOCANNON_TIER2"
	size = small
	icon = "GFX_ship_part_lea_small_autocannon_tier2"
	icon_frame = 1
	type = instant

	damage = { min = 42 max = 60 }
	windup = { min = 2 max = 14 }
	total_fire_time = 5
	range = 30
	accuracy = 0.85
	power = -25
	hull_damage = 1.25 
	armor_penetration = 0.0
	armor_damage = 0.40
	shield_penetration = 0.0
	shield_damage = 1.5
	tracking = 0.75	

	resources = {
		category = ship_components
		cost = {
			alloys = 25
			sr_living_metal = 5
		}		
		upkeep = {
			energy = 0.26
			alloys = 0.08
		}
	}

	prerequisites = { "tech_hellfire_cannon2" }
	component_set = "LEA_SMALL_AUTOCANNON_TIER2"
	projectile_gfx = "stormfire_auto_cannons_s"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_shield }
	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_living_metal }
		}
	}
} 

weapon_component_template = {
	key = "LEA_MEDIUM_AUTOCANNON_TIER2"
	size = medium
	icon = "GFX_ship_part_lea_small_autocannon_tier2"
	icon_frame = 1
	type = instant

	damage = { min = 80 max = 120 }
	windup = { min = 2 max = 14 }
	total_fire_time = 6
	range = 35
	accuracy = 0.85
	power = -70
	hull_damage = 1.25 
	armor_penetration = 0.0
	armor_damage = 0.40
	shield_penetration = 0.0
	shield_damage = 1.5
	tracking = 0.5	

	resources = {
		category = ship_components
		cost = {
			alloys = 50
			sr_living_metal = 10
		}		
		upkeep = {
			energy = 0.60
			alloys = 0.18
		}
	}

	prerequisites = { "tech_hellfire_cannon2" }
	component_set = "LEA_SMALL_AUTOCANNON_TIER2"
	projectile_gfx = "stormfire_auto_cannons_s"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_shield }
	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_living_metal }
		}
	}
}

weapon_component_template = {
	key = "LEA_LARGE_AUTOCANNON_TIER2"
	size = large
	icon = "GFX_ship_part_lea_small_autocannon_tier2"
	icon_frame = 1
	type = instant

	damage = { min = 160 max = 320 }
	windup = { min = 2 max = 14 }
	total_fire_time = 7
	range = 40
	accuracy = 0.85
	power = -150
	hull_damage = 1.25 
	armor_penetration = 0.0
	armor_damage = 0.40
	shield_penetration = 0.0
	shield_damage = 1.5
	tracking = 0.3

	resources = {
		category = ship_components
		cost = {
			alloys = 120
			sr_living_metal = 15
		}		
		upkeep = {
			energy = 1.2
			alloys = 0.42
		}
	}

	prerequisites = { "tech_hellfire_cannon2" }
	component_set = "LEA_SMALL_AUTOCANNON_TIER2"
	projectile_gfx = "stormfire_auto_cannons_s"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_shield }
	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_living_metal }
		}
	}
}  


########################################Missiles

### Advanced Heavy Missile Launcher
weapon_component_template = {
	key = "LEA_MISSILE_HEAVY_TIER2"
	size = torpedo

	icon = "GFX_ship_part_lea_missle_heavy_tier2"
	icon_frame = 1
	type = missile
	
	
	damage = { min = 120 max = 150 }
	windup = { min = 1 max = 15 }
	total_fire_time = 42
	range = 55
	min_range = 0
	accuracy = 1.0
	missile_speed = 18 
	missile_evasion = 0.40
	missile_health = 14
	missile_retarget_range = 100
	power = -35
	hull_damage = 1.0
	armor_damage = 1.5
	armor_penetration = 0.0
	shield_damage = 1.0
	shield_penetration = 1.0
	tracking = 0.30
	size_damage_factor = 1

	prerequisites = { "tech_void_missiles2" }
	component_set = "LEA_MISSILE_HEAVY_TIER2"
	projectile_gfx = "small_missile"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 50
			volatile_motes = 1
			sr_living_metal = 1
		}
		upkeep = {
			energy = 0.4
			alloys = 0.3
		}
	}

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

### Swarm
weapon_component_template = {
	key = "LEA_SWARMER_MISSILE_TIER2"
	size = torpedo

	icon = "GFX_ship_part_lea_swarmer_missle_tier2"
	icon_frame = 1
	type = missile
	
	damage = { min = 60 max = 75 }
	windup = { min = 1 max = 15 }
	total_fire_time = 27
	range = 130
	min_range = 15
	accuracy = 1.0
	missile_speed = 22 # 425 
	missile_evasion = 0.10
	missile_health = 70
	missile_retarget_range = 100
	power = -40
	hull_damage = 1.75
	armor_damage = 0.5
	armor_penetration = 0.0
	shield_damage = 1.5
	shield_penetration = 0.0
	tracking = 0.3
	size_damage_factor = 1

	prerequisites = { "tech_smart_missiles2" }
	component_set = "LEA_SWARMER_MISSILE_TIER2"
	projectile_gfx = "swarmer_missiles_02"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 60
			volatile_motes = 1
			sr_living_metal = 1
		}
		upkeep = {
			energy = 0.4
			alloys = 0.3
		}
	}

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

### Devastator Torpedoes
weapon_component_template = {
	key = "LEA_TORPEDO_TIER2"
	size = torpedo
	entity = "turret_torpedo_entity"

	icon = "GFX_ship_part_lea_torpedo_tier2"
	icon_frame = 1
	type = missile
	
	
	damage = { min = 150 max = 325 }
	windup = { min = 2 max = 20 }
	total_fire_time = 180
	range = 150
	min_range = 30
	accuracy = 0.8
	missile_speed = 17 # 300 -- 
	missile_evasion = 0.0
	missile_health = 20
	missile_retarget_range = 100
	power = -45
	hull_damage = 1.0
	armor_damage = 1.25
	armor_penetration = 0.0
	shield_damage = 0.8
	shield_penetration = 0.0
	tracking = 0.1
	size_damage_factor = 1
	
	prerequisites = { "tech_grav_torpedo2" }
	component_set = "LEA_TORPEDO_TIER2"
	projectile_gfx = "large_torpedo_03"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_anti_shield }
	resources = {
		category = ship_components
		cost = {
			alloys = 50
			volatile_motes = 1
			sr_living_metal = 1
		}
		upkeep = {
			energy = 0.4
			alloys = 0.3
		}
	}

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

##############################
### Hive Misssle Launcher
weapon_component_template = {
	key = "LEA_MISSILE_HIVE_TIER2"
	size = torpedo

	icon = "GFX_ship_part_lea_missle_hive_tier2"
	icon_frame = 1
	type = missile
	
	
	damage = { min = 150 max = 180 }
	windup = { min = 1 max = 15 }
	total_fire_time = 35
	range = 140
	min_range = 0
	accuracy = 1.0
	missile_speed = 20 
	missile_evasion = 0.50
	missile_health = 20
	missile_retarget_range = 100
	power = -60
	hull_damage = 1.25
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 1.0
	shield_penetration = 1.0
	tracking = 0.25
	size_damage_factor = 1

	prerequisites = { "tech_void_conquest2" }
	component_set = "LEA_MISSILE_HIVE_TIER2"
	projectile_gfx = "lea_hive_missile"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 10
			food = 50
			nanites = 5
			sr_living_metal = 5
		}
		upkeep = {
			energy = 0.4
			food = 0.4
			alloys = 0.3

		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = nanites }
			no_resource_for_component = { RESOURCE = sr_living_metal }
		}
	}
}


weapon_component_template = {
	type = instant
	
	key = "LEA_CONTETRATED_ARC_EMITTER_TIER2"
	size = extra_large
	
	icon = "GFX_ship_part_arc_emitter_cont_tier2"
	icon_frame = 1
	
	firing_arc = 25.0
	min_range = 10.0
	damage = { min = 500 max = 2400 }
	windup = { min = 2 max = 20 }
	total_fire_time = 70
	range = 160
	min_range = 0
	accuracy = 1.0
	power = -320
	hull_damage = 1.25
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 1.0
	shield_damage = 1
	tracking = 0.0
	
	prerequisites = { "tech_arc_emitter_ic2" }
	component_set = "LEA_CONTETRATED_ARC_EMITTER_TIER2"
	projectile_gfx = "arc_emitter"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			nanites = 15
		}		
		upkeep = {
			energy = 2.2
			alloys = 0.8
		}
	}

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