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

### Gravitaitonal Anomaly Projector
weapon_component_template = {
	key = "SMALL_NHSC_SINGULARITY_CANNON_1"
	size = small
	icon = "GFX_ship_part_nhsc_singularity_cannon_1"
	icon_frame = 1
	entity = "small_laser_gun_entity"
	type = instant

	damage = { min = 34 max = 62 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 40
	accuracy = 0.85
	power = -20
	cost = 30
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2

	prerequisites = { "nhsc_tech_gravicannon_1" }
	component_set = "NHSC_SINGULARITY_CANNON_1"
	projectile_gfx = "nhsc_plasma_5_small"
	upgrades_to = "SMALL_NHSC_SINGULARITY_CANNON_2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_shield }
}

weapon_component_template = {
	key = "MEDIUM_NHSC_SINGULARITY_CANNON_1"
	size = medium
	icon = "GFX_ship_part_nhsc_singularity_cannon_1"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

	damage = { min = 68 max = 138 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 60
	accuracy = 0.85
	power = -34
	cost = 60
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2

	prerequisites = { "nhsc_tech_gravicannon_1" }
	component_set = "NHSC_SINGULARITY_CANNON_1"
	projectile_gfx = "nhsc_plasma_5_medium"
	upgrades_to = "MEDIUM_NHSC_SINGULARITY_CANNON_2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_shield }
}

weapon_component_template = {
	key = "LARGE_NHSC_SINGULARITY_CANNON_1"
	size = large
	icon = "GFX_ship_part_nhsc_singularity_cannon_1"
	icon_frame = 1
	entity = "large_laser_gun_entity"
	type = instant

	damage = { min = 178 max = 344 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 80
	accuracy = 0.85
	power = -64
	cost = 120
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2

	prerequisites = { "nhsc_tech_gravicannon_1" }
	component_set = "NHSC_SINGULARITY_CANNON_1"
	projectile_gfx = "nhsc_plasma_5_large"
	upgrades_to = "LARGE_NHSC_SINGULARITY_CANNON_2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_shield }
}

### Spatial Distortion cannon
weapon_component_template = {
	key = "SMALL_NHSC_SINGULARITY_CANNON_2"
	size = small
	icon = "GFX_ship_part_nhsc_singularity_cannon_2"
	icon_frame = 1
	entity = "small_laser_gun_entity"
	type = instant

	damage = { min = 44 max = 78 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 40
	accuracy = 0.85
	power = -24
	cost = 36
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2

	prerequisites = { "nhsc_tech_gravicannon_2" }
	component_set = "NHSC_SINGULARITY_CANNON_2"
	projectile_gfx = "nhsc_plasma_5_small"
	upgrades_to = "SMALL_NHSC_SINGULARITY_CANNON_3"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_shield }
}

weapon_component_template = {
	key = "MEDIUM_NHSC_SINGULARITY_CANNON_2"
	size = medium
	icon = "GFX_ship_part_nhsc_singularity_cannon_2"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

	damage = { min = 92 max = 234 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 60
	accuracy = 0.85
	power = -46
	cost = 72
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2

	prerequisites = { "nhsc_tech_gravicannon_2" }
	component_set = "NHSC_SINGULARITY_CANNON_2"
	projectile_gfx = "nhsc_plasma_5_medium"
	upgrades_to = "MEDIUM_NHSC_SINGULARITY_CANNON_3"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_shield }
}

weapon_component_template = {
	key = "LARGE_NHSC_SINGULARITY_CANNON_2"
	size = large
	icon = "GFX_ship_part_nhsc_singularity_cannon_2"
	icon_frame = 1
	entity = "large_laser_gun_entity"
	type = instant

	damage = { min = 244 max = 456 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 80
	accuracy = 0.85
	power = -90
	cost = 144
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2

	prerequisites = { "nhsc_tech_gravicannon_2" }
	component_set = "NHSC_SINGULARITY_CANNON_2"
	projectile_gfx = "nhsc_plasma_5_large"
	upgrades_to = "LARGE_NHSC_SINGULARITY_CANNON_3"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_shield }
}

### Microsingularity cannon
weapon_component_template = {
	key = "SMALL_NHSC_SINGULARITY_CANNON_3"
	size = small
	icon = "GFX_ship_part_nhsc_singularity_cannon_3"
	icon_frame = 1
	entity = "small_laser_gun_entity"
	type = instant

	damage = { min = 58 max = 98 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 40
	accuracy = 0.85
	power = -28
	cost = 40
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2

	prerequisites = { "nhsc_tech_gravicannon_3" }
	component_set = "NHSC_SINGULARITY_CANNON_3"
	projectile_gfx = "nhsc_plasma_5_small"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_shield }
}

weapon_component_template = {
	key = "MEDIUM_NHSC_SINGULARITY_CANNON_3"
	size = medium
	icon = "GFX_ship_part_nhsc_singularity_cannon_3"
	icon_frame = 1
	entity = "medium_laser_gun_entity"
	type = instant

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

	prerequisites = { "nhsc_tech_gravicannon_3" }
	component_set = "NHSC_SINGULARITY_CANNON_3"
	projectile_gfx = "nhsc_plasma_5_medium"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_shield }
}

weapon_component_template = {
	key = "LARGE_NHSC_SINGULARITY_CANNON_3"
	size = large
	icon = "GFX_ship_part_nhsc_singularity_cannon_3"
	icon_frame = 1
	entity = "large_laser_gun_entity"
	type = instant

	damage = { min = 280 max = 534 }
	windup = { min = 2 max = 20 }
	total_fire_time = 40
	range = 80
	accuracy = 0.85
	power = -100
	cost = 160
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2

	prerequisites = { "nhsc_tech_gravicannon_3" }
	component_set = "NHSC_SINGULARITY_CANNON_3"
	projectile_gfx = "nhsc_plasma_5_large"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_anti_shield }
}

### Spatial Distortion Warhead
weapon_component_template = {
	key = "NHSC_GRAVITY_TORPS_1"
	size = torpedo
	icon = "GFX_ship_part_nhsc_graviton_torp_1"
	icon_frame = 1
	entity = "turret_torpedo_entity"	
	type = missile
	static_rotation = no

	damage = { min = 138 max = 272 }
	windup = { min = 2 max = 20 }
	total_fire_time = 45
	range = 95
	accuracy = 1.0
	missile_speed = 17 # 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 = 0.0
	armor_damage = 0.5
	shield_penetration = 0.5
	shield_damage = 1.5
	tracking = 0.2

	prerequisites = { "nhsc_tech_torpedo_grav_1" }
	component_set = "NHSC_GRAVITY_TORPS_1"
	projectile_gfx = "nhsc_corrosive_warhead_torpedoes"
	upgrades_to = "NHSC_GRAVITY_TORPS_2"
	tags = { weapon_type_explosive weapon_type_energy }
	ai_tags = { weapon_role_anti_armor weapon_role_artillery }
}

### Microsingularity Warhead
weapon_component_template = {
	key = "NHSC_GRAVITY_TORPS_2"
	size = torpedo
	icon = "GFX_ship_part_nhsc_graviton_torp_2"
	icon_frame = 1
	entity = "turret_torpedo_entity"	
	type = missile
	static_rotation = no

	damage = { min = 178 max = 334 }
	windup = { min = 2 max = 20 }
	total_fire_time = 45
	range = 95
	accuracy = 1.0
	missile_speed = 17 # 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 = 0.0
	armor_damage = 0.5
	shield_penetration = 0.5
	shield_damage = 1.5
	tracking = 0.2

	prerequisites = { "nhsc_tech_torpedo_grav_2" }
	component_set = "NHSC_GRAVITY_TORPS_2"
	projectile_gfx = "nhsc_corrosive_warhead_torpedoes"
	tags = { weapon_type_explosive weapon_type_energy }
	ai_tags = { weapon_role_anti_armor weapon_role_artillery }
}

### Super-Graviton Cannon
weapon_component_template = {
	key = "NHSC_GRAVITON_LANCE_1"
	size = extra_large
	entity = "invisible_turret_entity"
	type = instant
	icon = "GFX_ship_part_nhsc_graviton_lance_1"
	icon_frame = 1
	
	firing_arc = 25.0
	min_range = 10.0
	static_rotation = yes
	use_ship_kill_target = no

	damage = { min = 1300 max = 2600 }
	windup = { min = 2 max = 20 }
	total_fire_time = 70
	range = 160
	accuracy = 0.85
	power = -275
	cost = 375
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2
	
	prerequisites = { "nhsc_tech_graviton_lance_1" }
	component_set = "NHSC_GRAVITON_LANCE_1"
	projectile_gfx = "nhsc_graviton_lance"
	upgrades_to = "NHSC_GRAVITON_LANCE_2"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
}

### Focused Super-Graviton Cannon
weapon_component_template = {
	key = "NHSC_GRAVITON_LANCE_2"
	size = extra_large
	entity = "invisible_turret_entity"
	type = instant
	icon = "GFX_ship_part_nhsc_graviton_lance_2"
	icon_frame = 1
	
	firing_arc = 25.0
	min_range = 10.0
	static_rotation = yes
	use_ship_kill_target = no

	damage = { min = 1500 max = 2800 }
	windup = { min = 2 max = 20 }
	total_fire_time = 170
	range = 160
	accuracy = 0.85
	power = -310
	cost = 425
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2
	
	prerequisites = { "nhsc_tech_graviton_lance_2" }
	component_set = "NHSC_GRAVITON_LANCE_2"
	projectile_gfx = "nhsc_graviton_lance"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
}

weapon_component_template = {
	key = "NHSC_GRAVITON_LANCE_2_TITANIC"
	size = titanic
	entity = "invisible_turret_entity"
	type = instant
	icon = "GFX_ship_part_nhsc_graviton_lance_2"
	icon_frame = 1
	
	firing_arc = 25.0
	min_range = 10.0
	static_rotation = yes
	use_ship_kill_target = no

	damage = { min = 5000 max = 10000 }
	windup = { min = 30 max = 50 }
	total_fire_time = 170
	range = 250
	accuracy = 0.85
	power = -500
	cost = 550
	hull_damage = 1.5
	armor_penetration = 0.0
	armor_damage = 0.5
	shield_penetration = 0.0
	shield_damage = 2.0
	tracking = 0.2
	
	prerequisites = { "nhsc_tech_graviton_lance_2_titanic" }
	component_set = "NHSC_GRAVITON_LANCE_2_TITANIC"
	projectile_gfx = "nhsc_graviton_lance"
	tags = { weapon_type_energy }
	ai_tags = { weapon_role_artillery }
	ai_tag_weight = 0
}

### Singularity Bombers
strike_craft_component_template = {
	key = "NHSC_GRAVITY_BOMBERS"
	size = LARGE
	entity = "fighter_entity"
	icon = "GFX_ship_part_nhsc_gravity_bombers"
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "nhsc_plasma_5_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.75
	armor_damage = 0.75
       	shield_penetration = 1
	
	ship_behavior = "bombers_behavior"
	component_set = "NHSC_GRAVITY_BOMBERS"
	prerequisites = { "nhsc_tech_grav_crafts" }
	tags = { weapon_type_strike_craft }
}
