building_plentiful_traditions_clone_vats = {
	base_buildtime = 900

	category = pop_assembly


	planet_limit = {
		base = 1
		modifier = {
			exists = owner
			owner = {
				has_tradition = tr_cloning_finish
			}
			has_upgraded_capital = yes
			add = 1
		}
		modifier = {
			exists = owner
			owner = {
				has_tradition = tr_cloning_finish
			}
			has_major_upgraded_capital = yes
			add = 1
		}
		modifier = {
			exists = owner
			owner = {
				has_tradition = tr_cloning_finish
			}
			has_fully_upgraded_capital = yes
			add = 1
		}
	}

	building_sets = {
		government
		urban
	}

	potential = {
		exists = owner
		NOT = { has_modifier = resort_colony }
		OR = {
			owner = { is_ai = no }
			NOT = { exists = assembling_species }
			assembling_species = { is_organic_species = yes }
		}
		OR = {
			owner = { is_ai = no }
			NAND = {
				free_district_slots = 0
				free_building_slots <= 1
				free_housing <= 0
				free_jobs <= 0
			}
		}
		owner = {
			has_active_tradition = tr_plentiful_mutagenesis_adopt_machine
		}
	}

	destroy_trigger = {
		exists = owner
		NOT = { 
			owner = { has_active_tradition = tr_plentiful_mutagenesis_adopt_machine }
		}
		OR = {
			AND = {
				owner = { is_ai = yes }
				free_district_slots = 0
				free_building_slots = 0
				free_housing <= 0
				free_jobs <= 0
			}
		}
	}

	planet_modifier = {
		founder_species_growth_mult = 0.50
	}

	resources = {
		category = planet_buildings_clone_vats
		cost = {
			alloys = 500
			food = 200
		}
		upkeep = {
			energy = 2
			food = 2
		}
	}

	ai_weight = {
		weight = 100
		modifier = {
			factor = 0
			OR = {
				free_district_slots = 0
				num_buildings = { type = any value >= 14 }
				is_planet_class = pc_habitat
			}
		}
		modifier = {
			weight = 250
			planet = {
				owner = {
					any_owned_pop_group =  {
						is_organic_species = yes
					}
				}
			}
		}
	}
}

