############################################################
##          ESC : Psionic Weapons : Space Fauna           ##
############################################################

# - Psionic Energy Projector			S/M/L/X
# - Psionic Beam Cannon					S/M/L/X
# - Shroud Strike						S/M/L/X
# - Shroud Wrath						S/M/L/X
# - Psi-blast Torpedo					S/M/L/X
# - Improved Psi-blast Torpedo			S/M/L/X
# - Psionic Interceptors				S/M/L/X
# - Focused Psionic Dusruptors			S/M/L/X
# - Shroud-Empowered Disruptors			S/M/L/X
# - Focused Psionic Lightning			S/M/L/X
# - Shroud Lightning					S/M/L/X

############################################################
##                Psionic Energy Projector                ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_CANNON_CREATURE_1
	size = small
	icon = GFX_esc_psionic_cannon_1
	icon_frame = 1
	type = instant

	damage = { min = 25 max = 70 }
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 0.85

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_shield_damage
	tracking = 0.6

	prerequisites = { "esc_tech_psionic_cannon_1" }
	component_set = ESC_PSIONIC_CANNON_CREATURE_1
	projectile_gfx = "esc_psionic_cannon_small"
	upgrades_to = SMALL_ESC_PSIONIC_CANNON_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic s_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor brawler gunship }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_CANNON_CREATURE_1
	size = medium
	icon = GFX_esc_psionic_cannon_1
	icon_frame = 1
	type = instant

	damage = { min = 60 max = 130 }
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = @ESC_WEAPON_RANGE_M_2
	accuracy = 0.85

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_cannon_1" }
	component_set = ESC_PSIONIC_CANNON_CREATURE_1
	projectile_gfx = "esc_psionic_cannon_medium"
	upgrades_to = MEDIUM_ESC_PSIONIC_CANNON_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic m_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor brawler gunship }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_CANNON_CREATURE_1
	size = large
	icon = GFX_esc_psionic_cannon_1
	icon_frame = 1
	type = instant

	damage = { min = 160 max = 330 }
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = @ESC_WEAPON_RANGE_L_2
	min_range = @ESC_WEAPON_MIN_RANGE_4
	accuracy = 0.85

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_cannon_1" }
	component_set = ESC_PSIONIC_CANNON_CREATURE_1
	projectile_gfx = "esc_psionic_cannon_large"
	upgrades_to = LARGE_ESC_PSIONIC_CANNON_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor artillery }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_CANNON_CREATURE_1
	size = extra_large
	icon = GFX_esc_psionic_cannon_1
	icon_frame = 1
	type = instant

	damage = { min = 350 max = 600 }
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = @ESC_WEAPON_RANGE_L_3
	min_range = @ESC_WEAPON_MIN_RANGE_4
	accuracy = 0.85

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_cannon_1" }
	component_set = ESC_PSIONIC_CANNON_CREATURE_1
	projectile_gfx = "esc_psionic_cannon_large"
	upgrades_to = XL_ESC_PSIONIC_CANNON_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic x_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor artillery }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##                   Psionic Beam Cannon                  ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_CANNON_CREATURE_2
	size = small
	icon = GFX_esc_psionic_cannon_2
	icon_frame = 1
	type = instant

	damage = { min = 35 max = 90 }
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 0.85

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

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_shield_damage
	tracking = 0.6

	prerequisites = { "esc_tech_psionic_cannon_2" }
	component_set = ESC_PSIONIC_CANNON_CREATURE_2
	projectile_gfx = "esc_psionic_cannon_small"
	tags = { weapon_type_energy weapon_type_psionic s_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor brawler gunship }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_CANNON_CREATURE_2
	size = medium
	icon = GFX_esc_psionic_cannon_2
	icon_frame = 1
	type = instant

	damage = { min = 95 max = 220 }
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = @ESC_WEAPON_RANGE_M_2
	accuracy = 0.85

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

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_cannon_2" }
	component_set = ESC_PSIONIC_CANNON_CREATURE_2
	projectile_gfx = "esc_psionic_cannon_medium"
	tags = { weapon_type_energy weapon_type_psionic m_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor brawler gunship }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_CANNON_CREATURE_2
	size = large
	icon = GFX_esc_psionic_cannon_2
	icon_frame = 1
	type = instant

	damage = { min = 230 max = 450 }
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = @ESC_WEAPON_RANGE_L_2
	min_range = @ESC_WEAPON_MIN_RANGE_4
	accuracy = 0.85

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

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_cannon_2" }
	component_set = ESC_PSIONIC_CANNON_CREATURE_2
	projectile_gfx = "esc_psionic_cannon_large"
	tags = { weapon_type_energy weapon_type_psionic l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor artillery }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_CANNON_CREATURE_2
	size = extra_large
	icon = GFX_esc_psionic_cannon_2
	icon_frame = 1
	type = instant

	damage = { min = 450 max = 840 }
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = @ESC_WEAPON_RANGE_L_3
	min_range = @ESC_WEAPON_MIN_RANGE_4
	accuracy = 0.85

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

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_cannon_2" }
	component_set = ESC_PSIONIC_CANNON_CREATURE_2
	projectile_gfx = "esc_psionic_cannon_large"
	tags = { weapon_type_energy weapon_type_psionic x_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor artillery }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##                      Shroud Strike                     ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_STRIKE_CREATURE_1
	size = small
	icon = GFX_esc_psionic_strike_1
	icon_frame = 1
	type = instant

	damage = { min = 15 max = 35 }
	windup = { min = 3 max = 12 }
	total_fire_time = 20
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 0.85

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_strike_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_strike_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strike_shield_damage
	tracking = 0.6

	prerequisites = { "esc_tech_psionic_strike_1" }
	component_set = ESC_PSIONIC_STRIKE_CREATURE_1
	projectile_gfx = "esc_psionic_strike_small"
	upgrades_to = SMALL_ESC_PSIONIC_STRIKE_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic s_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth gunship }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 2
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_STRIKE_CREATURE_1
	size = medium
	icon = GFX_esc_psionic_strike_1
	icon_frame = 1
	type = instant

	damage = { min = 30 max = 65 }
	windup = { min = 4 max = 15 }
	total_fire_time = 22
	range = @ESC_WEAPON_RANGE_M_2
	accuracy = 0.85

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_strike_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_strike_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strike_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_strike_1" }
	component_set = ESC_PSIONIC_STRIKE_CREATURE_1
	projectile_gfx = "esc_psionic_strike_medium"
	upgrades_to = MEDIUM_ESC_PSIONIC_STRIKE_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic m_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth gunship }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 2
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_STRIKE_CREATURE_1
	size = large
	icon = GFX_esc_psionic_strike_1
	icon_frame = 1
	type = instant

	damage = { min = 80 max = 140 }
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = @ESC_WEAPON_RANGE_L_2
	min_range = @ESC_WEAPON_MIN_RANGE_3
	accuracy = 0.85

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_strike_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_strike_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strike_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_strike_1" }
	component_set = ESC_PSIONIC_STRIKE_CREATURE_1
	projectile_gfx = "esc_psionic_strike_large"
	upgrades_to = LARGE_ESC_PSIONIC_STRIKE_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull artillery artillery_stealth }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 2
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_STRIKE_CREATURE_1
	size = extra_large
	icon = GFX_esc_psionic_strike_1
	icon_frame = 1
	type = instant

	damage = { min = 160 max = 280 }
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = @ESC_WEAPON_RANGE_L_3
	min_range = @ESC_WEAPON_MIN_RANGE_3
	accuracy = 0.85

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_strike_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_strike_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strike_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_strike_1" }
	component_set = ESC_PSIONIC_STRIKE_CREATURE_1
	projectile_gfx = "esc_psionic_strike_large"
	upgrades_to = XL_ESC_PSIONIC_STRIKE_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic x_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull artillery artillery_stealth }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 2
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##                      Shroud Wrath                      ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_STRIKE_CREATURE_2
	size = small
	icon = GFX_esc_psionic_strike_2
	icon_frame = 1
	type = instant

	damage = { min = 20 max = 50 }
	windup = { min = 3 max = 12 }
	total_fire_time = 20
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 0.85

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

	hull_damage = @ESC_WEAPON_psionic_strike_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_strike_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strike_shield_damage
	tracking = 0.6

	prerequisites = { "esc_tech_psionic_strike_2" }
	component_set = ESC_PSIONIC_STRIKE_CREATURE_2
	projectile_gfx = "esc_psionic_strike_small"
	tags = { weapon_type_energy weapon_type_psionic s_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth gunship }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 2
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_STRIKE_CREATURE_2
	size = medium
	icon = GFX_esc_psionic_strike_2
	icon_frame = 1
	type = instant

	damage = { min = 45 max = 90 }
	windup = { min = 4 max = 15 }
	total_fire_time = 22
	range = @ESC_WEAPON_RANGE_M_2
	accuracy = 0.85

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

	hull_damage = @ESC_WEAPON_psionic_strike_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_strike_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strike_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_strike_2" }
	component_set = ESC_PSIONIC_STRIKE_CREATURE_2
	projectile_gfx = "esc_psionic_strike_medium"
	tags = { weapon_type_energy weapon_type_psionic m_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth gunship }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 2
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_STRIKE_CREATURE_2
	size = large
	icon = GFX_esc_psionic_strike_2
	icon_frame = 1
	type = instant

	damage = { min = 100 max = 200 }
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = @ESC_WEAPON_RANGE_L_2
	min_range = @ESC_WEAPON_MIN_RANGE_3
	accuracy = 0.85

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

	hull_damage = @ESC_WEAPON_psionic_strike_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_strike_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strike_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_strike_2" }
	component_set = ESC_PSIONIC_STRIKE_CREATURE_2
	projectile_gfx = "esc_psionic_strike_large"
	tags = { weapon_type_energy weapon_type_psionic l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull artillery artillery_stealth }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 2
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_STRIKE_CREATURE_2
	size = extra_large
	icon = GFX_esc_psionic_strike_2
	icon_frame = 1
	type = instant

	damage = { min = 200 max = 380 }
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = @ESC_WEAPON_RANGE_L_3
	min_range = @ESC_WEAPON_MIN_RANGE_3
	accuracy = 0.85

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

	hull_damage = @ESC_WEAPON_psionic_strike_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_strike_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strike_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_strike_2" }
	component_set = ESC_PSIONIC_STRIKE_CREATURE_2
	projectile_gfx = "esc_psionic_strike_large"
	tags = { weapon_type_energy weapon_type_psionic x_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull artillery artillery_stealth }

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 2
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##                    Psi-blast Torpedo                   ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_TORPEDO_CREATURE_1
	size = small
	icon = GFX_esc_bio_psionic_torpedo_1
	icon_frame = 1
	type = missile

	damage = { min = 25 max = 50 }
	size_damage_factor = 0.2
	windup = { min = 5 max = 10 }
	total_fire_time = 100
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.1
	missile_health = 30
	missile_armor = 0
	missile_shield = 25
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2
	firing_arc = 25.0

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_torpedo_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_torpedo_1" }
	component_set = ESC_PSIONIC_TORPEDO_CREATURE_1
	projectile_gfx = "esc_psionic_torpedo"
	upgrades_to = SMALL_ESC_PSIONIC_TORPEDO_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic s_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor energy_torpedoes energy_torpedoes_stealth artillery artillery_stealth }
	military_power_multiplier = @ESC_MILITARY_POWER_MULT_missiles_special

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_TORPEDO_CREATURE_1
	size = medium
	icon = GFX_esc_bio_psionic_torpedo_1
	icon_frame = 1
	type = missile

	damage = { min = 50 max = 100 }
	size_damage_factor = 0.2
	windup = { min = 5 max = 10 }
	total_fire_time = 100
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.1
	missile_health = 30
	missile_armor = 0
	missile_shield = 25
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2
	firing_arc = 25.0

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_torpedo_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_torpedo_1" }
	component_set = ESC_PSIONIC_TORPEDO_CREATURE_1
	projectile_gfx = "esc_psionic_torpedo"
	upgrades_to = MEDIUM_ESC_PSIONIC_TORPEDO_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic m_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor energy_torpedoes energy_torpedoes_stealth artillery artillery_stealth }
	military_power_multiplier = @ESC_MILITARY_POWER_MULT_missiles_special

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_TORPEDO_CREATURE_1
	size = large
	icon = GFX_esc_bio_psionic_torpedo_1
	icon_frame = 1
	type = missile

	damage = { min = 100 max = 200 }
	size_damage_factor = 0.2
	windup = { min = 5 max = 10 }
	total_fire_time = 100
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.1
	missile_health = 30
	missile_armor = 0
	missile_shield = 25
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2
	firing_arc = 25.0

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_torpedo_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_torpedo_1" }
	component_set = ESC_PSIONIC_TORPEDO_CREATURE_1
	projectile_gfx = "esc_psionic_torpedo"
	upgrades_to = LARGE_ESC_PSIONIC_TORPEDO_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor energy_torpedoes energy_torpedoes_stealth artillery artillery_stealth }
	military_power_multiplier = @ESC_MILITARY_POWER_MULT_missiles_special

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_TORPEDO_CREATURE_1
	size = extra_large
	icon = GFX_esc_bio_psionic_torpedo_1
	icon_frame = 1
	type = missile

	damage = { min = 100 max = 200 }
	size_damage_factor = 0.2
	windup = { min = 5 max = 10 }
	total_fire_time = 100
	range = @ESC_WEAPON_RANGE_S_3
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.1
	missile_health = 30
	missile_armor = 0
	missile_shield = 25
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2
	firing_arc = 25.0

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_torpedo_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_torpedo_1" }
	component_set = ESC_PSIONIC_TORPEDO_CREATURE_1
	projectile_gfx = "esc_psionic_torpedo"
	upgrades_to = XL_ESC_PSIONIC_TORPEDO_CREATURE_2
	tags = { weapon_type_energy weapon_type_psionic x_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor energy_torpedoes energy_torpedoes_stealth artillery artillery_stealth }
	military_power_multiplier = @ESC_MILITARY_POWER_MULT_missiles_special

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##               Improved Psi-blast Torpedo               ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_TORPEDO_CREATURE_2
	size = small
	icon = GFX_esc_bio_psionic_torpedo_2
	icon_frame = 1
	type = missile

	damage = { min = 33 max = 63 }
	size_damage_factor = 0.2
	windup = { min = 5 max = 10 }
	total_fire_time = 100
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.1
	missile_health = 30
	missile_armor = 0
	missile_shield = 25
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2
	firing_arc = 25.0

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

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_torpedo_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_torpedo_2" }
	component_set = ESC_PSIONIC_TORPEDO_CREATURE_2
	projectile_gfx = "esc_psionic_torpedo"
	tags = { weapon_type_energy weapon_type_psionic s_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor energy_torpedoes energy_torpedoes_stealth artillery artillery_stealth }
	military_power_multiplier = @ESC_MILITARY_POWER_MULT_missiles_special

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_TORPEDO_CREATURE_2
	size = medium
	icon = GFX_esc_bio_psionic_torpedo_2
	icon_frame = 1
	type = missile

	damage = { min = 65 max = 125 }
	size_damage_factor = 0.2
	windup = { min = 5 max = 10 }
	total_fire_time = 100
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.1
	missile_health = 30
	missile_armor = 0
	missile_shield = 25
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2
	firing_arc = 25.0

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

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_torpedo_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_torpedo_2" }
	component_set = ESC_PSIONIC_TORPEDO_CREATURE_2
	projectile_gfx = "esc_psionic_torpedo"
	tags = { weapon_type_energy weapon_type_psionic m_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor energy_torpedoes energy_torpedoes_stealth artillery artillery_stealth }
	military_power_multiplier = @ESC_MILITARY_POWER_MULT_missiles_special

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_TORPEDO_CREATURE_2
	size = large
	icon = GFX_esc_bio_psionic_torpedo_2
	icon_frame = 1
	type = missile

	damage = { min = 130 max = 250 }
	size_damage_factor = 0.2
	windup = { min = 5 max = 10 }
	total_fire_time = 100
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.1
	missile_health = 30
	missile_armor = 0
	missile_shield = 25
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2
	firing_arc = 25.0

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

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_torpedo_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_torpedo_2" }
	component_set = ESC_PSIONIC_TORPEDO_CREATURE_2
	projectile_gfx = "esc_psionic_torpedo"
	tags = { weapon_type_energy weapon_type_psionic l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor energy_torpedoes energy_torpedoes_stealth artillery artillery_stealth }
	military_power_multiplier = @ESC_MILITARY_POWER_MULT_missiles_special

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_TORPEDO_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_psionic_torpedo_2
	icon_frame = 1
	type = missile

	damage = { min = 260 max = 500 }
	size_damage_factor = 0.2
	windup = { min = 5 max = 10 }
	total_fire_time = 100
	range = @ESC_WEAPON_RANGE_S_3
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.1
	missile_health = 30
	missile_armor = 0
	missile_shield = 25
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2
	firing_arc = 25.0

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

	hull_damage = @ESC_WEAPON_psionic_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_torpedo_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_torpedo_2" }
	component_set = ESC_PSIONIC_TORPEDO_CREATURE_2
	projectile_gfx = "esc_psionic_torpedo"
	tags = { weapon_type_energy weapon_type_psionic x_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_armor energy_torpedoes energy_torpedoes_stealth artillery artillery_stealth }
	military_power_multiplier = @ESC_MILITARY_POWER_MULT_missiles_special

	inline_script = {
		script = weapon_effects/esc_accuracy_debuff
		EFFECT_LEVEL = 1
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##                  Psionic Interceptors                  ##
############################################################

# small
strike_craft_component_template = {
	key = SMALL_ESC_PSIONIC_INTERCEPTORS_CREATURE
	size = small
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_psionic_strikecraft
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "esc_psionic_cannon_tiny"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	count = 2 # @ESC_STRIKECRAFT_count_small
	regeneration_per_day = @ESC_STRIKECRAFT_regen
	launch_time = @ESC_STRIKECRAFT_launch_time

	damage = { min = 20 max = 30 }
	cooldown = 2.0
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	tracking = @ESC_STRIKECRAFT_tracking_fighter

	health = 30
	armor = 10
	shield = 50

	speed = @ESC_STRIKECRAFT_speed_5
	rotation_speed = @ESC_STRIKECRAFT_rot_speed_fighter
	acceleration = @ESC_STRIKECRAFT_acceleration_fighter
	evasion = @ESC_STRIKECRAFT_evasion

	hull_damage = @ESC_WEAPON_psionic_strikecraft_hull_damage
	armor_damage = @ESC_WEAPON_psionic_strikecraft_armor_damage
	armor_penetration = @ESC_WEAPON_psionic_strikecraft_armor_penetration
	shield_penetration = @ESC_WEAPON_psionic_strikecraft_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strikecraft_shield_damage

	ship_behavior = "fighters_behavior"
	component_set = ESC_PSIONIC_INTERCEPTORS_CREATURE
	prerequisites = { "esc_tech_psionic_interceptors" }
	tags = { weapon_type_strike_craft s_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
strike_craft_component_template = {
	key = MEDIUM_ESC_PSIONIC_INTERCEPTORS_CREATURE
	size = medium
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_psionic_strikecraft
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "esc_psionic_cannon_tiny"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	count = 4 # @ESC_STRIKECRAFT_count_medium
	launch_time = @ESC_STRIKECRAFT_launch_time

	damage = { min = 20 max = 30 }
	cooldown = 2.0
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	tracking = @ESC_STRIKECRAFT_tracking_fighter

	health = 30
	armor = 10
	shield = 50

	speed = @ESC_STRIKECRAFT_speed_5
	rotation_speed = @ESC_STRIKECRAFT_rot_speed_fighter
	acceleration = @ESC_STRIKECRAFT_acceleration_fighter
	evasion = @ESC_STRIKECRAFT_evasion

	hull_damage = @ESC_WEAPON_psionic_strikecraft_hull_damage
	armor_damage = @ESC_WEAPON_psionic_strikecraft_armor_damage
	armor_penetration = @ESC_WEAPON_psionic_strikecraft_armor_penetration
	shield_penetration = @ESC_WEAPON_psionic_strikecraft_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strikecraft_shield_damage

	ship_behavior = "fighters_behavior"
	component_set = ESC_PSIONIC_INTERCEPTORS_CREATURE
	prerequisites = { "esc_tech_psionic_interceptors" }
	tags = { weapon_type_strike_craft m_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
strike_craft_component_template = {
	key = LARGE_ESC_PSIONIC_INTERCEPTORS_CREATURE
	size = large
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_psionic_strikecraft
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "esc_psionic_cannon_tiny"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	count = @ESC_STRIKECRAFT_count_large
	regeneration_per_day = @ESC_STRIKECRAFT_regen
	launch_time = @ESC_STRIKECRAFT_launch_time

	damage = { min = 20 max = 30 }
	cooldown = 2.0
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	tracking = @ESC_STRIKECRAFT_tracking_fighter

	health = 30
	armor = 10
	shield = 50

	speed = @ESC_STRIKECRAFT_speed_5
	rotation_speed = @ESC_STRIKECRAFT_rot_speed_fighter
	acceleration = @ESC_STRIKECRAFT_acceleration_fighter
	evasion = @ESC_STRIKECRAFT_evasion

	hull_damage = @ESC_WEAPON_psionic_strikecraft_hull_damage
	armor_damage = @ESC_WEAPON_psionic_strikecraft_armor_damage
	armor_penetration = @ESC_WEAPON_psionic_strikecraft_armor_penetration
	shield_penetration = @ESC_WEAPON_psionic_strikecraft_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strikecraft_shield_damage

	ship_behavior = "fighters_behavior"
	component_set = ESC_PSIONIC_INTERCEPTORS_CREATURE
	prerequisites = { "esc_tech_psionic_interceptors" }
	tags = { weapon_type_strike_craft l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
strike_craft_component_template = {
	key = XL_ESC_PSIONIC_INTERCEPTORS_CREATURE
	size = extra_large
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_psionic_strikecraft
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "esc_psionic_cannon_tiny"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	count = 16 # @ESC_STRIKECRAFT_count_xl
	regeneration_per_day = @ESC_STRIKECRAFT_regen
	launch_time = @ESC_STRIKECRAFT_launch_time

	damage = { min = 20 max = 30 }
	cooldown = 2.0
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	tracking = @ESC_STRIKECRAFT_tracking_fighter

	health = 30
	armor = 10
	shield = 50

	speed = @ESC_STRIKECRAFT_speed_5
	rotation_speed = @ESC_STRIKECRAFT_rot_speed_fighter
	acceleration = @ESC_STRIKECRAFT_acceleration_fighter
	evasion = @ESC_STRIKECRAFT_evasion

	hull_damage = @ESC_WEAPON_psionic_strikecraft_hull_damage
	armor_damage = @ESC_WEAPON_psionic_strikecraft_armor_damage
	armor_penetration = @ESC_WEAPON_psionic_strikecraft_armor_penetration
	shield_penetration = @ESC_WEAPON_psionic_strikecraft_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_strikecraft_shield_damage

	ship_behavior = "fighters_behavior"
	component_set = ESC_PSIONIC_INTERCEPTORS_CREATURE
	prerequisites = { "esc_tech_psionic_interceptors" }
	tags = { weapon_type_strike_craft l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##               Focused Psionic Disruptors               ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_DISRUPTORS_CREATURE_2
	size = small
	icon = GFX_esc_bio_psionic_disruptors_2
	icon_frame = 1
	type = instant

	damage = { min = 5 max = 30 }
	windup = { min = 3 max = 11 }
	total_fire_time = 16
	range = @ESC_WEAPON_RANGE_S_1
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 6
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_disruptors_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_disruptors_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_disruptors_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_disruptors_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_disruptors_shield_damage
	tracking = 0.6

	prerequisites = { "esc_tech_psionic_disruptor_2" }
	component_set = ESC_PSIONIC_DISRUPTORS_CREATURE_2
	projectile_gfx = "psionic_disruptor_small"
	tags = { weapon_type_energy weapon_type_psionic s_slot debuffer_role weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth debuffer_role debuffer_role_stealth }

	target_type = target_enemies
	target_focus = spread
	injected_modifier = {
		modifier = {
			modifier = psionic_disruptor_anti_fire_rate
			days = 10
		}
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = anti_fire_rate
			priority = 1
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_DISRUPTORS_CREATURE_2
	size = medium
	icon = GFX_esc_bio_psionic_disruptors_2
	icon_frame = 1
	type = instant

	damage = { min = 8 max = 85 }
	windup = { min = 4 max = 16 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_M_1
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 6
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_disruptors_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_disruptors_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_disruptors_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_disruptors_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_disruptors_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_disruptor_2" }
	component_set = ESC_PSIONIC_DISRUPTORS_CREATURE_2
	projectile_gfx = "psionic_disruptor_medium"
	tags = { weapon_type_energy weapon_type_psionic m_slot debuffer_role weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth debuffer_role debuffer_role_stealth }

	target_type = target_enemies
	target_focus = spread
	injected_modifier = {
		modifier = {
			modifier = psionic_disruptor_anti_fire_rate
			days = 10
		}
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = anti_fire_rate
			priority = 1
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_DISRUPTORS_CREATURE_2
	size = large
	icon = GFX_esc_bio_psionic_disruptors_2
	icon_frame = 1
	type = instant

	damage = { min = 13 max = 170 }
	windup = { min = 5 max = 20 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_L_1
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 6
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_disruptors_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_disruptors_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_disruptors_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_disruptors_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_disruptors_shield_damage
	tracking = 0.15

	prerequisites = { "esc_tech_psionic_disruptor_2" }
	component_set = ESC_PSIONIC_DISRUPTORS_CREATURE_2
	projectile_gfx = "psionic_disruptor_medium"
	tags = { weapon_type_energy weapon_type_psionic l_slot debuffer_role weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth debuffer_role debuffer_role_stealth }

	target_type = target_enemies
	target_focus = spread
	injected_modifier = {
		modifier = {
			modifier = psionic_disruptor_anti_fire_rate
			days = 10
		}
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = anti_fire_rate
			priority = 1
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_DISRUPTORS_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_psionic_disruptors_2
	icon_frame = 1
	type = instant

	damage = { min = 18 max = 345 }
	windup = { min = 5 max = 20 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_L_4
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 6
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_disruptors_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_disruptors_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_disruptors_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_disruptors_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_disruptors_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_disruptor_2" }
	component_set = ESC_PSIONIC_DISRUPTORS_CREATURE_2
	projectile_gfx = "psionic_disruptor_medium"
	tags = { weapon_type_energy weapon_type_psionic x_slot debuffer_role weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth debuffer_role debuffer_role_stealth }

	target_type = target_enemies
	target_focus = spread
	injected_modifier = {
		modifier = {
			modifier = psionic_disruptor_anti_fire_rate
			days = 10
		}
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = anti_fire_rate
			priority = 1
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##              Shroud-Empowered Disruptors               ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_DISRUPTORS_CREATURE_3
	size = small
	icon = GFX_esc_bio_psionic_disruptors_3
	icon_frame = 1
	type = instant

	damage = { min = 5 max = 43 }
	windup = { min = 3 max = 11 }
	total_fire_time = 16
	range = @ESC_WEAPON_RANGE_S_1
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_disruptors_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_disruptors_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_disruptors_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_disruptors_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_disruptors_shield_damage
	tracking = 0.6

	prerequisites = { "esc_tech_psionic_disruptor_3" }
	component_set = ESC_PSIONIC_DISRUPTORS_CREATURE_3
	projectile_gfx = "psionic_disruptor_small"
	tags = { weapon_type_energy weapon_type_psionic s_slot debuffer_role weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth debuffer_role debuffer_role_stealth }

	target_type = target_enemies
	target_focus = spread
	injected_modifier = {
		modifier = {
			modifier = psionic_disruptor_anti_fire_rate
			days = 10
		}
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = anti_fire_rate
			priority = 1
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_DISRUPTORS_CREATURE_3
	size = medium
	icon = GFX_esc_bio_psionic_disruptors_3
	icon_frame = 1
	type = instant

	damage = { min = 10 max = 115 }
	windup = { min = 4 max = 16 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_M_1
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_disruptors_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_disruptors_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_disruptors_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_disruptors_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_disruptors_shield_damage
	tracking = 0.35

	prerequisites = { "esc_tech_psionic_disruptor_3" }
	component_set = ESC_PSIONIC_DISRUPTORS_CREATURE_3
	projectile_gfx = "psionic_disruptor_medium"
	tags = { weapon_type_energy weapon_type_psionic m_slot debuffer_role weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth debuffer_role debuffer_role_stealth }

	target_type = target_enemies
	target_focus = spread
	injected_modifier = {
		modifier = {
			modifier = psionic_disruptor_anti_fire_rate
			days = 10
		}
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = anti_fire_rate
			priority = 1
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_DISRUPTORS_CREATURE_3
	size = large
	icon = GFX_esc_bio_psionic_disruptors_3
	icon_frame = 1
	type = instant

	damage = { min = 15 max = 230 }
	windup = { min = 5 max = 20 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_L_1
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_disruptors_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_disruptors_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_disruptors_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_disruptors_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_disruptors_shield_damage
	tracking = 0.15

	prerequisites = { "esc_tech_psionic_disruptor_3" }
	component_set = ESC_PSIONIC_DISRUPTORS_CREATURE_3
	projectile_gfx = "psionic_disruptor_medium"
	tags = { weapon_type_energy weapon_type_psionic l_slot debuffer_role weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth debuffer_role debuffer_role_stealth }

	target_type = target_enemies
	target_focus = spread
	injected_modifier = {
		modifier = {
			modifier = psionic_disruptor_anti_fire_rate
			days = 10
		}
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = anti_fire_rate
			priority = 1
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_DISRUPTORS_CREATURE_3
	size = extra_large
	icon = GFX_esc_bio_psionic_disruptors_3
	icon_frame = 1
	type = instant

	damage = { min = 20 max = 480 }
	windup = { min = 5 max = 20 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_L_4
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 7
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_disruptors_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_disruptors_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_disruptors_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_disruptors_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_disruptors_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_disruptor_3" }
	component_set = ESC_PSIONIC_DISRUPTORS_CREATURE_3
	projectile_gfx = "psionic_disruptor_medium"
	tags = { weapon_type_energy weapon_type_psionic x_slot debuffer_role weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull brawler brawler_stealth debuffer_role debuffer_role_stealth }

	target_type = target_enemies
	target_focus = spread
	injected_modifier = {
		modifier = {
			modifier = psionic_disruptor_anti_fire_rate
			days = 10
		}
		modifier = {
			modifier = disruptor_regen_debuff_3
			days = 10
		}
		stack_info = {
			id = anti_fire_rate
			priority = 1
		}
		stack_info = {
			id = disruptor_regen
			priority = 3
		}
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##               Focused Psionic Lightning                ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_LIGHTNING_CREATURE_2
	size = small
	icon = GFX_esc_bio_psionic_lightning_2
	icon_frame = 1
	type = instant

	damage = { min = 10 max = 35 }
	windup = { min = 5 max = 24 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_S_3
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 5
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_lightning_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_lightning_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_lightning_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_lightning_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_lightning_shield_damage
	tracking = 0.75

	prerequisites = { "esc_tech_psionic_lightning_2" }
	component_set = ESC_PSIONIC_LIGHTNING_CREATURE_2
	projectile_gfx = "psionic_arc_emitter"
	tags = { weapon_type_energy weapon_type_psionic s_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull }

	target_type = target_enemies
	target_focus = spread
	on_hit = {
		hidden_effect = {
			if = {
				limit = {
					exists = this
					is_civilian = no
					NOT = { is_ship_class = shipclass_starbase }
				}
				random = {
					chance = value:ship_terrify_chance
					set_terrified_by = root.from
					set_ship_flag = is_terrified
					ship_event = {
						id = shroud.5
						days = value:ship_terrify_duration
					}
				}
			}
		}
		custom_tooltip = "ship_terrify_tt"
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_LIGHTNING_CREATURE_2
	size = medium
	icon = GFX_esc_bio_psionic_lightning_2
	icon_frame = 1
	type = instant

	damage = { min = 10 max = 80 }
	windup = { min = 7 max = 29 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_M_3
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 5
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_lightning_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_lightning_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_lightning_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_lightning_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_lightning_shield_damage
	tracking = 0.55

	prerequisites = { "esc_tech_psionic_lightning_2" }
	component_set = ESC_PSIONIC_LIGHTNING_CREATURE_2
	projectile_gfx = "psionic_arc_emitter"
	tags = { weapon_type_energy weapon_type_psionic m_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull }

	target_type = target_enemies
	target_focus = spread
	on_hit = {
		hidden_effect = {
			if = {
				limit = {
					exists = this
					is_civilian = no
					NOT = { is_ship_class = shipclass_starbase }
				}
				random = {
					chance = value:ship_terrify_chance
					set_terrified_by = root.from
					set_ship_flag = is_terrified
					ship_event = {
						id = shroud.5
						days = value:ship_terrify_duration
					}
				}
			}
		}
		custom_tooltip = "ship_terrify_tt"
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_LIGHTNING_CREATURE_2
	size = large
	icon = GFX_esc_bio_psionic_lightning_2
	icon_frame = 1
	type = instant

	damage = { min = 10 max = 175 }
	windup = { min = 9 max = 34 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_L_1
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 5
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_lightning_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_lightning_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_lightning_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_lightning_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_lightning_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_psionic_lightning_2" }
	component_set = ESC_PSIONIC_LIGHTNING_CREATURE_2
	projectile_gfx = "psionic_arc_emitter"
	tags = { weapon_type_energy weapon_type_psionic l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull }

	target_type = target_enemies
	target_focus = spread
	on_hit = {
		hidden_effect = {
			if = {
				limit = {
					exists = this
					is_civilian = no
					NOT = { is_ship_class = shipclass_starbase }
				}
				random = {
					chance = value:ship_terrify_chance
					set_terrified_by = root.from
					set_ship_flag = is_terrified
					ship_event = {
						id = shroud.5
						days = value:ship_terrify_duration
					}
				}
			}
		}
		custom_tooltip = "ship_terrify_tt"
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_LIGHTNING_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_psionic_lightning_2
	icon_frame = 1
	type = instant

	damage = { min = 10 max = 400 }
	windup = { min = 11 max = 39 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_L_4
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 5
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_lightning_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_lightning_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_lightning_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_lightning_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_lightning_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_lightning_2" }
	component_set = ESC_PSIONIC_LIGHTNING_CREATURE_2
	projectile_gfx = "psionic_arc_emitter"
	tags = { weapon_type_energy weapon_type_psionic x_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull }

	target_type = target_enemies
	target_focus = spread
	on_hit = {
		hidden_effect = {
			if = {
				limit = {
					exists = this
					is_civilian = no
					NOT = { is_ship_class = shipclass_starbase }
				}
				random = {
					chance = value:ship_terrify_chance
					set_terrified_by = root.from
					set_ship_flag = is_terrified
					ship_event = {
						id = shroud.5
						days = value:ship_terrify_duration
					}
				}
			}
		}
		custom_tooltip = "ship_terrify_tt"
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

############################################################
##                    Shroud Lightning                    ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_PSIONIC_LIGHTNING_CREATURE_3
	size = small
	icon = GFX_esc_bio_psionic_lightning_3
	icon_frame = 1
	type = instant

	damage = { min = 20 max = 40 }
	windup = { min = 5 max = 24 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_S_3
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 6
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_lightning_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_lightning_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_lightning_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_lightning_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_lightning_shield_damage
	tracking = 0.75

	prerequisites = { "esc_tech_psionic_lightning_3" }
	component_set = ESC_PSIONIC_LIGHTNING_CREATURE_3
	projectile_gfx = "psionic_arc_emitter"
	tags = { weapon_type_energy weapon_type_psionic s_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull }

	target_type = target_enemies
	target_focus = spread
	on_hit = {
		hidden_effect = {
			if = {
				limit = {
					exists = this
					is_civilian = no
					NOT = { is_ship_class = shipclass_starbase }
				}
				random = {
					chance = value:ship_terrify_chance
					set_terrified_by = root.from
					set_ship_flag = is_terrified
					ship_event = {
						id = shroud.5
						days = value:ship_terrify_duration
					}
				}
			}
		}
		custom_tooltip = "ship_terrify_tt"
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_PSIONIC_LIGHTNING_CREATURE_3
	size = medium
	icon = GFX_esc_bio_psionic_lightning_3
	icon_frame = 1
	type = instant

	damage = { min = 20 max = 90 }
	windup = { min = 7 max = 29 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_M_3
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 6
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_lightning_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_lightning_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_lightning_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_lightning_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_lightning_shield_damage
	tracking = 0.55

	prerequisites = { "esc_tech_psionic_lightning_3" }
	component_set = ESC_PSIONIC_LIGHTNING_CREATURE_3
	projectile_gfx = "psionic_arc_emitter"
	tags = { weapon_type_energy weapon_type_psionic m_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull }

	target_type = target_enemies
	target_focus = spread
	on_hit = {
		hidden_effect = {
			if = {
				limit = {
					exists = this
					is_civilian = no
					NOT = { is_ship_class = shipclass_starbase }
				}
				random = {
					chance = value:ship_terrify_chance
					set_terrified_by = root.from
					set_ship_flag = is_terrified
					ship_event = {
						id = shroud.5
						days = value:ship_terrify_duration
					}
				}
			}
		}
		custom_tooltip = "ship_terrify_tt"
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_PSIONIC_LIGHTNING_CREATURE_3
	size = large
	icon = GFX_esc_bio_psionic_lightning_3
	icon_frame = 1
	type = instant

	damage = { min = 20 max = 200 }
	windup = { min = 9 max = 34 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_L_1
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 6
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_lightning_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_lightning_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_lightning_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_lightning_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_lightning_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_psionic_lightning_3" }
	component_set = ESC_PSIONIC_LIGHTNING_CREATURE_3
	projectile_gfx = "psionic_arc_emitter"
	tags = { weapon_type_energy weapon_type_psionic l_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull }

	target_type = target_enemies
	target_focus = spread
	on_hit = {
		hidden_effect = {
			if = {
				limit = {
					exists = this
					is_civilian = no
					NOT = { is_ship_class = shipclass_starbase }
				}
				random = {
					chance = value:ship_terrify_chance
					set_terrified_by = root.from
					set_ship_flag = is_terrified
					ship_event = {
						id = shroud.5
						days = value:ship_terrify_duration
					}
				}
			}
		}
		custom_tooltip = "ship_terrify_tt"
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_PSIONIC_LIGHTNING_CREATURE_3
	size = extra_large
	icon = GFX_esc_bio_psionic_lightning_3
	icon_frame = 1
	type = instant

	damage = { min = 20 max = 460 }
	windup = { min = 11 max = 39 }
	total_fire_time = 24
	range = @ESC_WEAPON_RANGE_L_4
	accuracy = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_standard_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 6
		STRATEGIC_RESOURCE_TYPE = sr_zro
	}

	hull_damage = @ESC_WEAPON_psionic_lightning_hull_damage
	armor_penetration = @ESC_WEAPON_psionic_lightning_armor_penetration
	armor_damage = @ESC_WEAPON_psionic_lightning_armor_damage
	shield_penetration = @ESC_WEAPON_psionic_lightning_shield_penetration
	shield_damage = @ESC_WEAPON_psionic_lightning_shield_damage
	tracking = 0.1

	prerequisites = { "esc_tech_psionic_lightning_3" }
	component_set = ESC_PSIONIC_LIGHTNING_CREATURE_3
	projectile_gfx = "psionic_arc_emitter"
	tags = { weapon_type_energy weapon_type_psionic x_slot weapon_type_space_fauna }
	ai_tags = { weapon_role_anti_hull }

	target_type = target_enemies
	target_focus = spread
	on_hit = {
		hidden_effect = {
			if = {
				limit = {
					exists = this
					is_civilian = no
					NOT = { is_ship_class = shipclass_starbase }
				}
				random = {
					chance = value:ship_terrify_chance
					set_terrified_by = root.from
					set_ship_flag = is_terrified
					ship_event = {
						id = shroud.5
						days = value:ship_terrify_duration
					}
				}
			}
		}
		custom_tooltip = "ship_terrify_tt"
	}

	# only regular empires and spiritualist FE may use this component
	valid_for_country = {
		ESC_TRIGGER_is_normal_empire_or_spiritualist_fe = yes
	}

	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_zro }
		}
	}
}
