####################Spectrum Laser
weapon_component_template = {
	key = "SMALL_SPECTRUM_LASER"
	size = small
	type = instant
	
	icon = "GFX_ship_part_laser_ic"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	prerequisites = { "tech_spectrum_laser" }
	component_set = "SMALL_SPECTRUM_LASER"
	projectile_gfx = "gamma_laser_s"
	upgrades_to = "SMALL_LEA_LASER_TIER2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	
	damage = { min = 23 max = 52 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 40
	min_range = 0
	accuracy = 0.9
	power = -20
	hull_damage = 1.0
	armor_penetration = 0
	armor_damage = 1.60
	shield_penetration = 0.0
	shield_damage = 0.60
	tracking = 0.5
	
	resources = {
		category = ship_components
		cost = {
			alloys = 20
			nanites = 1
		}		
		upkeep = {
			energy = 1
			alloys = 0.02
		}
	}

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

weapon_component_template = {
	key = "MEDIUM_SPECTRUM_LASER"
	size = medium
	type = instant
	
	icon = "GFX_ship_part_laser_ic"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 50 max = 125 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 60
	min_range = 0
	accuracy = 0.9
	power = -35
	hull_damage = 1.0
	armor_penetration = 0
	armor_damage = 1.60
	shield_penetration = 0.0
	shield_damage = 0.60
	tracking = 0.35
	
	prerequisites = { "tech_spectrum_laser" }
	component_set = "SMALL_SPECTRUM_LASER"
	projectile_gfx = "gamma_laser_m"
	upgrades_to = "MEDIUM_LEA_LASER_TIER2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	resources = {
		category = ship_components
		cost = {
			alloys = 40
			nanites = 1
		}		
		upkeep = {
			energy = 1
			alloys = 0.02
		}
	}

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

weapon_component_template = {
	key = "LARGE_SPECTRUM_LASER"
	size = large
	type = instant
	
	icon = "GFX_ship_part_laser_ic"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 120 max = 290 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 80
	min_range = 0
	accuracy = 0.9
	power = -65
	hull_damage = 1.0
	armor_penetration = 0
	armor_damage = 1.60
	shield_penetration = 0.0
	shield_damage = 0.60
	tracking = 0.1
	
	prerequisites = { "tech_spectrum_laser" }
	component_set = "SMALL_SPECTRUM_LASER"
	projectile_gfx = "gamma_laser_l"
	upgrades_to = "LARGE_LEA_LASER_TIER2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	resources = {
		category = ship_components
		cost = {
			alloys = 80
			nanites = 2
		}		
		upkeep = {
			energy = 1
			alloys = 0.02
		}
	}

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

#### Quantum Cannon
weapon_component_template = {
	key = "SMALL_PLASMA_IC"
	size = small
	type = instant
	
	icon = "GFX_ship_part_plasma_ic"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 29 max = 56 }
	windup = { min = 2 max = 20 }
	total_fire_time = 34
	range = 40
	accuracy = 0.8
	power = -18
	hull_damage = 1.5
	armor_penetration = 0
	armor_damage = 2.00
	shield_penetration = 0.0
	shield_damage = 0.3
	tracking = 0.4
	
	prerequisites = { "tech_quantum_cannon" }
	component_set = "SMALL_PLASMA_IC"
	projectile_gfx = "plasma_cannon_s"
	upgrades_to = "SMALL_LEA_PLASMA_TIER2"
	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_PLASMA_IC"
	size = medium
	type = instant
	
	icon = "GFX_ship_part_plasma_ic"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 60 max = 125 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 60
	accuracy = 0.8
	power = -36
	hull_damage = 1.5
	armor_penetration = 0
	armor_damage = 2.00
	shield_penetration = 0.0
	shield_damage = 0.3
	tracking = 0.2
	
	prerequisites = { "tech_quantum_cannon" }
	component_set = "SMALL_PLASMA_IC"
	projectile_gfx = "plasma_cannon_m"
	upgrades_to = "MEDIUM_LEA_PLASMA_TIER2"
	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_PLASMA_IC"
	size = large
	type = instant
	
	icon = "GFX_ship_part_plasma_ic"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	damage = { min = 130 max = 280 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 80
	min_range = 40
	accuracy = 0.8
	power = -72
	hull_damage = 1.5
	armor_penetration = 0
	armor_damage = 2.00
	shield_penetration = 0.0
	shield_damage = 0.3
	tracking = 0.05
	
	prerequisites = { "tech_quantum_cannon" }
	component_set = "SMALL_PLASMA_IC"
	projectile_gfx = "plasma_cannon_l"
	upgrades_to = "LARGE_LEA_PLASMA_TIER2"
	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 }
		}
	}
}

### Arc emiter
weapon_component_template = {
	key = "ARC_EMITTER_IC"
	size = extra_large
	type = instant
	
	icon = "GFX_ship_part_arc_emitter_IC"
	icon_frame = 1
	
	firing_arc = 35.0
	min_range = 0
	damage = { min = 900 max = 2100 }
	windup = { min = 2 max = 20 }
	total_fire_time = 70
	range = 160
	accuracy = 0.85
	power = -300
	hull_damage = 1.5
	armor_penetration = 0
	armor_damage = 2.00
	shield_penetration = 0.0
	shield_damage = 0.6
	tracking = 0.0
	
	prerequisites = { "tech_higgs_lance" }
	component_set = "ARC_EMITTER_IC"
	projectile_gfx = "focused_arc_emitter"
	upgrades_to = "LEA_ARC_EMITTER_TIER2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 250
			nanites = 8
		}		
		upkeep = {
			energy = 2
			alloys = 0.4
		}
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = nanites }
		}
	}
}
####Neutron Launcher
weapon_component_template = {
	key = "ENERGY_TORPEDO_IC"
	size = large
	entity = "turret_energy_torpedo_entity"
	type = instant
	
	icon = "GFX_ship_part_energy_torpedo_IC"
	icon_frame = 1
	
	damage = { min = 500 max = 1150 }
	windup = { min = 2 max = 20 }
	total_fire_time = 130
	range = 130
	min_range = 40
	accuracy = 0.90
	power = -100
	hull_damage = 1.80
	armor_penetration = 0
	armor_damage = 1.50
	shield_penetration = 0.0
	shield_damage = 0.6
	tracking = 0.0
	
	prerequisites = { "tech_quantum_launcher" }
	component_set = "ENERGY_TORPEDO_IC"
	projectile_gfx = "neutron_torpedoes"
	upgrades_to = "LEA_ENERGY_TORPEDO_TIER2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
	resources = {
		category = ship_components
		cost = {
			alloys = 120
			nanites = 2
		}		
		upkeep = {
			energy = 1
			alloys = 0.3
		}
	}

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

# ## Disruptor 3
weapon_component_template = {
	key = "SMALL_DISRUPTOR_IC"
	size = small
	type = instant
	
	icon = "GFX_ship_part_disruptor_IC"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	min_range = 0
	damage = { min = 2 max = 38 }
	windup = { min = 2 max = 20 }
	total_fire_time = 30
	range = 35
	accuracy = 1
	power = -19
	hull_damage = 1.2
	armor_penetration = 1
	armor_damage = 1
	shield_penetration = 1
	shield_damage = 1
	tracking = 0.65
	
	prerequisites = { "tech_higgs_disruptor" }
	component_set = "SMALL_DISRUPTOR_IC"
	upgrades_to = "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 = 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_DISRUPTOR_IC"
	size = medium
	type = instant
	
	icon = "GFX_ship_part_disruptor_IC"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	min_range = 0
	damage = { min = 2 max = 80 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 60
	accuracy = 1
	power = -40
	hull_damage = 1.2
	armor_penetration = 1
	armor_damage = 1
	shield_penetration = 1
	shield_damage = 1
	tracking = 0.40
	
	prerequisites = { "tech_higgs_disruptor" }
	component_set = "SMALL_DISRUPTOR_IC"
	upgrades_to = "LEA_MEDIUM_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 = 60
			nanites = 4
		}		
		upkeep = {
			energy = 0.50
			alloys = 0.08
		}
	}

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

weapon_component_template = {
	key = "LARGE_DISRUPTOR_IC"
	size = large
	type = instant
	
	icon = "GFX_ship_part_disruptor_IC"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }
	
	min_range = 0
	damage = { min = 2 max = 190 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 90
	accuracy = 1
	power = -90
	hull_damage = 1.2
	armor_penetration = 1
	armor_damage = 1
	shield_penetration = 1
	shield_damage = 1
	tracking = 0.10
	
	prerequisites = { "tech_higgs_disruptor" }
	component_set = "SMALL_DISRUPTOR_IC"
	upgrades_to = "LEA_LARGE_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 = 120
			nanites = 3
		}		
		upkeep = {
			energy = 1
			alloys = 0.35
		}
	}

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

# ## Higgs Cannon
weapon_component_template = {
	type = instant
	
	key = "SMALL_HIGGS_CANNON"
	size = small
	
	icon = "GFX_ship_higgs_cannon_ic"
	icon_frame = 1
	
	min_range = 0
	damage = { min = 17 max = 55 }
	windup = { min = 2 max = 20 }
	total_fire_time = 19
	range = 55
	accuracy = 0.8
	power = -19
	hull_damage = 1
	armor_penetration = 0
	armor_damage = 0.5
	shield_penetration = 0
	shield_damage = 1.6
	tracking = 0.5
	
	prerequisites = { "tech_higgs_cannon" }
	component_set = "SMALL_HIGGS_CANNON"
	upgrades_to = "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
		}		
		upkeep = {
			energy = 0.2
			alloys = 0.06
		}
	}

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

weapon_component_template = {
	type = instant
	
	key = "MEDIUM_HIGGS_CANNON"
	size = medium
	
	icon = "GFX_ship_higgs_cannon_ic"
	icon_frame = 1
	
	min_range = 0
	damage = { min = 40 max = 125 }
	windup = { min = 2 max = 20 }
	total_fire_time = 21
	range = 80
	accuracy = 0.75
	power = -35
	hull_damage = 1
	armor_penetration = 0
	armor_damage = 0.5
	shield_penetration = 0
	shield_damage = 1.6
	tracking = 0.3
	
	prerequisites = { "tech_higgs_cannon" }
	component_set = "SMALL_HIGGS_CANNON"
	upgrades_to = "LEA_MEDIUM_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
		}		
		upkeep = {
			energy = 0.4
			alloys = 0.12
		}
	}

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

weapon_component_template = {
	type = instant
	
	key = "LARGE_HIGGS_CANNON"
	size = large
	
	icon = "GFX_ship_higgs_cannon_ic"
	icon_frame = 1
	
	min_range = 40
	damage = { min = 90 max = 290 }
	windup = { min = 2 max = 20 }
	total_fire_time = 24
	range = 110
	accuracy = 0.75
	power = -65
	hull_damage = 1
	armor_penetration = 0
	armor_damage = 0.5
	shield_penetration = 0
	shield_damage = 1.6
	tracking = 0.1
	
	prerequisites = { "tech_higgs_cannon" }
	component_set = "SMALL_HIGGS_CANNON"
	upgrades_to = "LEA_LARGE_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
		}		
		upkeep = {
			energy = 0.8
			alloys = 0.24
		}
	}

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

################################################################ Strike Craft IC
strike_craft_component_template = {
	key = "STRIKE_CRAFT_HANGAR_IC"
	size = LARGE
	entity = "bomber_entity"

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	power = -65
	resources = {
		category = ship_components
		cost = {
			alloys = 110
			nanites = 2
		}		
		upkeep = {
			energy = 1
			alloys = 0.25
		}
	}

	count = 8
	regeneration_per_day = 1
	launch_time = 0.25

	damage = { min = 10 max = 25 }
	cooldown = 2.3
	range = 15
	engagement_range = 100
	accuracy = 1.00
	tracking = 1.00

	health = 45
	armor = 0
	shield = 30
	evasion = 0.80

	speed = 750
	rotation_speed = 0.8
	acceleration = 1

	shield_penetration = 1.0
	armor_damage = 1.5

	ship_behavior = "fighters_behavior"

	icon = "GFX_ship_part_strike_craft_fighter_IC"
	icon_frame = 1
	component_set = "STRIKE_CRAFT_HANGAR_IC"
	upgrades_to = "LEA_STRIKE_CRAFT_HANGAR_TIER2"
	prerequisites = { "tech_nanites_strike_craft" }

	tags = { weapon_type_strike_craft }
	ai_tags = { weapon_role_point_defense }

}

#####################
#  Flak Battery
#####################

### Flak Battery 1
weapon_component_template = {
	type = point_defence
	
	key = "FLAK_BATTERY_IC"
	size = point_defence
	
	damage = { min = 4 max = 10 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = 35
	accuracy = 0.75
	power = -12
	hull_damage = 1
	armor_penetration = 0
	armor_damage = 0.6
	shield_penetration = 0
	shield_damage = 2
	tracking = 0.75
	
	icon = "GFX_ship_part_flak_batteries_IC"
	icon_frame = 1
	
	prerequisites = { "tech_nexus_point_defence" }
	component_set = "FLAK_BATTERY_IC"
	upgrades_to = "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
		}
		upkeep = {
			energy = 0.11
			alloys = 0.011
		}
	}
}

# ## Titan Lance
weapon_component_template = {
	key = "TITAN_LASER_IC"
	size = titanic
	type = instant
	prio_projectile = yes
	
	icon = "GFX_ship_part_energy_lance_IC"
	icon_frame = 1
	
	damage = { min = 7000 max = 15000 }
	windup = { min = 100 max = 100 }
	total_fire_time = 200
	range = 350
	min_range = 0
	accuracy = 1.0
	missile_speed = 11 
	missile_evasion = 0
	missile_health = 3300
	missile_retarget_range = 5
	power = -750
	hull_damage = 2
	armor_damage = 2
	armor_penetration = 0.0
	shield_damage = 2
	shield_penetration = 0.0
	tracking = 0.00
	
	prerequisites = { "tech_purifier_beam" }
	component_set = "TITAN_LASER_IC"
	upgrades_to = "LEA_TITAN_LASER_TIER2"
	projectile_gfx = "titan_laser"
	resources = {
		category = ship_components
		cost = {
			alloys = 300
			nanites = 20
		}		
		upkeep = {
			energy = 5
			alloys = 1
		}
	}

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

# ## Hyper Artillery
weapon_component_template = {
	type = instant
	
	key = "HYPER_ARTILLERY_IC"
	size = large
	
	icon = "GFX_ship_part_hyper_artillery_IC"
	icon_frame = 1
	
	min_range = 10.0
	damage = { min = 250 max = 620 }
	windup = { min = 2 max = 20 }
	total_fire_time = 50
	range = 120
	min_range = 40
	accuracy = 0.75
	power = -100
	hull_damage = 1.3
	armor_penetration = 0
	armor_damage = 0.6
	shield_penetration = 0
	shield_damage = 2.0
	tracking = 0.0
	
	prerequisites = { "tech_hyper_artillery" }
	component_set = "HYPER_ARTILLERY_IC"
	upgrades_to = "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 = 120
			nanites = 10
		}		
		upkeep = {
			energy = 1.2
			alloys = 0.3
		}
	}

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

###### Mass Accelerator 2
weapon_component_template = {
	type = instant
	
	key = "DOOMSDAY_CANNON_IC"
	size = extra_large
	
	icon = "GFX_ship_part_doomsday_cannon_IC"
	icon_frame = 1
	
	firing_arc = 25.0
	min_range = 10.0
	damage = { min = 1500 max = 2600 }
	windup = { min = 2 max = 20 }
	total_fire_time = 80
	range = 160
	min_range = 40
	accuracy = 0.75
	power = -300
	hull_damage = 1.25
	armor_penetration = 0
	armor_damage = 0.75
	shield_penetration = 0
	shield_damage = 1.5
	tracking = 0.0
	
	prerequisites = { "tech_doomsday_cannon" }
	component_set = "DOOMSDAY_CANNON_IC"
	upgrades_to = "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 = 15
		}		
		upkeep = {
			energy = 2.2
			alloys = 0.6
		}
	}

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

###### ArcEmitter
weapon_component_template = {
	type = instant
	
	key = "LEA_CONTETRATED_ARC_EMITTER_IC"
	size = extra_large
	
	icon = "GFX_ship_part_arc_emitter_cont_ic"
	icon_frame = 1
	
	firing_arc = 25.0
	min_range = 10.0
	damage = { min = 100 max = 1800 }
	windup = { min = 2 max = 20 }
	total_fire_time = 70
	range = 150
	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_ic" }
	component_set = "LEA_CONTETRATED_ARC_EMITTER_IC"
	upgrades_to = "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 = 250
			nanites = 15
		}		
		upkeep = {
			energy = 2.2
			alloys = 0.6
		}
	}

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


##########Autocannon

weapon_component_template = {
	key = "SMALL_AUTOCANNON_IC"
	size = small
	icon = "GFX_ship_part_autocannon_ic"
	icon_frame = 1
	type = instant

	damage = { min = 28 max = 40 }
	windup = { min = 2 max = 14 }
	total_fire_time = 5
	range = 30
	accuracy = 0.85
	power = -22
	hull_damage = 1.25 
	armor_penetration = 0.0
	armor_damage = 0.30
	shield_penetration = 0.0
	shield_damage = 1.5
	tracking = 0.75	

	resources = {
		category = ship_components
		cost = {
			alloys = 20
			sr_living_metal = 5
		}		
		upkeep = {
			energy = 0.22
			alloys = 0.08
		}
	}

	prerequisites = { "tech_hellfire_cannon" }
	component_set = "AUTOCANNON_IC"
	upgrades_to = "LEA_SMALL_AUTOCANNON_TIER2"
	projectile_gfx = "stormfire_auto_cannons_s"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_shield }
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			has_monthly_income = {
				resource = nanites
				value <= 2
			}
		}
	}
} 

weapon_component_template = {
	key = "MEDIUM_AUTOCANNON_IC"
	size = medium
	icon = "GFX_ship_part_autocannon_ic"
	icon_frame = 1
	type = instant

	damage = { min = 50 max = 85 }
	windup = { min = 2 max = 14 }
	total_fire_time = 6
	range = 35
	accuracy = 0.85
	power = -60
	hull_damage = 1.25 
	armor_penetration = 0.0
	armor_damage = 0.30
	shield_penetration = 0.0
	shield_damage = 1.5
	tracking = 0.5	

	resources = {
		category = ship_components
		cost = {
			alloys = 40
			sr_living_metal = 10
		}		
		upkeep = {
			energy = 0.46
			alloys = 0.18
		}
	}

	prerequisites = { "tech_hellfire_cannon" }
	component_set = "AUTOCANNON_IC"
	upgrades_to = "LEA_MEDIUM_AUTOCANNON_TIER2"
	projectile_gfx = "stormfire_auto_cannons_s"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_shield }
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			has_monthly_income = {
				resource = nanites
				value <= 2
			}
		}
	}
}

weapon_component_template = {
	key = "LARGE_AUTOCANNON_IC"
	size = large
	icon = "GFX_ship_part_autocannon_ic"
	icon_frame = 1
	type = instant

	damage = { min = 80 max = 180 }
	windup = { min = 2 max = 14 }
	total_fire_time = 7
	range = 40
	accuracy = 0.85
	power = -130
	hull_damage = 1.25 
	armor_penetration = 0.0
	armor_damage = 0.30
	shield_penetration = 0.0
	shield_damage = 1.5
	tracking = 0.3

	resources = {
		category = ship_components
		cost = {
			alloys = 100
			sr_living_metal = 15
		}		
		upkeep = {
			energy = 1
			alloys = 0.42
		}
	}

	prerequisites = { "tech_hellfire_cannon" }
	component_set = "AUTOCANNON_IC"
	upgrades_to = "LEA_LARGE_AUTOCANNON_TIER2"
	projectile_gfx = "stormfire_auto_cannons_s"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_shield }
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0.0
			has_monthly_income = {
				resource = nanites
				value <= 2
			}
		}
	}
}  

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

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

	icon = "GFX_ship_part_missile_ic"
	icon_frame = 1
	type = missile
	
	
	damage = { min = 80 max = 100 }
	windup = { min = 1 max = 15 }
	total_fire_time = 42
	range = 50
	min_range = 0
	accuracy = 1.0
	missile_speed = 18 
	missile_evasion = 0.40
	missile_health = 14
	missile_retarget_range = 100
	power = -31
	hull_damage = 1.0
	armor_damage = 1.35
	armor_penetration = 0.0
	shield_damage = 1.0
	shield_penetration = 1.0
	tracking = 0.25
	size_damage_factor = 1

	prerequisites = { "tech_void_missiles" }
	component_set = "MISSILE_HEAVY_IC"
	upgrades_to = "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
		}
		upkeep = {
			energy = 0.4
			alloys = 0.2
		}
	}

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

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

	icon = "GFX_ship_part_swarmer_ic"
	icon_frame = 1
	type = missile
	
	damage = { min = 40 max = 55 }
	windup = { min = 1 max = 15 }
	total_fire_time = 27
	range = 120
	min_range = 15
	accuracy = 1.0
	missile_speed = 19 # 425 
	missile_evasion = 0.10
	missile_health = 55
	missile_retarget_range = 100
	power = -28
	hull_damage = 1.50
	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_missiles" }
	component_set = "SWARMER_MISSILE_IC"
	upgrades_to = "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 = 50
			volatile_motes = 1
		}
		upkeep = {
			energy = 0.4
			alloys = 0.2
		}
	}

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

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

	icon = "GFX_ship_part_torpedo_ic"
	icon_frame = 1
	type = missile
	
	
	damage = { min = 100 max = 250 }
	windup = { min = 2 max = 20 }
	total_fire_time = 180
	range = 150
	min_range = 30
	accuracy = 0.8
	missile_speed = 15 # 300 -- 
	missile_evasion = 0.0
	missile_health = 17
	missile_retarget_range = 100
	power = -35
	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_torpedo" }
	component_set = "TORPEDO_IC"
	upgrades_to = "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
		}
		upkeep = {
			energy = 0.4
			alloys = 0.2
		}
	}

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

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

	icon = "GFX_ship_part_hive_missile_ic"
	icon_frame = 1
	type = missile
	
	
	damage = { min = 90 max = 120 }
	windup = { min = 1 max = 15 }
	total_fire_time = 40
	range = 130
	min_range = 0
	accuracy = 1.0
	missile_speed = 20 
	missile_evasion = 0.50
	missile_health = 20
	missile_retarget_range = 100
	power = -30
	hull_damage = 1.0
	armor_damage = 1.5
	armor_penetration = 0.0
	shield_damage = 1.0
	shield_penetration = 1.0
	tracking = 0.25
	size_damage_factor = 1

	prerequisites = { "tech_void_conquest" }
	component_set = "MISSILE_HIVE_IC"
	upgrades_to = "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 = 40
			nanites = 5
		}
		upkeep = {
			energy = 0.4
			alloys = 0.2
		}
	}

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