### components that are shown in the ship designer :: psionic weapons

### psi-blast torpedo
weapon_component_template = {
	key = "NHSC_TORPEDO_PSI_1"
	size = torpedo
	icon = "GFX_ship_part_nhsc_psitorpedo_1"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

	damage = { min = 135 max = 275 }
	windup = { min = 2 max = 20 }
	total_fire_time = 45
	range = 85
	accuracy = 1.0
	missile_speed = 20 # 400 -- apparently, the game doesn't auto-convert speed for non-vanilla components
	missile_evasion = 0.1
	missile_health = 25
	missile_retarget_range = 100
	power = -70
	cost = 110
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.35

	prerequisites = { "nhsc_tech_psitorpedo_1" }
	component_set = "NHSC_TORPEDO_PSI_1"
	projectile_gfx = "nhsc_psi_torpedoes"
	upgrades_to = "NHSC_TORPEDO_PSI_2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

### improved psi-blast torpedo
weapon_component_template = {
	key = "NHSC_TORPEDO_PSI_2"
	size = torpedo
	icon = "GFX_ship_part_nhsc_psitorpedo_2"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

	damage = { min = 180 max = 330 }
	windup = { min = 2 max = 20 }
	total_fire_time = 45
	range = 85
	accuracy = 1.0
	missile_speed = 20 # 400 -- apparently, the game doesn't auto-convert speed for non-vanilla components
	missile_evasion = 0.1
	missile_health = 25
	missile_retarget_range = 100
	power = -80
	cost = 140
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.35

	prerequisites = { "nhsc_tech_psitorpedo_2" }
	component_set = "NHSC_TORPEDO_PSI_2"
	projectile_gfx = "nhsc_psi_torpedoes"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

### psionic energy projector
weapon_component_template = {
	key = "SMALL_NHSC_CANNON_PSI_1"
	size = small
	icon = "GFX_ship_part_nhsc_psicannon_1"
	icon_frame = 1
	entity = "small_laser_gun_entity"
	type = instant

	damage = { min = 25 max = 75 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 40
	accuracy = 0.85
	power = -20
	cost = 30
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	prerequisites = { "nhsc_tech_psicannon_1" }
	component_set = "NHSC_CANNON_PSI_1"
	projectile_gfx = "nhsc_psi_cannon_small"
	upgrades_to = "SMALL_NHSC_CANNON_PSI_2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
	key = "MEDIUM_NHSC_CANNON_PSI_1"
	size = medium
	icon = "GFX_ship_part_nhsc_psicannon_1"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

	damage = { min = 60 max = 145 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 60
	accuracy = 0.85
	power = -34
	cost = 60
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	prerequisites = { "nhsc_tech_psicannon_1" }
	component_set = "NHSC_CANNON_PSI_1"
	projectile_gfx = "nhsc_psi_cannon_medium"
	upgrades_to = "MEDIUM_NHSC_CANNON_PSI_2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
	key = "LARGE_NHSC_CANNON_PSI_1"
	size = large
	icon = "GFX_ship_part_nhsc_psicannon_1"
	icon_frame = 1
	entity = "large_laser_gun_entity"
	type = instant

	damage = { min = 160 max = 360 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 80
	accuracy = 0.85
	power = -64
	cost = 120
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	prerequisites = { "nhsc_tech_psicannon_1" }
	component_set = "NHSC_CANNON_PSI_1"
	projectile_gfx = "nhsc_psi_cannon_large"
	upgrades_to = "LARGE_NHSC_CANNON_PSI_2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

### psionic wave cannon
weapon_component_template = {
	key = "SMALL_NHSC_CANNON_PSI_2"
	size = small
	icon = "GFX_ship_part_nhsc_psicannon_2"
	icon_frame = 1
	entity = "small_laser_gun_entity"
	type = instant

	damage = { min = 35 max = 90 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 40
	accuracy = 0.85
	power = -24
	cost = 36
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	prerequisites = { "nhsc_tech_psicannon_2" }
	component_set = "NHSC_CANNON_PSI_2"
	projectile_gfx = "nhsc_psi_cannon_small"
	upgrades_to = "SMALL_NHSC_CANNON_PSI_3"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
	key = "MEDIUM_NHSC_CANNON_PSI_2"
	size = medium
	icon = "GFX_ship_part_nhsc_psicannon_2"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

	damage = { min = 95 max = 230 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 60
	accuracy = 0.85
	power = -46
	cost = 72
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	prerequisites = { "nhsc_tech_psicannon_2" }
	component_set = "NHSC_CANNON_PSI_2"
	projectile_gfx = "nhsc_psi_cannon_medium"
	upgrades_to = "MEDIUM_NHSC_CANNON_PSI_3"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
	key = "LARGE_NHSC_CANNON_PSI_2"
	size = large
	icon = "GFX_ship_part_nhsc_psicannon_2"
	icon_frame = 1
	entity = "large_laser_gun_entity"
	type = instant

	damage = { min = 230 max = 470 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 80
	accuracy = 0.85
	power = -90
	cost = 144
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	prerequisites = { "nhsc_tech_psicannon_2" }
	component_set = "NHSC_CANNON_PSI_2"
	projectile_gfx = "nhsc_psi_cannon_large"
	upgrades_to = "LARGE_NHSC_CANNON_PSI_3"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

### psionic wave cannon
weapon_component_template = {
	key = "SMALL_NHSC_CANNON_PSI_3"
	size = small
	icon = "GFX_ship_part_nhsc_psicannon_3"
	icon_frame = 1
	entity = "small_laser_gun_entity"
	type = instant

	damage = { min = 50 max = 110 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 40
	accuracy = 0.85
	power = -28
	cost = 40
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	prerequisites = { "nhsc_tech_psicannon_3" }
	component_set = "NHSC_CANNON_PSI_3"
	projectile_gfx = "nhsc_psi_cannon_small"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
	key = "MEDIUM_NHSC_CANNON_PSI_3"
	size = medium
	icon = "GFX_ship_part_nhsc_psicannon_3"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

	damage = { min = 110 max = 275 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 60
	accuracy = 0.85
	power = -52
	cost = 80
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	prerequisites = { "nhsc_tech_psicannon_3" }
	component_set = "NHSC_CANNON_PSI_3"
	projectile_gfx = "nhsc_psi_cannon_medium"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
	key = "LARGE_NHSC_CANNON_PSI_3"
	size = large
	icon = "GFX_ship_part_nhsc_psicannon_3"
	icon_frame = 1
	entity = "large_laser_gun_entity"
	type = instant

	damage = { min = 275 max = 540 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 80
	accuracy = 0.85
	power = -100
	cost = 160
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	prerequisites = { "nhsc_tech_psicannon_3" }
	component_set = "NHSC_CANNON_PSI_3"
	projectile_gfx = "nhsc_psi_cannon_large"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_armor }
}

### psionic lance
weapon_component_template = {
	key = "NHSC_PSI_LANCE_1"
	size = extra_large
	icon = "GFX_ship_part_nhsc_psilance_1"
	icon_frame = 1	
	entity = "invisible_turret_entity"
	type = instant

	damage = { min = 1200 max = 2700 }
	windup = { min = 2 max = 20 }
	total_fire_time = 70
	range = 160
	accuracy = 0.85
	power = -275
	cost = 375
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	firing_arc = 25.0
	min_range = 10
	static_rotation = yes
	use_ship_kill_target = no

	prerequisites = { "nhsc_tech_psilance_1" }
	component_set = "NHSC_PSI_LANCE_1"
	projectile_gfx = "nhsc_psionic_lance"
	upgrades_to = "NHSC_PSI_LANCE_2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery weapon_role_anti_armor }	
}

### focused psionic lance
weapon_component_template = {
	key = "NHSC_PSI_LANCE_2"
	size = extra_large
	icon = "GFX_ship_part_nhsc_psilance_2"
	icon_frame = 1	
	entity = "invisible_turret_entity"
	type = instant

	damage = { min = 1400 max = 2900 }
	windup = { min = 2 max = 20 }
	total_fire_time = 70
	range = 160
	accuracy = 0.85
	power = -275
	cost = 375
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	firing_arc = 25.0
	min_range = 10
	static_rotation = yes
	use_ship_kill_target = no

	prerequisites = { "nhsc_tech_psilance_2" }
	component_set = "NHSC_PSI_LANCE_2"
	projectile_gfx = "nhsc_psionic_lance"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery weapon_role_anti_armor }	
}

weapon_component_template = {
	key = "NHSC_PSI_LANCE_2_TITANIC"
	size = titanic
	icon = "GFX_ship_part_nhsc_psilance_2"
	icon_frame = 1	
	entity = "invisible_turret_entity"
	type = instant

	damage = { min = 5500 max = 10000 }
	windup = { min = 30 max = 50 }
	total_fire_time = 175
	range = 250
	accuracy = 0.85
	power = -500
	cost = 550
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.25
	shield_damage = 0.5
	tracking = 0.25

	firing_arc = 25.0
	min_range = 10
	static_rotation = yes
	use_ship_kill_target = no

	prerequisites = { "nhsc_tech_psilance_2_titanic" }
	component_set = "NHSC_PSI_LANCE_2_TITANIC"
	projectile_gfx = "nhsc_psionic_lance"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery weapon_role_anti_armor }	
}

### Psionic Interceptors
strike_craft_component_template = {
	key = "NHSC_PSI_CRAFTS"
	size = LARGE
	entity = "fighter_entity"
	icon = "GFX_ship_part_nhsc_psionic_crafts"
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "uv_laser_s"
	power = -70
	cost = 90
	
	count = 8
	regeneration_per_day = 0.15
	launch_time = 1.5
	
	damage = { min = 10 max = 22 }
	cooldown = 2.0
	range = 10
	accuracy = 1.0
	health = 60
	armor = 3
	shield = 40
	tracking = 0.70	
	speed = 240
	rotation_speed = 0.15
	acceleration = 0.6
	evasion = 0.80
	hull_damage = 1.5
	armor_penetration = 1.0
	armor_damage = 1.0
	shield_penetration = 0.75
	shield_damage = 0.5
	
	ship_behavior = "fighters_behavior"
	component_set = "NHSC_PSI_CRAFTS"
	prerequisites = { "nhsc_tech_strikecraft_psionic" }
	tags = { weapon_type_strike_craft }
}
