
##########
ult_fleet_dock = {
	icon = "GFX_spaceport_ult_fleet_dock"
	construction_days = 180
	
	potential = {
		exists = owner
		owner = { has_technology = tech_ult_ultimate_citadel }
		is_orbital_ring = no
	}	
	
	possible = {
		custom_tooltip = {
			fail_text = "requires_starport"
			has_starbase_size >= starbase_starport
		}
	}
	
	orbit_modifier = {
		ship_orbit_upkeep_mult = -0.50
	}
	
	station_modifier = {
		starbase_shipyard_capacity_add = 2
	}
	
	country_modifier = {
		country_naval_cap_add = 100
	}
	
	resources = {
		category = starbase_buildings
		cost = {
			alloys = 500
		}

		upkeep = {
			energy = 10
		}
	}

	show_in_tech = "tech_ult_ultimate_citadel"
	
	ai_build_at_chokepoint = yes
	ai_build_outside_chokepoint = yes
	ai_weight = {
		weight = 1000
	}
}



#########
ult_starfleet_academy = {
	icon = "GFX_spaceport_ult_starfleet_academy"
	construction_days = 360
	
	potential = {
		exists = owner
		owner = { has_technology = tech_ult_ultimate_citadel }
		is_orbital_ring = no
	}	
	
	possible = {
		custom_tooltip = {
			fail_text = "requires_starport"
			has_starbase_size >= starbase_starport
		}
	}
	
	ship_modifier = {
		ship_starting_experience_add = 1000
	}
	
	system_modifier = {
		planet_resettlement_unemployed_mult = 1.00
		pop_government_ethic_attraction = 0.25
	}

	country_modifier = {
		country_naval_cap_add = 100
		species_leader_exp_gain = 0.2
	}
	
	resources = {
		category = starbase_buildings
		cost = {
			alloys = 500
		}
		
		produces = {
			physics_research = 30
			society_research = 30
			engineering_research = 30
			unity = 20
		}

		upkeep = {
			energy = 10
		}
	}

	show_in_tech = "tech_ult_ultimate_citadel"
	
	ai_build_at_chokepoint = yes
	ai_build_outside_chokepoint = yes
	ai_weight = {
		weight = 1000
	}
}



##########
ult_matrix_defence = {
	icon = "GFX_spaceport_ult_matrix_defence"
	construction_days = 180

	potential = {
		exists = owner
		owner = { has_technology = tech_ult_ultimate_citadel }
		is_orbital_ring = no
	}		
	
	possible = {
		custom_tooltip = {
			fail_text = "requires_starport"
			has_starbase_size >= starbase_starport
		}
	}
	
	resources = {
		category = starbase_buildings
		cost = {
			alloys = 500
		}

		upkeep = {
			energy = 10
		}
	}
	
	station_modifier = {
		starbase_defense_platform_capacity_add = 20
		ship_weapon_range_mult = 1.00
		ship_hull_mult = 1.0
		ship_armor_mult = 2.0
		ship_shield_mult = 2.0
		ship_armor_hardening_add = 1.0
		ship_shield_hardening_add = 1.0
		ship_sensor_range_add = 5
		ship_hyperlane_range_add = 4
		ship_cloaking_detection_add = 6
	}
	
	defense_platform_modifier = {
		ship_weapon_range_mult = 1.00
		ship_hull_mult = 1.0
		ship_armor_mult = 1.0
		ship_shield_mult = 1.0
		ship_armor_hardening_add = 1.0
		ship_shield_hardening_add = 1.0
	}
	
	country_modifier = {
		country_naval_cap_add = 30
	}
	
	equipped_component = "STARBASE_AURA_COMMAND_CENTER"
	equipped_component = "STARBASE_AURA_ULT_MATRIX_DEFENCE"
	
	show_in_tech = "tech_ult_ultimate_citadel"
	
	ai_build_at_chokepoint = yes
	ai_build_outside_chokepoint = yes
	ai_weight = {
		weight = 1000
	}
}



#########
ult_deepspace_production = {
	icon = "GFX_spaceport_ult_deepspace_production"
	construction_days = 360
	
	potential = {
		exists = owner
		owner = { has_technology = tech_ult_ultimate_citadel }
		is_orbital_ring = no
	}	
	
	possible = {
		custom_tooltip = {
			fail_text = "requires_starport"
			has_starbase_size >= starbase_starport
		}
	}
	
	system_modifier = {
		station_gatherers_produces_mult = 1.00
	}
	
	country_modifier = {
		country_resource_max_add = 50000
	}
	
	resources = {
		category = starbase_buildings
		cost = {
			alloys = 500
		}
		
		produces = {
			energy = 50
			minerals = 50
			alloys = 20
			rare_crystals = 5
			volatile_motes = 5
			exotic_gases = 5
		}

		upkeep = {
		}
	}

	show_in_tech = "tech_ult_ultimate_citadel"
	
	ai_build_at_chokepoint = yes
	ai_build_outside_chokepoint = yes
	ai_weight = {
		weight = 1000
	}
}

