############################################################
##             ESC : Extradimensional Weapons             ##
############################################################

# - Matter Annihilator				S/M/L
# - Great Matter Annihilator		X
# - Titanic Matter Annihilator		T
# - Reality Eraser					S/M/L
# - Great Reality Eraser			X
# - Titanic Reality Eraser			T

############################################################
##                   Matter Annihilator                   ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_EXTRADIMENSIONAL_WEAPON_2
	size = small
	icon = GFX_esc_extradimensional_cannon_2
	icon_frame = 1
	type = instant

	damage = { min = 36 max = 102 }
	size_damage_factor = 0.05
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 0.9
	power = -28

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 8
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_extradimensional_hull_damage
	armor_penetration = @ESC_WEAPON_extradimensional_armor_penetration
	armor_damage = @ESC_WEAPON_extradimensional_armor_damage
	shield_penetration = @ESC_WEAPON_extradimensional_shield_penetration
	shield_damage = @ESC_WEAPON_extradimensional_shield_damage
	tracking = 0.6

	prerequisites = { "esc_tech_extradimensional_weapon_2" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_2
	projectile_gfx = "disruptor_2_small"
	upgrades_to = SMALL_ESC_EXTRADIMENSIONAL_WEAPON_3
	tags = { weapon_type_energy s_slot }
	ai_tags = { weapon_role_anti_hull }

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_EXTRADIMENSIONAL_WEAPON_2
	size = medium
	icon = GFX_esc_extradimensional_cannon_2
	icon_frame = 1
	type = instant

	damage = { min = 114 max = 218 }
	size_damage_factor = 0.05
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_M_2
	accuracy = 0.9
	power = -52

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 8
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_extradimensional_hull_damage
	armor_penetration = @ESC_WEAPON_extradimensional_armor_penetration
	armor_damage = @ESC_WEAPON_extradimensional_armor_damage
	shield_penetration = @ESC_WEAPON_extradimensional_shield_penetration
	shield_damage = @ESC_WEAPON_extradimensional_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_extradimensional_weapon_2" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_2
	projectile_gfx = "disruptor_2_medium"
	upgrades_to = MEDIUM_ESC_EXTRADIMENSIONAL_WEAPON_3
	tags = { weapon_type_energy m_slot }
	ai_tags = { weapon_role_anti_hull }

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_EXTRADIMENSIONAL_WEAPON_2
	size = large
	icon = GFX_esc_extradimensional_cannon_2
	icon_frame = 1
	type = instant

	damage = { min = 228 max = 454 }
	size_damage_factor = 0.05
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_L_2
	accuracy = 0.9
	power = -100

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 8
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_extradimensional_hull_damage
	armor_penetration = @ESC_WEAPON_extradimensional_armor_penetration
	armor_damage = @ESC_WEAPON_extradimensional_armor_damage
	shield_penetration = @ESC_WEAPON_extradimensional_shield_penetration
	shield_damage = @ESC_WEAPON_extradimensional_shield_damage
	tracking = 0.05

	prerequisites = { "esc_tech_extradimensional_weapon_2" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_2
	projectile_gfx = "disruptor_2_large"
	upgrades_to = LARGE_ESC_EXTRADIMENSIONAL_WEAPON_3
	tags = { weapon_type_energy l_slot }
	ai_tags = { weapon_role_anti_hull }

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

############################################################
##                Grand Matter Annihilator                ##
############################################################

weapon_component_template = {
	key = ESC_EXTRADIMENSIONAL_WEAPON_2_X
	size = extra_large
	icon = GFX_esc_extradimensional_cannon_2
	icon_frame = 1
	type = instant

	inline_script = { # damage and collateral damage
		script = weapon_effects/esc_inlines_collateral_damage
		MIN_DAMAGE = 1500
		MAX_DAMAGE = 2700
		COLLATERAL_RANGE = @ESC_COLLATERAL_RANGE_ENERGY_xl
		COLLATERAL_SCALE_MULTIPLIER = @ESC_COLLATERAL_MULTIPLIER
	}

	size_damage_factor = 0.05
	windup = { min = 10 max = 35 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_X_4
	accuracy = 0.85
	power = -280

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 8
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_extradimensional_hull_damage
	armor_penetration = @ESC_WEAPON_extradimensional_armor_penetration
	armor_damage = @ESC_WEAPON_extradimensional_armor_damage
	shield_penetration = @ESC_WEAPON_extradimensional_shield_penetration
	shield_damage = @ESC_WEAPON_extradimensional_shield_damage
	tracking = 0.0

	firing_arc = 25.0
	min_range = @ESC_WEAPON_MIN_RANGE_2
	#use_ship_kill_target = no

	prerequisites = { "esc_tech_extradimensional_weapon_2_x" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_2_X
	projectile_gfx = "esc_extradimensional_x_2"
	tags = { weapon_type_energy x_slot weapon_role_artillery }
	ai_tags = { weapon_role_artillery weapon_role_anti_hull }
	upgrades_to = ESC_EXTRADIMENSIONAL_WEAPON_3_X
	# no clean way to enable upgrades both to Juggernaut version and to Reality Eraser, so using only the former

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	target_weights = {
		titan = 3
		battleship = 2
		stinger_stage_1 = 2
		stinger_stage_2 = 2
		stinger_stage_3 = 2
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

############################################################
##               Titanic Matter Annihilator               ##
############################################################

# titan
weapon_component_template = {
	key =ESC_EXTRADIMENSIONAL_WEAPON_2_T
	size = titanic
	icon = GFX_esc_extradimensional_cannon_2
	icon_frame = 1
	type = instant

	inline_script = { # damage and collateral damage
		script = weapon_effects/esc_inlines_collateral_damage
		MIN_DAMAGE = 6000
		MAX_DAMAGE = 9000
		COLLATERAL_RANGE = @ESC_COLLATERAL_RANGE_ENERGY_t
		COLLATERAL_SCALE_MULTIPLIER = @ESC_COLLATERAL_MULTIPLIER
	}

	size_damage_factor = 0.05
	windup = { min = 30 max = 70 }
	total_fire_time = 170
	range = @ESC_WEAPON_RANGE_T_3
	accuracy = 0.85
	power = -500

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = t
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_extradimensional_hull_damage
	armor_penetration = @ESC_WEAPON_extradimensional_armor_penetration
	armor_damage = @ESC_WEAPON_extradimensional_armor_damage
	shield_penetration = @ESC_WEAPON_extradimensional_shield_penetration
	shield_damage = @ESC_WEAPON_extradimensional_shield_damage
	tracking = 0.0

	firing_arc = 25.0
	min_range = @ESC_WEAPON_MIN_RANGE_3
	#use_ship_kill_target = no

	prerequisites = { "esc_tech_extradimensional_weapon_2_t" }
	component_set =ESC_EXTRADIMENSIONAL_WEAPON_2_T
	projectile_gfx = "esc_extradimensional_t_2"
	tags = { weapon_type_energy t_slot weapon_role_artillery }
	ai_tags = { weapon_role_artillery weapon_role_anti_hull }
	upgrades_to = ESC_EXTRADIMENSIONAL_WEAPON_3_T

	inline_script = {
		script = ship_components_general/esc_inlines_titanic_standard
		ARKSHIP_WEAPON = no
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	target_weights = {
		titan = 3
		battleship = 2
		stinger_stage_1 = 2
		stinger_stage_2 = 2
		stinger_stage_3 = 2
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = rare_crystals }
		}
	}
}

# arkship
weapon_component_template = {
	key =ESC_EXTRADIMENSIONAL_WEAPON_2_ARKSHIP
	size = titanic
	icon = GFX_esc_extradimensional_cannon_2
	icon_frame = 1
	type = instant

	inline_script = { # damage and collateral damage
		script = weapon_effects/esc_inlines_collateral_damage
		MIN_DAMAGE = 6000
		MAX_DAMAGE = 15500
		COLLATERAL_RANGE = @ESC_COLLATERAL_RANGE_ENERGY_t
		COLLATERAL_SCALE_MULTIPLIER = @ESC_COLLATERAL_MULTIPLIER
	}

	size_damage_factor = 0.05
	windup = { min = 30 max = 70 }
	total_fire_time = 170
	range = @ESC_WEAPON_RANGE_ARKSHIP_4
	accuracy = 0.75
	power = 0

	resources = {
		category = ship_components
		upkeep = {
			alloys = @titanic_t7_upkeep_alloys
			energy = @titanic_t7_upkeep_energy
		}
	}

	hull_damage = @ESC_WEAPON_extradimensional_hull_damage
	armor_penetration = @ESC_WEAPON_extradimensional_armor_penetration
	armor_damage = @ESC_WEAPON_extradimensional_armor_damage
	shield_penetration = @ESC_WEAPON_extradimensional_shield_penetration
	shield_damage = @ESC_WEAPON_extradimensional_shield_damage
	tracking = 0.0

	firing_arc = 25.0
	min_range = @ESC_WEAPON_MIN_RANGE_3
	#use_ship_kill_target = no

	prerequisites = { "esc_tech_extradimensional_weapon_2_t" }
	component_set =ESC_EXTRADIMENSIONAL_WEAPON_2_ARKSHIP
	projectile_gfx = "esc_extradimensional_t_2"
	tags = { weapon_type_energy t_slot weapon_role_artillery }
	ai_tags = { weapon_role_artillery weapon_role_anti_hull }
	upgrades_to = ESC_EXTRADIMENSIONAL_WEAPON_3_ARKSHIP

	inline_script = {
		script = ship_components_general/esc_inlines_titanic_standard
		ARKSHIP_WEAPON = yes
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	target_weights = {
		titan = 3
		battleship = 2
		stinger_stage_1 = 2
		stinger_stage_2 = 2
		stinger_stage_3 = 2
	}

	ai_weight = {
		weight = 1
	}
}

############################################################
##                     Reality Eraser                     ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_EXTRADIMENSIONAL_WEAPON_3
	size = small
	icon = GFX_esc_extradimensional_cannon_3
	icon_frame = 1
	type = instant

	damage = { min = 42 max = 118 }
	size_damage_factor = 0.05
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 0.9
	power = -34

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 9
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_eraser_hull_damage
	armor_penetration = @ESC_WEAPON_eraser_armor_penetration
	armor_damage = @ESC_WEAPON_eraser_armor_damage
	shield_penetration = @ESC_WEAPON_eraser_shield_penetration
	shield_damage = @ESC_WEAPON_eraser_shield_damage
	tracking = 0.6

	prerequisites = { "esc_tech_extradimensional_weapon_3" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_3
	projectile_gfx = "esc_disruptor_4_small"
	tags = { weapon_type_energy weapon_type_space_fauna s_slot }
	ai_tags = { weapon_role_anti_hull }

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_EXTRADIMENSIONAL_WEAPON_3
	size = medium
	icon = GFX_esc_extradimensional_cannon_3
	icon_frame = 1
	type = instant

	damage = { min = 128 max = 236 }
	size_damage_factor = 0.05
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_M_2
	accuracy = 0.9
	power = -60

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 9
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_eraser_hull_damage
	armor_penetration = @ESC_WEAPON_eraser_armor_penetration
	armor_damage = @ESC_WEAPON_eraser_armor_damage
	shield_penetration = @ESC_WEAPON_eraser_shield_penetration
	shield_damage = @ESC_WEAPON_eraser_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_extradimensional_weapon_3" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_3
	projectile_gfx = "esc_disruptor_4_medium"
	tags = { weapon_type_energy weapon_type_space_fauna m_slot }
	ai_tags = { weapon_role_anti_hull }

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_EXTRADIMENSIONAL_WEAPON_3
	size = large
	icon = GFX_esc_extradimensional_cannon_3
	icon_frame = 1
	type = instant

	damage = { min = 252 max = 488 }
	size_damage_factor = 0.05
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_L_2
	accuracy = 0.9
	power = -110

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 9
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_eraser_hull_damage
	armor_penetration = @ESC_WEAPON_eraser_armor_penetration
	armor_damage = @ESC_WEAPON_eraser_armor_damage
	shield_penetration = @ESC_WEAPON_eraser_shield_penetration
	shield_damage = @ESC_WEAPON_eraser_shield_damage
	tracking = 0.05

	prerequisites = { "esc_tech_extradimensional_weapon_3" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_3
	projectile_gfx = "esc_disruptor_4_large"
	tags = { weapon_type_energy weapon_type_space_fauna l_slot }
	ai_tags = { weapon_role_anti_hull }

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
	}
}

############################################################
##                  Grand Reality Eraser                  ##
############################################################

weapon_component_template = {
	key = ESC_EXTRADIMENSIONAL_WEAPON_3_X
	size = extra_large
	icon = GFX_esc_extradimensional_cannon_3
	icon_frame = 1
	type = instant

	inline_script = { # damage and collateral damage
		script = weapon_effects/esc_inlines_collateral_damage
		MIN_DAMAGE = 1700
		MAX_DAMAGE = 2850
		COLLATERAL_RANGE = @ESC_COLLATERAL_RANGE_ENERGY_t
		COLLATERAL_SCALE_MULTIPLIER = @ESC_COLLATERAL_MULTIPLIER
	}

	size_damage_factor = 0.05
	windup = { min = 10 max = 35 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_X_4
	accuracy = 0.85
	power = -330

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 9
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_eraser_hull_damage
	armor_penetration = @ESC_WEAPON_eraser_armor_penetration
	armor_damage = @ESC_WEAPON_eraser_armor_damage
	shield_penetration = @ESC_WEAPON_eraser_shield_penetration
	shield_damage = @ESC_WEAPON_eraser_shield_damage
	tracking = 0.0

	firing_arc = 25.0
	min_range = @ESC_WEAPON_MIN_RANGE_2
	#use_ship_kill_target = no

	prerequisites = { "esc_tech_extradimensional_weapon_3_x" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_3_X
	projectile_gfx = "esc_extradimensional_x_3"
	tags = { weapon_type_energy weapon_type_space_fauna x_slot weapon_role_artillery }
	ai_tags = { weapon_role_artillery weapon_role_anti_hull }

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	target_weights = {
		titan = 3
		battleship = 2
		stinger_stage_1 = 2
		stinger_stage_2 = 2
		stinger_stage_3 = 2
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
	}
}

############################################################
##                 Titanic Reality Eraser                 ##
############################################################

# titan
weapon_component_template = {
	key = ESC_EXTRADIMENSIONAL_WEAPON_3_T
	size = titanic
	icon = GFX_esc_extradimensional_cannon_3
	icon_frame = 1
	type = instant

	inline_script = { # damage and collateral damage
		script = weapon_effects/esc_inlines_collateral_damage
		MIN_DAMAGE = 7000
		MAX_DAMAGE = 9000
		COLLATERAL_RANGE = @ESC_COLLATERAL_RANGE_ENERGY_t
		COLLATERAL_SCALE_MULTIPLIER = @ESC_COLLATERAL_MULTIPLIER
	}

	size_damage_factor = 0.05
	windup = { min = 30 max = 70 }
	total_fire_time = 170
	range = @ESC_WEAPON_RANGE_T_3
	accuracy = 0.85
	power = -550

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = t
		TIER = 8
		STRATEGIC_RESOURCE_TYPE = rare_crystals
	}

	hull_damage = @ESC_WEAPON_eraser_hull_damage
	armor_penetration = @ESC_WEAPON_eraser_armor_penetration
	armor_damage = @ESC_WEAPON_eraser_armor_damage
	shield_penetration = @ESC_WEAPON_eraser_shield_penetration
	shield_damage = @ESC_WEAPON_eraser_shield_damage
	tracking = 0.0

	firing_arc = 25.0
	min_range = @ESC_WEAPON_MIN_RANGE_3
	#use_ship_kill_target = no

	prerequisites = { "esc_tech_extradimensional_weapon_3_t" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_3_T
	projectile_gfx = "esc_extradimensional_t_3"
	tags = { weapon_type_energy weapon_type_space_fauna t_slot weapon_role_artillery }
	ai_tags = { weapon_role_artillery weapon_role_anti_hull }

	inline_script = {
		script = ship_components_general/esc_inlines_titanic_standard
		ARKSHIP_WEAPON = no
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	target_weights = {
		titan = 3
		battleship = 2
		stinger_stage_1 = 2
		stinger_stage_2 = 2
		stinger_stage_3 = 2
	}

	ai_weight = {
		weight = 1
		### AI shouldn't use this component if it can't afford at least some upgrades right away
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
	}
}

# arkship
weapon_component_template = {
	key = ESC_EXTRADIMENSIONAL_WEAPON_3_ARKSHIP
	size = titanic
	icon = GFX_esc_extradimensional_cannon_3
	icon_frame = 1
	type = instant

	inline_script = { # damage and collateral damage
		script = weapon_effects/esc_inlines_collateral_damage
		MIN_DAMAGE = 7500
		MAX_DAMAGE = 17000
		COLLATERAL_RANGE = @ESC_COLLATERAL_RANGE_ENERGY_t
		COLLATERAL_SCALE_MULTIPLIER = @ESC_COLLATERAL_MULTIPLIER
	}

	size_damage_factor = 0.05
	windup = { min = 30 max = 70 }
	total_fire_time = 170
	range = @ESC_WEAPON_RANGE_ARKSHIP_4
	accuracy = 0.75
	power = 0

	resources = {
		category = ship_components
		upkeep = {
			alloys = @titanic_t7_upkeep_alloys
			energy = @titanic_t7_upkeep_energy
		}
	}

	hull_damage = @ESC_WEAPON_eraser_hull_damage
	armor_penetration = @ESC_WEAPON_eraser_armor_penetration
	armor_damage = @ESC_WEAPON_eraser_armor_damage
	shield_penetration = @ESC_WEAPON_eraser_shield_penetration
	shield_damage = @ESC_WEAPON_eraser_shield_damage
	tracking = 0.0

	firing_arc = 25.0
	min_range = @ESC_WEAPON_MIN_RANGE_3
	#use_ship_kill_target = no

	prerequisites = { "esc_tech_extradimensional_weapon_3_t" }
	component_set = ESC_EXTRADIMENSIONAL_WEAPON_3_ARKSHIP
	projectile_gfx = "esc_extradimensional_t_3"
	tags = { weapon_type_energy weapon_type_space_fauna t_slot weapon_role_artillery }
	ai_tags = { weapon_role_artillery weapon_role_anti_hull }

	inline_script = {
		script = ship_components_general/esc_inlines_titanic_standard
		ARKSHIP_WEAPON = yes
	}

	# only regular empires may use this component
	valid_for_country = {
		is_fallen_empire = no
	}

	target_weights = {
		titan = 3
		battleship = 2
		stinger_stage_1 = 2
		stinger_stage_2 = 2
		stinger_stage_3 = 2
	}

	ai_weight = {
		weight = 1
	}
}
