# Possible Deposit Variables
# modifier - weight, will replace the weight value
# modifier - factor, will multiply the weight value
# resources, resource and amount
# station = station class in orbit to gather
# if you mix resources that are not supposed to be collected by an orbital station remember to put is_orbital_slot = no

#NULL DEPOSIT MUST EXIST
d_null_deposit = {
	is_null = yes
	
	drop_weight = {
		weight = 50
		modifier = {
			weight = 0
			planet = {
				OR = {
					is_planet_class = pc_black_hole
					is_planet_class = pc_neutron_star
					is_planet_class = pc_pulsar				
				}
			}
		}
		modifier = {
			weight = 33
			planet = {
				is_planet_class = pc_gaia
			}
		}
		modifier = {
			weight = 100
			planet = {
				OR = {
					is_planet_class = pc_barren
					is_planet_class = pc_barren_cold
					is_planet_class = pc_a_star
					is_planet_class = pc_b_star
					is_planet_class = pc_f_star
					is_planet_class = pc_g_star
					is_planet_class = pc_k_star
					is_planet_class = pc_m_star
					is_planet_class = pc_nuked
				}
			}
		}
	}
}

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

d_mineral_deposit = {
	resources = { minerals = 1 }
	station = shipclass_mining_station
	orbital_weight = {
		weight = 10
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 10
			planet = {
				is_planet_class = pc_nuked
			}
		}
		modifier = {
			weight = 15
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_tropical
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
				}
			}
		}
	}
}

d_rich_mineral_deposit = {
	resources = { minerals = 2 }
	station = shipclass_mining_station
	orbital_weight = {
		weight = 20
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 6
			planet = {
				OR = {
					is_planet_class = pc_molten
					is_planet_class = pc_toxic
					is_planet_class = pc_nuked
					is_planet_class = pc_frozen
				}
			}
		}
		modifier = {
			weight = 8
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_tropical
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
				}
			}
		}
		modifier = {
			weight = 12
			planet = {
				OR = {
					is_planet_class = pc_barren
					is_planet_class = pc_barren_cold
				}
			}
		}
		modifier = {
			weight = 22
			planet = {
				is_asteroid = yes
			}
		}
	}
}

d_vast_mineral_deposit = {
	resources = { minerals = 3 }
	station = shipclass_mining_station
	orbital_weight = {
		weight = 30
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 1
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_tropical
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
					is_planet_class = pc_frozen
					is_planet_class = pc_molten
					is_planet_class = pc_toxic
				}
			}
		}
		modifier = {
			weight = 3
			planet = {
				is_asteroid = yes
			}
		}
		modifier = {
			factor = 0.5
			planet = {
				is_asteroid = yes
				is_in_cluster = resource_cluster_0
			}
		}
	}
}

d_immense_mineral_deposit = {
	resources = { minerals = 4 }
	station = shipclass_mining_station
	orbital_weight = {
		weight = 50
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 1
			planet = {
				is_asteroid = yes
			}
		}
		modifier = {
			weight = 35
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_gaia
						is_planet_class = pc_continental
						is_planet_class = pc_ringworld_habitable
						is_planet_class = pc_tropical
						is_planet_class = pc_ocean
						is_planet_class = pc_arid
						is_planet_class = pc_desert
						is_planet_class = pc_tundra
						is_planet_class = pc_arctic
						is_planet_class = pc_nuked
					}
					OR = {
						has_planet_modifier = "pm_ultra_rich"
						has_planet_modifier = "pm_mineral_rich"					
					}
				}
			}
		}
		modifier = {
			weight = 100
			planet = {
				has_planet_modifier = "pm_chthonian_planet"
			}
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}
		}
	}
}

##################################
######### MIXED DEPOSITS #########
##################################

d_mineral_energy_deposit = {
	resources = {
		energy = 1
		minerals = 1
	}
	station = shipclass_mining_station
	orbital_weight = {
		weight = 20
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 8
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_tropical
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
				}
			}
		}
	}
}





##################################
######### ENERGY CREDITS #########
##################################

d_energy_deposit = {
	resources = { energy = 1 }
	station = shipclass_mining_station
	orbital_weight = {
		weight = 10
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 15
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_tropical
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
				}
			}
		}
	}
}

d_rich_energy_deposit = {
	resources = { energy = 2 }
	station = shipclass_mining_station
	orbital_weight = {
		weight = 20
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 3
			planet = {
				is_planet_class = pc_molten
			}
		}
		modifier = {
			weight = 4
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_tropical
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
				}
			}
		}
		modifier = {
			weight = 12
			planet = {
				OR = {
					is_planet_class = pc_a_star
					is_planet_class = pc_b_star
					is_planet_class = pc_f_star
					is_planet_class = pc_g_star
					is_planet_class = pc_k_star
					is_planet_class = pc_m_star
				}
			}
		}
		modifier = {
			weight = 30
			planet = {
				is_planet_class = pc_gas_giant
			}
		}
	}
}

d_vast_energy_deposit = {
	resources = { energy = 3 }
	station = shipclass_mining_station
	orbital_weight = {
		weight = 30
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 2
			planet = {
				OR = {
					is_planet_class = pc_a_star
					is_planet_class = pc_b_star
					is_planet_class = pc_f_star
					is_planet_class = pc_g_star
					is_planet_class = pc_k_star
					is_planet_class = pc_m_star
				}
			}
		}
		modifier = {
			weight = 5
			planet = {
				is_planet_class = pc_gas_giant
			}
		}
	}
}

d_immense_energy_deposit = {
	resources = { energy = 4 }
	station = shipclass_mining_station
	orbital_weight = {
		weight = 50
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 1
			planet = {
				is_planet_class = pc_gas_giant
			}
		}
	}
}

##################################
######### 		FOOD 	 #########
##################################


##################################
######### 	SOCIETY 	 #########
##################################

d_society_deposit = {
	resources = { society_research = 1 }
	station = shipclass_research_station 
	orbital_weight = {
		weight = 10
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 7
			planet = {
				OR = {
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
				}
			}
		}
		modifier = {
			weight = 8
			planet = {
				is_planet_class = pc_gaia
			}
		}
		modifier = {
			weight = 9
			planet = {
				is_planet_class = pc_tropical
			}
		}
	}
}

d_rich_society_deposit = {
	resources = { society_research = 2 }
	station = shipclass_research_station 
	orbital_weight = {
		weight = 20
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 3
			planet = {
				OR = {
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
					is_planet_class = pc_nuked
				}
			}
		}
		modifier = {
			weight = 4
			planet = {
				is_planet_class = pc_tropical
			}
		}
		modifier = {
			weight = 4
			planet = {
				is_planet_class = pc_toxic
			}
		}
		modifier = {
			weight = 5
			planet = {
				is_planet_class = pc_gaia
			}
		}
	}
}

d_vast_society_deposit = {
	resources = { society_research = 3 }
	station = shipclass_research_station 
	orbital_weight = {
		weight = 30
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 1
			planet = {
				OR = {
					is_planet_class = pc_toxic
					is_planet_class = pc_gaia
				}
			}
		}
		modifier = {
			weight = 1
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_continental
						is_planet_class = pc_ringworld_habitable
						is_planet_class = pc_tropical
						is_planet_class = pc_ocean
						is_planet_class = pc_arid
						is_planet_class = pc_desert
						is_planet_class = pc_tundra
						is_planet_class = pc_arctic
					}
					OR = {					
						has_planet_modifier = "pm_titanic_life"
						has_planet_modifier = "pm_dangerous_wildlife"
						has_planet_modifier = "pm_natural_beauty"
						has_planet_modifier = "pm_atmospheric_aphrodisiac"
						has_planet_modifier = "pm_atmospheric_hallucinogen"
						has_planet_modifier = "pm_lush"	
					}
				}
			}
		}
		modifier = {
			weight = 2
			planet = {
				is_planet_class = pc_nuked
			}
		}
		modifier = {
			factor = 3
			planet = {
				OR = {					
					has_planet_modifier = "pm_titanic_life"
					has_planet_modifier = "pm_dangerous_wildlife"
					has_planet_modifier = "pm_natural_beauty"
					has_planet_modifier = "pm_atmospheric_aphrodisiac"
					has_planet_modifier = "pm_atmospheric_hallucinogen"
					has_planet_modifier = "pm_lush"	
				}
			}
		}
	}
}

d_immense_society_deposit = {
	resources = { society_research = 4 }
	station = shipclass_research_station
	orbital_weight = {
		weight = 50
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 2
			planet = {
				is_planet_class = pc_gaia
			}
		}
		modifier = {
			weight = 35
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_continental
						is_planet_class = pc_ringworld_habitable
						is_planet_class = pc_tropical
						is_planet_class = pc_ocean
						is_planet_class = pc_arid
						is_planet_class = pc_desert
						is_planet_class = pc_tundra
						is_planet_class = pc_arctic
					}
					OR = {					
						has_planet_modifier = "pm_titanic_life"
						has_planet_modifier = "pm_dangerous_wildlife"
						has_planet_modifier = "pm_natural_beauty"
						has_planet_modifier = "pm_atmospheric_aphrodisiac"
						has_planet_modifier = "pm_atmospheric_hallucinogen"
						has_planet_modifier = "pm_lush"	
					}
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}		
		}
	}
}

##################################
######### 	 PHYSICS 	 #########
##################################

d_physics_deposit = {
	resources = { physics_research = 1 }
	station = shipclass_research_station 
	orbital_weight = {
		weight = 10
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 7
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
					is_planet_class = pc_tropical
				}
			}
		}
	}
}

d_rich_physics_deposit = {
	resources = { physics_research = 2 }
	station = shipclass_research_station 
	orbital_weight = {
		weight = 20
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 3
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_tropical
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
				}
			}
		}
		modifier = {
			weight = 3
			planet = {
				OR = {
					is_planet_class = pc_a_star
					is_planet_class = pc_b_star
					is_planet_class = pc_f_star
					is_planet_class = pc_g_star
					is_planet_class = pc_k_star
					is_planet_class = pc_m_star
				}
			}
		}
	}
}

d_vast_physics_deposit = {
	resources = { physics_research = 3 }
	station = shipclass_research_station 
	orbital_weight = {
		weight = 30
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 1
			planet = {
				OR = {
					is_planet_class = pc_a_star
					is_planet_class = pc_b_star
					is_planet_class = pc_f_star
					is_planet_class = pc_g_star
					is_planet_class = pc_k_star
					is_planet_class = pc_m_star
				}
			}
		}
		modifier = {
			weight = 2
			planet = {
				is_planet_class = pc_nuked
			}
		}
		modifier = {
			weight = 1
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_gaia
						is_planet_class = pc_continental
						is_planet_class = pc_ringworld_habitable
						is_planet_class = pc_tropical
						is_planet_class = pc_ocean
						is_planet_class = pc_arid
						is_planet_class = pc_desert
						is_planet_class = pc_tundra
						is_planet_class = pc_arctic
					}
					OR = {
						has_planet_modifier = "pm_chthonian_planet"
						has_planet_modifier = "pm_wild_storms"
					}
				}
			}
		}
		modifier = {
			weight = 20
			planet = {
				OR = {
					is_planet_class = pc_pulsar
					is_planet_class = pc_neutron_star
				}
			}
		}
	}
}

d_immense_physics_deposit = {
	resources = { physics_research = 4 }
	station = shipclass_research_station
	orbital_weight = {
		weight = 50
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 1
			planet = {
				is_planet_class = pc_nuked
			}
		}
		modifier = {
			weight = 20
			planet = {
				OR = {
					is_planet_class = pc_black_hole
					is_planet_class = pc_pulsar
					is_planet_class = pc_neutron_star
				}
			}
		}
		modifier = {
			weight = 35
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_gaia
						is_planet_class = pc_continental
						is_planet_class = pc_continental
						is_planet_class = pc_ringworld_habitable
						is_planet_class = pc_ocean
						is_planet_class = pc_arid
						is_planet_class = pc_desert
						is_planet_class = pc_tundra
						is_planet_class = pc_arctic
					}
					OR = {
						has_planet_modifier = "pm_chthonian_planet"
						has_planet_modifier = "pm_wild_storms"
					}
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}		
		}
	}
}


##################################
#########  ENGINEERING   #########
##################################

d_engineering_deposit = {
	resources = { engineering_research = 1 }
	station = shipclass_research_station 
	orbital_weight = {
		weight = 10
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 6
			planet = {
				is_planet_class = pc_tropical
			}
		}
		modifier = {
			weight = 7
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
				}
			}
		}
	}
}

d_rich_engineering_deposit = {
	resources = { engineering_research = 2 }
	station = shipclass_research_station 
	orbital_weight = {
		weight = 20
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 3
			planet = {
				OR = {
					is_planet_class = pc_gaia
					is_planet_class = pc_continental
					is_planet_class = pc_ringworld_habitable
					is_planet_class = pc_tropical
					is_planet_class = pc_ocean
					is_planet_class = pc_arid
					is_planet_class = pc_desert
					is_planet_class = pc_tundra
					is_planet_class = pc_arctic
				}
			}
		}
		modifier = {
			weight = 3
			planet = {
				OR = {
					is_planet_class = pc_frozen
					is_planet_class = pc_gas_giant
				}
			}
		}
	}
}

d_vast_engineering_deposit = {
	resources = { engineering_research = 3 }
	station = shipclass_research_station 
	orbital_weight = {
		weight = 30
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 1
			planet = {
				OR = {
					is_planet_class = pc_frozen
					is_planet_class = pc_gas_giant
					is_planet_class = pc_nuked
				}
			}
		}
		modifier = {
			weight = 10
			planet = {
				AND = {
					is_planet_class = pc_molten
					has_planet_modifier = "pm_chthonian_planet"
				}
			}
		}
		modifier = {
			weight = 1
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_gaia
						is_planet_class = pc_continental
						is_planet_class = pc_ringworld_habitable
						is_planet_class = pc_tropical
						is_planet_class = pc_ocean
						is_planet_class = pc_arid
						is_planet_class = pc_desert
						is_planet_class = pc_tundra
						is_planet_class = pc_arctic
					}
					has_planet_modifier = "pm_unstable_tectonics"
				}
			}
		}
		modifier = {
			weight = 20
			planet = {
				OR = {
					is_planet_class = pc_black_hole
					is_planet_class = pc_neutron_star
					is_planet_class = pc_pulsar
				}
			}
		}
	}
}

d_immense_engineering_deposit = {
	resources = { engineering_research = 4 }
	station = shipclass_research_station
	orbital_weight = {
		weight = 50
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 1
			planet = {
				is_planet_class = pc_nuked
			}
		}
		modifier = {
			weight = 5
			planet = {
				AND = {
					is_planet_class = pc_molten
					has_planet_modifier = "pm_chthonian_planet"
				}
			}
		}
		modifier = {
			weight = 20
			planet = {
				OR = {
					is_planet_class = pc_black_hole
					is_planet_class = pc_pulsar
					is_planet_class = pc_neutron_star
				}
			}
		}
		modifier = {
			weight = 35
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_gaia
						is_planet_class = pc_continental
						is_planet_class = pc_ringworld_habitable
						is_planet_class = pc_tropical
						is_planet_class = pc_ocean
						is_planet_class = pc_arid
						is_planet_class = pc_desert
						is_planet_class = pc_tundra
						is_planet_class = pc_arctic
					}
					has_planet_modifier = "pm_unstable_tectonics"
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}
		}
	}
}

##################################
###### EVENT & DISCOVERY   #######
##################################

d_enormous1_engineering_deposit = {
	resources = { engineering_research = 6 }
	station = shipclass_research_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous2_engineering_deposit = {
	resources = { engineering_research = 8 }
	station = shipclass_research_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous3_engineering_deposit = {
	resources = { engineering_research = 10 }
	station = shipclass_research_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous1_physics_deposit = {
	resources = { physics_research = 6 }
	station = shipclass_research_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous2_physics_deposit = {
	resources = { physics_research = 8 }
	station = shipclass_research_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous3_physics_deposit = {
	resources = { physics_research = 10 }
	station = shipclass_research_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous1_society_deposit = {
	resources = { society_research = 6 }
	station = shipclass_research_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous2_society_deposit = {
	resources = { society_research = 8 }
	station = shipclass_research_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous3_society_deposit = {
	resources = { society_research = 10 }
	station = shipclass_research_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous1_mineral_deposit = {
	resources = { minerals = 6 }
	station = shipclass_mining_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous2_mineral_deposit = {
	resources = { minerals = 8 }
	station = shipclass_mining_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}

d_enormous3_mineral_deposit = {
	resources = { minerals = 10 }
	station = shipclass_mining_station
	orbital_weight = { weight = 0 }
	drop_weight = { weight = 0 }
}


##################################
########## TERRAFORMING ##########
##################################

d_terraforming_gas_deposit = {
	resources = {
		sr_terraform_gases = 1
		energy = 3
	}
	station = shipclass_mining_station
	orbital_weight = {
		weight = 55
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 5
			planet = {
				OR = {
					is_planet_class = pc_gas_giant
				}
			}
		}
		modifier = {
			factor = 2
			planet = {
				AND = {
					is_planet_class = pc_gas_giant
					is_inside_nebula = yes
				}
			}			
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}
		}
	}
}

d_terraforming_fluid_deposit = {
	resources = {
		sr_terraform_liquids = 1
		energy = 3
	}
	station = shipclass_mining_station 
	orbital_weight = {
		weight = 55
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 3
			planet = {
				OR = {
					is_planet_class = pc_frozen
				}
			}
		}
		modifier = {
			factor = 2
			planet = {
				AND = {
					is_planet_class = pc_frozen
					is_inside_nebula = yes
				}
			}			
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}
		}
	}

}

#######################################
######### STRATEGIC RESOURCES #########
#######################################

#############
# Clustered #
#############
@clusterOrbitalWeight = 60

d_garanthium_deposit = {
	resources = {
		minerals = 3
		sr_garanthium = 1
	}
	station = shipclass_mining_station
	orbital_weight = {
		weight = @clusterOrbitalWeight
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 3
			planet = {
				AND = {
					is_asteroid = yes
					has_strategic_resource = no
				}
			}
		}
		modifier = {
			factor = 2
			planet = {
				is_inside_nebula = yes
			}
		}
		modifier = {
			factor = 0
			planet = {
				NOT = { is_in_cluster = resource_cluster_0 }
			}
		}
	}
}

d_lythuric_gas_deposit = {
	resources = { 
		physics_research = 1
		society_research = 1
		sr_lythuric = 1
	}
	station = shipclass_research_station
	orbital_weight = {
		weight = @clusterOrbitalWeight
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 4
			planet = {
				AND = {
					is_planet_class = pc_gas_giant
					has_strategic_resource = no
				}
			}
		}
		modifier = {
			factor = 2
			planet = {
				is_inside_nebula = yes
			}
		}
		modifier = {
			factor = 0
			planet = {
				NOT = { is_in_cluster = resource_cluster_1 }
			}
		}
	}
}

d_engos_deposit = {
	resources = {
		society_research = 1
		physics_research = 1
		sr_engos = 1
	}
	station = shipclass_research_station	
	orbital_weight = {
		weight = @clusterOrbitalWeight
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 7
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_gaia
						is_planet_class = pc_toxic
					}
					has_strategic_resource = no
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				NOT = { is_in_cluster = resource_cluster_2 }
			}
		}
	}
}

d_teldar_deposit = {
	resources = {
		engineering_research = 1
		society_research = 1
		sr_teldar = 1
	}
	station = shipclass_research_station
	orbital_weight = {
		weight = @clusterOrbitalWeight
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 2
			planet = {
				AND = {
					OR = {
						is_asteroid = yes
						is_planet_class = pc_frozen					
					}
					has_strategic_resource = no
				}
			}
		}
		modifier = {
			factor = 2
			planet = {
				is_inside_nebula = yes
			}
		}
		modifier = {
			factor = 0
			planet = {
				NOT = { is_in_cluster = resource_cluster_3 }
			}
		}
	}
}


d_pitharan_deposit = {
	resources = {
		society_research = 1
		engineering_research = 1
		sr_pitharan = 1
	}
	station = shipclass_research_station
	orbital_weight = {
		weight = @clusterOrbitalWeight
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 6
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_toxic
						is_planet_class = pc_gaia
					}
					has_strategic_resource = no
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				NOT = { is_in_cluster = resource_cluster_4 }
			}
		}
	}
}

d_orillium_deposit = {
	resources = {
		engineering_research = 2
		sr_orillium = 1
	}
	station = shipclass_mining_station
	orbital_weight = {
		weight = @clusterOrbitalWeight
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 3
			planet = {
				AND = {
					is_asteroid = yes
					has_strategic_resource = no
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				NOT = { is_in_cluster = resource_cluster_5 }
			}
		}
	}
}

#################
# Non-clustered #
#################

d_neutronium_deposit = {
	resources = { 
		engineering_research = 5
		sr_neutronium = 1
	}
	station = shipclass_research_station
	orbital_weight = {
		weight = 100
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 100
			planet = {
				AND = {
					is_planet_class = pc_neutron_star
				}
			}
		}
		modifier = {
			factor = 2
			planet = {
				AND = {
					is_planet_class = pc_neutron_star
					is_inside_nebula = yes
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}
		}
	}
}

d_living_metal_deposit = {
	resources = { 
		engineering_research = 5
		sr_living_metal = 1
	}
	station = shipclass_research_station
	orbital_weight = {
		weight = 100
	}
	
	drop_weight = {
		weight = 0
	}
}

d_dark_matter_deposit = {
	resources = {
		physics_research = 5
		sr_dark_matter = 1
	}
	station = shipclass_research_station 
	orbital_weight = {
		weight = 100
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 40
			planet = {
				AND = {
					is_planet_class = pc_black_hole
					has_strategic_resource = no
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
				}
			}
		}
	}
}

d_betharian_deposit = {
	resources = {
		minerals = 3
		sr_betharian = 1
	}
	station = shipclass_mining_station
	orbital_weight = {
		weight = 80
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			factor = 0.10
			planet = {
				is_inside_nebula = no
			}			
		}
		modifier = {
			weight = 1
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_gaia
						is_planet_class = pc_frozen
						is_planet_class = pc_toxic
						is_planet_class = pc_barren
						is_planet_class = pc_barren_cold
						is_planet_class = pc_molten
					}
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}
		}
	}
}

d_alien_pets_deposit = {
	resources = {
		society_research = 4
		sr_alien_pets = 1
	}
	station = shipclass_research_station
	orbital_weight = {
		weight = 60
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 3
			planet = {
				AND = {
					OR = {
						is_planet_class = pc_gaia
						is_planet_class = pc_continental
						is_planet_class = pc_ringworld_habitable
						is_planet_class = pc_tropical
						is_planet_class = pc_ocean
						is_planet_class = pc_arid
						is_planet_class = pc_desert
						is_planet_class = pc_tundra
						is_planet_class = pc_arctic
					}
					has_owner = no
				}
			}
		}
		modifier = {
			factor = 5
			planet = {
				OR = {
					has_planet_modifier = "pm_lush"
					has_planet_modifier = "pm_dangerous_wildlife"
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}
		}
	}
}

d_satramene_deposit = {
	resources = { 
		energy = 4
		sr_satramene = 1
	}
	station = shipclass_mining_station
	orbital_weight = {
		weight = 60
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 1
			planet = {
				OR = {
					is_planet_class = pc_toxic
					is_planet_class = pc_gas_giant
				}
			}
		}
		modifier = {
			factor = 0.25
			solar_system = {
				NOT =  {
					OR = {
						is_star_class = sc_g
						is_star_class = sc_k
						is_star_class = sc_f
					}
				}
			}
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}
		}
	}
}

d_zro_deposit = {
	resources = { 
		society_research = 2
		physics_research = 2
		sr_zro = 1
	}
	station = shipclass_research_station
	orbital_weight = {
		weight = 200
	}
	
	drop_weight = {
		weight = 0
		modifier = {
			weight = 25
			planet = {
				AND = {
					is_planet_class = pc_gas_giant
					is_inside_nebula = yes
				}
			}			
		}
		modifier = {
			factor = 0
			planet = {
				OR = {
					has_deposit = "d_immense_mineral_deposit"
					has_deposit = "d_immense_energy_deposit"
					has_deposit = "d_immense_society_deposit"
					has_deposit = "d_immense_physics_deposit"
					has_deposit = "d_immense_engineering_deposit"
					has_strategic_resource = yes
				}
			}
		}
	}
}