###############
#### ENERGY ###
###############

d_arid_highlands = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_hot_springs
		d_buzzing_plains # gaia
		d_volcanic_rich_mountain
	}

	category = deposit_cat_energy

	planet_modifier = {
		district_generator_max_add = 1
	}

	potential = {
		is_dry_non_volcanic = yes
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
	}
}

d_hot_springs = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_energy

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_arid_highlands
		d_buzzing_plains # gaia
		d_volcanic_lava_river
	}

	planet_modifier = {
		district_generator_max_add = 1
	}

	potential = {
		OR = {
			is_cold = yes
			is_wet = yes
			is_planet_class = pc_nuked
		}
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
	}
}

d_rushing_waterfalls = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_searing_desert
		d_frozen_gas_lake
		d_volcanic_weak_crust
	}

	category = deposit_cat_energy

	planet_modifier = {
		district_generator_max_add = 2
	}

	potential = {
		is_wet = yes
	}

	drop_weight = {
		weight = @deposit_chance_med
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
	}
}

d_searing_desert = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_energy

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_frozen_gas_lake
		d_rushing_waterfalls
		d_volcanic_weak_crust
	}

	planet_modifier = {
		district_generator_max_add = 2
	}

	potential = {
		OR = {
			is_planet_class = pc_gaia
			is_planet_class = pc_nuked
			is_planet_class = pc_relic
			is_dry_non_volcanic = yes
		}
	}

	drop_weight = {
		weight = @deposit_chance_med
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
	}
}

d_frozen_gas_lake = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_energy

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_searing_desert
		d_rushing_waterfalls
		d_volcanic_weak_crust
	}

	planet_modifier = {
		district_generator_max_add = 2
	}

	potential = {
		OR = {
			is_planet_class = pc_gaia
			is_planet_class = pc_relic
			is_cold = yes
		}
	}

	drop_weight = {
		weight = @deposit_chance_med
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
	}
}

d_geothermal_vent = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_energy

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_tempestous_mountain
		d_underwater_vent
		d_volcanic_mineral_layers
	}

	planet_modifier = {
		district_generator_max_add = 3
	}

	potential = {
		OR = {
			is_planet_class = pc_arctic
			is_planet_class = pc_tundra
			is_planet_class = pc_savannah
			is_planet_class = pc_desert
			is_planet_class = pc_arid
			is_planet_class = pc_volcanic
		}
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
	}
}

d_underwater_vent = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_energy

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_geothermal_vent
		d_tempestous_mountain
		d_volcanic_mineral_layers
	}

	planet_modifier = {
		district_generator_max_add = 3
	}

	potential = {
		OR = {
			is_planet_class = pc_gaia
			is_planet_class = pc_relic
			is_planet_class = pc_ocean
			is_planet_class = pc_nuked
		}
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
	}
}

d_tempestous_mountain = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_energy

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_geothermal_vent
		d_underwater_vent
		d_volcanic_mineral_layers
	}

	planet_modifier = {
		district_generator_max_add = 3
	}

	potential = {
		OR = {
			is_planet_class = pc_tropical
			is_planet_class = pc_alpine
			is_planet_class = pc_gaia
			is_planet_class = pc_relic
			is_planet_class = pc_continental
			is_planet_class = pc_volcanic
		}
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
	}
}

###################
#### MINERALS #####
###################

d_veiny_cliffs = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_minerals

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_mineral_fields
		d_mineral_striations # gaia
		d_volcanic_ore_veins
	}

	planet_modifier = {
		district_mining_max_add = 1
	}

	potential = {
		OR = {
			is_planet_class = pc_alpine
			is_planet_class = pc_arctic
			is_planet_class = pc_arid
			is_planet_class = pc_continental
			is_planet_class = pc_nuked
		}
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_cold = yes
		}
	}
}

d_mineral_fields = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_minerals

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_veiny_cliffs
		d_mineral_striations # gaia
		d_volcanic_ore_veins
	}

	planet_modifier = {
		district_mining_max_add = 1
	}

	potential = {
		OR = {
			is_planet_class = pc_tropical
			is_planet_class = pc_savannah
			is_planet_class = pc_desert
			is_planet_class = pc_ocean
			is_planet_class = pc_tundra
		}
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_cold = yes
		}
	}
}

d_prosperous_mesa = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_minerals

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_ore_rich_caverns
		d_volcanic_stable_plateaus
	}

	planet_modifier = {
		district_mining_max_add = 2
	}

	potential = {
		OR = {
			is_planet_class = pc_continental
			is_planet_class = pc_tropical
			is_planet_class = pc_savannah
			is_planet_class = pc_desert
			is_planet_class = pc_gaia
			is_planet_class = pc_relic
		}
	}

	drop_weight = {
		weight = @deposit_chance_med
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_cold = yes
		}
	}
}

d_ore_rich_caverns = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_minerals

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_prosperous_mesa
		d_volcanic_ore_caverns
	}

	planet_modifier = {
		district_mining_max_add = 2
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_subterranean_empire = yes
			}
		}
		modifier = {
			district_mining_max_add = 1
		}
	}

	potential = {
		OR = {
			is_planet_class = pc_ocean
			is_planet_class = pc_alpine
			is_planet_class = pc_arctic
			is_planet_class = pc_arid
			is_planet_class = pc_tundra
			is_planet_class = pc_nuked
			is_planet_class = pc_gaia
			is_planet_class = pc_relic
		}
	}

	drop_weight = {
		weight = @deposit_chance_med
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_cold = yes
		}
	}
}

d_rich_mountain = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_minerals

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_submerged_ore_veins
		d_volcanic_rich_mountain
	}

	planet_modifier = {
		district_mining_max_add = 3
	}

	potential = {
		OR = {
			is_planet_class = pc_continental
			is_planet_class = pc_desert
			is_planet_class = pc_alpine
			is_planet_class = pc_arctic
			is_planet_class = pc_arid
			is_planet_class = pc_tundra
			is_planet_class = pc_gaia
			is_planet_class = pc_relic
		}
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_cold = yes
		}
	}
}

d_submerged_ore_veins = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_minerals

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_rich_mountain
		d_volcanic_rich_mountain
	}

	planet_modifier = {
		district_mining_max_add = 3
	}

	potential = {
		OR = {
			is_planet_class = pc_ocean
			is_planet_class = pc_tropical
			is_planet_class = pc_savannah
			is_planet_class = pc_nuked
			is_planet_class = pc_gaia
			is_planet_class = pc_relic
		}
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_cold = yes
		}
	}
}

###################
##### FOOD	#####
###################
d_lichen_fields = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_bountiful_plains
		d_rugged_woods
		d_green_hills
		d_forgiving_tundra
		d_boggy_fens
		d_nutritious_mudland
		d_natural_farmland # gaia
		d_volcanic_tranquil_flatlands
	}

	planet_modifier = {
		district_farming_max_add = 1
	}

	potential = {
		OR = {
			is_planet_class = pc_nuked
			is_planet_class = pc_arctic
		}
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = 0.33
			is_planet_class = pc_nuked
		}
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_bountiful_plains = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_lichen_fields
		d_rugged_woods
		d_green_hills
		d_forgiving_tundra
		d_boggy_fens
		d_nutritious_mudland
		d_natural_farmland # gaia
		d_volcanic_tranquil_flatlands
	}

	planet_modifier = {
		district_farming_max_add = 1
	}

	potential = {
		OR = {
			is_planet_class = pc_arid
			is_planet_class = pc_savannah
		}
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_rugged_woods = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	terraforming_swap_types = {
		d_natural_farmland # gaia
		d_lichen_fields
		d_bountiful_plains
		d_green_hills
		d_forgiving_tundra
		d_boggy_fens
		d_nutritious_mudland
		d_volcanic_intraplate
	}

	planet_modifier = {
		district_farming_max_add = 1
	}

	potential = {
		is_planet_class = pc_continental
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_green_hills = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_lichen_fields
		d_bountiful_plains
		d_rugged_woods
		d_forgiving_tundra
		d_boggy_fens
		d_nutritious_mudland
		d_natural_farmland # gaia
		d_volcanic_dried_lavariver
	}

	planet_modifier = {
		district_farming_max_add = 1
	}

	potential = {
		OR = {
			is_planet_class = pc_ocean
			is_planet_class = pc_tropical
		}
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_forgiving_tundra = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_lichen_fields
		d_bountiful_plains
		d_rugged_woods
		d_green_hills
		d_boggy_fens
		d_nutritious_mudland
		d_natural_farmland # gaia
		d_volcanic_basalt_plains
	}

	planet_modifier = {
		district_farming_max_add = 1
	}

	potential = {
		OR = {
			is_planet_class = pc_alpine
			is_planet_class = pc_tundra
		}
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_boggy_fens = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_lichen_fields
		d_bountiful_plains
		d_rugged_woods
		d_green_hills
		d_forgiving_tundra
		d_nutritious_mudland
		d_natural_farmland # gaia
		d_volcanic_basalt_plains
	}

	planet_modifier = {
		district_farming_max_add = 1
	}

	potential = {
		is_planet_class = pc_ocean
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_nutritious_mudland = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_lichen_fields
		d_bountiful_plains
		d_rugged_woods
		d_green_hills
		d_forgiving_tundra
		d_boggy_fens
		d_natural_farmland # gaia
		d_volcanic_ore_veins
	}

	planet_modifier = {
		district_farming_max_add = 1
	}

	potential = {
		is_planet_class = pc_desert
	}

	drop_weight = {
		weight = @deposit_chance_high
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_fungal_caves = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_lush_jungle
		d_fertile_lands
		d_great_river
		d_volcanic_ore_caverns
	}

	planet_modifier = {
		district_farming_max_add = 2
	}

	potential = {
		OR = {
			is_planet_class = pc_nuked
			is_cold = yes
		}
	}

	drop_weight = {
		weight = @deposit_chance_med
		modifier = {
			factor = 0.33
			is_planet_class = pc_nuked
		}
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_lush_jungle = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_fungal_caves
		d_fertile_lands
		d_great_river
		d_volcanic_mineral_fields
	}

	planet_modifier = {
		district_farming_max_add = 2
	}

	potential = {
		OR = {
			is_planet_class = pc_gaia
			is_planet_class = pc_tropical
			is_planet_class = pc_ocean
		}
	}

	drop_weight = {
		weight = @deposit_chance_med
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_fertile_lands = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_fungal_caves
		d_lush_jungle
		d_great_river
		d_volcanic_mineral_fields
	}

	planet_modifier = {
		district_farming_max_add = 2
	}

	potential = {
		OR = {
			is_planet_class = pc_savannah
			is_planet_class = pc_continental
			is_planet_class = pc_gaia
			is_planet_class = pc_arid
		}
	}

	drop_weight = {
		weight = @deposit_chance_med
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_great_river = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_fungal_caves
		d_lush_jungle
		d_fertile_lands
		d_volcanic_mineral_fields
	}

	planet_modifier = {
		district_farming_max_add = 2
	}

	potential = {
		OR = {
			is_planet_class = pc_arid
			is_planet_class = pc_desert
		}
	}

	drop_weight = {
		weight = @deposit_chance_med
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_black_soil = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_teeming_reef
		d_marvelous_oasis
		d_tropical_island
		d_fungal_forest
		d_volcanic_lava_river
	}

	planet_modifier = {
		district_farming_max_add = 3
	}

	potential = {
		OR = {
			is_planet_class = pc_continental
			is_planet_class = pc_savannah
			is_planet_class = pc_gaia
		}
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_teeming_reef = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_black_soil
		d_marvelous_oasis
		d_tropical_island
		d_fungal_forest
		d_volcanic_lava_river
	}

	planet_modifier = {
		district_farming_max_add = 3
	}

	potential = {
		OR = {
			is_planet_class = pc_gaia
			is_planet_class = pc_ocean
		}
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_marvelous_oasis = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_black_soil
		d_teeming_reef
		d_tropical_island
		d_fungal_forest
		d_volcanic_lava_river
	}

	planet_modifier = {
		district_farming_max_add = 3
	}

	potential = {
		OR = {
			is_planet_class = pc_arid
			is_planet_class = pc_desert
		}
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_tropical_island = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_black_soil
		d_teeming_reef
		d_marvelous_oasis
		d_fungal_forest
		d_volcanic_lava_river
	}

	planet_modifier = {
		district_farming_max_add = 3
	}

	potential = {
		OR = {
			is_planet_class = pc_arid
			is_planet_class = pc_desert
			is_planet_class = pc_tropical
		}
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

d_fungal_forest = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_black_soil
		d_teeming_reef
		d_marvelous_oasis
		d_tropical_island
		d_volcanic_lava_river
	}

	category = deposit_cat_food

	planet_modifier = {
		district_farming_max_add = 3
	}

	potential = {
		is_cold = yes
	}

	drop_weight = {
		weight = @deposit_chance_low
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
	}
}

####################
#####	MOTES #####
####################

d_dust_caverns = {
	is_for_colonizable = yes
	category = deposit_cat_rare_resource

	potential = {
		OR = {
			can_have_habitable_deposits = yes
			is_planet_class = pc_hive
			is_planet_class = pc_machine
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_mine_volatile_motes
			}
		}
		planet_technician_volatile_motes_produces_add = @SR_SMALL
	}

	planet_modifier = {
		district_generator_max_add = @DISTRICTS_FROM_SR_DEPOSITS
	}

	drop_weight = {
		weight = @deposit_chance_high_rare
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
		modifier = {
			factor = @deposit_chance_gaia_bonus
			is_planet_class = pc_gaia
		}
		modifier = {
			factor = 0
			solar_system = {
				OR = {
					has_star_flag = empire_home_system
					has_star_flag = sol_system
					has_star_flag = deneb_system
				}
			}
		}
	}
}

d_dust_desert = {
	is_for_colonizable = yes
	category = deposit_cat_rare_resource

	potential = {
		OR = {
			can_have_habitable_deposits = yes
			is_planet_class = pc_hive
			is_planet_class = pc_machine
		}
		NOT = { is_planet_class = pc_volcanic } # Have their own version
	}

	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_volcanic_stifling_atmosphere
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_mine_volatile_motes
			}
		}
		planet_technician_volatile_motes_produces_add = @SR_LARGE
	}

	planet_modifier = {
		district_generator_max_add = @DISTRICTS_FROM_SR_DEPOSITS
	}

	drop_weight = {
		weight = @deposit_chance_high_rare
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_dry = yes
		}
		modifier = {
			factor = @deposit_chance_gaia_bonus
			is_planet_class = pc_gaia
		}
		modifier = {
			factor = 0
			solar_system = {
				OR = {
					has_star_flag = empire_home_system
					has_star_flag = sol_system
					has_star_flag = deneb_system
				}
			}
		}
	}
}

####################
#####	GASES #####
####################

d_bubbling_swamp = {
	is_for_colonizable = yes
	category = deposit_cat_rare_resource

	potential = {
		OR = {
			can_have_habitable_deposits = yes
			is_planet_class = pc_hive
			is_planet_class = pc_machine
		}
		NOT = { is_planet_class = pc_volcanic }
	}

	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_volcanic_fumarole
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_mine_exotic_gases
			}
		}
		planet_farmers_exotic_gases_produces_add = @SR_SMALL
	}

	planet_modifier = {
		district_farming_max_add = @DISTRICTS_FROM_SR_DEPOSITS
	}

	drop_weight = {
		weight = @deposit_chance_high_rare
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
		modifier = {
			factor = @deposit_chance_gaia_bonus
			is_planet_class = pc_gaia
		}
		modifier = {
			factor = 0
			solar_system = {
				OR = {
					has_star_flag = empire_home_system
					has_star_flag = sol_system
					has_star_flag = deneb_system
				}
			}
		}
	}
}

d_fuming_bog = {
	is_for_colonizable = yes
	category = deposit_cat_rare_resource

	potential = {
		OR = {
			can_have_habitable_deposits = yes
			is_planet_class = pc_hive
			is_planet_class = pc_machine
		}
		NOT = { is_planet_class = pc_volcanic }
	}

	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_volcanic_fumarole
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_mine_exotic_gases
			}
		}
		planet_farmers_exotic_gases_produces_add = @SR_LARGE
	}

	planet_modifier = {
		district_farming_max_add = @DISTRICTS_FROM_SR_DEPOSITS
	}

	drop_weight = {
		weight = @deposit_chance_high_rare
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_wet = yes
		}
		modifier = {
			factor = @deposit_chance_gaia_bonus
			is_planet_class = pc_gaia
		}
		modifier = {
			factor = 0
			OR = {
				has_deposit = d_bubbling_swamp
				has_deposit = d_fuming_bog
			}
		}
		modifier = {
			factor = 0
			solar_system = {
				OR = {
					has_star_flag = empire_home_system
					has_star_flag = sol_system
					has_star_flag = deneb_system
				}
			}
		}
	}
}

####################
##### CRYSTALS #####
####################

d_crystalline_caverns = {
	is_for_colonizable = yes
	category = deposit_cat_rare_resource

	potential = {
		OR = {
			can_have_habitable_deposits = yes
			is_planet_class = pc_hive
			is_planet_class = pc_machine
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_mine_rare_crystals
			}
		}
		planet_miners_rare_crystals_produces_add = @SR_SMALL
	}

	planet_modifier = {
		district_mining_max_add = @DISTRICTS_FROM_SR_DEPOSITS
	}

	drop_weight = {
		weight = @deposit_chance_high_rare
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_cold = yes
		}
		modifier = {
			factor = @deposit_chance_gaia_bonus
			is_planet_class = pc_gaia
		}
		modifier = {
			factor = 1.25
			is_planet_class = pc_volcanic
			solar_system = {
				OR = {
					has_star_flag = empire_home_system
					has_star_flag = sol_system
					has_star_flag = deneb_system
				}
			}
		}
	}
}

d_crystal_forest = {
	is_for_colonizable = yes
	category = deposit_cat_rare_resource

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_mine_rare_crystals
			}
		}
		planet_miners_rare_crystals_produces_add = @SR_LARGE
	}

	planet_modifier = {
		district_mining_max_add = @DISTRICTS_FROM_SR_DEPOSITS
	}

	potential = {
		OR = {
			can_have_habitable_deposits = yes
			is_planet_class = pc_hive
			is_planet_class = pc_machine
		}
		NOR = {
			is_planet_class = pc_ocean
			is_planet_class = pc_nuked
			is_planet_class = pc_gaia
			is_planet_class = pc_volcanic
		}
	}

	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_crystalline_caverns
	}

	drop_weight = {
		weight = @deposit_chance_high_rare
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_cold = yes
		}
		modifier = {
			factor = @deposit_chance_gaia_bonus
			is_planet_class = pc_gaia
		}
		modifier = {
			factor = 0
			solar_system = {
				OR = {
					has_star_flag = empire_home_system
					has_star_flag = sol_system
					has_star_flag = deneb_system
				}
			}
		}
	}
}

d_crystal_reef = {
	is_for_colonizable = yes
	category = deposit_cat_rare_resource

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				has_technology = tech_mine_rare_crystals
			}
		}
		planet_miners_rare_crystals_produces_add = @SR_LARGE
	}

	planet_modifier = {
		district_mining_max_add = @DISTRICTS_FROM_SR_DEPOSITS
	}

	potential = {
		OR = {
			is_planet_class = pc_ocean
			is_planet_class = pc_nuked
			is_planet_class = pc_gaia
			is_planet_class = pc_hive
			is_planet_class = pc_machine
		}
		NOT = {
			is_planet_class = pc_volcanic
		}
	}

	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_crystalline_caverns
	}

	drop_weight = {
		weight = @deposit_chance_high_rare
		modifier = {
			factor = @deposit_chance_planet_type_bonus
			is_cold = yes
		}
		modifier = {
			factor = @deposit_chance_gaia_bonus
			is_planet_class = pc_gaia
		}
		modifier = {
			factor = 0
			solar_system = {
				OR = {
					has_star_flag = empire_home_system
					has_star_flag = sol_system
					has_star_flag = deneb_system
				}
			}
		}
	}
}

###################
##### SPECIAL #####
###################

d_betharian_deposit = {
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		OR = {
			can_have_habitable_deposits = yes
			is_planet_class = pc_hive
			is_planet_class = pc_machine
		}
	}
	custom_tooltip = unlocks_zone_betharian
	planet_modifier = {
		district_mining_max_add = 4
	}

	drop_weight = {
		weight = @deposit_chance_med_rare
		modifier = {
			factor = @deposit_chance_gaia_bonus
			is_planet_class = pc_gaia
		}
		modifier = {
			factor = 0
			solar_system = {
				OR = {
					has_star_flag = empire_home_system
					has_star_flag = sol_system
					has_star_flag = deneb_system
				}
			}
		}
	}
}

d_alien_pets_deposit = {
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		NOT = {
			is_planet_class = pc_volcanic
		}
	}

	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_volcanic_ore_veins
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_guided_sapience_empire = yes
			}
		}
		modifier = {
			planet_jobs_unity_produces_mult = 0.10
			planet_amenities_add = 1000
		}
	}

	drop_weight = {
		weight = @deposit_chance_med_rare
		modifier = {
			factor = @deposit_chance_gaia_bonus
			is_planet_class = pc_gaia
		}
		modifier = {
			factor = 0
			solar_system = {
				OR = {
					has_star_flag = empire_home_system
					has_star_flag = sol_system
					has_star_flag = deneb_system
				}
			}
		}
	}
}

### Gaia Swaps

d_buzzing_plains = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_arid_highlands
		d_hot_springs
		d_volcanic_rich_mountain
	}

	category = deposit_cat_energy

	planet_modifier = {
		district_generator_max_add = 1
	}

	potential = {
		is_planet_class = pc_gaia
	}

	drop_weight = {
		weight = 0.01
		#does not occur naturally, but needs a non-zero weight
	}
}

d_mineral_striations = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_minerals

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_mineral_fields
		d_veiny_cliffs
		d_volcanic_ore_veins
	}

	planet_modifier = {
		district_mining_max_add = 1
	}

	potential = {
		is_planet_class = pc_gaia
	}

	drop_weight = {
		weight = 0.01
		#does not occur naturally, but needs a non-zero weight
	}
}

d_natural_farmland = {
	is_for_colonizable = yes
	use_for_min_max_adjustments = yes

	category = deposit_cat_food

	use_weights_for_terraforming_swap_types = yes
	should_swap_deposit_on_terraforming = yes
	terraforming_swap_types = {
		d_lichen_fields
		d_bountiful_plains
		d_rugged_woods
		d_green_hills
		d_forgiving_tundra
		d_boggy_fens
		d_nutritious_mudland
		d_volcanic_dried_lavariver
	}

	planet_modifier = {
		district_farming_max_add = 1
	}

	potential = {
		is_planet_class = pc_gaia
	}

	drop_weight = {
		weight = 0.01
		#does not occur naturally, but needs a non-zero weight
	}
}

# HABITAT SPECIAL DEPOSITS
d_hab_gas_1 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extractor_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extraction_drone_add = 100
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_gas_2 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extractor_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extraction_drone_add = 200
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_gas_3 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extractor_add = 300
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extraction_drone_add = 300
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_gas_4 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extractor_add = 400
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extraction_drone_add = 400
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_gas_5 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extractor_add = 500
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_exotic_gases
			}
		}
		modifier = {
			job_gas_extraction_drone_add = 500
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_crystal_1 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_miner_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_mining_drone_add = 100
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_crystal_2 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_miner_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_mining_drone_add = 200
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_crystal_3 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_miner_add = 300
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_mining_drone_add = 300
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_crystal_4 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_miner_add = 400
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_mining_drone_add = 400
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_crystal_5 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_miner_add = 500
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_rare_crystals
			}
		}
		modifier = {
			job_crystal_mining_drone_add = 500
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_mote_1 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvester_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvesting_drone_add = 100
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_mote_2 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvester_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvesting_drone_add = 200
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_mote_3 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvester_add = 300
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvesting_drone_add = 300
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_mote_4 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvester_add = 400
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvesting_drone_add = 400
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_mote_5 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_regular_empire = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvester_add = 500
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = yes
				has_technology = tech_mine_volatile_motes
			}
		}
		modifier = {
			job_mote_harvesting_drone_add = 500
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_zro_1 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_zro }
			}
			sr_zro = 1
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_zro_2 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_zro }
			}
			sr_zro = 2
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_zro_3 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_zro }
			}
			sr_zro = 3
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_zro_4 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_zro }
			}
			sr_zro = 4
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_zro_5 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_zro }
			}
			sr_zro = 5
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_dark_matter_1 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_dark_matter }
			}
			sr_dark_matter = 1
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_dark_matter_2 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_dark_matter }
			}
			sr_dark_matter = 2
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_dark_matter_3 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_dark_matter }
			}
			sr_dark_matter = 3
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_dark_matter_10 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_dark_matter }
			}
			sr_dark_matter = 10
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_living_metal_1 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_mining_deposits
		produces = {
			trigger = {
				exists = owner
				owner = { has_technology = tech_mine_living_metal }
			}
			sr_living_metal = 1
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_alloy_1 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_mining_deposits
		produces = {
			alloys = 1
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_alloy_2 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_mining_deposits
		produces = {
			alloys = 2
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_alloy_3 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_mining_deposits
		produces = {
			alloys = 3
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_alloy_4 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_mining_deposits
		produces = {
			alloys = 4
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_alloy_5 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_mining_deposits
		produces = {
			alloys = 5
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_alloy_10 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_mining_deposits
		produces = {
			alloys = 10
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_alloy_25 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_mining_deposits
		produces = {
			alloys = 25
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_consumer_goods_2 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_mining_deposits
		produces = {
			consumer_goods = 2
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_nanites_3 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			nanites = 3
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_harvester_nanites_1 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			nanites = 0.1
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_harvester_nanites_2 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			nanites = 1.6
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_harvester_nanites_3 = {
	icon = "unused/d_space_walk"
	is_for_colonizable = yes
	category = deposit_cat_rare

	potential = {
		can_have_habitable_deposits = yes
		is_planet_class = pc_habitat
	}

	resources = {
		category = hab_research_deposits
		produces = {
			nanites = 25.2
		}
	}

	drop_weight = {
		weight = 0
	}
}
