weapon_component_template = {
	key = "LARGE_ENERGY_LANCE_3"
	size = extra_large
	type = instant	
	use_ship_kill_target = no

	damage = { min = 1140 max = 2280 }
	windup = { min = 30 max = 30 }
	total_fire_time = 60
  
	min_range = 10.0
	range = 160.0
	firing_arc = 25.0
	accuracy = 0.9
	tracking = 0.1
  
	shield_damage = 0.75
  armor_penetration = 0.25
	armor_damage = 2.0
  
	power = -300
	
	icon = "GFX_ship_part_energy_lance_3"
	icon_frame = 1

	prerequisites = { "EW_tech_energy_lance_3" }	
	component_set = "ENERGY_LANCE_3"
	projectile_gfx = "plasma_lance"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery artillery weapon_role_anti_armor }
	upgrades_to = "LARGE_ENERGY_LANCE_4"

	resources = {
		category = ship_components
		cost = {
			alloys = 250
			rare_crystals = 4.0
		}		
		upkeep = {
			energy = 3
			alloys = 0.6
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	key = "LARGE_ENERGY_LANCE_4"
	size = extra_large
	type = instant	
	
	damage = { min = 1907 max = 3813 }
	windup = { min = 30 max = 30 }
	total_fire_time = 80
  
	min_range = 10.0
	range = 180.0
	firing_arc = 25.0
	accuracy = 0.925
	tracking = 0.125
  
	shield_damage = 0.75
  armor_penetration = 0.333
	armor_damage = 2.0
  
	power = -360
	
	icon = "GFX_ship_part_energy_lance_4"
	icon_frame = 1

	prerequisites = { "EW_tech_energy_lance_4" }	
	component_set = "ENERGY_LANCE_4"
	projectile_gfx = "md_lance"
	tags = { weapon_type_energy }
	ai_tags = { artillery weapon_role_artillery weapon_role_anti_armor }
	upgrades_to = "LARGE_ENERGY_LANCE_5"

	resources = {
		category = ship_components
		cost = {
			alloys = 300
			rare_crystals = 5
		}		
		upkeep = {
			energy = 4
			alloys = 0.8
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	key = "LARGE_ENERGY_LANCE_5"
	size = extra_large
	type = instant

	damage = { min = 2860 max = 5720 }
	windup = { min = 30 max = 30 }
	total_fire_time = 100
  
	min_range = 10.0
	range = 200.0
	firing_arc = 25.0
	accuracy = 0.975
	tracking = 0.15
  
	shield_damage = 0.75
  armor_penetration = 0.5
	armor_damage = 2.0
  
	power = -420
	
	icon = "GFX_ship_part_energy_lance_5"
	icon_frame = 1

	prerequisites = { "EW_tech_energy_lance_5" }	
	component_set = "ENERGY_LANCE_5"
	projectile_gfx = "annihilator_lance"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery artillery weapon_role_anti_armor }
	upgrades_to = "LARGE_ENERGY_LANCE_6"

	resources = {
		category = ship_components
		cost = {
			alloys = 400
			rare_crystals = 8
		}		
		upkeep = {
			energy = 6
			alloys = 1.5
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	key = "LARGE_ENERGY_LANCE_6"
	size = extra_large
	type = instant	
	

	damage = { min = 4000 max = 8000 }
	windup = { min = 30 max = 30 }
	total_fire_time = 120
  
	min_range = 20.0
	range = 230.0
	firing_arc = 25.0
	accuracy = 1
	tracking = 0.2
  
	shield_damage = 0.75
  armor_penetration = 0.5
	armor_damage = 2.0
  
	power = -480
	
	icon = "GFX_ship_part_energy_lance_6"
	icon_frame = 1

	prerequisites = { "EW_tech_energy_lance_6" }	
	component_set = "ENERGY_LANCE_6"
	projectile_gfx = "white_lance"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery artillery weapon_role_anti_armor }

	resources = {
		category = ship_components
		cost = {
			alloys = 500
			rare_crystals = 10
		}		
		upkeep = {
			energy = 8
			alloys = 2
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

weapon_component_template = {
	key = "TITANIC_ENERGY_LANCE_6"
	size = titanic
	type = instant
	prio_projectile = yes
		
	icon = "GFX_ship_part_energy_lance_6"
	icon_frame = 1
	
  
	tags = { weapon_type_energy }
	
	damage = { min = 11840 max = 23680 }
	windup = { min = 40 max = 40 }
	total_fire_time = 160
  
  on_hit = {
    inline_script = {
      script = ship_components/collateral_damage
      RANGE = 40
      DAMAGE = 1200
    }
  }
  
	range = 300.0
	firing_arc = 10.0
	min_range = 30.0
  
	accuracy = 1
	tracking = 0.1
	power = -800
  
	shield_damage = 0.75
  armor_penetration = 0.5
	armor_damage = 2.0
	
	prerequisites = { "EW_tech_energy_lance_6" }
	component_set = "ENERGY_LANCE_6T"
	projectile_gfx = "white_lance"

	resources = {
		category = ship_components
		cost = {
			alloys = 850
			rare_crystals = 14
		}		
		upkeep = {
			energy = 10
			alloys = 3.5
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}