district_ideal_housing = {
	base_buildtime = 600
	

	zone_slots = {
		slot_city_government
		lea_slot_mha_01
		lea_slot_mha_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_world
	}

	potential = {
		uses_district_set = ideal_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_lab_housing
		district_city_housing
		district_factory_housing
		district_fortress_housing
		district_resource_housing
		district_hive_housing
	}
	
	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			exotic_gases = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 8
			rare_crystals = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 2000
		planet_stability_add = 1
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			planet_crime_no_happiness_add = -2
			job_maintenance_drone_add = 600
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			planet_crime_add = -2
			job_clerk_add = 400
		}
	}
}

district_ideal_factory = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_world
	}

	potential = {
		uses_district_set = ideal_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_lab_housing
		district_city_housing
		district_factory_housing
		district_fortress_housing
		district_resource_housing
		district_hive_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			volatile_motes = 500
			sr_living_metal = 500
		}
		upkeep = {
			energy = 8
			volatile_motes = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 500
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_alloy_drone_add = 300
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_fabricator_add = 300
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		modifier = {
			job_foundry_add = 200
			job_artisan_add = 200
		}
	}

	# Extra jobs from foundry buildings
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
			has_active_building = building_foundry_2
		}
		modifier = {
			job_foundry_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
			has_active_building = building_foundry_3
		}
		modifier = {
			job_foundry_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
			has_active_building = building_foundry_2
		}
		modifier = {
			job_fabricator_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
			has_active_building = building_foundry_3
		}
		modifier = {
			job_fabricator_add = 200
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
			has_active_building = building_foundry_2
		}
		modifier = {
			job_alloy_drone_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
			has_active_building = building_foundry_3
		}
		modifier = {
			job_alloy_drone_add = 200
		}
	}
	#################Extra jobs from factory
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = no }
			has_active_building = building_factory_2
		}
		modifier = {
			job_artisan_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = no }
			has_active_building = building_factory_3
		}
		modifier = {
			job_artisan_add = 200
		}
	}
}

district_ideal_science = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_world
	}

	potential = {
		uses_district_set = ideal_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_lab_housing
		district_city_housing
		district_factory_housing
		district_fortress_housing
		district_resource_housing
		district_hive_housing
	}
	
	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			exotic_gases = 500
			nanites = 500
		}
		upkeep = {
			energy = 8
			exotic_gases = 2
		}
	}

	triggered_planet_modifier = {
		planet_housing_add = 500
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		modifier = {
			job_physicist_add = 150
			job_biologist_add = 150
			job_engineer_add = 150
		}
	}
	

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_brain_drone_physicist_add = 150
			job_brain_drone_biologist_add = 150
			job_brain_drone_engineer_add  = 150
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_calculator_physicist_add = 150
			job_calculator_biologist_add = 150
			job_calculator_engineer_add  = 150
		}
	}
}

district_ideal_resource = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_world
	}

	potential = {
		uses_district_set = ideal_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_lab_housing
		district_city_housing
		district_factory_housing
		district_fortress_housing
		district_resource_housing
		district_hive_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 250
			nanites = 1000
		}
		upkeep = {
			energy = 12
		}
	}
	
	planet_modifier = {
		planet_housing_add = 300
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_technician_drone_add = 200
			job_mining_drone_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			job_farmer_add = 100
			job_miner_add = 200
			job_technician_add = 200
		}
	}
}

# district_ideal_addon = {
# 	base_buildtime = 600
# 	

# 	zone_slots = {
# 		lea_slot_mha_01
# 	}

# 	show_on_uncolonized = {
# 		uses_district_set = ideal_world
# 	}

# 	potential = {
# 		uses_district_set = ideal_world
# 	}
	
# 	conversion_ratio = 0.5
# 	convert_to = {
# 		district_lab_housing
# 		district_city_housing
# 		district_factory_housing
# 		district_fortress_housing
# 		district_resource_housing
# 		district_hive_housing
# 	}
	
# 	resources = {
# 		category = planet_districts
# 		cost = {
# 			minerals = 1500
# 			rare_crystals = 500
# 			sr_living_metal = 500
# 		}
# 		upkeep = {
# 			energy = 8
# 			rare_crystals = 2
# 		}
# 	}
	
# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = {
# 				owner = { is_machine_empire = yes }
# 			}
# 		}
# 		modifier = {
# 			planet_housing_add = 600
# 			planet_stability_add = -3
# 			job_replicator_synt_drone_add = 100
# 		}
# 	}
	
# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = {
# 				owner = { is_hive_empire = yes }
# 			}
# 		}
# 		modifier = {
# 			planet_housing_add = 600
# 			planet_stability_add = -3
# 			job_replicator_bio_drone_add = 100
# 		}
# 	}
	
# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = {
# 				owner = { is_gestalt = no }
# 			}
# 		}
# 		modifier = {
# 			planet_housing_add = 600
# 			trade_value_mult = 0.05
# 			job_clerk_add = 400
# 			job_merchant_add = 200
# 		}
# 	}
# }

#####################################Tier2###################################################
##############Scienceworld/unityworld

district_lab_housing = {
	base_buildtime = 600
	

	zone_slots = {
		slot_city_government
		lea_slot_mha_lab_01
		lea_slot_mha_lab_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_science_world
	}

	potential = {
		uses_district_set = ideal_science_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			exotic_gases = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			exotic_gases = 2
			sr_living_metal = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 3000
		planet_max_buildings_add = 1
		planet_stability_add = 3
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			planet_crime_no_happiness_add = -5
			job_maintenance_drone_add = 1000
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			planet_crime_add = -5
			job_clerk_add = 800
		}
	}
}


district_lab_science = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_lab_01
	}

	show_on_uncolonized = {
		uses_district_set = ideal_science_world
	}

	potential = {
		uses_district_set = ideal_science_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			exotic_gases = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			exotic_gases = 2
			sr_living_metal = 1
		}
	}

	triggered_planet_modifier = {
		planet_housing_add = 1200
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		modifier = {
			job_ideal_researcher_add = 800
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_ideal_research_unit_add = 800
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_ideal_research_drone_add = 800
		}
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		text = job_ideal_researcher_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		text = job_ideal_research_unit_effect_desc
	}
	
	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		text = job_ideal_research_drone_effect_desc
	}
}

district_lab_administrative = {

	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_lab_01
	}

	show_on_uncolonized = {
		uses_district_set = ideal_science_world
	}

	potential = {
		uses_district_set = ideal_science_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			rare_crystals = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			rare_crystals = 2
			sr_living_metal = 1
		}
	}

	triggered_planet_modifier = {
		planet_housing_add = 1200
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		modifier = {
			job_ideal_bureaucrat_add = 800
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_advanced_coordinator_add = 800
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_lea_comunicator_add = 800
		}
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = no }
		}
		text = job_ideal_bureaucrat_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		text = job_advanced_coordinator_effect_desc
	}
}

district_lab_support = {

	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_lab_01
	}

	show_on_uncolonized = {
		uses_district_set = ideal_science_world
	}

	potential = {
		uses_district_set = ideal_science_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			rare_crystals = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			rare_crystals = 2
			sr_living_metal = 1
		}
	}

	triggered_planet_modifier = {
		planet_housing_add = 600
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		modifier = {
			job_ideal_bureaucrat_add = 200
			job_ideal_researcher_add = 200
			planet_ideal_researcher_produces_mult = 0.10
			planet_ideal_researcher_upkeep_mult = 0.10
			planet_ideal_bureaucrat_produces_mult = 0.10
			planet_ideal_bureaucrat_upkeep_mult = 0.10
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_advanced_coordinator_add = 200
			job_ideal_research_unit_add = 200
			planet_ideal_research_unit_produces_mult = 0.10
			planet_ideal_research_unit_upkeep_mult = 0.10
			planet_advanced_coordinator_produces_mult = 0.10
			planet_advanced_coordinator_upkeep_mult = 0.10			

		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_lea_comunicator_add = 200
			job_ideal_research_drone_add = 200
			planet_ideal_research_drone_produces_mult = 0.10
			planet_ideal_research_drone_upkeep_mult = 0.10
			planet_lea_comunicator_produces_mult = 0.10
			planet_lea_comunicator_upkeep_mult = 0.10	
		}
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = no }
		}
		text = job_ideal_bureaucrat_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		text = job_advanced_coordinator_effect_desc
	}
}
#######################################CityWorld
district_city_housing = {
	base_buildtime = 600
	

	zone_slots = {
		slot_city_government
		lea_slot_mha_city_01
		lea_slot_mha_city_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_city_world
	}

	potential = {
		uses_district_set = ideal_city_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 5000
			exotic_gases = 1500
			sr_living_metal = 1500
		}
		upkeep = {
			energy = 15
			exotic_gases = 2
			sr_living_metal = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 5000
		planet_stability_add = 5
		planet_crime_add = -10
		planet_jobs_trade_produces_mult = 0.20
		job_trader_add = 800
	}
}

district_city_trade = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_city_01
		lea_slot_mha_city_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_city_world
	}

	potential = {
		uses_district_set = ideal_city_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			rare_crystals = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 15
			rare_crystals = 2
			sr_living_metal = 1
		}
	}
	
	triggered_planet_modifier = {
		planet_housing_add = 1200
		job_trader_add = 1500
	}
}

district_city_storage = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_city_01
		lea_slot_mha_city_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_city_world
	}

	
	potential = {
		uses_district_set = ideal_city_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			volatile_motes = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			volatile_motes = 2
			sr_living_metal = 1
		}
	}

	triggered_planet_modifier = {
		planet_housing_add = 600
		planet_jobs_trade_produces_mult = 0.10
		job_maintance_crew_add = 400
	}
}

district_city_black_zone = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_city_01
		lea_slot_mha_city_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_city_world
	}

	potential = {
		uses_district_set = ideal_city_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			rare_crystals = 2000
			sr_living_metal = 200
		}
		upkeep = {
			energy = 15
			rare_crystals = 2
			sr_living_metal = 1
		}
	}
	
	triggered_planet_modifier = {
		planet_housing_add = -5000
		planet_amenities_add = -5000
		planet_crime_add = 30
		planet_stability_add = -5 
		planet_jobs_trade_produces_mult = 0.50
		job_trader_add = 200
		pop_trader_bonus_workforce_mult = 0.10
	}
}

##############Factory world

district_factory_housing = {
	base_buildtime = 600
	

	zone_slots = {
		slot_city_government
		lea_slot_mha_factory_01
		lea_slot_mha_factory_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_factory_world
	}

	potential = {
		uses_district_set = ideal_factory_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}
	
	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			exotic_gases = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			exotic_gases = 2
			sr_living_metal = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 3000
		planet_max_buildings_add = 1
		planet_stability_add = 3
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			planet_crime_no_happiness_add = -5
			job_maintenance_drone_add = 1000
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			planet_crime_add = -5
			job_clerk_add = 800
		}
	}
}

district_factory_arms_industry = {
	base_buildtime = 600
	
	
	zone_slots = {
		lea_slot_mha_factory_01
	}

	show_on_uncolonized = {
		uses_district_set = ideal_factory_world
	}

	potential = {
		uses_district_set = ideal_factory_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			volatile_motes = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			volatile_motes = 2
			sr_living_metal = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1200
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_heavy_industral_unit_add = 600
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_ideal_metalurgist_add = 600
		}
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = no }
		}
		text = job_ideal_metalurgist_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		text = job_heavy_industral_unit_effect_desc
	}

	# Extra jobs from foundry buildings
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
			has_active_building = building_foundry_2
		}
		modifier = {
			job_ideal_metalurgist_add = 100
		}
	}
}


district_factory_civilian_industry = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_factory_01
	}

	show_on_uncolonized = {
		uses_district_set = ideal_factory_world
	}

	potential = {
		uses_district_set = ideal_factory_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 12
			rare_crystals = 2
			sr_living_metal = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 1200
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_light_replication_unit_add = 600
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_ideal_artisan_add = 600
		}
	}

	# Extra jobs from factory buildings
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
			has_active_building = building_factory_2
		}
		modifier = {
			job_light_replication_unit_add = 100
		}
	}


	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = no }
		}
		text = job_ideal_artisan_effect_desc
	}
	
	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		text = job_light_replication_unit_effect_desc
	}
}

district_factory_support = {

	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_factory_01
	}

	show_on_uncolonized = {
		uses_district_set = ideal_factory_world
	}

	potential = {
		uses_district_set = ideal_factory_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			rare_crystals = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			rare_crystals = 2
			sr_living_metal = 1
		}
	}

	triggered_planet_modifier = {
		planet_housing_add = 1200
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		modifier = {
			job_maintance_crew_add = 100
			planet_ideal_transmuter_produces_mult = 0.10
			planet_metalic_reformer_produces_mult = 0.10
			planet_ideal_metalurgist_produces_mult = 0.10
			planet_ideal_artisan_produces_mult = 0.10
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_maintance_crew_add = 100
			planet_ideal_transmuter_drone_produces_mult = 0.10
			planet_metalic_reformer_drone_produces_mult = 0.10
			planet_heavy_industral_unit_produces_mult = 0.10
			planet_light_replication_unit_produces_mult = 0.10
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_maintance_crew_add = 100
			planet_ideal_transmuter_drone_produces_mult = 0.10
			planet_metalic_reformer_drone_produces_mult = 0.10
			planet_heavy_industral_unit_produces_mult = 0.10
			planet_light_replication_unit_produces_mult = 0.10
		}
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = no }
		}
		text = job_ideal_bureaucrat_effect_desc
	}

	triggered_desc = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		text = job_advanced_coordinator_effect_desc
	}
}

# district_factory_advanced_fabrication = {
# 	base_buildtime = 600
# 	

# 	zone_slots = {
# 		slot_city_government
# 		slot_city_01
# 		slot_city_02
# 	}

# 	show_on_uncolonized = {
# 		uses_district_set = ideal_factory_world
# 	}

# 	potential = {
# 		uses_district_set = ideal_factory_world
# 	}
	
# 	conversion_ratio = 0.5
# 	convert_to = {
# 		district_ideal_housing
# 		district_city
# 		district_nexus
# 		district_hive
# 	}

# 	resources = {
# 		category = planet_districts
# 		cost = {
# 			minerals = 2000
# 			sr_living_metal = 1000
# 		}
# 		upkeep = {
# 			energy = 15
# 		}
# 	}

# 	planet_modifier = {
# 		planet_housing_add = 600
# 	}

# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = { is_gestalt = yes }
# 		}
# 		modifier = {
# 			job_ideal_transmuter_drone_add = 200
# 		}
# 	}

# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = { is_gestalt = no }
# 		}
# 		modifier = {
# 			job_ideal_transmuter_add = 200
# 		}
# 	}

# 	triggered_desc = {
# 		trigger = {
# 			exists = owner
# 			owner = { is_gestalt = no }
# 		}
# 		text = job_metalic_reformer_effect_desc
# 	}

# 	triggered_desc = {
# 		trigger = {
# 			exists = owner
# 			owner = { is_gestalt = yes }
# 		}
# 		text = job_metalic_reformer_drone_effect_desc
# 	}
# }

# district_factory_metalic_megaforge = {
# 	base_buildtime = 600
# 	

# 	zone_slots = {
# 		slot_city_government
# 		slot_city_01
# 		slot_city_02
# 	}

# 	show_on_uncolonized = {
# 		uses_district_set = ideal_factory_world
# 	}

# 	potential = {
# 		uses_district_set = ideal_factory_world
# 	}
	
# 	conversion_ratio = 0.5
# 	convert_to = {
# 		district_ideal_housing
# 		district_city
# 		district_nexus
# 		district_hive
# 	}

# 	resources = {
# 		category = planet_districts
# 		cost = {
# 			minerals = 3000
# 			sr_living_metal = 1000
# 		}
# 		upkeep = {
# 			energy = 15
# 		}
# 	}

# 	planet_modifier = {
# 		planet_housing_add = 600
# 	}

# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = { is_gestalt = yes }
# 		}
# 		modifier = {
# 			job_metalic_reformer_drone_add = 200
# 		}
# 	}

# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = { is_gestalt = no }
# 		}
# 		modifier = {
# 			job_metalic_reformer_add = 200
# 		}
# 	}

# 	triggered_desc = {
# 		trigger = {
# 			exists = owner
# 			owner = { is_gestalt = no }
# 		}
# 		text = job_metalic_reformer_effect_desc
# 	}

# 	triggered_desc = {
# 		trigger = {
# 			exists = owner
# 			owner = { is_gestalt = yes }
# 		}
# 		text = job_metalic_reformer_drone_effect_desc
# 	}
# }

#################################Fortress World

district_fortress_housing = {
	base_buildtime = 600
	

	zone_slots = {
		slot_city_government
		lea_slot_mha_stronghold_01
		lea_slot_mha_stronghold_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_fortress_world
	}

	potential = {
		uses_district_set = ideal_fortress_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			exotic_gases = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			exotic_gases = 2
			sr_living_metal = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 3000
		planet_max_buildings_add = 1
		planet_stability_add = 3
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			planet_crime_no_happiness_add = -5
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			planet_crime_add = -5
		}
	}
}

district_fortress_hub = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_stronghold_01
		lea_slot_mha_stronghold_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_fortress_world
	}

	potential = {
		uses_district_set = ideal_fortress_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			alloys = 1000
			volatile_motes = 500
			sr_living_metal = 500
		}
		upkeep = {
			energy = 10
			alloys = 5
			volatile_motes = 3
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_comander_drone_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			job_comander_add = 200
		}
	}
}

district_fortress_barracks = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_stronghold_01
		lea_slot_mha_stronghold_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_fortress_world
	}

	potential = {
		uses_district_set = ideal_fortress_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			alloys = 1000
			volatile_motes = 500
			sr_living_metal = 500
		}
		upkeep = {
			energy = 10
			alloys = 5
			volatile_motes = 3
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_warrior_drone_add = 600
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			job_soldier_add = 600
		}
	}
}

district_fortress_orbital = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_stronghold_01
		lea_slot_mha_stronghold_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_fortress_world
	}

	potential = {
		uses_district_set = ideal_fortress_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 1000
			alloys = 1000
			volatile_motes = 500
			sr_living_metal = 500
		}
		upkeep = {
			energy = 10
			alloys = 5
			volatile_motes = 3
		}
	}

	planet_modifier = {
		planet_orbital_bombardment_damage = -0.10
	}
}

##########################Resource World

district_resource_housing = {
	base_buildtime = 600
	

	zone_slots = {
		slot_city_government
		lea_slot_mha_resource_01
		lea_slot_mha_resource_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_resource_world
	}

	potential = {
		uses_district_set = ideal_resource_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			exotic_gases = 1000
			sr_living_metal = 1000
		}
		upkeep = {
			energy = 10
			exotic_gases = 2
			sr_living_metal = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 3000
		planet_max_buildings_add = 1
		planet_stability_add = 3
		planet_jobs_produces_mult = 0.2
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_agri_drone_add = 100
			job_technician_drone_add = 100
			job_mining_drone_add = 100
			planet_crime_no_happiness_add = -5
			job_maintenance_drone_add = 1000
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_agri_drone_add = 100
			job_technician_drone_add = 100
			job_mining_drone_add = 100
			planet_crime_no_happiness_add = -5
			job_maintenance_drone_add = 1000
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_regular_empire = yes }
			}
		}
		modifier = {
			job_farmer_add = 100
			job_miner_add = 100
			job_technician_add = 100
			planet_crime_add = -5
			job_clerk_add = 800
		}
	}
}

district_resource_energy = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_resource_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_resource_world
	}

	potential = {
		uses_district_set = ideal_resource_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 500
			nanites = 2000
		}
		upkeep = {
			energy = 20
			unity = 5
		}
	}
	
	planet_modifier = {
		planet_housing_add = 300
		planet_jobs_produces_mult = -0.05
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_technician_drone_add = 500
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_technician_drone_add = 500
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			job_technician_add = 500
		}
	}
}

district_resource_minerals = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_resource_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_resource_world
	}

	potential = {
		uses_district_set = ideal_resource_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 500
			nanites = 2000
		}
		upkeep = {
			energy = 20
			unity = 5
		}
	}
	
	planet_modifier = {
		planet_housing_add = 300
		planet_jobs_produces_mult = -0.05
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_mining_drone_add = 500
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_mining_drone_add = 500
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			job_miner_add = 500
		}
	}
}

district_resource_food = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_resource_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_resource_world
	}

	potential = {
		uses_district_set = ideal_resource_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 500
			nanites = 2000
		}
		upkeep = {
			energy = 20
			unity = 5
		}
	}
	
	planet_modifier = {
		planet_housing_add = 300
		planet_jobs_produces_mult = -0.05
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		modifier = {
			job_agri_drone_add = 500
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		modifier = {
			job_agri_drone_add = 5
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				owner = { is_gestalt = no }
			}
		}
		modifier = {
			job_farmer_add = 500
		}
	}
}

# district_resource_multi = {
# 	base_buildtime = 600
# 	

# 	zone_slots = {
# 		slot_city_government
# 		slot_city_01
# 		slot_city_02
# 	}

# 	show_on_uncolonized = {
# 		uses_district_set = ideal_resource_world
# 	}

# 	potential = {
# 		uses_district_set = ideal_resource_world
# 	}
	
# 	conversion_ratio = 0.5
# 	convert_to = {
# 		district_ideal_housing
# 	}

# 	resources = {
# 		category = planet_districts
# 		cost = {
# 			minerals = 500
# 			nanites = 2000
# 		}
# 		upkeep = {
# 			energy = 10
# 		}
# 	}
	
# 	planet_modifier = {
# 		planet_housing_add = 400
# 	}
	
# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = { is_machine_empire = yes }
# 		}
# 		modifier = {
# 			planet_jobs_produces_mult = 0.15
# 			job_agri_drone_add = 100
# 			job_technician_drone_add = 100
# 			job_mining_drone_add = 100
# 		}
# 	}
	
# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = { is_hive_empire = yes }
# 		}
# 		modifier = {
# 			planet_jobs_produces_mult = 0.15
# 			job_agri_drone_add = 100
# 			job_technician_drone_add = 100
# 			job_mining_drone_add = 100
# 		}
# 	}
	
# 	triggered_planet_modifier = {
# 		potential = {
# 			exists = owner
# 			owner = {
# 				owner = { is_regular_empire = yes }
# 			}
# 		}
# 		modifier = {
# 			planet_jobs_produces_mult = 0.15
# 			job_farmer_add = 100
# 			job_miner_add = 100
# 			job_technician_add = 100
# 		}
# 	}
# }

###################Hive World
district_hive_housing = {
	base_buildtime = 600
	

	zone_slots = {
		slot_city_government
		lea_slot_mha_hive_01
		lea_slot_mha_hive_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_hive_world
	}

	potential = {
		uses_district_set = ideal_hive_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 3000
			sr_living_metal = 1500
			nanites = 1500
		}
		upkeep = {
			energy = 30
			nanites = 1
			sr_living_metal = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 2000
		planet_max_buildings_add = 1
		planet_stability_add = 3
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			planet_crime_no_happiness_add = -5
			job_maintenance_drone_add = 400
		}
	}
}

district_hive_bio = {
	base_buildtime = 600
	

	zone_slots = {
		lea_slot_mha_hive_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_hive_world
	}

	potential = {
		uses_district_set = ideal_hive_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 500
			food = 2500
		}
		upkeep = {
			energy = 10
		}
	}
	
	planet_modifier = {
		planet_housing_add = 1000
		planet_max_buildings_add = 1
		pop_environment_tolerance = -0.05
		planet_stability_add = -6
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_replicator_bio_drone_add = 3000
		}
	}
}

district_hive_mach = {
	base_buildtime = 600

	zone_slots = {
		lea_slot_mha_hive_02
	}

	show_on_uncolonized = {
		uses_district_set = ideal_hive_world
	}

	potential = {
		uses_district_set = ideal_hive_world
	}
	
	conversion_ratio = 0.5
	convert_to = {
		district_ideal_housing
	}

	resources = {
		category = planet_districts
		cost = {
			minerals = 500
			alloys = 1000
		}
		upkeep = {
			energy = 10
		}
	}
	
	planet_modifier = {
		planet_housing_add = 1000
		planet_max_buildings_add = 1
		pop_environment_tolerance = -0.05
		planet_stability_add = -6
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_replicator_synt_drone_add = 3000
		}
	}
}

