@city_cost = 500
district_machine_science = {
	base_buildtime = 480
	is_capped_by_modifier = no
	icon = district_hab_science

	prerequisites = {
		tech_planetary_government
	}

	show_on_uncolonized = {
		exists = from
		from = {
			is_machine_empire = yes
			NOT = { has_valid_civic = civic_machine_servitor }
		}
		OR = {
			is_planet_class = pc_machine
			pd_is_planet_class_machine = yes
		}
	}

	potential = {
		exists = owner
		owner = {
			is_machine_empire = yes
			NOT = { has_valid_civic = civic_machine_servitor }
		}
		OR = {
			is_planet_class = pc_machine
			pd_is_planet_class_machine = yes
		}
	}

	allow = {
		NOT = { has_modifier = resort_colony }
		NOT = { has_modifier = slave_colony }
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
		district_arcology_administrative
		district_arcology_religious
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = @city_cost
		}
		upkeep = {
			energy = 2
		}

	}

	planet_modifier = {
		job_calculator_add = 1
		planet_housing_add = 1
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_machine_empire = yes
				has_ascension_perk = ap_machine_worlds
			}
		}
		job_calculator_add = 1
		planet_housing_add = 1
	}


	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_machine_empire = yes
				has_ascension_perk = ap_machine_worlds
				has_tradition = tr_discovery_finish
			}
		}
		modifier = {
			job_calculator_add = 1
			planet_housing_add = 1
		}
	}

	triggered_desc = {
		text = job_calculator_effect_desc
	}
}