### GRAND ARCHIVE SHIP SIZES ###

gravity_snare = {
	graphical_culture = no
	entity = gravity_snare_entity
	max_speed = 210
	rotation_speed = 0.2
	acceleration = 0.65
	max_hitpoints = @transport_hp
	modifier = {
		ship_armor_add = 100
		ship_evasion_add = @transport_evasion
	}
	size_multiplier = 0
	map_counter_icon = ship_counter_4
	icon = ship_size_military_1
	fleet_slot_size = 0
	section_slots = { "mid" = { locator = "root" } }
	num_target_locators = 0
	is_civilian = yes
	is_space_station = no

	combat_disengage_chance = 1.5

	enable_default_design = no	#if yes, countries will have an auto-generated design at start
	is_designable = no
	components_add_to_cost = yes
	class = shipclass_gravity_snare
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "thruster_components"
	required_component_set = "science_cloaking_components"
	auto_upgrade = yes
}

############################
### VOIDWORMS SHIP SIZES ###
############################

# Voidworms Nymphs
voidworms_small = {
	ship_category = voidworm
	mutation_components_size = small
	graphical_culture = no
	entity = voidworm_nymph_entity
	is_space_object = yes
	max_speed = @speed_slow
	rotation_speed = 0.02
	acceleration = 0.6
	modifier = {
		ship_evasion_add = 70
	}
	max_hitpoints = 400
	fleet_slot_size = 1
	size_multiplier = 5
	map_counter_icon = ship_counter_4
	icon = ship_size_voidworm
	section_slots = { "mid" = { locator = "root" } "mutations" = { locator = "root" } }
	num_target_locators = 0
	icon_cloned = ship_size_military_1
	class = shipclass_military
	construction_type = { starbase_hatchery starbase_beastport }
	base_buildtime = @corvette_build_time
	uses_name_prefix = no
	can_have_federation_design = yes
	is_space_fauna_ship = yes
	space_fauna_values = {
		age_threshold = { max = 15 }
		culling_value = {
			category = vivarium
			produces = {
				society_research = @tier1_research_culling_value
			}
		}
		reanimated_ship_design = NAME_Reanimated_Voidworms_Nymph
		icon_frame = 1
	}
	enable_default_design = yes

	potential_country = {
		has_dna = {
			ship_category = voidworm
		}
	}

	possible_country = {
		custom_tooltip = {
			fail_text = not_possible_operational_reserves_critical_tt
			OR = {
				is_nomadic = no
				any_situation = {
					is_situation_type = situation_nomad_economy
					NOT = {
						current_stage = situation_nomad_economy_stage_critical
					}
				}
			}
		}
	}

	resources = {
		category = ships
		cost = {
			minerals = 250
			food = 250
			mult = @fauna_cost_scaling
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = minerals
			UPKEEP = @fauna_tiny_upkeep_minerals
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = food
			UPKEEP = @fauna_tiny_upkeep_food
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = energy
			UPKEEP = @fauna_small_upkeep_energy
		}
	}

	ai_ship_data = {
		fraction = {
			base = 0
			modifier = {
				add = 15
				uses_fauna_ship_sizes = yes
			}
		}
	}

	required_component_set = "ftl_components_bio"
	required_component_set = "thruster_components_bio"
	required_component_set = "sensor_components_bio"
	required_component_set = "neurochips"
}

# Voidworms Juvenile
voidworms_medium = {
	ship_category = voidworm
	mutation_components_size = medium
	graphical_culture = no
	entity = voidworm_juvenile_entity
	is_space_object = yes
	max_speed = @speed_slow
	rotation_speed = 0.02
	acceleration = 0.6
	modifier = {
		ship_evasion_add = 35
		ship_armor_add = 200
	}
	max_hitpoints = 800
	fleet_slot_size = 2
	size_multiplier = 10
	map_counter_icon = ship_counter_8
	icon = ship_size_voidworm
	section_slots = { "mid" = { locator = "root" } "mutations" = { locator = "root" } }
	num_target_locators = 0
	icon_cloned = ship_size_military_2
	class = shipclass_military
	construction_type = { starbase_hatchery starbase_beastport }
	base_buildtime = @destroyer_build_time
	prerequisites = { "tech_improved_incubators" }
	uses_name_prefix = no
	can_have_federation_design = yes
	is_space_fauna_ship = yes
	space_fauna_values = {
		age_threshold = { min = 15 max = 60 }
		culling_value = {
			category = vivarium
			produces = {
				society_research = @tier2_research_culling_value
			}
		}
		reanimated_ship_design = NAME_Reanimated_Voidworms_Juvenile
		icon_frame = 2
	}
	enable_default_design = yes

	potential_country = {
		has_dna = {
			ship_category = voidworm
		}
	}

	possible_country = {
		custom_tooltip = {
			fail_text = not_possible_operational_reserves_critical_tt
			OR = {
				is_nomadic = no
				any_situation = {
					is_situation_type = situation_nomad_economy
					NOT = {
						current_stage = situation_nomad_economy_stage_critical
					}
				}
			}
		}
	}

	resources = {
		category = ships
		cost = {
			minerals = 500
			food = 500
			mult = @fauna_cost_scaling
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = minerals
			UPKEEP = @fauna_small_upkeep_minerals
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = food
			UPKEEP = @fauna_small_upkeep_food
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = energy
			UPKEEP = @fauna_medium_upkeep_energy
		}
	}

	ai_ship_data = {
		fraction = {
			base = 0
			modifier = {
				add = 15
				uses_fauna_ship_sizes = yes
			}
		}
	}

	required_component_set = "ftl_components_bio"
	required_component_set = "thruster_components_bio"
	required_component_set = "sensor_components_bio"
	required_component_set = "neurochips"
}

# Voidworms Mature
voidworms_large = {
	ship_category = voidworm
	mutation_components_size = large
	graphical_culture = no
	entity = voidworm_mature_entity
	is_space_object = yes
	max_speed = @speed_slow
	rotation_speed = 0.02
	acceleration = 0.6
	modifier = {
		ship_evasion_add = 10
		ship_armor_add = 1000
	}
	max_hitpoints = 4000
	size_multiplier = 40
	map_counter_icon = ship_counter_32
	icon = ship_size_voidworm
	fleet_slot_size = 8
	section_slots = { "mid" = { locator = "root" } "mutations" = { locator = "root" } }
	num_target_locators = 0
	icon_cloned = ship_size_military_8
	class = shipclass_military
	construction_type = { starbase_hatchery starbase_beastport }
	base_buildtime = @cruiser_build_time
	prerequisites = { "tech_metabolic_gases" }
	uses_name_prefix = no
	can_have_federation_design = yes
	is_space_fauna_ship = yes
	space_fauna_values = {
		age_threshold = { min = 60 max = 65 }
		culling_value = {
			category = vivarium
			produces = {
				society_research = @tier3_research_culling_value
			}
		}
		merge_with_individuals_amount_to_upgrade = 3
		reanimated_ship_design = NAME_Reanimated_Voidworms_Mature
		icon_frame = 3
	}
	enable_default_design = yes

	potential_country = {
		has_dna = {
			ship_category = voidworm
		}
	}

	possible_country = {
		custom_tooltip = {
			fail_text = not_possible_operational_reserves_critical_tt
			OR = {
				is_nomadic = no
				any_situation = {
					is_situation_type = situation_nomad_economy
					NOT = {
						current_stage = situation_nomad_economy_stage_critical
					}
				}
			}
		}
	}

	resources = {
		category = ships
		cost = {
			minerals = 1600
			food = 1600
			mult = @fauna_cost_scaling
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = minerals
			UPKEEP = @fauna_big_upkeep_minerals
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = food
			UPKEEP = @fauna_big_upkeep_food
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = energy
			UPKEEP = @fauna_large_upkeep_energy
		}
	}

	ai_ship_data = {
		fraction = {
			base = 0
			modifier = {
				add = 25
				uses_fauna_ship_sizes = yes
			}
		}
	}

	required_component_set = "ftl_components_bio"
	required_component_set = "thruster_components_bio"
	required_component_set = "sensor_components_bio"
	required_component_set = "neurochips"
}

# Voidworms Troika
voidworms_titan = {
	ship_category = voidworm
	mutation_components_size = extra_large
	graphical_culture = no
	entity = voidworm_troika_entity
	is_space_object = yes
	max_speed = @speed_slow
	rotation_speed = 0.02
	acceleration = 0.6
	modifier = {
		ship_evasion_add = 10
		ship_armor_add = 3000
	}
	max_hitpoints = 12000
	size_multiplier = 80
	map_counter_icon = ship_counter_64
	icon = ship_size_voidworm_troika
	fleet_slot_size = 16
	section_slots = { "mid" = { locator = "root" } "mutations" = { locator = "root" } }
	num_target_locators = 0
	icon_cloned = ship_size_military_16
	class = shipclass_military
	construction_type = { starbase_hatchery starbase_beastport }
	base_buildtime = @battleship_build_time
	prerequisites = { "tech_metabolic_gases" }
	uses_name_prefix = no
	can_have_federation_design = yes
	is_space_fauna_ship = yes
	space_fauna_values = {
		age_threshold = { min = 65 }
		culling_value = {
			category = vivarium
			produces = {
				society_research = @tier4_research_culling_value
			}
		}
		monthly_initial_breeding_chance = 3
		monthly_increased_breeding_chance = 3
		breeding_cooldown_months = 3
		reanimated_ship_design = NAME_Reanimated_Voidworms_Troika
		can_breed_alone = yes
		icon_frame = 4
	}
	enable_default_design = yes

	potential_construction = {
		always = no
	}

	possible_country = {
		custom_tooltip = {
			fail_text = not_possible_operational_reserves_critical_tt
			OR = {
				is_nomadic = no
				any_situation = {
					is_situation_type = situation_nomad_economy
					NOT = {
						current_stage = situation_nomad_economy_stage_critical
					}
				}
			}
		}
	}

	resources = {
		category = ships
		cost = {
			minerals = 4500
			food = 4500
			mult = @fauna_cost_scaling
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = minerals
			UPKEEP = @fauna_huge_upkeep_minerals
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = food
			UPKEEP = @fauna_huge_upkeep_food
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = energy
			UPKEEP = @fauna_huge_upkeep_energy
		}
	}

	ai_ship_data = {
		fraction = {
			base = 0
			modifier = {
				add = 50
				uses_fauna_ship_sizes = yes
			}
		}
	}

	required_component_set = "ftl_components_bio"
	required_component_set = "thruster_components_bio"
	required_component_set = "sensor_components_bio"
	required_component_set = "neurochips"
}

voidworm_nest = {
	graphical_culture = no
	max_speed = 0.0
	acceleration = 0.0
	rotation_speed = 0.0
	entity = voidworm_nest_entity
	modifier = {
		ship_sensor_range_add = 1
	}
	ship_modifier = {
		ship_evasion_mult = -1
		ship_armor_add = 60000
		ship_weapon_range_mult = 0.20
	}

	max_hitpoints = 30000
	base_buildtime = 720
	combat_size_multiplier = 250
	size_multiplier = 250
	map_counter_icon = ship_counter_128
	icon = ship_size_military_station
	fleet_slot_size = 2
	section_slots = { "core" = { locator = "root" } }
	is_designable = no
	num_target_locators = 0
	is_space_station = no
	can_have_federation_design = no
	is_civilian = no
	components_add_to_cost = no
	is_listed = no
	can_disable = no

	enable_default_design = no	#if yes, countries will have an auto-generated design at start
	class = shipclass_starbase

	required_component_set = "sensor_components"

	icon_frame = -1
}

#############################
### CUTHOLOIDS SHIP SIZES ###
#############################

cutholoids_hatchling = {
	ship_category = cutholoid
	mutation_components_size = medium
	graphical_culture = no
	entity = cutholoid_hatchling_01_entity
	is_space_object = yes
	max_speed = @speed_default
	rotation_speed = 0.02
	acceleration = 0.6
	modifier = {
		ship_evasion_add = 15
		ship_armor_add = 1000
	}
	collision_radius = @battleship_collision_radius
	max_hitpoints = 200
	fleet_slot_size = 2
	size_multiplier = 10
	map_counter_icon = ship_counter_8
	icon = ship_size_cutholoid
	section_slots = { "mid" = { locator = "root" } "mutations" = { locator = "root" } }
	num_target_locators = 4
	icon_cloned = ship_size_military_2
	class = shipclass_military
	construction_type = { starbase_hatchery starbase_beastport }
	base_buildtime = @destroyer_build_time
	prerequisites = { "tech_improved_incubators" }
	uses_name_prefix = no
	is_space_station = no
	can_have_federation_design = yes
	is_space_fauna_ship = yes
	space_fauna_values = {
		age_threshold = { max = 30 }
		culling_value = {
			category = vivarium
			produces = {
				minerals = @tier1_research_culling_value
			}
		}
		reanimated_ship_design = NAME_Reanimated_Cutholoids_Hatchling
		icon_frame = 1
	}
	enable_default_design = yes

	potential_country = {
		has_dna = {
			ship_category = cutholoid
		}
	}

	possible_country = {
		custom_tooltip = {
			fail_text = not_possible_operational_reserves_critical_tt
			OR = {
				is_nomadic = no
				any_situation = {
					is_situation_type = situation_nomad_economy
					NOT = {
						current_stage = situation_nomad_economy_stage_critical
					}
				}
			}
		}
	}

	resources = {
		category = ships
		cost = {
			minerals = 1200
			mult = @fauna_cost_scaling
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = minerals
			UPKEEP = @fauna_medium_upkeep_food
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = energy
			UPKEEP = @fauna_medium_upkeep_energy
		}
	}

	ai_ship_data = {
		fraction = {
			base = 0
			modifier = {
				add = 15
				uses_fauna_ship_sizes = yes
			}
		}
	}

	required_component_set = "ftl_components_bio"
	required_component_set = "thruster_components_bio"
	required_component_set = "sensor_components_bio"
	required_component_set = "neurochips"
}

cutholoids_juvenile = {
	ship_category = cutholoid
	mutation_components_size = large
	graphical_culture = no
	entity = cutholoid_juvenile_01_entity
	is_space_object = yes
	max_speed = @speed_slow
	rotation_speed = 0.02
	acceleration = 0.6
	modifier = {
		ship_evasion_add = 10
		ship_armor_add = 2600
	}
	collision_radius = @battleship_collision_radius
	max_hitpoints = 400
	fleet_slot_size = 4
	size_multiplier = 20
	map_counter_icon = ship_counter_16
	icon = ship_size_cutholoid
	section_slots = { "mid" = { locator = "root" } "mutations" = { locator = "root" } }
	num_target_locators = 4
	icon_cloned = ship_size_military_4
	class = shipclass_military
	construction_type = { starbase_hatchery starbase_beastport }
	base_buildtime = @cruiser_build_time
	prerequisites = { "tech_metabolic_gases" }
	uses_name_prefix = no
	is_space_station = no
	can_have_federation_design = yes
	is_space_fauna_ship = yes
	space_fauna_values = {
		age_threshold = { min = 30 max = 80 }
		culling_value = {
			category = vivarium
			produces = {
				minerals = @tier2_research_culling_value
			}
		}
		reanimated_ship_design = NAME_Reanimated_Cutholoids_Juvenile
		icon_frame = 2
	}
	enable_default_design = yes

	potential_country = {
		has_dna = {
			ship_category = cutholoid
		}
	}

	possible_country = {
		custom_tooltip = {
			fail_text = not_possible_operational_reserves_critical_tt
			OR = {
				is_nomadic = no
				any_situation = {
					is_situation_type = situation_nomad_economy
					NOT = {
						current_stage = situation_nomad_economy_stage_critical
					}
				}
			}
		}
	}

	resources = {
		category = ships
		cost = {
			minerals = 2100
			mult = @fauna_cost_scaling
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = minerals
			UPKEEP = @fauna_big_upkeep_minerals
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = energy
			UPKEEP = @fauna_big_upkeep_energy
		}
	}

	ai_ship_data = {
		fraction = {
			base = 0
			modifier = {
				add = 25
				uses_fauna_ship_sizes = yes
			}
		}
	}

	required_component_set = "ftl_components_bio"
	required_component_set = "thruster_components_bio"
	required_component_set = "sensor_components_bio"
	required_component_set = "neurochips"
}

cutholoids = {
	ship_category = cutholoid
	mutation_components_size = extra_large
	graphical_culture = no
	entity = cutholoid_01_entity
	is_space_object = yes
	max_speed = @speed_very_slow
	rotation_speed = 0.02
	acceleration = 0.6
	modifier = {
		ship_evasion_add = 5
		ship_armor_add = 4500
	}
	collision_radius = @battleship_collision_radius
	max_hitpoints = 800
	fleet_slot_size = 8
	size_multiplier = 40
	map_counter_icon = ship_counter_32
	icon = ship_size_cutholoid
	section_slots = { "mid" = { locator = "root" } "mutations" = { locator = "root" } }
	num_target_locators = 4
	icon_cloned = ship_size_military_8
	class = shipclass_military
	construction_type = { starbase_hatchery starbase_beastport }
	base_buildtime = @battleship_build_time
	prerequisites = { "tech_metabolic_gases" }
	uses_name_prefix = no
	is_space_station = no
	can_have_federation_design = yes
	is_space_fauna_ship = yes
	space_fauna_values = {
		age_threshold = { min = 80 }
		culling_value = {
			category = vivarium
			produces = {
				minerals = @tier3_research_culling_value
			}
		}
		monthly_initial_breeding_chance = 1
		monthly_increased_breeding_chance = 10
		breeding_cooldown_months = 16
		reanimated_ship_design = NAME_Reanimated_Cutholoids
		icon_frame = 3
	}
	enable_default_design = yes

	potential_country = {
		has_dna = {
			ship_category = cutholoid
		}
	}

	possible_country = {
		custom_tooltip = {
			fail_text = not_possible_operational_reserves_critical_tt
			OR = {
				is_nomadic = no
				any_situation = {
					is_situation_type = situation_nomad_economy
					NOT = {
						current_stage = situation_nomad_economy_stage_critical
					}
				}
			}
		}
	}

	resources = {
		category = ships
		cost = {
			minerals = 3700
			mult = @fauna_cost_scaling
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = minerals
			UPKEEP = @fauna_large_upkeep_minerals
		}
		inline_script = {
			script = "grand_archive/space_fauna_upkeep"
			RESOURCE = energy
			UPKEEP = @fauna_large_upkeep_energy
		}
	}

	ai_ship_data = {
		fraction = {
			base = 0
			modifier = {
				add = 50
				uses_fauna_ship_sizes = yes
			}
		}
	}

	required_component_set = "ftl_components_bio"
	required_component_set = "thruster_components_bio"
	required_component_set = "sensor_components_bio"
	required_component_set = "neurochips"
}
