############################################################
##    Component: Archaeotech components : Space Fauna     ##
############################################################

# - Tech-Synthetic Collapsar Eyebeam						S/M/L/X
# - Advanced Tech-Synthetic Collapsar Eyebeam				S/M/L/X
# - Tech-Synthetic Macro Shard Batteries					S/M/L/X
# - Evolved Tech-Synthetic Macro Shard Batteries			S/M/L/X
# - Tech-Synthetic Fragmentator Artillery					S/M/L/X
# - Advanced Tech-Synthetic Fragmentator Artillery			S/M/L/X
# - Tech-Synthetic Talon Cloud Launcher						S/M/L/X
# - Evolved Tech-Synthetic Talon Cloud Launcher				S/M/L/X
# - Tech-Synthetic Driller Beasts							S/M/L/X
# - Evolved Tech-Synthetic Driller Beasts					S/M/L/X
# - Tech-Synthetic Web Slinger								S/M/L/X
# - Evolved Tech-Synthetic Web Slinger						S/M/L/X

# - Tech-Synthetic Carapace									S/M/L/X
# - Advanced Tech-Synthetic Carapace						S/M/L/X
# - Tech-Synthetic Suspension Field Tissue					S/M/L/X
# - Advanced Tech-Synthetic Suspension Field Tissue			S/M/L/X

############################################################
##           Tech-Synthetic Collapsar Eyebeam             ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_LASER_CREATURE_2
	size = small
	icon = GFX_esc_bio_archaeo_laser_2
	icon_frame = 1
	type = instant

	damage = { min = 16 max = 54 }
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_S_2
	accuracy = 0.9

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_laser_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_laser_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_laser_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_laser_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_laser_shield_damage
	tracking = 0.5

	prerequisites = { "esc_tech_archaeo_laser_2" }
	component_set = ESC_ARCHAEO_LASER_CREATURE_2
	projectile_gfx = "dark_matter_laser_s"
	tags = { weapon_type_energy weapon_type_space_fauna weapon_archaeotech s_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	upgrades_to = SMALL_ESC_ARCHAEO_LASER_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_LASER_CREATURE_2
	size = medium
	icon = GFX_esc_bio_archaeo_laser_2
	icon_frame = 1
	type = instant

	damage = { min = 48 max = 132 }
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = @ESC_WEAPON_RANGE_M_2
	accuracy = 0.9

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_laser_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_laser_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_laser_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_laser_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_laser_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_laser_2" }
	component_set = ESC_ARCHAEO_LASER_CREATURE_2
	projectile_gfx = "dark_matter_laser_m"
	tags = { weapon_type_energy weapon_type_space_fauna weapon_archaeotech m_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	upgrades_to = MEDIUM_ESC_ARCHAEO_LASER_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_LASER_CREATURE_2
	size = large
	icon = GFX_esc_bio_archaeo_laser_2
	icon_frame = 1
	type = instant

	damage = { min = 118 max = 288 }
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = @ESC_WEAPON_RANGE_L_2
	accuracy = 0.9

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_laser_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_laser_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_laser_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_laser_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_laser_shield_damage
	tracking = 0.05

	prerequisites = { "esc_tech_archaeo_laser_2" }
	component_set = ESC_ARCHAEO_LASER_CREATURE_2
	projectile_gfx = "dark_matter_laser_l"
	tags = { weapon_type_energy weapon_type_space_fauna weapon_archaeotech l_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	upgrades_to = LARGE_ESC_ARCHAEO_LASER_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_LASER_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_archaeo_laser_2
	icon_frame = 1
	type = instant

	damage = { min = 226 max = 560 }
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = @ESC_WEAPON_RANGE_L_4
	accuracy = 0.9

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_laser_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_laser_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_laser_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_laser_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_laser_shield_damage
	tracking = 0.05

	prerequisites = { "esc_tech_archaeo_laser_2" }
	component_set = ESC_ARCHAEO_LASER_CREATURE_2
	projectile_gfx = "dark_matter_laser_l"
	tags = { weapon_type_energy weapon_type_space_fauna weapon_archaeotech x_slot }
	ai_tags = { weapon_role_anti_armor gunship }
	upgrades_to = XL_ESC_ARCHAEO_LASER_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

############################################################
##       Advanced Tech-Synthetic Collapsar Eyebeam        ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_LASER_CREATURE_3
	size = small
	icon = GFX_esc_bio_archaeo_laser_3
	icon_frame = 1
	type = instant

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

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_laser_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_laser_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_laser_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_laser_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_laser_shield_damage
	tracking = 0.5

	prerequisites = { "esc_tech_archaeo_laser_3" }
	component_set = ESC_ARCHAEO_LASER_CREATURE_3
	projectile_gfx = "dark_matter_laser_s"
	tags = { weapon_type_energy weapon_type_space_fauna weapon_archaeotech s_slot }
	ai_tags = { weapon_role_anti_armor gunship }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_LASER_CREATURE_3
	size = medium
	icon = GFX_esc_bio_archaeo_laser_3
	icon_frame = 1
	type = instant

	damage = { min = 68 max = 164 }
	windup = { min = 6 max = 24 }
	total_fire_time = 35
	range = @ESC_WEAPON_RANGE_M_2
	accuracy = 0.9

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_laser_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_laser_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_laser_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_laser_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_laser_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_laser_3" }
	component_set = ESC_ARCHAEO_LASER_CREATURE_3
	projectile_gfx = "dark_matter_laser_m"
	tags = { weapon_type_energy weapon_type_space_fauna weapon_archaeotech m_slot }
	ai_tags = { weapon_role_anti_armor gunship }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_LASER_CREATURE_3
	size = large
	icon = GFX_esc_bio_archaeo_laser_3
	icon_frame = 1
	type = instant

	damage = { min = 162 max = 368 }
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = @ESC_WEAPON_RANGE_L_2
	accuracy = 0.9

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_laser_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_laser_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_laser_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_laser_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_laser_shield_damage
	tracking = 0.05

	prerequisites = { "esc_tech_archaeo_laser_3" }
	component_set = ESC_ARCHAEO_LASER_CREATURE_3
	projectile_gfx = "dark_matter_laser_l"
	tags = { weapon_type_energy weapon_type_space_fauna weapon_archaeotech l_slot }
	ai_tags = { weapon_role_anti_armor gunship }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_LASER_CREATURE_3
	size = extra_large
	icon = GFX_esc_bio_archaeo_laser_3
	icon_frame = 1
	type = instant

	damage = { min = 308 max = 722 }
	windup = { min = 7 max = 27 }
	total_fire_time = 40
	range = @ESC_WEAPON_RANGE_L_2
	accuracy = 0.9

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_laser_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_laser_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_laser_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_laser_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_laser_shield_damage
	tracking = 0.05

	prerequisites = { "esc_tech_archaeo_laser_3" }
	component_set = ESC_ARCHAEO_LASER_CREATURE_3
	projectile_gfx = "dark_matter_laser_l"
	tags = { weapon_type_energy weapon_type_space_fauna weapon_archaeotech x_slot }
	ai_tags = { weapon_role_anti_armor gunship }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

############################################################
##          Tech-Synthetic Macro Shard Batteries          ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_MASS_DRIVER_CREATURE_2
	size = small
	icon = GFX_esc_bio_archaeo_mass_driver_2
	icon_frame = 1
	type = instant

	damage = { min = 16 max = 51 }
	windup = { min = 4 max = 14 }
	total_fire_time = 20
	range = @ESC_WEAPON_RANGE_M_4
	accuracy = 0.75

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_railgun_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_railgun_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_railgun_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_railgun_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_railgun_shield_damage
	tracking = 0.5

	prerequisites = { esc_tech_archaeo_mass_driver_2 }
	component_set = ESC_ARCHAEO_MASS_DRIVER_CREATURE_2
	projectile_gfx = "mass_driver_s"
	tags = { weapon_type_kinetic weapon_archaeotech weapon_type_space_fauna s_slot }
	ai_tags = { weapon_role_anti_shield gunship }
	upgrades_to = SMALL_ESC_ARCHAEO_MASS_DRIVER_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_MASS_DRIVER_CREATURE_2
	size = medium
	icon = GFX_esc_bio_archaeo_mass_driver_2
	icon_frame = 1
	type = instant

	damage = { min = 45 max = 136 }
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = @ESC_WEAPON_RANGE_L_5
	accuracy = 0.75

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_railgun_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_railgun_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_railgun_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_railgun_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_railgun_shield_damage
	tracking = 0.3

	prerequisites = { esc_tech_archaeo_mass_driver_2 }
	component_set = ESC_ARCHAEO_MASS_DRIVER_CREATURE_2
	projectile_gfx = "mass_driver_m"
	tags = { weapon_type_kinetic weapon_archaeotech weapon_type_space_fauna m_slot }
	ai_tags = { weapon_role_anti_shield gunship }
	upgrades_to = MEDIUM_ESC_ARCHAEO_MASS_DRIVER_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_MASS_DRIVER_CREATURE_2
	size = large
	icon = GFX_esc_bio_archaeo_mass_driver_2
	icon_frame = 1
	type = instant

	damage = { min = 104 max = 288 }
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_X_2
	accuracy = 0.75

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_railgun_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_railgun_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_railgun_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_railgun_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_railgun_shield_damage
	tracking = 0.05

	prerequisites = { esc_tech_archaeo_mass_driver_2 }
	component_set = ESC_ARCHAEO_MASS_DRIVER_CREATURE_2
	projectile_gfx = "mass_driver_l"
	tags = { weapon_type_kinetic weapon_archaeotech weapon_type_space_fauna l_slot }
	ai_tags = { weapon_role_anti_shield gunship }
	upgrades_to = LARGE_ESC_ARCHAEO_MASS_DRIVER_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_MASS_DRIVER_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_archaeo_mass_driver_2
	icon_frame = 1
	type = instant

	damage = { min = 208 max = 566 }
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_X_2
	accuracy = 0.75

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_railgun_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_railgun_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_railgun_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_railgun_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_railgun_shield_damage
	tracking = 0.05

	prerequisites = { esc_tech_archaeo_mass_driver_2 }
	component_set = ESC_ARCHAEO_MASS_DRIVER_CREATURE_2
	projectile_gfx = "mass_driver_l"
	tags = { weapon_type_kinetic weapon_archaeotech weapon_type_space_fauna x_slot }
	ai_tags = { weapon_role_anti_shield gunship }
	upgrades_to = XL_ESC_ARCHAEO_MASS_DRIVER_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

############################################################
##      Evolved Tech-Synthetic Macro Shard Batteries      ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_MASS_DRIVER_CREATURE_3
	size = small
	icon = GFX_esc_bio_archaeo_mass_driver_3
	icon_frame = 1
	type = instant

	damage = { min = 22 max = 70 }
	windup = { min = 4 max = 14 }
	total_fire_time = 20
	range = @ESC_WEAPON_RANGE_M_4
	accuracy = 0.75

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_railgun_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_railgun_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_railgun_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_railgun_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_railgun_shield_damage
	tracking = 0.5

	prerequisites = { esc_tech_archaeo_mass_driver_3 }
	component_set = ESC_ARCHAEO_MASS_DRIVER_CREATURE_3
	projectile_gfx = "mass_driver_s"
	tags = { weapon_type_kinetic weapon_archaeotech weapon_type_space_fauna s_slot }
	ai_tags = { weapon_role_anti_shield gunship }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_MASS_DRIVER_CREATURE_3
	size = medium
	icon = GFX_esc_bio_archaeo_mass_driver_3
	icon_frame = 1
	type = instant

	damage = { min = 63 max = 170 }
	windup = { min = 5 max = 17 }
	total_fire_time = 25
	range = @ESC_WEAPON_RANGE_L_5
	accuracy = 0.75

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_railgun_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_railgun_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_railgun_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_railgun_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_railgun_shield_damage
	tracking = 0.3

	prerequisites = { esc_tech_archaeo_mass_driver_3 }
	component_set = ESC_ARCHAEO_MASS_DRIVER_CREATURE_3
	projectile_gfx = "mass_driver_m"
	tags = { weapon_type_kinetic weapon_archaeotech weapon_type_space_fauna m_slot }
	ai_tags = { weapon_role_anti_shield gunship }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_MASS_DRIVER_CREATURE_3
	size = large
	icon = GFX_esc_bio_archaeo_mass_driver_3
	icon_frame = 1
	type = instant

	damage = { min = 150 max = 368 }
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_X_2
	accuracy = 0.75

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_railgun_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_railgun_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_railgun_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_railgun_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_railgun_shield_damage
	tracking = 0.05

	prerequisites = { esc_tech_archaeo_mass_driver_3 }
	component_set = ESC_ARCHAEO_MASS_DRIVER_CREATURE_3
	projectile_gfx = "mass_driver_l"
	tags = { weapon_type_kinetic weapon_archaeotech weapon_type_space_fauna l_slot }
	ai_tags = { weapon_role_anti_shield gunship }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_MASS_DRIVER_CREATURE_3
	size = extra_large
	icon = GFX_esc_bio_archaeo_mass_driver_3
	icon_frame = 1
	type = instant

	damage = { min = 300 max = 706 }
	windup = { min = 5 max = 20 }
	total_fire_time = 30
	range = @ESC_WEAPON_RANGE_X_2
	accuracy = 0.75

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_railgun_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_railgun_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_railgun_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_railgun_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_railgun_shield_damage
	tracking = 0.05

	prerequisites = { esc_tech_archaeo_mass_driver_3 }
	component_set = ESC_ARCHAEO_MASS_DRIVER_CREATURE_3
	projectile_gfx = "mass_driver_l"
	tags = { weapon_type_kinetic weapon_archaeotech weapon_type_space_fauna x_slot }
	ai_tags = { weapon_role_anti_shield gunship }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
	}
}

############################################################
##          Tech-Synthetic Fragmentator Artillery         ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_2
	size = small
	icon = GFX_esc_bio_archaeo_mass_accelerator_2
	icon_frame = 1
	type = instant

    damage = { min = 150 max = 400 }
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_L_4
	accuracy = 0.75

	firing_arc = 25.0
	min_range = 45.0
	#use_ship_kill_target = no

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 6
	}

	hull_damage = @ESC_WEAPON_archaeo_artillery_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_artillery_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_artillery_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_artillery_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_artillery_shield_damage
	tracking = 0

	prerequisites = { "esc_tech_archaeo_mass_accelerator_2" }
	component_set = ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_2
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic weapon_type_space_fauna weapon_archaeotech weapon_role_artillery s_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0
	upgrades_to = SMALL_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3

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

	ai_weight = {
		weight = 0
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_2
	size = medium
	icon = GFX_esc_bio_archaeo_mass_accelerator_2
	icon_frame = 1
	type = instant

    damage = { min = 300 max = 800 }
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_L_5
	accuracy = 0.75

	firing_arc = 25.0
	min_range = 45.0
	#use_ship_kill_target = no

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 6
	}

	hull_damage = @ESC_WEAPON_archaeo_artillery_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_artillery_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_artillery_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_artillery_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_artillery_shield_damage
	tracking = 0

	prerequisites = { "esc_tech_archaeo_mass_accelerator_2" }
	component_set = ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_2
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic weapon_type_space_fauna weapon_archaeotech weapon_role_artillery m_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0
	upgrades_to = MEDIUM_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3

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

	ai_weight = {
		weight = 0
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_2
	size = large
	icon = GFX_esc_bio_archaeo_mass_accelerator_2
	icon_frame = 1
	type = instant

    damage = { min = 600 max = 1600 }
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_X_2
	accuracy = 0.75

	firing_arc = 25.0
	min_range = 45.0
	#use_ship_kill_target = no

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 6
	}

	hull_damage = @ESC_WEAPON_archaeo_artillery_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_artillery_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_artillery_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_artillery_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_artillery_shield_damage
	tracking = 0

	prerequisites = { "esc_tech_archaeo_mass_accelerator_2" }
	component_set = ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_2
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic weapon_type_space_fauna weapon_archaeotech weapon_role_artillery l_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0
	upgrades_to = LARGE_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3

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

	ai_weight = {
		weight = 0
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_archaeo_mass_accelerator_2
	icon_frame = 1
	type = instant

    damage = { min = 1200 max = 3200 }
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_X_2
	accuracy = 0.75

	firing_arc = 25.0
	min_range = 45.0
	#use_ship_kill_target = no

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 6
	}

	hull_damage = @ESC_WEAPON_archaeo_artillery_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_artillery_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_artillery_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_artillery_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_artillery_shield_damage
	tracking = 0

	prerequisites = { "esc_tech_archaeo_mass_accelerator_2" }
	component_set = ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_2
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic weapon_type_space_fauna weapon_archaeotech weapon_role_artillery x_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0
	upgrades_to = XL_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3

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

	ai_weight = {
		weight = 0
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

############################################################
##     Advanced Tech-Synthetic Fragmentator Artillery     ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3
	size = small
	icon = GFX_esc_bio_archaeo_mass_accelerator_3
	icon_frame = 1
	type = instant

    damage = { min = 185 max = 460 }
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_L_4
	accuracy = 0.75

	firing_arc = 25.0
	min_range = 45.0
	#use_ship_kill_target = no

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 7
	}

	hull_damage = @ESC_WEAPON_archaeo_artillery_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_artillery_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_artillery_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_artillery_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_artillery_shield_damage
	tracking = 0.05

	prerequisites = { esc_tech_archaeo_mass_accelerator_3 }
	component_set = ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic weapon_type_space_fauna weapon_archaeotech weapon_role_artillery s_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0

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

	ai_weight = {
		weight = 0
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3
	size = medium
	icon = GFX_esc_bio_archaeo_mass_accelerator_3
	icon_frame = 1
	type = instant

    damage = { min = 375 max = 925 }
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_L_5
	accuracy = 0.75

	firing_arc = 25.0
	min_range = 45.0
	#use_ship_kill_target = no

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 7
	}

	hull_damage = @ESC_WEAPON_archaeo_artillery_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_artillery_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_artillery_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_artillery_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_artillery_shield_damage
	tracking = 0.05

	prerequisites = { esc_tech_archaeo_mass_accelerator_3 }
	component_set = ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic weapon_type_space_fauna weapon_archaeotech weapon_role_artillery m_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0

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

	ai_weight = {
		weight = 0
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3
	size = large
	icon = GFX_esc_bio_archaeo_mass_accelerator_3
	icon_frame = 1
	type = instant

    damage = { min = 750 max = 1850 }
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_X_2
	accuracy = 0.75

	firing_arc = 25.0
	min_range = 45.0
	#use_ship_kill_target = no

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 7
	}

	hull_damage = @ESC_WEAPON_archaeo_artillery_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_artillery_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_artillery_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_artillery_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_artillery_shield_damage
	tracking = 0.05

	prerequisites = { esc_tech_archaeo_mass_accelerator_3 }
	component_set = ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic weapon_type_space_fauna weapon_archaeotech weapon_role_artillery l_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0

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

	ai_weight = {
		weight = 0
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3
	size = extra_large
	icon = GFX_esc_bio_archaeo_mass_accelerator_3
	icon_frame = 1
	type = instant

    damage = { min = 1500 max = 3700 }
	windup = { min = 14 max = 54 }
	total_fire_time = 80
	range = @ESC_WEAPON_RANGE_X_2
	accuracy = 0.75

	firing_arc = 25.0
	min_range = 45.0
	#use_ship_kill_target = no

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 7
	}

	hull_damage = @ESC_WEAPON_archaeo_artillery_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_artillery_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_artillery_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_artillery_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_artillery_shield_damage
	tracking = 0.05

	prerequisites = { esc_tech_archaeo_mass_accelerator_3 }
	component_set = ESC_ARCHAEO_MASS_ACCELERATOR_CREATURE_3
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic weapon_type_space_fauna weapon_archaeotech weapon_role_artillery x_slot }
	ai_tags = { weapon_role_artillery artillery }
	ai_tag_weight = 0

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

	ai_weight = {
		weight = 0
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
		modifier = {
			factor = @cosmic_storm_shroud_ai_weight_factor
			has_country_flag = affected_by_shroud_storm
		}
		modifier = {
			factor = @cosmic_storm_gravity_ai_weight_factor
			has_country_flag = affected_by_gravity_storm
		}
	}
}

############################################################
##          Tech-Synthetic Talon Cloud Launcher           ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_MISSILES_CREATURE_2
	size = small
	icon = GFX_esc_bio_archaeo_missiles_2
	icon_frame = 1
	type = missile

	damage = { min = 3 max = 4 }
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = @ESC_WEAPON_RANGE_G_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.25
	missile_health = 8
	missile_armor = 7
	missile_shield = 0
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_missile_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_missile_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_missile_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_missile_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_missile_shield_damage
	tracking = 0.25

	prerequisites = { "esc_tech_archaeo_missiles_2" }
	component_set = ESC_ARCHAEO_MISSILES_CREATURE_2
	projectile_gfx = "small_missile"
	tags = { weapon_type_explosive weapon_type_space_fauna weapon_archaeotech s_slot }
	ai_tags = { weapon_role_artillery artillery energy_torpedoes }
	ai_tag_weight = 0
	upgrades_to = SMALL_ESC_ARCHAEO_MISSILES_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_MISSILES_CREATURE_2
	size = medium
	icon = GFX_esc_bio_archaeo_missiles_2
	icon_frame = 1
	type = missile

	damage = { min = 6 max = 8 }
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = @ESC_WEAPON_RANGE_G_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.25
	missile_health = 8
	missile_armor = 7
	missile_shield = 0
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_missile_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_missile_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_missile_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_missile_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_missile_shield_damage
	tracking = 0.25

	prerequisites = { "esc_tech_archaeo_missiles_2" }
	component_set = ESC_ARCHAEO_MISSILES_CREATURE_2
	projectile_gfx = "small_missile"
	tags = { weapon_type_explosive weapon_type_space_fauna weapon_archaeotech m_slot }
	ai_tags = { weapon_role_artillery artillery energy_torpedoes }
	ai_tag_weight = 0
	upgrades_to = MEDIUM_ESC_ARCHAEO_MISSILES_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_MISSILES_CREATURE_2
	size = large
	icon = GFX_esc_bio_archaeo_missiles_2
	icon_frame = 1
	type = missile

	damage = { min = 12 max = 16 }
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = @ESC_WEAPON_RANGE_G_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.25
	missile_health = 8
	missile_armor = 7
	missile_shield = 0
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_missile_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_missile_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_missile_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_missile_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_missile_shield_damage
	tracking = 0.25

	prerequisites = { "esc_tech_archaeo_missiles_2" }
	component_set = ESC_ARCHAEO_MISSILES_CREATURE_2
	projectile_gfx = "small_missile"
	tags = { weapon_type_explosive weapon_type_space_fauna weapon_archaeotech l_slot }
	ai_tags = { weapon_role_artillery artillery energy_torpedoes }
	ai_tag_weight = 0
	upgrades_to = LARGE_ESC_ARCHAEO_MISSILES_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_MISSILES_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_archaeo_missiles_2
	icon_frame = 1
	type = missile

	damage = { min = 24 max = 32 }
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = @ESC_WEAPON_RANGE_G_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.25
	missile_health = 8
	missile_armor = 7
	missile_shield = 0
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_missile_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_missile_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_missile_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_missile_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_missile_shield_damage
	tracking = 0.25

	prerequisites = { "esc_tech_archaeo_missiles_2" }
	component_set = ESC_ARCHAEO_MISSILES_CREATURE_2
	projectile_gfx = "small_missile"
	tags = { weapon_type_explosive weapon_type_space_fauna weapon_archaeotech x_slot }
	ai_tags = { weapon_role_artillery artillery energy_torpedoes }
	ai_tag_weight = 0
	upgrades_to = XL_ESC_ARCHAEO_MISSILES_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

############################################################
##     Advanced Tech-Synthetic Talon Cloud Launcher       ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_MISSILES_CREATURE_3
	size = small
	icon = GFX_esc_bio_archaeo_missiles_3
	icon_frame = 1
	type = missile

	damage = { min = 4 max = 6 }
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = @ESC_WEAPON_RANGE_G_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.3
	missile_health = 10
	missile_armor = 10
	missile_shield = 0
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_missile_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_missile_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_missile_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_missile_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_missile_shield_damage
	tracking = 0.25

	prerequisites = { "esc_tech_archaeo_missiles_3" }
	component_set = ESC_ARCHAEO_MISSILES_CREATURE_3
	projectile_gfx = "small_missile"
	tags = { weapon_type_explosive weapon_type_space_fauna weapon_archaeotech s_slot }
	ai_tags = { weapon_role_artillery artillery energy_torpedoes }
	ai_tag_weight = 0

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_MISSILES_CREATURE_3
	size = medium
	icon = GFX_esc_bio_archaeo_missiles_3
	icon_frame = 1
	type = missile

	damage = { min = 8 max = 11 }
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = @ESC_WEAPON_RANGE_G_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.3
	missile_health = 10
	missile_armor = 10
	missile_shield = 0
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_missile_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_missile_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_missile_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_missile_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_missile_shield_damage
	tracking = 0.25

	prerequisites = { "esc_tech_archaeo_missiles_3" }
	component_set = ESC_ARCHAEO_MISSILES_CREATURE_3
	projectile_gfx = "small_missile"
	tags = { weapon_type_explosive weapon_type_space_fauna weapon_archaeotech m_slot }
	ai_tags = { weapon_role_artillery artillery energy_torpedoes }
	ai_tag_weight = 0

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_MISSILES_CREATURE_3
	size = large
	icon = GFX_esc_bio_archaeo_missiles_3
	icon_frame = 1
	type = missile

	damage = { min = 16 max = 22 }
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = @ESC_WEAPON_RANGE_G_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.3
	missile_health = 10
	missile_armor = 10
	missile_shield = 0
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_missile_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_missile_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_missile_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_missile_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_missile_shield_damage
	tracking = 0.25

	prerequisites = { "esc_tech_archaeo_missiles_3" }
	component_set = ESC_ARCHAEO_MISSILES_CREATURE_3
	projectile_gfx = "small_missile"
	tags = { weapon_type_explosive weapon_type_space_fauna weapon_archaeotech l_slot }
	ai_tags = { weapon_role_artillery artillery energy_torpedoes }
	ai_tag_weight = 0

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_MISSILES_CREATURE_3
	size = extra_large
	icon = GFX_esc_bio_archaeo_missiles_3
	icon_frame = 1
	type = missile

	damage = { min = 32 max = 44 }
	windup = { min = 1 max = 4 }
	total_fire_time = 6
	range = @ESC_WEAPON_RANGE_G_2
	accuracy = 1.0
	missile_speed = @ESC_MISSILE_SPEED_3
	missile_evasion = 0.3
	missile_health = 10
	missile_armor = 10
	missile_shield = 0
	missile_retarget_range = @ESC_WEAPON_RANGE_G_2

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_missile_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_missile_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_missile_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_missile_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_missile_shield_damage
	tracking = 0.25

	prerequisites = { "esc_tech_archaeo_missiles_3" }
	component_set = ESC_ARCHAEO_MISSILES_CREATURE_3
	projectile_gfx = "small_missile"
	tags = { weapon_type_explosive weapon_type_space_fauna weapon_archaeotech x_slot }
	ai_tags = { weapon_role_artillery artillery energy_torpedoes }
	ai_tag_weight = 0

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

############################################################
##            Tech-Synthetic Driller Beasts               ##
############################################################

# small
strike_craft_component_template = {
	key = SMALL_ESC_ARCHAEO_STRIKECRAFT_CREATURE_2
	size = small
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_archaeo_strikecraft_2
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 6
	}

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

	damage = { min = 8 max = 23 }
	cooldown = 2.3
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	health = 15
	armor = 0
	shield = 25

	tracking = @ESC_STRIKECRAFT_tracking_fighter
	evasion = @ESC_STRIKECRAFT_evasion
	speed = @ESC_STRIKECRAFT_speed_4
	rotation_speed = @ESC_STRIKECRAFT_rot_speed_fighter
	acceleration = @ESC_STRIKECRAFT_acceleration_fighter

	hull_damage = @ESC_WEAPON_archaeo_crafts_hull_damage
	armor_damage = @ESC_WEAPON_archaeo_crafts_armor_damage
	armor_penetration = @ESC_WEAPON_archaeo_crafts_armor_penetration
	shield_damage = @ESC_WEAPON_archaeo_crafts_shield_damage
	shield_penetration = @ESC_WEAPON_archaeo_crafts_shield_penetration

	ship_behavior = "fighters_behavior"
	component_set = ESC_ARCHAEO_STRIKECRAFT_CREATURE_2
	prerequisites = { "esc_tech_archaeo_strikecraft_2" }
	tags = { weapon_type_strike_craft weapon_archaeotech weapon_type_space_fauna s_slot }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }
	upgrades_to = SMALL_ESC_ARCHAEO_STRIKECRAFT_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# medium
strike_craft_component_template = {
	key = MEDIUM_ESC_ARCHAEO_STRIKECRAFT_CREATURE_2
	size = medium
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_archaeo_strikecraft_2
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 6
	}

	count = 4 # @ESC_STRIKECRAFT_count_medium
	regeneration_per_day = @ESC_STRIKECRAFT_regen
	launch_time = @ESC_STRIKECRAFT_launch_time

	damage = { min = 8 max = 23 }
	cooldown = 2.3
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	health = 15
	armor = 0
	shield = 25

	tracking = @ESC_STRIKECRAFT_tracking_fighter
	evasion = @ESC_STRIKECRAFT_evasion
	speed = @ESC_STRIKECRAFT_speed_4
	rotation_speed = @ESC_STRIKECRAFT_rot_speed_fighter
	acceleration = @ESC_STRIKECRAFT_acceleration_fighter

	hull_damage = @ESC_WEAPON_archaeo_crafts_hull_damage
	armor_damage = @ESC_WEAPON_archaeo_crafts_armor_damage
	armor_penetration = @ESC_WEAPON_archaeo_crafts_armor_penetration
	shield_damage = @ESC_WEAPON_archaeo_crafts_shield_damage
	shield_penetration = @ESC_WEAPON_archaeo_crafts_shield_penetration

	ship_behavior = "fighters_behavior"
	component_set = ESC_ARCHAEO_STRIKECRAFT_CREATURE_2
	prerequisites = { "esc_tech_archaeo_strikecraft_2" }
	tags = { weapon_type_strike_craft weapon_archaeotech weapon_type_space_fauna m_slot }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }
	upgrades_to = MEDIUM_ESC_ARCHAEO_STRIKECRAFT_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# large
strike_craft_component_template = {
	key = LARGE_ESC_ARCHAEO_STRIKECRAFT_CREATURE_2
	size = large
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_archaeo_strikecraft_2
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 6
	}

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

	damage = { min = 8 max = 23 }
	cooldown = 2.3
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	health = 15
	armor = 0
	shield = 25

	tracking = @ESC_STRIKECRAFT_tracking_fighter
	evasion = @ESC_STRIKECRAFT_evasion
	speed = @ESC_STRIKECRAFT_speed_4
	rotation_speed = @ESC_STRIKECRAFT_rot_speed_fighter
	acceleration = @ESC_STRIKECRAFT_acceleration_fighter

	hull_damage = @ESC_WEAPON_archaeo_crafts_hull_damage
	armor_damage = @ESC_WEAPON_archaeo_crafts_armor_damage
	armor_penetration = @ESC_WEAPON_archaeo_crafts_armor_penetration
	shield_damage = @ESC_WEAPON_archaeo_crafts_shield_damage
	shield_penetration = @ESC_WEAPON_archaeo_crafts_shield_penetration

	ship_behavior = "fighters_behavior"
	component_set = ESC_ARCHAEO_STRIKECRAFT_CREATURE_2
	prerequisites = { "esc_tech_archaeo_strikecraft_2" }
	tags = { weapon_type_strike_craft weapon_archaeotech weapon_type_space_fauna l_slot }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }
	upgrades_to = LARGE_ESC_ARCHAEO_STRIKECRAFT_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

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

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 6
	}

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

	damage = { min = 8 max = 23 }
	cooldown = 2.3
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	health = 15
	armor = 0
	shield = 25

	tracking = @ESC_STRIKECRAFT_tracking_fighter
	evasion = @ESC_STRIKECRAFT_evasion
	speed = @ESC_STRIKECRAFT_speed_4
	rotation_speed = @ESC_STRIKECRAFT_rot_speed_fighter
	acceleration = @ESC_STRIKECRAFT_acceleration_fighter

	hull_damage = @ESC_WEAPON_archaeo_crafts_hull_damage
	armor_damage = @ESC_WEAPON_archaeo_crafts_armor_damage
	armor_penetration = @ESC_WEAPON_archaeo_crafts_armor_penetration
	shield_damage = @ESC_WEAPON_archaeo_crafts_shield_damage
	shield_penetration = @ESC_WEAPON_archaeo_crafts_shield_penetration

	ship_behavior = "fighters_behavior"
	component_set = ESC_ARCHAEO_STRIKECRAFT_CREATURE_2
	prerequisites = { "esc_tech_archaeo_strikecraft_2" }
	tags = { weapon_type_strike_craft weapon_archaeotech weapon_type_space_fauna x_slot }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }
	upgrades_to = XL_ESC_ARCHAEO_STRIKECRAFT_CREATURE_3

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

############################################################
##         Evolved Tech-Synthetic Driller Beasts          ##
############################################################

# small
strike_craft_component_template = {
	key = SMALL_ESC_ARCHAEO_STRIKECRAFT_CREATURE_3
	size = small
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_archaeo_strikecraft_3
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 7
	}

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

	damage = { min = 10 max = 30 }
	cooldown = 2.3
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	health = 20
	armor = 0
	shield = 30

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

	hull_damage = @ESC_WEAPON_archaeo_crafts_hull_damage
	armor_damage = @ESC_WEAPON_archaeo_crafts_armor_damage
	armor_penetration = @ESC_WEAPON_archaeo_crafts_armor_penetration
	shield_damage = @ESC_WEAPON_archaeo_crafts_shield_damage
	shield_penetration = @ESC_WEAPON_archaeo_crafts_shield_penetration

	ship_behavior = "fighters_behavior"
	component_set = ESC_ARCHAEO_STRIKECRAFT_CREATURE_3
	prerequisites = { "esc_tech_archaeo_strikecraft_3" }
	tags = { weapon_type_strike_craft weapon_archaeotech weapon_type_space_fauna s_slot }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# medium
strike_craft_component_template = {
	key = MEDIUM_ESC_ARCHAEO_STRIKECRAFT_CREATURE_3
	size = medium
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_archaeo_strikecraft_3
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 7
	}

	count = 4 # @ESC_STRIKECRAFT_count_medium
	regeneration_per_day = @ESC_STRIKECRAFT_regen
	launch_time = @ESC_STRIKECRAFT_launch_time

	damage = { min = 10 max = 30 }
	cooldown = 2.3
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	health = 20
	armor = 0
	shield = 30

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

	hull_damage = @ESC_WEAPON_archaeo_crafts_hull_damage
	armor_damage = @ESC_WEAPON_archaeo_crafts_armor_damage
	armor_penetration = @ESC_WEAPON_archaeo_crafts_armor_penetration
	shield_damage = @ESC_WEAPON_archaeo_crafts_shield_damage
	shield_penetration = @ESC_WEAPON_archaeo_crafts_shield_penetration

	ship_behavior = "fighters_behavior"
	component_set = ESC_ARCHAEO_STRIKECRAFT_CREATURE_3
	prerequisites = { "esc_tech_archaeo_strikecraft_3" }
	tags = { weapon_type_strike_craft weapon_archaeotech weapon_type_space_fauna m_slot }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# large
strike_craft_component_template = {
	key = LARGE_ESC_ARCHAEO_STRIKECRAFT_CREATURE_3
	size = large
	entity = "space_amoeba_small_entity"
	icon = GFX_esc_bio_archaeo_strikecraft_3
	icon_frame = 1

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 7
	}

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

	damage = { min = 10 max = 30 }
	cooldown = 2.3
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	health = 20
	armor = 0
	shield = 30

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

	hull_damage = @ESC_WEAPON_archaeo_crafts_hull_damage
	armor_damage = @ESC_WEAPON_archaeo_crafts_armor_damage
	armor_penetration = @ESC_WEAPON_archaeo_crafts_armor_penetration
	shield_damage = @ESC_WEAPON_archaeo_crafts_shield_damage
	shield_penetration = @ESC_WEAPON_archaeo_crafts_shield_penetration

	ship_behavior = "fighters_behavior"
	component_set = ESC_ARCHAEO_STRIKECRAFT_CREATURE_3
	prerequisites = { "esc_tech_archaeo_strikecraft_3" }
	tags = { weapon_type_strike_craft weapon_archaeotech weapon_type_space_fauna l_slot }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

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

	weapon_type = point_defence
	projectile_gfx = "strike_craft_laser_3"

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 7
	}

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

	damage = { min = 10 max = 30 }
	cooldown = 2.3
	range = @ESC_STRIKECRAFT_attack_range_fighter
	engagement_range = @ESC_STRIKECRAFT_engagement_range
	accuracy = @ESC_STRIKECRAFT_accuracy
	health = 20
	armor = 0
	shield = 30

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

	hull_damage = @ESC_WEAPON_archaeo_crafts_hull_damage
	armor_damage = @ESC_WEAPON_archaeo_crafts_armor_damage
	armor_penetration = @ESC_WEAPON_archaeo_crafts_armor_penetration
	shield_damage = @ESC_WEAPON_archaeo_crafts_shield_damage
	shield_penetration = @ESC_WEAPON_archaeo_crafts_shield_penetration

	ship_behavior = "fighters_behavior"
	component_set = ESC_ARCHAEO_STRIKECRAFT_CREATURE_3
	prerequisites = { "esc_tech_archaeo_strikecraft_3" }
	tags = { weapon_type_strike_craft weapon_archaeotech weapon_type_space_fauna x_slot }
	ai_tags = { weapon_role_point_defense carrier }
	point_defence_targets = { "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

############################################################
##             Tech-Synthetic Web Slingers                ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_POINTDEFENSE_CREATURE_2
	size = small
	icon = GFX_esc_bio_archaeo_pd_2
	icon_frame = 1
	type = point_defence

	damage = { min = 6 max = 12 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = @ESC_WEAPON_RANGE_P_1
	accuracy = 0.750

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_pointdef_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_pointdef_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_pointdef_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_pointdef_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_pointdef_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_point_defense_2" }
	component_set = ESC_ARCHAEO_POINTDEFENSE_CREATURE_2
	projectile_gfx = "white_laser_pd"
	tags = { weapon_type_point_defense weapon_type_energy weapon_archaeotech weapon_type_space_fauna s_slot }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = SMALL_ESC_ARCHAEO_POINTDEFENSE_CREATURE_3

	point_defence_targets = { "missile" "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_POINTDEFENSE_CREATURE_2
	size = medium
	icon = GFX_esc_bio_archaeo_pd_2
	icon_frame = 1
	type = point_defence

	damage = { min = 8 max = 14 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = @ESC_WEAPON_RANGE_P_1
	accuracy = 0.750

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_pointdef_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_pointdef_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_pointdef_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_pointdef_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_pointdef_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_point_defense_2" }
	component_set = ESC_ARCHAEO_POINTDEFENSE_CREATURE_2
	projectile_gfx = "white_laser_pd"
	tags = { weapon_type_point_defense weapon_type_energy weapon_archaeotech weapon_type_space_fauna m_slot }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = MEDIUM_ESC_ARCHAEO_POINTDEFENSE_CREATURE_3

	point_defence_targets = { "missile" "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_POINTDEFENSE_CREATURE_2
	size = large
	icon = GFX_esc_bio_archaeo_pd_2
	icon_frame = 1
	type = point_defence

	damage = { min = 10 max = 16 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = @ESC_WEAPON_RANGE_P_2
	accuracy = 0.750

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_pointdef_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_pointdef_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_pointdef_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_pointdef_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_pointdef_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_point_defense_2" }
	component_set = ESC_ARCHAEO_POINTDEFENSE_CREATURE_2
	projectile_gfx = "white_laser_pd"
	tags = { weapon_type_point_defense weapon_type_energy weapon_archaeotech weapon_type_space_fauna l_slot }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = LARGE_ESC_ARCHAEO_POINTDEFENSE_CREATURE_3

	point_defence_targets = { "missile" "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_POINTDEFENSE_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_archaeo_pd_2
	icon_frame = 1
	type = point_defence

	damage = { min = 12 max = 18 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = @ESC_WEAPON_RANGE_P_3
	accuracy = 0.750

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 4
	}

	hull_damage = @ESC_WEAPON_archaeo_pointdef_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_pointdef_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_pointdef_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_pointdef_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_pointdef_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_point_defense_2" }
	component_set = ESC_ARCHAEO_POINTDEFENSE_CREATURE_2
	projectile_gfx = "white_laser_pd"
	tags = { weapon_type_point_defense weapon_type_energy weapon_archaeotech weapon_type_space_fauna x_slot }
	ai_tags = { weapon_role_point_defense screen }
	upgrades_to = XL_ESC_ARCHAEO_POINTDEFENSE_CREATURE_3

	point_defence_targets = { "missile" "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

############################################################
##         Evolved Tech-Synthetic Web Slingers            ##
############################################################

# small
weapon_component_template = {
	key = SMALL_ESC_ARCHAEO_POINTDEFENSE_CREATURE_3
	size = small
	icon = GFX_esc_bio_archaeo_pd_3
	icon_frame = 1
	type = point_defence

	damage = { min = 7 max = 15 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = @ESC_WEAPON_RANGE_P_1
	accuracy = 0.750

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = s
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_pointdef_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_pointdef_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_pointdef_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_pointdef_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_pointdef_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_point_defense_3" }
	component_set = ESC_ARCHAEO_POINTDEFENSE_CREATURE_3
	projectile_gfx = "white_laser_pd"
	tags = { weapon_type_point_defense weapon_type_energy weapon_archaeotech weapon_type_space_fauna s_slot }
	ai_tags = { weapon_role_point_defense screen }

	point_defence_targets = { "missile" "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# medium
weapon_component_template = {
	key = MEDIUM_ESC_ARCHAEO_POINTDEFENSE_CREATURE_3
	size = medium
	icon = GFX_esc_bio_archaeo_pd_3
	icon_frame = 1
	type = point_defence

	damage = { min = 10 max = 18 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = @ESC_WEAPON_RANGE_P_1
	accuracy = 0.750

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = m
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_pointdef_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_pointdef_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_pointdef_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_pointdef_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_pointdef_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_point_defense_3" }
	component_set = ESC_ARCHAEO_POINTDEFENSE_CREATURE_3
	projectile_gfx = "white_laser_pd"
	tags = { weapon_type_point_defense weapon_type_energy weapon_archaeotech weapon_type_space_fauna m_slot }
	ai_tags = { weapon_role_point_defense screen }

	point_defence_targets = { "missile" "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# large
weapon_component_template = {
	key = LARGE_ESC_ARCHAEO_POINTDEFENSE_CREATURE_3
	size = large
	icon = GFX_esc_bio_archaeo_pd_3
	icon_frame = 1
	type = point_defence

	damage = { min = 12 max = 20 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = @ESC_WEAPON_RANGE_P_2
	accuracy = 0.750

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = l
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_pointdef_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_pointdef_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_pointdef_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_pointdef_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_pointdef_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_point_defense_3" }
	component_set = ESC_ARCHAEO_POINTDEFENSE_CREATURE_3
	projectile_gfx = "white_laser_pd"
	tags = { weapon_type_point_defense weapon_type_energy weapon_archaeotech weapon_type_space_fauna l_slot }
	ai_tags = { weapon_role_point_defense screen }

	point_defence_targets = { "missile" "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

# extra-large
weapon_component_template = {
	key = XL_ESC_ARCHAEO_POINTDEFENSE_CREATURE_3
	size = extra_large
	icon = GFX_esc_bio_archaeo_pd_3
	icon_frame = 1
	type = point_defence

	damage = { min = 15 max = 22 }
	windup = { min = 0 max = 0 }
	total_fire_time = 5
	range = @ESC_WEAPON_RANGE_P_3
	accuracy = 0.750

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = WEAPON
		SIZE = xl
		TIER = 5
	}

	hull_damage = @ESC_WEAPON_archaeo_pointdef_hull_damage
	armor_penetration = @ESC_WEAPON_archaeo_pointdef_armor_penetration
	armor_damage = @ESC_WEAPON_archaeo_pointdef_armor_damage
	shield_penetration = @ESC_WEAPON_archaeo_pointdef_shield_penetration
	shield_damage = @ESC_WEAPON_archaeo_pointdef_shield_damage
	tracking = 0.3

	prerequisites = { "esc_tech_archaeo_point_defense_3" }
	component_set = ESC_ARCHAEO_POINTDEFENSE_CREATURE_3
	projectile_gfx = "white_laser_pd"
	tags = { weapon_type_point_defense weapon_type_energy weapon_archaeotech weapon_type_space_fauna x_slot }
	ai_tags = { weapon_role_point_defense screen }

	point_defence_targets = { "missile" "strike_craft" }

	ai_weight = {
		weight = 0
		modifier = {
			add = 2.5
			owner = { has_ascension_perk = ap_archaeoengineers }
		}
		modifier = {
			factor = 0.0
			owner = {
				has_monthly_income = {
					resource = minor_artifacts
					value < 3
				}
			}
		}
		modifier = {
			factor = 1.3
			owner = {
				resource_stockpile_compare = {
					resource = minor_artifacts
					value > 250
				}
			}
		}
	}
}

############################################################
##                Tech-Synthetic Carapace                 ##
############################################################

# small
utility_component_template = {
	key = SMALL_ESC_ARCHAEO_ARMOR_CREATURE_2
	size = small
	icon = GFX_esc_bio_archaeo_armor_2
	icon_frame = 1

	modifier = {
		ship_hull_add = @bio_ship_hull_s_4
		ship_armor_add = @armor_S4
		ship_shield_add = @shield_S2
		ship_shield_regen_add_static = @regen_S4
	}
	ship_modifier = {
		ship_armor_hardening_add = @hardening_T6
		ship_shield_hardening_add = @hardening_T6
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_S2
		ship_shield_regen_add_static = @regen_S2
	}

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = ARMOR
		SIZE = s
		TIER = 6
	}

	prerequisites = { "esc_tech_archaeoarmor_2" }
	component_set = ESC_ARCHAEO_ARMOR_CREATURE_2
	upgrades_to = SMALL_ESC_ARCHAEO_ARMOR_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 1.5
	}
}

# medium
utility_component_template = {
	key = MEDIUM_ESC_ARCHAEO_ARMOR_CREATURE_2
	size = medium
	icon = GFX_esc_bio_archaeo_armor_2
	icon_frame = 1

	modifier = {
		ship_hull_add = @bio_ship_hull_m_4
		ship_armor_add = @armor_M4
		ship_shield_add = @shield_M2
		ship_shield_regen_add_static = @regen_M4
	}
	ship_modifier = {
		ship_armor_hardening_add = @hardening_T6
		ship_shield_hardening_add = @hardening_T6
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_M2
		ship_shield_regen_add_static = @regen_M2
	}

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = ARMOR
		SIZE = m
		TIER = 6
	}

	prerequisites = { "esc_tech_archaeoarmor_2" }
	component_set = ESC_ARCHAEO_ARMOR_CREATURE_2
	upgrades_to = MEDIUM_ESC_ARCHAEO_ARMOR_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 1.5
	}
}

# large
utility_component_template = {
	key = LARGE_ESC_ARCHAEO_ARMOR_CREATURE_2
	size = large
	icon = GFX_esc_bio_archaeo_armor_2
	icon_frame = 1

	modifier = {
		ship_hull_add = @bio_ship_hull_l_4
		ship_armor_add = @armor_L4
		ship_shield_add = @shield_L2
		ship_shield_regen_add_static = @regen_L4
	}
	ship_modifier = {
		ship_armor_hardening_add = @hardening_T6
		ship_shield_hardening_add = @hardening_T6
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_L2
		ship_shield_regen_add_static = @regen_L2
	}

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = ARMOR
		SIZE = l
		TIER = 6
	}

	prerequisites = { "esc_tech_archaeoarmor_2" }
	component_set = ESC_ARCHAEO_ARMOR_CREATURE_2
	upgrades_to = LARGE_ESC_ARCHAEO_ARMOR_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 1.5
	}
}

# extra-large
utility_component_template = {
	key = XL_ESC_ARCHAEO_ARMOR_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_archaeo_armor_2
	icon_frame = 1

	modifier = {
		ship_hull_add = @bio_ship_hull_l_5
		ship_armor_add = @armor_L5
		ship_shield_add = @shield_L4
		ship_shield_regen_add_static = @regen_L5
	}
	ship_modifier = {
		ship_armor_hardening_add = @hardening_T6
		ship_shield_hardening_add = @hardening_T6
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_L3
		ship_shield_regen_add_static = @regen_L3
	}

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = ARMOR
		SIZE = xl
		TIER = 6
	}
	prerequisites = { "esc_tech_archaeoarmor_2" }
	component_set = ESC_ARCHAEO_ARMOR_CREATURE_2
	upgrades_to = XL_ESC_ARCHAEO_ARMOR_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 1.5
	}
}

############################################################
##          Advanced Tech-Synthetic Carapace              ##
############################################################

# small
utility_component_template = {
	key = SMALL_ESC_ARCHAEO_ARMOR_CREATURE_3
	size = small
	icon = GFX_esc_bio_archaeo_armor_3
	icon_frame = 1

	modifier = {
		ship_hull_add = @bio_ship_hull_s_5
		ship_armor_add = @armor_S5
		ship_shield_add = @shield_S3
		ship_shield_regen_add_static = @regen_S5
	}
	ship_modifier = {
		ship_armor_hardening_add = @hardening_T6
		ship_shield_hardening_add = @hardening_T6
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_S3
		ship_shield_regen_add_static = @regen_S3
	}

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = ARMOR
		SIZE = s
		TIER = 7
	}

	prerequisites = { "esc_tech_archaeoarmor_3" }
	component_set = ESC_ARCHAEO_ARMOR_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 1.5
	}
}

# medium
utility_component_template = {
	key = MEDIUM_ESC_ARCHAEO_ARMOR_CREATURE_3
	size = medium
	icon = GFX_esc_bio_archaeo_armor_3
	icon_frame = 1

	modifier = {
		ship_hull_add = @bio_ship_hull_m_5
		ship_armor_add = @armor_M5
		ship_shield_add = @shield_M3
		ship_shield_regen_add_static = @regen_M5
	}
	ship_modifier = {
		ship_armor_hardening_add = @hardening_T6
		ship_shield_hardening_add = @hardening_T6
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_M3
		ship_shield_regen_add_static = @regen_M3
	}

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = ARMOR
		SIZE = m
		TIER = 7
	}

	prerequisites = { "esc_tech_archaeoarmor_3" }
	component_set = ESC_ARCHAEO_ARMOR_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 1.5
	}
}

# large
utility_component_template = {
	key = LARGE_ESC_ARCHAEO_ARMOR_CREATURE_3
	size = large
	icon = GFX_esc_bio_archaeo_armor_3
	icon_frame = 1

	modifier = {
		ship_hull_add = @bio_ship_hull_l_5
		ship_armor_add = @armor_L5
		ship_shield_add = @shield_L3
		ship_shield_regen_add_static = @regen_L5
	}
	ship_modifier = {
		ship_armor_hardening_add = @hardening_T6
		ship_shield_hardening_add = @hardening_T6
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_L3
		ship_shield_regen_add_static = @regen_L3
	}

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = ARMOR
		SIZE = l
		TIER = 7
	}

	prerequisites = { "esc_tech_archaeoarmor_3" }
	component_set = ESC_ARCHAEO_ARMOR_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 1.5
	}
}

# extra-large
utility_component_template = {
	key = XL_ESC_ARCHAEO_ARMOR_CREATURE_3
	size = extra_large
	icon = GFX_esc_bio_archaeo_armor_3
	icon_frame = 1

	modifier = {
		ship_hull_add = @bio_ship_hull_l_6
		ship_armor_add = @armor_L6
		ship_shield_add = @shield_L5
		ship_shield_regen_add_static = @regen_L6
	}
	ship_modifier = {
		ship_armor_hardening_add = @hardening_T6
		ship_shield_hardening_add = @hardening_T6
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_L4
		ship_shield_regen_add_static = @regen_L4
	}

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = ARMOR
		SIZE = xl
		TIER = 7
	}

	prerequisites = { "esc_tech_archaeoarmor_3" }
	component_set = ESC_ARCHAEO_ARMOR_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 1.5
	}
}

############################################################
##         Tech-Synthetic Suspension Field Tissue         ##
############################################################

# small
utility_component_template = {
	key = SMALL_ESC_ARCHAEO_SHIELDS_CREATURE_2
	size = small
	icon = GFX_esc_bio_archaeo_shield_2
	icon_frame = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = SHIELD
		SIZE = s
		TIER = 6
	}

	modifier = {
		ship_shield_add = @shield_S4
		ship_shield_regen_add_static = @regen_S7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = 0.15
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_S2
		ship_shield_regen_add_static = @regen_S2
	}

	prerequisites = { "esc_tech_archaeoshield_2" }
	component_set = ESC_ARCHAEO_SHIELDS_CREATURE_2
	upgrades_to = SMALL_ESC_ARCHAEO_SHIELDS_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 0
	}
}

# medium
utility_component_template = {
	key = MEDIUM_ESC_ARCHAEO_SHIELDS_CREATURE_2
	size = medium
	icon = GFX_esc_bio_archaeo_shield_2
	icon_frame = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = SHIELD
		SIZE = m
		TIER = 6
	}

	modifier = {
		ship_shield_add = @shield_M4
		ship_shield_regen_add_static = @regen_M7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = 0.15
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_M2
		ship_shield_regen_add_static = @regen_M2
	}

	prerequisites = { "esc_tech_archaeoshield_2" }
	component_set = ESC_ARCHAEO_SHIELDS_CREATURE_2
	upgrades_to = MEDIUM_ESC_ARCHAEO_SHIELDS_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 0
	}
}

# large
utility_component_template = {
	key = LARGE_ESC_ARCHAEO_SHIELDS_CREATURE_2
	size = large
	icon = GFX_esc_bio_archaeo_shield_2
	icon_frame = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = SHIELD
		SIZE = l
		TIER = 6
	}

	modifier = {
		ship_shield_add = @shield_L4
		ship_shield_regen_add_static = @regen_L7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = 0.15
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_L2
		ship_shield_regen_add_static = @regen_L2
	}

	prerequisites = { "esc_tech_archaeoshield_2" }
	component_set = ESC_ARCHAEO_SHIELDS_CREATURE_2
	upgrades_to = LARGE_ESC_ARCHAEO_SHIELDS_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 0
	}
}

# extra-large
utility_component_template = {
	key = XL_ESC_ARCHAEO_SHIELDS_CREATURE_2
	size = extra_large
	icon = GFX_esc_bio_archaeo_shield_2
	icon_frame = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = SHIELD
		SIZE = xl
		TIER = 6
	}

	modifier = {
		ship_shield_add = @shield_L6
		ship_shield_regen_add_static = @regen_L7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = 0.15
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_L4
		ship_shield_regen_add_static = @regen_L4
	}

	prerequisites = { "esc_tech_archaeoshield_2" }
	component_set = ESC_ARCHAEO_SHIELDS_CREATURE_2
	upgrades_to = XL_ESC_ARCHAEO_SHIELDS_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 0
	}
}

############################################################
##     Advanced Tech-Synthetic Suspension Field Tissue    ##
############################################################

# small
utility_component_template = {
	key = SMALL_ESC_ARCHAEO_SHIELDS_CREATURE_3
	size = small
	icon = GFX_esc_bio_archaeo_shield_3
	icon_frame = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = SHIELD
		SIZE = s
		TIER = 7
	}

	modifier = {
		ship_shield_add = @shield_S5
		ship_shield_regen_add_static = @regen_S7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = 0.15
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_S3
		ship_shield_regen_add_static = @regen_S3
	}

	prerequisites = { "esc_tech_archaeoshield_3" }
	component_set = ESC_ARCHAEO_SHIELDS_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 0
	}
}

# medium
utility_component_template = {
	key = MEDIUM_ESC_ARCHAEO_SHIELDS_CREATURE_3
	size = medium
	icon = GFX_esc_bio_archaeo_shield_3
	icon_frame = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = SHIELD
		SIZE = m
		TIER = 7
	}

	modifier = {
		ship_shield_add = @shield_M5
		ship_shield_regen_add_static = @regen_M7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = 0.15
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_M3
		ship_shield_regen_add_static = @regen_M3
	}

	prerequisites = { "esc_tech_archaeoshield_3" }
	component_set = ESC_ARCHAEO_SHIELDS_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 0
	}
}

# large
utility_component_template = {
	key = LARGE_ESC_ARCHAEO_SHIELDS_CREATURE_3
	size = large
	icon = GFX_esc_bio_archaeo_shield_3
	icon_frame = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = SHIELD
		SIZE = l
		TIER = 7
	}

	modifier = {
		ship_shield_add = @shield_L5
		ship_shield_regen_add_static = @regen_L7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = 0.15
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_L3
		ship_shield_regen_add_static = @regen_L3
	}

	prerequisites = { "esc_tech_archaeoshield_3" }
	component_set = ESC_ARCHAEO_SHIELDS_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 0
	}
}

# extra-large
utility_component_template = {
	key = XL_ESC_ARCHAEO_SHIELDS_CREATURE_3
	size = extra_large
	icon = GFX_esc_bio_archaeo_shield_3
	icon_frame = 1

	inline_script = {
		script = component_costs/shorthands/esc_inlines_archaeotech_cost
		COMPONENT_TYPE = SHIELD
		SIZE = xl
		TIER = 7
	}

	modifier = {
		ship_shield_add = @shield_L7
		ship_shield_regen_add_static = @regen_L7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = 0.15
	}

	triggered_ship_design_modifier = {
		potential = {
			exists = from
			from = {
				OR = {
					has_ascension_perk = ap_archaeoengineers
					is_country_type = synth_queen
				}
			}
		}
		ship_shield_add = @shield_L5
		ship_shield_regen_add_static = @regen_L5
	}

	prerequisites = { "esc_tech_archaeoshield_3" }
	component_set = ESC_ARCHAEO_SHIELDS_CREATURE_3

	inline_script = {
		script = ship_components_general/esc_inlines_archaeo_ai_weight
		MULTIPLIER = 0
	}
}
