### PHANON ###

acot_theta_supply_bay = {
	icon = "GFX_spaceport_module_acot_theta_supply_bay"
	construction_days = 360
	
	potential = {
		exists = owner
		OR = {	
			has_starbase_size >= acot_precusor_theta_starcitadel
			has_starbase_size >= acot_precusor_orbital_ring_t5	
		}	
		owner = { 
			has_technology = tech_precursor_theia_design
		}	
	}


	resources = {
		category = starbase_buildings
		cost = {
			alloys = 5000000
			sm_sr_perfect_runic_energy = 100
		}
		upkeep = {	
			energy = 50
		}
		produces = {
			minerals = 300000
			alloys = 300000
			food = 300000
			consumer_goods = 300000
		}
	}

	orbit_modifier = {
		ship_orbit_upkeep_mult = -0.75
	}

	country_modifier = {
		country_resource_max_add = 2000000
	}

	ai_build_at_chokepoint = yes
	ai_build_outside_chokepoint = yes
	ai_weight = {
		weight = 50
	}
}

acot_theta_super_reactor = {
	icon = "GFX_spaceport_module_acot_theta_super_reactor"
	construction_days = 360

	potential = {
		exists = owner
		OR = {	
			has_starbase_size >= acot_precusor_theta_starcitadel
			has_starbase_size >= acot_precusor_orbital_ring_t5	
		}			
		owner = { 
			has_technology = tech_precursor_theia_design
		}	
	}

	resources = {
		category = starbase_buildings
		cost = {
			alloys = 5000000
			sm_sr_perfect_runic_energy = 100
		}
		produces = {
			energy = 1000000
			acot_sr_stellarite = 50000
			
		}
	}


	ai_build_at_chokepoint = no
	ai_build_outside_chokepoint = yes
	ai_weight = {
		weight = 50
	}
}

acot_theta_starbase_super_computer = {
	icon = "GFX_spaceport_module_acot_theta_precursor_computer"
	construction_days = 360
	
	potential = {
		exists = owner
		OR = {	
			has_starbase_size >= acot_precusor_theta_starcitadel
			has_starbase_size >= acot_precusor_orbital_ring_t5	
		}		
		owner = { 
			has_technology = tech_precursor_theia_design
		}	
	}
	
	possible = {
		OR = {
			has_starbase_module = acot_theta_starbase_shipyard
			has_starbase_module = acot_theta_starbase_anchorage
			has_starbase_module = acot_theta_ring_shipyard
			has_starbase_module = acot_theta_ring_anchorage
		}
	}

	resources = {
		category = starbase_buildings
		cost = {
			alloys = 5000000
			sm_sr_perfect_runic_energy = 100
		}
		upkeep = {	
			energy = 50
		}
	}

	ship_modifier = {
		ship_starting_experience_add = 25000
	}

	station_modifier = {
		starbase_defense_platform_capacity_add = 1000
		shipclass_military_station_build_speed_mult = 20.00
		starbase_shipyard_build_speed_mult = 2
	}

	#custom_tooltip = sm_naval_logistics_office_desc_modifier
	
	ai_build_at_chokepoint = no
	ai_build_outside_chokepoint = yes
	ai_weight = {
		weight = 200
		modifier = {
			factor = 0
			count_starbase_modules = {
				type = acot_theta_starbase_anchorage
				count < 3
			}
		}
	}
}

acot_theta_starbase_aura_generator = {
	icon = "GFX_spaceport_module_acot_theta_starbase_aura_generator"
	construction_days = 360
	
	potential = {
		exists = owner
		OR = {	
			has_starbase_size >= acot_precusor_theta_starcitadel
			has_starbase_size >= acot_precusor_orbital_ring_t5	
		}			
		owner = { 
			has_technology = tech_precursor_theia_design
		}	
	}
	
	possible = {
	}

	resources = {
		category = starbase_buildings
		cost = {
			alloys = 5000000
			sm_sr_perfect_runic_energy = 100
		}
		upkeep = {	
			energy = 50
		}
	}

	equipped_component = "ACOT_THETA_STARBASE_AURA"
	
	ai_build_at_chokepoint = yes
	ai_build_outside_chokepoint = no
	ai_weight = {
		weight = 10
	}
}

acot_theta_starbase_reinforced_wall = {
	icon = "GFX_spaceport_module_acot_theta_precursor_reinforced_wall"
	construction_days = 120
	
	potential = {
		exists = owner
		OR = {	
			has_starbase_size >= acot_precusor_theta_starcitadel
			has_starbase_size >= acot_precusor_orbital_ring_t5	
		}			
		owner = { 
			has_technology = tech_precursor_theia_design
		}	
	}
	
	possible = {
	}

	resources = {
		category = starbase_buildings
		cost = {
			alloys = 5000000
			sm_sr_perfect_runic_energy = 100
		}
		upkeep = {	
			energy = 50
		}
	}


	station_modifier = {
		ship_hull_add = 5000000
		ship_armor_mult = 1.00
		ship_shield_mult = 1.00
	}

	
	ai_build_at_chokepoint = yes
	ai_build_outside_chokepoint = no
	ai_weight = {
		weight = 200
		modifier = {
			factor = 0
			count_starbase_modules = {
				type = acot_theta_starbase_anchorage
				count < 3
			}
		}
	}
}

acot_sb_perfect_phanon_assembly = {
	icon = "GFX_acot_sb_perfect_phanon_assembly"
	construction_days = 1440
	
	show_in_tech = tech_theta_phanon_assembly

potential = {
	exists = owner
	owner = { 
		has_technology = tech_theta_phanon_assembly	
	}			
}

#planet_modifier = {
#}
#
#possible = {
#	custom_tooltip = {
#		NOR = {
#			has_starbase_size >= acot_star_commander
#		}
#	}
#}

	resources = {
		category = starbase_buildings
		cost = {
			alloys = 10000000
			energy = 10000000
			sm_sr_perfect_runic_energy = 500
		}
		upkeep = {
			energy = 500000
			sm_sr_perfect_runic_energy = 250
		}
	}

	custom_tooltip = sm_acot_sb_perfect_phanon_assembly_tooltip
	
	orbit_modifier = {
		ship_orbit_upkeep_mult = -0.50
	}

	station_modifier = {
		starbase_shipyard_build_cost_mult = 0.20
	}

	ai_build_at_chokepoint = yes
	ai_build_outside_chokepoint = yes
	ai_weight = {
		weight = 0
	}
}
