# Orbital Deposits

d_astral_threads_deposit_1 = {
	resources = {
		category = orbital_research_deposits
		produces = {
			astral_threads = 1
		}
	}
	station = shipclass_research_station
	is_for_colonizable = no

	habitat_modifier = {
		district_hab_science_max_add = 1
	}

	drop_weight = {
		weight = 0
	}
}

d_astral_threads_deposit_2 = {
	resources = {
		category = orbital_research_deposits
		produces = {
			astral_threads = 2
		}
	}
	station = shipclass_research_station
	is_for_colonizable = no

	habitat_modifier = {
		district_hab_science_max_add = 2
	}

	drop_weight = {
		weight = 0
	}
}

d_astral_threads_deposit_3 = {
	resources = {
		category = orbital_research_deposits
		produces = {
			astral_threads = 3
		}
	}
	station = shipclass_research_station
	is_for_colonizable = no

	habitat_modifier = {
		district_hab_science_max_add = 2
	}

	drop_weight = {
		weight = 0
	}
}

d_crystal_rift = {
	resources = {
		category = orbital_research_deposits
		produces = {
			unity = 10
		}
		produces = {
			physics_research = 10
		}
	}
	station = shipclass_research_station
	is_for_colonizable = no

	habitat_modifier = {
		district_hab_science_max_add = 6
	}

	drop_weight = {
		weight = 0
	}
}

d_physics_25 = {
	resources = {
		category = orbital_research_deposits
		produces = {
			physics_research = 25
		}
	}
	station = shipclass_research_station
	is_for_colonizable = no

	habitat_modifier = {
		district_hab_science_max_add = 13
	}

	drop_weight = {
		weight = 0
	}
}

d_engineering_25 = {
	resources = {
		category = orbital_research_deposits
		produces = {
			engineering_research = 25
		}
	}
	station = shipclass_research_station
	is_for_colonizable = no

	habitat_modifier = {
		district_hab_science_max_add = 13
	}

	drop_weight = {
		weight = 0
	}
}

d_society_25 = {
	resources = {
		category = orbital_research_deposits
		produces = {
			society_research = 25
		}
	}
	station = shipclass_research_station
	is_for_colonizable = no

	habitat_modifier = {
		district_hab_science_max_add = 13
	}

	drop_weight = {
		weight = 0
	}
}

# Habitat Deposits
d_hab_astral_threads_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_astral_harvesting }
			}
			astral_threads = 1
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_astral_threads_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_astral_harvesting }
			}
			astral_threads = 2
		}
	}

	drop_weight = {
		weight = 0
	}
}

d_hab_astral_threads_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_astral_harvesting }
			}
			astral_threads = 3
		}
	}

	drop_weight = {
		weight = 0
	}
}

# Planetary Features

d_fractal_seed = {
	is_for_colonizable = yes
	icon = d_fractal_seed
	category = deposit_cat_rare

	planet_modifier = {
		planet_max_districts_add = 1
	}

	potential = { always = no }
}

d_rockworm_hive = {
	is_for_colonizable = yes
	icon = d_rockworm_hive_dig
	use_for_min_max_adjustments = yes
	category = deposit_cat_rare

	planet_modifier = {
		planet_jobs_minerals_produces_mult = 0.2
		district_mining_max_add = 5
	}

	potential = { always = no }
}

d_rockworm_hive_volcanic = {
	is_for_colonizable = yes
	icon = d_rockworm_hive_dig
	use_for_min_max_adjustments = yes
	category = deposit_cat_rare

	planet_modifier = {
		planet_jobs_minerals_produces_mult = 0.2
		district_mining_max_add = 5
	}

	triggered_planet_modifier = {
		potential = {
			is_planet_class = pc_volcanic
		}
		district_mining_max_add = 5
		mult = value:natural_desposit_district_amount_multiplier
	}

	potential = { always = no }
}

d_forceful_winds = {
	is_for_colonizable = yes
	icon = d_forceful_winds
	use_for_min_max_adjustments = yes
	category = deposit_cat_rare

	planet_modifier = {
		planet_jobs_energy_produces_mult = 0.30
		district_generator_max_add = 5
	}

	triggered_planet_modifier = {
		potential = {
			always = yes
		}
		district_generator_max_add = 5
		mult = value:natural_desposit_district_amount_multiplier
	}

	potential = { always = no }
}

d_microplanet_memorial = {
	is_for_colonizable = yes
	icon = d_microplanet_memorial
	category = deposit_cat_rare

	planet_modifier = {
		planet_stability_add = 3
		planet_crime_add = -30
	}

	potential = { always = no }
}

d_weapon_extraction_facility = {
	is_for_colonizable = yes
	icon = d_organic_landfill
	category = deposit_cat_rare

	planet_modifier = {
		planet_jobs_engineering_research_produces_mult = 0.1
		planet_engineers_engineering_research_produces_add = 6
		planet_engineers_alloys_produces_add = 1
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		planet_engineers_consumer_goods_upkeep_add = 1.5
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_hive_empire = yes }
		}
		planet_engineers_minerals_upkeep_add = 4
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_machine_empire = yes }
		}
		planet_engineers_energy_upkeep_add = 3
	}

	triggered_planet_modifier = {
		potential = {
			has_ancrel = yes
			exists = owner
			owner = {
				NOT = {
					has_ascension_perk = ap_archaeoengineers
				}
			}
		}
		planet_engineers_minor_artifacts_produces_add = 1
	}

	triggered_planet_modifier = {
		potential = {
			has_ancrel = yes
			exists = owner
			owner = {
				has_ascension_perk = ap_archaeoengineers
			}
		}
		planet_engineers_minor_artifacts_produces_add = 2
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = {
				is_gestalt = no
			}
		}
		job_engineer_add = 200
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		job_calculator_engineer_add = 200
	}

	potential = { always = no }
}
