lea_defensive_upgrade_starbase = {
	icon = "GFX_sb_lea_defensive_starbase"
	construction_days = 720

	potential = {
		exists = owner
		is_orbital_ring = no
		owner = { has_technology = tech_ideal_fortress_second }
	}

	possible = {
		NOT = {has_starbase_building = lea_offensive_upgrade_starbase}
		solar_system = { any_system_planet = { is_planet_class = ideal_fortress_world } }
		custom_tooltip = {
			fail_text = "requires_citadel"
			has_starbase_size >= starbase_citadel
		}
	}

	resources = {
		category = starbase_modules
		cost = {
			alloys = 500
			sr_living_metal = 500
			nanites = 500
		}

		upkeep = {
			alloys = 2
		}
	}
	
	equipped_component = "LEA_STARBASE_DEFENSE_AURA"
	
	station_modifier = {
		ship_hull_mult = 0.20
		ship_armor_mult = 0.20
		ship_shield_mult = 0.20
		ship_fire_rate_mult = 0.20
	}
	
	show_in_tech = "tech_ideal_fortress_second"
}

lea_offensive_upgrade_starbase = {
	icon = "GFX_sb_lea_offensive_starbase"
	construction_days = 720

	potential = {
		exists = owner
		is_orbital_ring = no
		owner = { has_technology = tech_ideal_fortress_second }
	}

	possible = {
		NOT = {has_starbase_building = lea_defensive_upgrade_starbase}
		solar_system = { any_system_planet = { is_planet_class = ideal_fortress_world } }
		custom_tooltip = {
			fail_text = "requires_citadel"
			has_starbase_size >= starbase_citadel
		}
	}

	resources = {
		category = starbase_modules
		cost = {
			alloys = 500
			sr_living_metal = 500
			nanites = 500
		}

		upkeep = {
			alloys = 2
		}
	}
	
	equipped_component = "LEA_STARBASE_OFFENSE_AURA"
	
	station_modifier = {
		ship_hull_mult = 0.20
		ship_armor_mult = 0.20
		ship_shield_mult = 0.20
		ship_fire_rate_mult = 0.20
	}
	
	show_in_tech = "tech_ideal_fortress_second"
}