# ####################
# Energy Lance
# ####################

# ## Stellarite Titan Laser
weapon_component_template = {
	key = "STELLARITE_BEAM"
	size = extra_large
	type = instant
	prio_projectile = yes

	hidden = yes

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1

	firing_arc = 15.0
	min_range = 5.0 #30.0

	tags = { weapon_type_energy }
	projectile_gfx = "stellarite_titan_laser"
}

weapon_component_template = {
	key = "STELLARITE_MISSILE"
	size = large
	entity = "invisible_turret_entity"
	type = missile

	hidden = yes
	use_ship_main_target = no

	icon = "GFX_ship_part_energy_torpedo_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	tags = { weapon_type_energy }
	projectile_gfx = "stellarite_missile"
}

weapon_component_template = {
	key = "STELLARITE_PLASMA"
	size = large
	entity = "invisible_turret_entity"
	type = instant

	hidden = yes
	use_ship_main_target = no

	icon = "GFX_ship_part_plasma_3"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	tags = { weapon_type_energy }
	projectile_gfx = "stellarite_plasma"
}

weapon_component_template = {
	key = "STELLARITE_LASER"
	size = point_defence
	entity = "invisible_turret_entity"
	type = point_defence

	hidden = yes

	icon = "GFX_ship_part_laser_5"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	tags = { weapon_type_point_defense weapon_type_energy }
	projectile_gfx = "stellarite_pd"

	point_defence_targets = { "missile" "strike_craft" }
}

weapon_component_template = {
	key = "TECHNO_WEAPON"
	size = large
	entity = "invisible_turret_entity"
	type = instant

	use_ship_main_target = no

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	hidden = yes
	projectile_gfx = "technosphere_weapon"
	tags = { weapon_type_energy }
}

weapon_component_template = {
	key = "TECHNO_PD"
	size = point_defence
	entity = "invisible_turret_entity"
	type = point_defence

	hidden = yes

	icon = "GFX_ship_part_laser_5"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	tags = { weapon_type_point_defense weapon_type_energy }
	projectile_gfx = "gamma_laser_s"

	point_defence_targets = { "missile" "strike_craft" }
}

weapon_component_template = {
	key = "DRAGON_WEAPON"
	size = large
	type = instant
	prio_projectile = yes

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	firing_arc = 15.0
	min_range = 5.0 #30.0

	hidden = yes
	projectile_gfx = "dragon_weapon"
	tags = { weapon_type_energy weapon_type_space_fauna }
}

weapon_component_template = {
	key = "DRAGON_WEAPON_ICE"
	size = large
	type = instant
	prio_projectile = yes

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	firing_arc = 15.0
	min_range = 5.0 #30.0

	hidden = yes
	projectile_gfx = "dragon_weapon_ice"
	tags = { weapon_type_energy weapon_type_space_fauna }
}

weapon_component_template = {
	key = "DRAGON_SECONDARY_WEAPON"
	size = medium
	entity = "invisible_turret_entity"
	type = instant

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	hidden = yes
	use_ship_main_target = no

	projectile_gfx = "dragon_wing_weapon"
	tags = { weapon_type_energy weapon_type_space_fauna }
}

weapon_component_template = {
	key = "DRAGON_SECONDARY_WEAPON_ICE"
	size = medium
	entity = "invisible_turret_entity"
	type = instant

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	hidden = yes
	use_ship_main_target = no

	projectile_gfx = "dragon_wing_weapon_ice"
	tags = { weapon_type_energy weapon_type_space_fauna }
}

weapon_component_template = {
	key = "DRAGON_TERTIARY_WEAPON"
	size = point_defence
	entity = "invisible_turret_entity"
	type = point_defence

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	hidden = yes
	projectile_gfx = "arc_emitter"
	tags = { weapon_type_point_defense weapon_type_energy weapon_type_space_fauna }

	point_defence_targets = { "missile" "strike_craft" }
}

weapon_component_template = {
	key = "DRAGON_TERTIARY_WEAPON_ICE"
	size = point_defence
	entity = "invisible_turret_entity"
	type = point_defence

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	hidden = yes
	projectile_gfx = "dragon_tertiary_weapon_ice"
	tags = { weapon_type_point_defense weapon_type_energy weapon_type_space_fauna }

	point_defence_targets = { "missile" "strike_craft" }
}

weapon_component_template = {
	key = "DIMENSIONAL_HORROR_PRIMARY_WEAPON"
	size = extra_large
	type = instant
	prio_projectile = yes

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	firing_arc = 15.0
	min_range = 5.0 #30.0

	hidden = yes
	projectile_gfx = "dimensional_titan_laser"
	tags = { weapon_type_energy }
}

weapon_component_template = {
	key = "DIMENSIONAL_HORROR_LARGE_WEAPON"
	size = large
	entity = "invisible_turret_entity"
	type = instant
	icon = "GFX_ship_part_laser_1"
	icon_frame = 1
	projectile_gfx = "dimensional_horror_spike_weapon"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	hidden = yes
	use_ship_main_target = no
}

weapon_component_template = {
	key = "DIMENSIONAL_HORROR_MEDIUM_WEAPON"
	size = large
	entity = "invisible_turret_entity"
	type = instant
	icon = "GFX_ship_part_laser_1"
	icon_frame = 1
	projectile_gfx = "dimensional_horror_spike_weapon"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	hidden = yes
	use_ship_main_target = no
}

weapon_component_template = {
	key = "DIMENSIONAL_HORROR_SMALL_WEAPON"
	size = small
	entity = "invisible_turret_entity"
	type = instant
	icon = "GFX_ship_part_laser_1"
	icon_frame = 1
	projectile_gfx = "dimensional_horror_spike_weapon"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	hidden = yes
	use_ship_main_target = no
}

weapon_component_template = {
	key = "DIMENSIONAL_HORROR_PD"
	size = point_defence
	entity = "invisible_turret_entity"
	type = point_defence

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	hidden = yes
	projectile_gfx = "dimensional_horror_spike_weapon"
	tags = { weapon_type_point_defense weapon_type_energy }

	point_defence_targets = { "missile" "strike_craft" }
}

### Hive asteroid fighter

strike_craft_component_template = {
	key = "HIVE_STRIKE_CRAFT"
	size = LARGE
	entity = "hive_asteroid_05_entity"
	resources = {
		category = ship_components
		cost = {
			alloys = 50
		}
	}
	power = -50

	count = 20
	regeneration_per_day = 0.5
	launch_time = 0.2

	damage = { min = 3 max = 6 }
	cooldown = 4.0
	range = 40
	attack_range = 120
	accuracy = 1.0
	engagement_range = 120

	health = 100
	armor = 50
	shield = 0
	evasion = 0.40

	speed = 300
	rotation_speed = 0.3
	acceleration = 2.5

	shield_damage = 1.0
	shield_penetration = 1
	armor_penetration = 0.66

	ship_behavior = "bombers_behavior"

	weapon_type = instant
	projectile_gfx = "small_space_amoeba_weapon"

	component_set = "HIVE_STRIKE_CRAFT_1"
	icon = "GFX_ship_part_swarm_strike_craft_1"
	icon_frame = 1
	tags = { weapon_type_strike_craft }

	hidden = yes
}

weapon_component_template = {
	key = "WRAITH_RED_LASER"
	size = large
	entity = "large_laser_gun_entity"
	type = instant
	icon = "GFX_ship_part_laser_1"
	icon_frame = 1
	projectile_gfx = "infrared_laser_l"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }

	hidden = yes
}

weapon_component_template = {
	key = "WRAITH_BLUE_LASER"
	size = large
	entity = "large_laser_gun_entity"
	type = instant
	icon = "GFX_ship_part_laser_1"
	icon_frame = 1
	projectile_gfx = "blue_laser_l"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }

	hidden = yes
}

weapon_component_template = {
	key = "WRAITH_YELLOW_LASER"
	size = large
	entity = "large_laser_gun_entity"
	type = instant
	icon = "GFX_ship_part_laser_1"
	icon_frame = 1
	projectile_gfx = "gamma_laser_l"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }

	hidden = yes
}

# Toxic God

strike_craft_component_template = {
	key = "TOXIC_GOD_STRIKE_CRAFT"
	size = LARGE
	entity = "swarm_01_fighter_entity"
	resources = {
		category = ship_components
		cost = {
			alloys = 100
		}
	}

	power = -80

	count = 10
	regeneration_per_day = 0.5
	launch_time = 1.0

	damage = { min = 8 max = 12 }
	cooldown = 2
	range = 10
	engagement_range = 120
	accuracy = 1.0
	tracking = 0.8

	health = 80
	armor = 20
	shield = 0
	evasion = 0.80

	speed = 400
	rotation_speed = 0.5
	acceleration = 0.5

	shield_damage = 1.0
	shield_penetration = 1
	armor_penetration = 0.66

	ship_behavior = "fighters_behavior"

	weapon_type = point_defence
	projectile_gfx = "toxic_god_strike_craft_weapon"

	component_set = "SWARM_STRIKE_CRAFT_1"
	icon = "GFX_ship_part_swarm_strike_craft_1"
	icon_frame = 1
	tags = { weapon_type_strike_craft }
	point_defence_targets = { "strike_craft" }
	hidden = yes
}

weapon_component_template = {
	key = "TOXIC_GOD_LARGE_WEAPON"
	size = large
	entity = "invisible_turret_entity"
	type = instant
	icon = "GFX_ship_part_laser_1"
	icon_frame = 1
	projectile_gfx = "toxic_god_beam_weapon"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	hidden = yes
	use_ship_main_target = no
}

weapon_component_template = {
	key = "TOXIC_GOD_SMALL_WEAPON"
	size = small
	entity = "invisible_turret_entity"
	type = instant
	icon = "GFX_ship_part_laser_1"
	icon_frame = 1
	projectile_gfx = "toxic_god_weapon_projectile"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
	hidden = yes
	use_ship_main_target = no
}

weapon_component_template = {
	key = "TOXIC_GOD_PD"
	size = point_defence
	entity = "invisible_turret_entity"
	type = point_defence

	icon = "GFX_ship_part_energy_lance_2"
	icon_frame = 1
	#color = { 0.1 1.0 0.1 1 }

	hidden = yes
	projectile_gfx = "toxic_god_proj_pd"
	tags = { weapon_type_point_defense weapon_type_energy }

	point_defence_targets = { "missile" "strike_craft" }
}
