newarcologies_refinery_automation = {
	category = "planet_automation_designation_construction"

	available = {
		OR = {
			has_designation = col_manufactorum_refinery
			has_designation = col_genoworld_refinery
		}
	}
	
	prio_districts = {
		district_arcology_refinery
		district_genorefinery
	}

	buildings = {
		1 = {
			building = building_capital
			available = {
				always = yes
			}
		}

		5 = {
			building = building_chemical_plant
			available = {
				num_buildings = { type = building_chemical_plant value = 0 }
			}
		}

		6 = {
			building = building_refinery
			available = {
				num_buildings = { type = building_refinery value = 0 }
			}
		}

		6 = {
			building = building_crystal_plant
			available = {
				num_buildings = { type = building_crystal_plant value = 0 }
			}
		}

		5 = {
			building = building_chemical_plant
			available = {
				num_buildings = { type = building_chemical_plant value = 1 }
			}
		}

		6 = {
			building = building_refinery
			available = {
				num_buildings = { type = building_refinery value = 1 }
			}
		}

		6 = {
			building = building_crystal_plant
			available = {
				num_buildings = { type = building_crystal_plant value = 1 }
			}
		}

		5 = {
			building = building_chemical_plant
			available = {
				num_buildings = { type = building_chemical_plant value = 2 }
			}
		}

		6 = {
			building = building_refinery
			available = {
				num_buildings = { type = building_refinery value = 2 }
			}
		}

		6 = {
			building = building_crystal_plant
			available = {
				num_buildings = { type = building_crystal_plant value = 2 }
			}
		}
	}
}