#reloadable with 'reload stats'
# This file is where you start when you want to configure something new, then go to sections
####################
# NOTE FOR MODDERS #
####################
# modifier = { } only takes the following modifiers
# hull, shield & armor add/mult and regen add perc/static
# evasion add/mult
# speed/base speed mult
# weapon damage mult
# upkeep mult
# for other modifiers, use ship_modifier = { }
# use_shipnames_from = other_size # allows a ship size to use names from another size
# icon = ship_size_military_1
#ship_size_military_1 is default. The following sprite keys are generated from it:
#GFX_text_<key>
#GFX_<key>
#GFX_<key>_top
#GFX_<key>_top_damaged
# icon_frame: now only used for starbases. Value of 2 or more means it shows up on the galaxy map, 1-5 denote which icon it uses on starbase sprite sheets (e.g. gfx/interface/icons/starbase_ship_sizes.dds)
####################
# Gray Goo Mothership
RG_graygoo_mothership = {
	graphical_culture = no
	entity = "gatebuilder_01_mothership_entity"
	max_speed = 100
	acceleration = 0.2
	rotation_speed = 0.15
	collision_radius = 5
	modifier = {
		ship_evasion_add = 50
		ship_armor_add = 25600
		ship_shield_add = 25600
	}
	ship_modifier = {
		ship_disengage_chance_reduction = 8
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	max_hitpoints = 25600
	size_multiplier = 16
	fleet_slot_size = 16
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 12
	is_space_station = no
	icon = ship_size_military_16
	base_buildtime = @titan_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = colossus
	prerequisites = {
		"tech_object_gray_5"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

RG_graygoo_capitalship = {
	graphical_culture = no
	entity = "grey_tempesttw_juggernaut_entity"
	max_speed = 100
	acceleration = 0.2
	rotation_speed = 0.15
	collision_radius = 5
	modifier = {
		ship_evasion_add = 100
		ship_armor_add = 128000
		ship_shield_add = 128000
		ship_weapon_damage = 2
		ship_cloaking_detection_add = 5
	}
	ship_modifier = {
		ship_disengage_chance_reduction = 8
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 2
		ship_armor_hardening_add = 2
	}
	max_hitpoints = 128000
	size_multiplier = 32
	fleet_slot_size = 32
	section_slots = {
		"core" = {
			locator = "part1"
		}
		"behind" = {
			locator = "part2"
		}
	}
	num_target_locators = 16
	is_space_station = no
	icon = ship_size_military_16
	base_buildtime = @titan_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = colossus
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	possible_construction = {
		always = no
	}
	combat_size_multiplier = 4
	prerequisites = {
		"tech_gray_juggernaut_8"
	}
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

RG_gray_juggernaut = {
	max_speed = 100
	entity = "grey_tempesttw_juggernaut_entity"
	acceleration = 0.2
	rotation_speed = 0.15
	collision_radius = @juggernaut_collision_radius
	modifier = {
		ship_evasion_add = 100
		ship_armor_add = 108000
		ship_shield_add = 108000
		ship_weapon_damage = 2
		starbase_shipyard_capacity_add = 12
		ship_cloaking_detection_add = 5
	}
	ship_modifier = {
		ship_disengage_chance_reduction = 8
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 2
		ship_armor_hardening_add = 2
	}
	max_hitpoints = 108000
	base_buildtime = @juggernaut_build_time
	combat_size_multiplier = 5
	size_multiplier = 32
	fleet_slot_size = 32
	section_slots = {
		"core" = {
			locator = "part1"
		}
		"behind" = {
			locator = "part2"
		}
	}
	num_target_locators = 16
	can_have_federation_design = no
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	icon_frame = 7	#probably unused, but mobile starbases are special
	icon = ship_size_military_64
	ship_class_icon_frame = 35
	default_behavior = colossus
	is_designable = yes
	prerequisites = {
		"tech_gray_juggernaut_8"
	}
	class = shipclass_starbase
	construction_type = starbase_shipyard
	potential_construction = {
		OR = {
			is_scope_type = starbase
			AND = {
				is_scope_type = megastructure
				OR = {
					is_megastructure_type = mega_shipyard_3
					is_megastructure_type = mega_shipyard_restored
				}
			}
		}
	}

	possible_construction = {
		custom_tooltip = {
			fail_text = starbase_citadel_trigger
			OR = {
				AND = {
					is_scope_type = megastructure
					OR = {
						is_megastructure_type = mega_shipyard_3
						is_megastructure_type = mega_shipyard_restored
					}
				}
				AND = {
					is_scope_type = starbase
					has_starbase_size >= starbase_citadel
				}
			}
		}
		custom_tooltip = {
			fail_text = starbase_colossal_yards_trigger
			OR = {
				AND = {
					is_scope_type = megastructure
					OR = {
						is_megastructure_type = mega_shipyard_3
						is_megastructure_type = mega_shipyard_restored
					}
				}
				AND = {
					is_scope_type = starbase
					has_starbase_building = colossus_yards
				}
			}
		}
	}
	required_component_set = "power_core"
	required_component_set = "sensor_components"
	required_component_set = "combat_computers"
	required_component_set = "ftl_components"
	required_component_set = "thruster_components"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"

	empire_limit = 1
}

RG_armed_constructor_ship = {
	max_speed = 150
	acceleration = 0.1
	rotation_speed = 0.2
	max_hitpoints = 20000
	entity = "grey_tempesttw_constructor_entity"
	modifier = {
		ship_evasion_add = 10
		ship_armor_add = 12800
		ship_shield_add = 12800
	}
	ship_modifier = {
		ship_hyperlane_range_add = 3
		ship_piracy_suppression_add = 100
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	size_multiplier = 1
	fleet_slot_size = 1
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	combat_disengage_chance = 2
	enable_default_design = no	#if yes, countries will have an auto-generated design at start
	components_add_to_cost = no
	is_designable = no
	is_civilian = yes
	class = shipclass_constructor
	icon = ship_size_constructor
	valid_target_aggressive_stance = no
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "combat_computers"
	required_component_set = "science_cloaking_components"
}

RG_armed_science_ship = {
	max_speed = 200
	acceleration = 0.35
	rotation_speed = 0.2
	max_hitpoints = 12000
	entity = "grey_tempesttw_science_entity"
	modifier = {
		ship_evasion_add = 100
		ship_armor_add = 12000
		ship_shield_add = 12000
	}
	ship_modifier = {
		ship_hyperlane_range_add = 3
		ship_piracy_suppression_add = 100
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	size_multiplier = 1
	fleet_slot_size = 1
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	combat_size_multiplier = 1
	combat_disengage_chance = 2
	enable_default_design = no	#if yes, countries will have an auto-generated design at start
	components_add_to_cost = no
	is_designable = no
	is_civilian = yes
	class = shipclass_science_ship
	valid_target_aggressive_stance = no
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "combat_computers"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
}

# Gray Goo Interdictor
RG_graygoo_interdictor = {
	graphical_culture = no
	entity = "gatebuilder_01_cruiser_entity"
	max_speed = 150
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 20
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 2800
		ship_shield_add = 2800
	}
	max_hitpoints = 5000
	size_multiplier = 8
	fleet_slot_size = 4
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 4
	is_space_station = no
	icon = ship_size_military_4
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = line
	prerequisites = {
		"tech_gray_interdictor_4"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

# Gray Goo destroyer
RG_graygoo_destroyer = {
	graphical_culture = no
	entity = "grey_tempesttw_colonizer_entity"
	max_speed = 220
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 40
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 1100
		ship_shield_add = 1100
	}
	max_hitpoints = 2000
	size_multiplier = 2
	fleet_slot_size = 2
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	icon = ship_size_military_2
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = line
	prerequisites = {
		"tech_gray_interdictor_4"
	}
	ship_roles = { screen gunship artillery brawler }
	triggered_ship_roles = {
		{
			name = artillery_stealth
			trigger = { has_technology = tech_cloaking_2 }
		}
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	resources = {
		category = ships
		upkeep = {
			energy = @destroyer_upkeep_energy
			alloys = @destroyer_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

# Gray Goo Icebreaker
RG_graygoo_icebreaker_interdictor = {
	graphical_culture = no
	entity = "gatebuilder_01_cruiser_entity"
	max_speed = 200
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 20
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 4800
		ship_shield_add = 4800
	}
	max_hitpoints = 10000
	size_multiplier = 8
	fleet_slot_size = 4
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 4
	is_space_station = no
	icon = ship_size_military_4
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = colossus
	prerequisites = {
		"tech_gray_buffnut_6"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "science_cloaking_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

# Gray Goo Arsenal
RG_graygoo_Arsenal = {
	graphical_culture = no
	entity = "gatebuilder_01_cruiser_entity"
	max_speed = 150
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 20
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 2800
		ship_shield_add = 2800
	}
	max_hitpoints = 5000
	size_multiplier = 8
	fleet_slot_size = 4
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 64
	is_space_station = no
	icon = ship_size_military_4
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = line
	prerequisites = {
		"tech_gray_matter_spray_5"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

RG_graygoo_Buff = {
	graphical_culture = no
	entity = "gatebuilder_01_cruiser_entity"
	max_speed = 100
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 20
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 12800
		ship_shield_add = 12800
	}
	max_hitpoints = 20000
	size_multiplier = 8
	fleet_slot_size = 4
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 4
	is_space_station = no
	icon = ship_size_military_4
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = colossus
	prerequisites = {
		"tech_gray_buffnut_6"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "ship_aura_components"
	required_component_set = "science_cloaking_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

# Armed Transport
RG_armed_transport_ship = {
	max_speed = 150
	acceleration = 0.1
	rotation_speed = 0.2
	max_hitpoints = 20000
	entity = "grey_tempesttw_colonizer_entity"
	modifier = {
		ship_evasion_add = 10
		ship_armor_add = 12800
		ship_shield_add = 12800
	}
	ship_modifier = {
		ship_hyperlane_range_add = 3
		ship_piracy_suppression_add = 100
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	size_multiplier = 1
	fleet_slot_size = 1
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	icon = ship_size_transport
	is_designable = no
	class = shipclass_transport
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "sensor_components"
	required_component_set = "thruster_components"
	required_component_set = "combat_computers"
	required_component_set = "science_cloaking_components"
	components_add_to_cost = no
	resources = {
		category = ships
		cost = {
			food = @salvagecostmedium
		}
	}
}

# Armed Colonizer
RG_armed_colony_ship = {
	max_speed = 150
	acceleration = 0.1
	rotation_speed = 0.2
	max_hitpoints = 20000
	entity = "grey_tempesttw_colonizer_entity"
	modifier = {
		ship_evasion_add = 10
		ship_armor_add = 12800
		ship_shield_add = 12800
	}
	ship_modifier = {
		ship_hyperlane_range_add = 3
		ship_piracy_suppression_add = 100
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	size_multiplier = 1
	fleet_slot_size = 1
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	icon = ship_size_colonizer
	is_civilian = yes
	is_designable = no
	class = shipclass_colonizer
	required_component_set = "ftl_components"
	required_component_set = "sensor_components"
	required_component_set = "thruster_components"
	components_add_to_cost = no
	resources = {
		category = ships
		cost = {
			food = @salvagecostmedium
		}
	}
}

RG_orbital_ring_tier_1 = {
	max_speed = 0
	acceleration = 0
	rotation_speed = 0
	modifier = {
		ship_evasion_mult = -1
		ship_armor_add = 125000
		ship_shield_add = 125000
		starbase_defense_platform_capacity_add = 12
		starbase_module_capacity_add = 12
		starbase_building_capacity_add = 12
		starbase_shipyard_capacity_add = 12
		ship_cloaking_detection_add = 5
	}
	ship_modifier = {
		ship_fire_rate_mult = 1
		ship_weapon_range_mult = 1
	}
	max_hitpoints = 125000
	base_buildtime = 720
	resources = {
		category = starbase_stations
		cost = {
			alloys = 1000
			influence = 50
		}
		upkeep = {
			energy = 2
		}
	}
	combat_size_multiplier = 5
	size_multiplier = 4
	fleet_slot_size = 2
	section_slots = {
		"core" = {
			locator = "part1"
		}
		"1" = {
			locator = "part2"
		}
		"2" = {
			locator = "part3"
		}
	}
	potential_construction = {
		# This is build through a megastructure
		always = no
	}
	possible_construction = {
		always = no
	}
	is_designable = yes
	num_target_locators = 0
	is_space_station = no
	can_have_federation_design = no
	is_civilian = no
	components_add_to_cost = no
	can_disable = yes
	flip_control_on_disable = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	prerequisites = {
		"tech_object_gray_6"
	}
	class = shipclass_starbase
	required_component_set = "power_core"
	required_component_set = "sensor_components"
	required_component_set = "combat_computers"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
	build_block_radius = @build_block_orbital_ring
	formation_priority = @orbital_ring_formation_priority
	icon_frame = 7
	scales_with_planet = yes
	graphical_culture = yes
}
#reloadable with 'reload stats'
# This file is where you start when you want to configure something new, then go to sections
####################
# NOTE FOR MODDERS #
####################
# modifier = { } only takes the following modifiers
# hull, shield & armor add/mult and regen add perc/static
# evasion add/mult
# speed/base speed mult
# weapon damage mult
# upkeep mult
# for other modifiers, use ship_modifier = { }
# use_shipnames_from = other_size # allows a ship size to use names from another size
# icon = ship_size_military_1
#ship_size_military_1 is default. The following sprite keys are generated from it:
#GFX_text_<key>
#GFX_<key>
#GFX_<key>_top
#GFX_<key>_top_damaged
# icon_frame: now only used for starbases. Value of 2 or more means it shows up on the galaxy map, 1-5 denote which icon it uses on starbase sprite sheets (e.g. gfx/interface/icons/starbase_ship_sizes.dds)
####################
# Gray Goo Mothership
RG_graygoo_mothership = {
	graphical_culture = no
	entity = "gatebuilder_01_mothership_entity"
	max_speed = 100
	acceleration = 0.2
	rotation_speed = 0.15
	collision_radius = 5
	modifier = {
		ship_evasion_add = 50
		ship_armor_add = 25600
		ship_shield_add = 25600
	}
	ship_modifier = {
		ship_disengage_chance_reduction = 8
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	max_hitpoints = 25600
	size_multiplier = 16
	fleet_slot_size = 16
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 12
	is_space_station = no
	icon = ship_size_military_16
	base_buildtime = @titan_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = colossus
	prerequisites = {
		"tech_object_gray_5"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

RG_graygoo_capitalship = {
	graphical_culture = no
	entity = "grey_tempesttw_juggernaut_entity"
	max_speed = 100
	acceleration = 0.2
	rotation_speed = 0.15
	collision_radius = 5
	modifier = {
		ship_evasion_add = 100
		ship_armor_add = 128000
		ship_shield_add = 128000
		ship_weapon_damage = 2
		ship_cloaking_detection_add = 5
	}
	ship_modifier = {
		ship_disengage_chance_reduction = 8
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 2
		ship_armor_hardening_add = 2
	}
	max_hitpoints = 128000
	size_multiplier = 32
	fleet_slot_size = 32
	section_slots = {
		"core" = {
			locator = "part1"
		}
		"behind" = {
			locator = "part2"
		}
	}
	num_target_locators = 16
	is_space_station = no
	icon = ship_size_military_16
	base_buildtime = @titan_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = colossus
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	possible_construction = {
		always = no
	}
	combat_size_multiplier = 4
	prerequisites = {
		"tech_gray_juggernaut_8"
	}
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

RG_gray_juggernaut = {
	max_speed = 100
	entity = "grey_tempesttw_juggernaut_entity"
	acceleration = 0.2
	rotation_speed = 0.15
	collision_radius = @juggernaut_collision_radius
	modifier = {
		ship_evasion_add = 100
		ship_armor_add = 108000
		ship_shield_add = 108000
		ship_weapon_damage = 2
		starbase_shipyard_capacity_add = 12
		ship_cloaking_detection_add = 5
	}
	ship_modifier = {
		ship_disengage_chance_reduction = 8
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 2
		ship_armor_hardening_add = 2
	}
	max_hitpoints = 108000
	base_buildtime = @juggernaut_build_time
	combat_size_multiplier = 5
	size_multiplier = 32
	fleet_slot_size = 32
	section_slots = {
		"core" = {
			locator = "part1"
		}
		"behind" = {
			locator = "part2"
		}
	}
	num_target_locators = 16
	can_have_federation_design = no
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	icon_frame = 7	#probably unused, but mobile starbases are special
	icon = ship_size_military_64
	ship_class_icon_frame = 35
	default_behavior = colossus
	is_designable = yes
	prerequisites = {
		"tech_gray_juggernaut_8"
	}
	class = shipclass_starbase
	construction_type = starbase_shipyard
	potential_construction = {
		OR = {
			is_scope_type = starbase
			AND = {
				is_scope_type = megastructure
				OR = {
					is_megastructure_type = mega_shipyard_3
					is_megastructure_type = mega_shipyard_restored
				}
			}
		}
	}

	possible_construction = {
		custom_tooltip = {
			fail_text = starbase_citadel_trigger
			OR = {
				AND = {
					is_scope_type = megastructure
					OR = {
						is_megastructure_type = mega_shipyard_3
						is_megastructure_type = mega_shipyard_restored
					}
				}
				AND = {
					is_scope_type = starbase
					has_starbase_size >= starbase_citadel
				}
			}
		}
		custom_tooltip = {
			fail_text = starbase_colossal_yards_trigger
			OR = {
				AND = {
					is_scope_type = megastructure
					OR = {
						is_megastructure_type = mega_shipyard_3
						is_megastructure_type = mega_shipyard_restored
					}
				}
				AND = {
					is_scope_type = starbase
					has_starbase_building = colossus_yards
				}
			}
		}
	}
	required_component_set = "power_core"
	required_component_set = "sensor_components"
	required_component_set = "combat_computers"
	required_component_set = "ftl_components"
	required_component_set = "thruster_components"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"
	required_component_set = "ship_aura_components"

	empire_limit = 1
}

RG_armed_constructor_ship = {
	max_speed = 150
	acceleration = 0.1
	rotation_speed = 0.2
	max_hitpoints = 20000
	entity = "grey_tempesttw_constructor_entity"
	modifier = {
		ship_evasion_add = 10
		ship_armor_add = 12800
		ship_shield_add = 12800
	}
	ship_modifier = {
		ship_hyperlane_range_add = 3
		ship_piracy_suppression_add = 100
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	size_multiplier = 1
	fleet_slot_size = 1
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	combat_disengage_chance = 2
	enable_default_design = no	#if yes, countries will have an auto-generated design at start
	components_add_to_cost = no
	is_designable = no
	is_civilian = yes
	class = shipclass_constructor
	icon = ship_size_constructor
	valid_target_aggressive_stance = no
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "combat_computers"
	required_component_set = "science_cloaking_components"
}

RG_armed_science_ship = {
	max_speed = 200
	acceleration = 0.35
	rotation_speed = 0.2
	max_hitpoints = 12000
	entity = "grey_tempesttw_science_entity"
	modifier = {
		ship_evasion_add = 100
		ship_armor_add = 12000
		ship_shield_add = 12000
	}
	ship_modifier = {
		ship_hyperlane_range_add = 3
		ship_piracy_suppression_add = 100
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	size_multiplier = 1
	fleet_slot_size = 1
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	combat_size_multiplier = 1
	combat_disengage_chance = 2
	enable_default_design = no	#if yes, countries will have an auto-generated design at start
	components_add_to_cost = no
	is_designable = no
	is_civilian = yes
	class = shipclass_science_ship
	valid_target_aggressive_stance = no
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "combat_computers"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
}

# Gray Goo Interdictor
RG_graygoo_interdictor = {
	graphical_culture = no
	entity = "gatebuilder_01_cruiser_entity"
	max_speed = 150
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 20
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 2800
		ship_shield_add = 2800
	}
	max_hitpoints = 5000
	size_multiplier = 8
	fleet_slot_size = 4
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 4
	is_space_station = no
	icon = ship_size_military_4
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = line
	prerequisites = {
		"tech_gray_interdictor_4"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

# Gray Goo destroyer
RG_graygoo_destroyer = {
	graphical_culture = no
	entity = "grey_tempesttw_colonizer_entity"
	max_speed = 220
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 40
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 1100
		ship_shield_add = 1100
	}
	max_hitpoints = 2000
	size_multiplier = 2
	fleet_slot_size = 2
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	icon = ship_size_military_2
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = line
	prerequisites = {
		"tech_gray_interdictor_4"
	}
	ship_roles = { screen gunship artillery brawler }
	triggered_ship_roles = {
		{
			name = artillery_stealth
			trigger = { has_technology = tech_cloaking_2 }
		}
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	resources = {
		category = ships
		upkeep = {
			energy = @destroyer_upkeep_energy
			alloys = @destroyer_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

# Gray Goo Icebreaker
RG_graygoo_icebreaker_interdictor = {
	graphical_culture = no
	entity = "gatebuilder_01_cruiser_entity"
	max_speed = 200
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 20
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 4800
		ship_shield_add = 4800
	}
	max_hitpoints = 10000
	size_multiplier = 8
	fleet_slot_size = 4
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 4
	is_space_station = no
	icon = ship_size_military_4
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = colossus
	prerequisites = {
		"tech_gray_buffnut_6"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "science_cloaking_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

# Gray Goo Arsenal
RG_graygoo_Arsenal = {
	graphical_culture = no
	entity = "gatebuilder_01_cruiser_entity"
	max_speed = 150
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 20
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 2800
		ship_shield_add = 2800
	}
	max_hitpoints = 5000
	size_multiplier = 8
	fleet_slot_size = 4
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 64
	is_space_station = no
	icon = ship_size_military_4
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = line
	prerequisites = {
		"tech_gray_matter_spray_5"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

RG_graygoo_Buff = {
	graphical_culture = no
	entity = "gatebuilder_01_cruiser_entity"
	max_speed = 100
	acceleration = 0.25
	rotation_speed = 0.175
	collision_radius = 4
	modifier = {
		ship_evasion_add = 20
		ships_upkeep_mult = -1
		ship_piracy_suppression_add = 4
		ship_armor_add = 12800
		ship_shield_add = 12800
	}
	max_hitpoints = 20000
	size_multiplier = 8
	fleet_slot_size = 4
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 4
	is_space_station = no
	icon = ship_size_military_4
	base_buildtime = @battleship_build_time
	can_have_federation_design = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	enable_3dview_in_ship_browser = yes	#if yes, ship design will have a 3d view in the ship browser
	is_designable = yes
	default_behavior = colossus
	prerequisites = {
		"tech_gray_buffnut_6"
	}
	combat_disengage_chance = 1.25
	class = shipclass_military
	construction_type = starbase_shipyard
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "combat_computers"
	required_component_set = "thruster_components"
	required_component_set = "sensor_components"
	required_component_set = "ship_aura_components"
	required_component_set = "science_cloaking_components"
	resources = {
		category = ships
		upkeep = {
			energy = @battleship_upkeep_energy
			alloys = @battleship_upkeep_alloys
		}
	}
	min_upgrade_cost = {
		alloys = 8
	}
}

# Armed Transport
RG_armed_transport_ship = {
	max_speed = 150
	acceleration = 0.1
	rotation_speed = 0.2
	max_hitpoints = 20000
	entity = "grey_tempesttw_colonizer_entity"
	modifier = {
		ship_evasion_add = 10
		ship_armor_add = 12800
		ship_shield_add = 12800
	}
	ship_modifier = {
		ship_hyperlane_range_add = 3
		ship_piracy_suppression_add = 100
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	size_multiplier = 1
	fleet_slot_size = 1
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	icon = ship_size_transport
	is_designable = no
	class = shipclass_transport
	required_component_set = "power_core"
	required_component_set = "ftl_components"
	required_component_set = "sensor_components"
	required_component_set = "thruster_components"
	required_component_set = "combat_computers"
	required_component_set = "science_cloaking_components"
	components_add_to_cost = no
	resources = {
		category = ships
		cost = {
			food = @salvagecostmedium
		}
	}
}

# Armed Colonizer
RG_armed_colony_ship = {
	max_speed = 150
	acceleration = 0.1
	rotation_speed = 0.2
	max_hitpoints = 20000
	entity = "grey_tempesttw_colonizer_entity"
	modifier = {
		ship_evasion_add = 10
		ship_armor_add = 12800
		ship_shield_add = 12800
	}
	ship_modifier = {
		ship_hyperlane_range_add = 3
		ship_piracy_suppression_add = 100
		ships_upkeep_mult = -1
		ship_shield_hardening_add = 1
		ship_armor_hardening_add = 1
	}
	size_multiplier = 1
	fleet_slot_size = 1
	section_slots = {
		"mid" = {
			locator = "part1"
		}
	}
	num_target_locators = 2
	is_space_station = no
	icon = ship_size_colonizer
	is_civilian = yes
	is_designable = no
	class = shipclass_colonizer
	required_component_set = "ftl_components"
	required_component_set = "sensor_components"
	required_component_set = "thruster_components"
	components_add_to_cost = no
	resources = {
		category = ships
		cost = {
			food = @salvagecostmedium
		}
	}
}

RG_orbital_ring_tier_1 = {
	max_speed = 0
	acceleration = 0
	rotation_speed = 0
	modifier = {
		ship_evasion_mult = -1
		ship_armor_add = 125000
		ship_shield_add = 125000
		starbase_defense_platform_capacity_add = 12
		starbase_module_capacity_add = 12
		starbase_building_capacity_add = 12
		starbase_shipyard_capacity_add = 12
		ship_cloaking_detection_add = 5
	}
	ship_modifier = {
		ship_fire_rate_mult = 1
		ship_weapon_range_mult = 1
	}
	max_hitpoints = 125000
	base_buildtime = 720
	resources = {
		category = starbase_stations
		cost = {
			alloys = 1000
			influence = 50
		}
		upkeep = {
			energy = 2
		}
	}
	combat_size_multiplier = 5
	size_multiplier = 4
	fleet_slot_size = 2
	section_slots = {
		"core" = {
			locator = "part1"
		}
		"1" = {
			locator = "part2"
		}
		"2" = {
			locator = "part3"
		}
	}
	potential_construction = {
		# This is build through a megastructure
		always = no
	}
	possible_construction = {
		always = no
	}
	is_designable = yes
	num_target_locators = 0
	is_space_station = no
	can_have_federation_design = no
	is_civilian = no
	components_add_to_cost = no
	can_disable = yes
	flip_control_on_disable = yes
	enable_default_design = yes	#if yes, countries will have an auto-generated design at start
	prerequisites = {
		"tech_object_gray_6"
	}
	class = shipclass_starbase
	required_component_set = "power_core"
	required_component_set = "sensor_components"
	required_component_set = "combat_computers"
	required_component_set = "science_cloaking_components"
	required_component_set = "ship_aura_components"
	build_block_radius = @build_block_orbital_ring
	formation_priority = @orbital_ring_formation_priority
	icon_frame = 7
	scales_with_planet = yes
	graphical_culture = yes
}
