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

### Nanite Warhead Torpedo
weapon_component_template = {
        key = "NHSC_NANITY_TORPEDO_1"
	size = torpedo
	icon = "GFX_ship_part_nhsc_nanity_torpedo_1"
	icon_frame = 1
	entity = "turret_torpedo_entity"
	type = missile

	damage = { min = 250 max = 500 }
	windup = { min = 2 max = 20 }
	total_fire_time = 80
	range = 100
	accuracy = 1.0
	missile_speed = 15 # 300 -- apparently, the game doesn't auto-convert speed for non-vanilla components
	missile_evasion = 0.1
	missile_health = 35
	missile_retarget_range = 120
	power = -50
	cost = 100
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 1.0
	shield_penetration = 1.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_torpedo_nano_1" }
	component_set = "NHSC_NANITY_TORPEDO_1"
	projectile_gfx = "nhsc_nanity_torpedoes"
	upgrades_to = "NHSC_NANITY_TORPEDO_2"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_artillery }
}

### Gray Goo Warhead Torpedo
weapon_component_template = {
        key = "NHSC_NANITY_TORPEDO_2"
	size = torpedo
	icon = "GFX_ship_part_nhsc_nanity_torpedo_2"
	icon_frame = 1
	entity = "turret_torpedo_entity"
	type = missile

	damage = { min = 350 max = 600 }
	windup = { min = 2 max = 20 }
	total_fire_time = 80
	range = 100
	accuracy = 1.0
	missile_speed = 15 # 300 -- apparently, the game doesn't auto-convert speed for non-vanilla components
	missile_evasion = 0.1
	missile_health = 45 
	missile_shield = 10
	missile_retarget_range = 120
	power = -60
	cost = 120
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 1.0
	shield_penetration = 1.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_torpedo_nano_2" }
	component_set = "NHSC_NANITY_TORPEDO_2"
	projectile_gfx = "nhsc_nanity_torpedoes"
	tags = { weapon_type_explosive }
	ai_tags = { weapon_role_artillery }
}

### Nanite Cannon
weapon_component_template = {
        key = "SMALL_NHSC_NANITY_CANNON_1"
	size = small
	icon = "GFX_ship_part_nhsc_nanity_cannon_1"
	icon_frame = 1
	entity = "small_laser_gun_entity"
	type = instant

	damage = { min = 34 max = 68 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 40
	accuracy = 0.85
	power = -20
	cost = 30
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 0.4
	shield_penetration = 0.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_nano_cannon_1" }
	component_set = "NHSC_NANITY_CANNON_1"
	projectile_gfx = "nhsc_nanities_small"
	upgrades_to = "SMALL_NHSC_NANITY_CANNON_2"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
        key = "MEDIUM_NHSC_NANITY_CANNON_1"
	size = medium
	icon = "GFX_ship_part_nhsc_nanity_cannon_1"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

	damage = { min = 70 max = 140 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 60
	accuracy = 0.85
	power = -34
	cost = 60
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 0.4
	shield_penetration = 0.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_nano_cannon_1" }
	component_set = "NHSC_NANITY_CANNON_1"
	projectile_gfx = "nhsc_nanities_medium"
	upgrades_to = "MEDIUM_NHSC_NANITY_CANNON_2"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
        key = "LARGE_NHSC_NANITY_CANNON_1"
	size = large
	icon = "GFX_ship_part_nhsc_nanity_cannon_1"
	icon_frame = 1
	entity = "large_laser_gun_entity"
	type = instant

	damage = { min = 160 max = 320 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 80
	accuracy = 0.85
	power = -64
	cost = 120
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 0.4
	shield_penetration = 0.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_nano_cannon_1" }
	component_set = "NHSC_NANITY_CANNON_1"
	projectile_gfx = "nhsc_nanities_large"
	upgrades_to = "LARGE_NHSC_NANITY_CANNON_2"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_armor }
}

### Improved Nanite Cannon
weapon_component_template = {
        key = "SMALL_NHSC_NANITY_CANNON_2"
	size = small
	icon = "GFX_ship_part_nhsc_nanity_cannon_2"
	icon_frame = 1
	entity = "small_laser_gun_entity"
	type = instant

	damage = { min = 40 max = 80 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 40
	accuracy = 0.85
	power = -24
	cost = 36
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 0.4
	shield_penetration = 0.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_nano_cannon_2" }
	component_set = "NHSC_NANITY_CANNON_2"
	projectile_gfx = "nhsc_nanities_small"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
        key = "MEDIUM_NHSC_NANITY_CANNON_2"
	size = medium
	icon = "GFX_ship_part_nhsc_nanity_cannon_2"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

	damage = { min = 100 max = 200 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 60
	accuracy = 0.85
	power = -46
	cost = 72
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 0.4
	shield_penetration = 0.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_nano_cannon_2" }
	component_set = "NHSC_NANITY_CANNON_2"
	projectile_gfx = "nhsc_nanities_medium"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_armor }
}

weapon_component_template = {
        key = "LARGE_NHSC_NANITY_CANNON_2"
	size = large
	icon = "GFX_ship_part_nhsc_nanity_cannon_2"
	icon_frame = 1
	entity = "large_laser_gun_entity"
	type = instant

	damage = { min = 210 max = 420 }
	windup = { min = 2 max = 20 }
	total_fire_time = 35
	range = 80
	accuracy = 0.85
	power = -90
	cost = 144
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 0.4
	shield_penetration = 0.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_nano_cannon_2" }
	component_set = "NHSC_NANITY_CANNON_2"
	projectile_gfx = "nhsc_nanities_large"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_anti_armor }
}

### Nanite Warhead Rocket Artillery
weapon_component_template = {
	key = "NHSC_NANITY_XSLOT_1"
	size = extra_large
	icon = "GFX_ship_part_nhsc_nanity_xslot_1"
	icon_frame = 1
	entity = "invisible_turret_entity"
	type = missile
	firing_arc = 25.0
	min_range = 30.0
	static_rotation = yes
	use_ship_kill_target = no

	damage = { min = 1250 max = 3200 }
	windup = { min = 2 max = 20 }
	total_fire_time = 80
	range = 200
	accuracy = 1.0
	missile_speed = 20 # 425 -- apparently, the game doesn't auto-convert speed for non-vanilla components
	missile_evasion = 0.1
	missile_health = 110
	missile_retarget_range = 100
	power = -300
	cost = 375
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 1.0
	shield_penetration = 1.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_xslot_nano_1" }
	component_set = "NHSC_NANITY_XSLOT_1"
	projectile_gfx = "nhsc_nanity_torpedoes"
	upgrades_to = "NHSC_NANITY_XSLOT_2"
	tags = { weapon_type_explosive weapon_type_energy }
	ai_tags = { weapon_role_artillery weapon_role_anti_armor }
}

### Nanite Warhead Barrage System
weapon_component_template = {
	key = "NHSC_NANITY_XSLOT_2"
	size = extra_large
	icon = "GFX_ship_part_nhsc_nanity_xslot_2"
	icon_frame = 1
	entity = "invisible_turret_entity"
	type = missile
	firing_arc = 25.0
	min_range = 30.0
	static_rotation = yes
	use_ship_kill_target = no

	damage = { min = 1450 max = 3500 }
	windup = { min = 2 max = 20 }
	total_fire_time = 45
	range = 200
	accuracy = 1.0
	missile_speed = 20 # 425 -- apparently, the game doesn't auto-convert speed for non-vanilla components
	missile_evasion = 0.1
	missile_health = 120
	missile_retarget_range = 100
	power = -350
	cost = 415
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 1.0
	shield_penetration = 1.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_xslot_nano_2" }
	component_set = "NHSC_NANITY_XSLOT_2"
	projectile_gfx = "nhsc_nanity_torpedoes"
	tags = { weapon_type_explosive weapon_type_energy }
	ai_tags = { weapon_role_artillery weapon_role_anti_armor }
}

weapon_component_template = {
	key = "NHSC_NANITY_XSLOT_2_TITANIC"
	size = titanic
	icon = "GFX_ship_part_nhsc_nanity_xslot_2"
	icon_frame = 1
	entity = "invisible_turret_entity"
	type = missile
	firing_arc = 25.0
	min_range = 30.0
	static_rotation = yes
	use_ship_kill_target = no

	damage = { min = 1450 max = 3500 }
	windup = { min = 10 max = 20 }
	total_fire_time = 55
	range = 275
	accuracy = 1.0
	missile_speed = 20 # 425 -- apparently, the game doesn't auto-convert speed for non-vanilla components
	missile_evasion = 0.1
	missile_health = 120
	missile_retarget_range = 100
	power = -500
	cost = 500
	hull_damage = 1.5
	armor_damage = 1.75
	armor_penetration = 0.0
	shield_damage = 1.0
	shield_penetration = 1.0
	tracking = 0.1

	prerequisites = { "nhsc_tech_xslot_nano_2_titanic" }
	component_set = "NHSC_NANITY_XSLOT_2_TITANIC"
	projectile_gfx = "nhsc_nanity_torpedoes"
	tags = { weapon_type_explosive weapon_type_energy }
	ai_tags = { weapon_role_artillery weapon_role_anti_armor }
}

### Nanite Bombers
strike_craft_component_template = {
	key = "NHSC_NANITY_STRIKECRAFT"
	size = LARGE
	entity = "fighter_entity"
	icon = "GFX_ship_part_nhsc_nanity_craft"
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "nhsc_nanities_small"
	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_damage = 1.75
       	shield_penetration = 1
	
	ship_behavior = "bombers_behavior"
	component_set = "NHSC_NANITY_STRIKECRAFT"
	prerequisites = { "nhsc_tech_strikecraft_nano" }
	tags = { weapon_type_strike_craft }
}

