@base_cost = 300
@city_cost = 500

# New Arcology Districts

district_na_arcology_housing = {
	base_buildtime = 600
	icon = district_arcology_housing
	exempt_from_ai_planet_specialization = yes
	overlay_icon = GFX_district_government
	
	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		exists = from
		from = { is_wilderness_empire = no }
		OR = {
			uses_district_set = manufactorum
			uses_district_set = agropolis
			uses_district_set = fortoria
		}
	}

	potential = {
		OR = {
			uses_district_set = manufactorum
			uses_district_set = agropolis
			uses_district_set = fortoria
		}
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
		district_craglands
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
		}
		upkeep = {
			energy = 5
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { has_active_tradition = tr_prosperity_public_works }
		}
		modifier = {
			planet_housing_add = 300
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_housing_1
			}
		}
		modifier = {
			planet_housing_add = 300
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_housing_2
				NOT = { has_valid_civic = civic_agrarian_idyll }
			}
		}
		modifier = {
			planet_housing_add = 300
		}
	}
}

district_na_arcology_industrial = {
	base_buildtime = 600
	overlay_icon = GFX_district_mixed_industry
	
	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		exists = from
		from = { is_wilderness_empire = no }
		uses_district_set = manufactorum
	}

	potential = {
		uses_district_set = manufactorum
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
		district_craglands
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			rare_crystals = 50
		}
		upkeep = {
			energy = 5
			rare_crystals = 1
		}
		upkeep = {
			trigger = {
				exists = owner
				owner = {
					has_edict = industrial_maintenance
				}
			}
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	inline_script = {
		script = jobs/industrial_districts_factory_add
		AMOUNT = 300
	}
	
	inline_script = {
		script = jobs/industrial_districts_foundry_add
		AMOUNT = 300
	}
}

district_na_arcology_arms_industry = {
	base_buildtime = 600
	overlay_icon = GFX_district_alloys
	
	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		exists = from
		from = { is_wilderness_empire = no }
		uses_district_set = fortoria
	}

	potential = {
		uses_district_set = fortoria
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
		district_craglands
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			volatile_motes = 50
		}
		upkeep = {
			energy = 5
			volatile_motes = 1
		}
		upkeep = {
			trigger = {
				exists = owner
				owner = {
					has_edict = industrial_maintenance
				}
			}
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	inline_script = {
		script = jobs/industrial_districts_foundry_add
		AMOUNT = 600
	}
}

district_na_arcology_civilian_industry = {
	base_buildtime = 600
	overlay_icon = GFX_district_consumer_goods
	
	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		exists = owner
		owner = {
			country_uses_consumer_goods = yes
		}
		exists = from
		from = { is_wilderness_empire = no }
		uses_district_set = agropolis
	}

	potential = {
		uses_district_set = agropolis
		exists = owner
		owner = {
			OR = {
				is_gestalt = no
				has_valid_civic = civic_machine_servitor
			}
		}
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
		district_craglands
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			rare_crystals = 50
		}
		upkeep = {
			energy = 5
			rare_crystals = 1
		}
		upkeep = {
			trigger = {
				exists = owner
				owner = {
					has_edict = industrial_maintenance
				}
			}
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	inline_script = {
		script = jobs/industrial_districts_factory_add
		AMOUNT = 600
	}
}

district_arcology_assembly = {
	base_buildtime = 600
	
	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		uses_district_set = manufactorum
	}

	potential = {
		uses_district_set = manufactorum
		exists = owner
		OR = {
			owner = { is_ai = no }
			NOT = { exists = assembling_species }
			assembling_species = { is_robotic_species = yes }
		}
		owner = {
			is_regular_empire = yes
			NOT = { has_policy_flag = robots_outlawed }
			OR = {
				is_ai = no
				NOT = { has_ascension_perk = ap_engineered_evolution }
				is_materialist = yes
			}
		}
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			rare_crystals = 50
		}
		upkeep = {
			energy = 5
			rare_crystals = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
		job_assembly_operator_add = 600
	}

	triggered_desc = {
		trigger = {
			exists = owner
		}
		text = job_assembly_operator_effect_desc
	}
}

district_arcology_refinery = {
	base_buildtime = 600
	overlay_icon = GFX_district_exotic_gases
	
	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		uses_district_set = manufactorum
	}

	potential = {
		uses_district_set = manufactorum
		exists = owner
		owner = {
			OR = {
				has_technology = tech_exotic_gases
				has_technology = tech_volatile_motes
				has_technology = tech_rare_crystals
			}
		}
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			volatile_motes = 50
		}
		upkeep = {
			energy = 5
			volatile_motes = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_exotic_gases
				is_gestalt = no
			}
		}
		modifier = {
			job_gas_refiner_add = 200
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_exotic_gases
				is_gestalt = yes
			}
		}
		modifier = {
			job_gas_refiner_drone_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_volatile_motes
				is_gestalt = no
			}
		}
		modifier = {
			job_chemist_add = 200
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_volatile_motes
				is_gestalt = yes
			}
		}
		modifier = {
			job_chemist_drone_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_rare_crystals
				is_gestalt = no
			}
		}
		modifier = {
			job_translucer_add = 200
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_rare_crystals
				is_gestalt = yes
			}
		}
		modifier = {
			job_translucer_drone_add = 200
		}
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_exotic_gases
				is_gestalt = no
			}
		}
		text = job_gas_refiner_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_exotic_gases
				is_gestalt = yes
			}
		}
		text = job_gas_refiner_drone_effect_desc
	}
	
	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_volatile_motes
				is_gestalt = no
			}
		}
		text = job_chemist_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_volatile_motes
				is_gestalt = yes
			}
		}
		text = job_chemist_drone_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_rare_crystals
				is_gestalt = no
			}
		}
		text = job_translucer_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_rare_crystals
				is_gestalt = yes
			}
		}
		text = job_translucer_drone_effect_desc
	}
}

district_arcology_farming = {
	base_buildtime = 600
	icon = district_farming
	overlay_icon = GFX_district_food
	
	zone_slots = {
		slot_food
	}

	show_on_uncolonized = {
		uses_district_set = agropolis
	}

	potential = {
		uses_district_set = agropolis
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			exotic_gases = 50
		}
		upkeep = {
			energy = 5
			exotic_gases = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	inline_script = {
		script = jobs/farmers_add
		AMOUNT = 600
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_valid_civic = civic_agrarian_idyll
			}
		}
		modifier = {
			planet_housing_add = 400
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_housing_agrarian_idyll
				has_valid_civic = civic_agrarian_idyll
			}
		}
		modifier = {
			planet_housing_add = 200
		}
	}

	inline_script = {
		script = districts/district_triggered_name_farming
	}

	inline_script = {
		script = districts/district_triggered_flavor_desc_farming
	}

	destroy_trigger = {
		exists = owner
		AND = {
			owner = { is_ai = yes }
			owner = { country_uses_food = no }
		}
	}
	
	ai_weight_coefficient = 0.8
}

district_na_arcology_leisure = {
	base_buildtime = 600
	overlay_icon = GFX_district_amenities
	
	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		uses_district_set = agropolis
		from = {
			is_regular_empire = yes
			NOT = { has_civic = civic_dystopian_society }
			is_wilderness_empire = no
		}
	}

	potential = {
		uses_district_set = agropolis
		owner = {
			exists = owner
			is_regular_empire = yes
			NOT = { has_civic = civic_dystopian_society }
		}
	}

	conversion_ratio = 1
	convert_to = {
		district_arcology_organic_housing
		district_city
		district_nexus
		district_hive
		district_arcology_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			exotic_gases = 50
		}
		upkeep = {
			energy = 5
			exotic_gases = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	inline_script = {
		script = jobs/entertainers_add
		AMOUNT = 600
	}
}

district_na_arcology_fortress = {
	base_buildtime = 600
	overlay_icon = GFX_district_fortress
	
	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		uses_district_set = fortoria
	}

	potential = {
		uses_district_set = fortoria
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			volatile_motes = 50
		}
		upkeep = {
			energy = 5
			volatile_motes = 1
		}
		upkeep = {
			trigger = {
				exists = owner
				owner = {
					has_edict = industrial_maintenance
				}
			}
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_soldier_add = 600
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_warrior_drone_add = 600
		}
	}
	
	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		text = job_warrior_drone_effect_desc
	}
	
	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = no }
		}
		text = job_soldier_effect_desc
	}
}

district_arcology_intelligence = {
	base_buildtime = 600
	
	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		uses_district_set = fortoria
	}

	potential = {
		uses_district_set = fortoria
		exists = owner
		owner = { is_regular_empire = yes }
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			volatile_motes = 50
		}
		upkeep = {
			energy = 5
			volatile_motes = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
		job_operative_add = 400
		job_enforcer_add = 200
	}

	triggered_desc = {
		text = job_operative_effect_desc
	}

	triggered_desc = {
		text = job_enforcer_effect_desc
	}
}

district_machine_nexus = {
	base_buildtime = 600
	icon = district_nexus
	overlay_icon = GFX_district_government
	
	exempt_from_ai_planet_specialization = yes

	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		exists = from
		from = {
			is_machine_empire = yes
		}
		uses_district_set = machinarium
	}

	potential = {
		exists = owner
		owner = {
			is_machine_empire = yes
		}
		uses_district_set = machinarium
		NAND = {
			is_capital = yes
			owner = {
				has_menace_perk = menp_behemoth_mind_meld
			}
		}
	}

	allow = {
		NOT = { has_modifier = resort_colony }
	}

	conversion_ratio = 1
	convert_to = {
		district_arcology_housing
		district_rw_nexus
		district_city
		district_hive
		district_craglands
		district_mindlink
	}

	resources = {
		category = planet_districts_cities
		cost = {
			minerals = 1000
		}
		upkeep = {
			energy = 5
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { has_technology = tech_housing_1 }
		}
		modifier = {
			planet_housing_add = 300
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { has_technology = tech_housing_2 }
		}
		modifier = {
			planet_housing_add = 300
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { has_active_tradition = tr_prosperity_optimized_nexus }
		}
		modifier = {
			planet_housing_add = 300
		}
	}

	inline_script = {
		script = districts/district_triggered_name_machine
	}

	inline_script = {
		script = districts/district_triggered_flavor_desc_machine
	}

	inline_script = {
		script = districts/ai_urban_district_extra_weighting
	}
}

district_machine_arms_industry = {
	base_buildtime = 600
	icon = district_na_arcology_arms_industry
	overlay_icon = GFX_district_alloys
	
	zone_slots = {
		slot_nexus
	}

	show_on_uncolonized = {
		exists = from
		from = { is_wilderness_empire = no }
		uses_district_set = machinarium
	}

	potential = {
		uses_district_set = machinarium
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
		district_craglands
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			volatile_motes = 50
		}
		upkeep = {
			energy = 5
			volatile_motes = 1
		}
		upkeep = {
			trigger = {
				exists = owner
				owner = {
					has_edict = industrial_maintenance
				}
			}
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	inline_script = {
		script = jobs/industrial_districts_foundry_add
		AMOUNT = 600
	}
}

district_machine_assembly = {
	base_buildtime = 600
	
	zone_slots = {
		slot_nexus
	}

	show_on_uncolonized = {
		uses_district_set = machinarium
	}

	potential = {
		uses_district_set = machinarium
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			rare_crystals = 50
		}
		upkeep = {
			energy = 5
			rare_crystals = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
		job_assembly_drone_add = 600
	}

	triggered_desc = {
		trigger = {
			exists = owner
		}
		text = job_assembly_drone_effect_desc
	}
}

district_machine_fortress = {
	base_buildtime = 600
	overlay_icon = GFX_district_fortress
	
	zone_slots = {
		slot_nexus
	}

	show_on_uncolonized = {
		uses_district_set = machinarium
	}

	potential = {
		uses_district_set = machinarium
	}

	conversion_ratio = 1
	convert_to = {
		district_city
		district_nexus
		district_hive
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			volatile_motes = 50
		}
		upkeep = {
			energy = 5
			volatile_motes = 1
		}
		upkeep = {
			trigger = {
				exists = owner
				owner = {
					has_edict = industrial_maintenance
				}
			}
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_soldier_add = 600
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_warrior_drone_add = 600
		}
	}
	
	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		text = job_warrior_drone_effect_desc
	}
	
	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = no }
		}
		text = job_soldier_effect_desc
	}
}

district_genohive = {
	base_buildtime = 600
	icon = district_hive
	overlay_icon = GFX_district_government
	
	exempt_from_ai_planet_specialization = yes

	zone_slots = {
		slot_city_government
		slot_city_01
		slot_city_02
	}

	show_on_uncolonized = {
		exists = from
		from = { is_hive_empire = yes }
		uses_district_set = genoworld
		exists = from
		from = { is_wilderness_empire = no }
	}

	potential = {
		exists = owner
		owner = {
			is_hive_empire = yes
			is_wilderness_empire = no
		}
		uses_district_set = genoworld
	}

	allow = {
		NOT = { has_modifier = resort_colony }
	}

	conversion_ratio = 1
	convert_to = {
		district_arcology_housing
		district_rw_hive
		district_nexus
		district_city
		district_craglands
		district_mindlink
	}

	resources = {
		category = planet_districts_cities
		cost = {
			food = 1000
		}
		upkeep = {
			energy = 5
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	triggered_planet_modifier = {
		potential = {
			is_planet_class = pc_hive
		}
		modifier = {
			planet_housing_add = 600
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { has_technology = tech_housing_1 }
		}
		modifier = {
			planet_housing_add = 300
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { has_technology = tech_housing_2 }
		}
		modifier = {
			planet_housing_add = 300
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { has_active_tradition = tr_prosperity_extended_hives }
		}
		modifier = {
			planet_housing_add = 300
		}
	}

	inline_script = {
		script = districts/district_triggered_name_hive
	}

	inline_script = {
		script = districts/district_triggered_flavor_desc_hive
	}

	inline_script = {
		script = districts/ai_urban_district_extra_weighting
	}
}

district_genotrade = {
	base_buildtime = 600
	overlay_icon = GFX_district_trade

	zone_slots = {
		slot_hive
	}

	show_on_uncolonized = {
		exists = from
		from = { is_wilderness_empire = no }
		uses_district_set = genoworld
		NOT = { has_modifier = resort_colony }
	}

	potential = {
		uses_district_set = genoworld
		OR = {
			NOT = { exists = owner }
			AND = {
				exists = owner
				owner = { is_wilderness_empire = no }
			}
		}
	}

	conversion_ratio = 1
	convert_to = {
		district_nexus_1
		district_generator
		district_photosynthesis_fields
	}

	resources = {
		category = planet_districts
		cost = {
			food = 1000
			rare_crystals = 50
		}
		upkeep = {
			energy = 5
			rare_crystals = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	inline_script = {
		script = jobs/trader_add
		AMOUNT = 600
	}
}

district_genorefinery = {
	base_buildtime = 600
	overlay_icon = GFX_district_exotic_gases

	zone_slots = {
		slot_hive
	}

	show_on_uncolonized = {
		exists = from
		from = { is_wilderness_empire = no }
		uses_district_set = genoworld
		NOT = { has_modifier = resort_colony }
	}

	potential = {
		uses_district_set = genoworld
		OR = {
			NOT = { exists = owner }
			AND = {
				exists = owner
				owner = { is_wilderness_empire = no }
			}
		}
	}

	conversion_ratio = 1
	convert_to = {
		district_nexus_2
		district_mining
		district_hollow_mountains
	}

	resources = {
		category = planet_districts
		cost = {
			food = 1000
			volatile_motes = 50
		}
		upkeep = {
			energy = 5
			volatile_motes = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_exotic_gases
				is_gestalt = no
			}
		}
		modifier = {
			job_gas_refiner_add = 200
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_exotic_gases
				is_gestalt = yes
			}
		}
		modifier = {
			job_gas_refiner_drone_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_volatile_motes
				is_gestalt = no
			}
		}
		modifier = {
			job_chemist_add = 200
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_volatile_motes
				is_gestalt = yes
			}
		}
		modifier = {
			job_chemist_drone_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_rare_crystals
				is_gestalt = no
			}
		}
		modifier = {
			job_translucer_add = 200
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_rare_crystals
				is_gestalt = yes
			}
		}
		modifier = {
			job_translucer_drone_add = 200
		}
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_exotic_gases
				is_gestalt = no
			}
		}
		text = job_gas_refiner_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_exotic_gases
				is_gestalt = yes
			}
		}
		text = job_gas_refiner_drone_effect_desc
	}
	
	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_volatile_motes
				is_gestalt = no
			}
		}
		text = job_chemist_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_volatile_motes
				is_gestalt = yes
			}
		}
		text = job_chemist_drone_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_rare_crystals
				is_gestalt = no
			}
		}
		text = job_translucer_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = {
				has_technology = tech_rare_crystals
				is_gestalt = yes
			}
		}
		text = job_translucer_drone_effect_desc
	}
}

district_genofarms = {
	base_buildtime = 600
	overlay_icon = GFX_district_food

	zone_slots = {
		slot_food
	}

	show_on_uncolonized = {
		exists = from
		from = { is_wilderness_empire = no }
		uses_district_set = genoworld
		NOT = { has_modifier = resort_colony }
	}

	potential = {
		uses_district_set = genoworld
		NOT = {
			AND = {
				exists = owner
				owner = {
					is_ai = yes
					country_uses_food = no
				}
			}
		}
		OR = {
			NOT = { exists = owner }
			AND = {
				exists = owner
				owner = { is_wilderness_empire = no }
			}
		}
	}

	conversion_ratio = 1
	convert_to = {
		district_nexus_3
		district_farming
		district_orchard_forests
	}

	resources = {
		category = planet_districts
		cost = {
			food = 1000
			exotic_gases = 50
		}
		upkeep = {
			energy = 5
			exotic_gases = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1500
		job_genofarmer_drone_add = 600
	}

	triggered_desc = {
		trigger = {
			exists = owner
		}
		text = job_genofarmer_drone_effect_desc
	}

	destroy_trigger = {
		exists = owner
		AND = {
			owner = { is_ai = yes }
			owner = { country_uses_food = no }
		}
	}

	ai_weight_coefficient = 0.8
}


