# Medical Research Institute
building_xt_medical_research_institute = {
    base_buildtime = 360
	base_cap_amount = 1

	category = amenity

	potential = {
		owner = {
			has_tradition = tr_xt_healthcare_4
		}
	}
	allow = { 
		has_major_upgraded_capital = yes
	}
	destroy_trigger = {
		exists = owner
		owner = { is_regular_empire = no }
	}
	planet_modifier = {
		job_healthcare_add = 2
		job_head_researcher_add = 1
		planet_doctors_society_research_produces_add = 2
	}
	resources = {
		category = planet_buildings
		cost = {
			minerals = 500
			exotic_gases = 50
		}
		upkeep = {
			energy = 5
			exotic_gases = 1
		}
	}
}
# Synthetic Protein Vats
building_xt_synthetic_protein_vats = {
	base_buildtime = 360
	base_cap_amount = 1

	category = resource

	potential = {
		owner = {
			has_tradition = tr_xt_agriculture_5
		}
	}
	allow = {
		has_major_upgraded_capital = yes
	}
	destroy_trigger = {
		exists = owner
		owner = { is_regular_empire = no }
	}
	planet_modifier = {
		job_researcher_add = 1
		planet_farmers_food_produces_mult = 0.1
	}
	resources = {
		category = planet_buildings
		cost = {
			minerals = 500
			volatile_motes = 50
		}
		upkeep = {
			energy = 10
			volatile_motes = 1
		}
	}
}
# Hyperlane Express Depot
building_xt_hyperlane_express_depot = {
	base_buildtime = 360
	base_cap_amount = 1
	custom_tooltip = building_xt_hyperlane_express_depot_effects

	category = resource

	potential = {
		owner = {
			has_tradition = tr_xt_consumerism_3
		}
	}
	destroy_trigger = {
		exists = owner
		owner = { NOT = { has_tradition = tr_xt_consumerism_3 } }
	}
	planet_modifier = {
		job_merchant_add = 1
	}
	on_built = {
		change_variable = {
			which = xt_courier_depot_count
			value = 1
		}
	}
	on_destroy = {
		change_variable = {
			which = xt_courier_depot_count
			value = -1
		}
	}
	resources = {
		category = planet_buildings
		cost = {
			minerals = 500
		}
		upkeep = {
			energy = 4
			consumer_goods = 2
		}
	}
}

building_xt_grand_museum = {
	base_buildtime = 360
	empire_limit = 1
	
	custom_tooltip = building_xt_grand_museum_effects
	category = unity

	potential = {
		owner = {
			has_tradition = tr_xt_archaeology_5
		}
	}
	destroy_trigger = {
		exists = owner
		owner = { NOT = { has_tradition = tr_xt_archaeology_5 } }
	}
	resources = {
		category = planet_buildings
		cost = {
			minerals = 800
			minor_artifacts = 100
		}
		upkeep = {
			energy = 6
			consumer_goods = 2
		}
		produces = {
			unity = 5
			influence = 0.5
			multiplier = owner.xt_relic_count
		}
	}
	country_modifier = {
		ship_archaeological_site_clues_add = 3
	}
}