###############################
#	Ancient Relics Deposits	#
###############################

# Relic World Blockers

d_collapsed_spire = {
	time = 480
	icon = d_broken_spire

	is_for_colonizable = yes
	category = deposit_cat_rare_blocker

	potential = { always = no }

	planet_modifier = {
		planet_max_districts_add = -1
	}

	use_weights_for_blocker_swap_types = no

	# blocker_swap_types = {
	# 	d_central_spire
	# }

	on_cleared = {
		custom_tooltip = add_zone_central_spire_tt
		hidden_effect = {
			set_carrier_flag = central_spire_cleared
			add_zone = {
				district = 0
				zone = zone_central_spire
				zone_slot = 1
				replace = yes
			}
		}
	}

	resources = {
		category = deposit_blockers
		cost = {
			energy = 2000
		}
	}

	ai_weight = {
		weight = 1000
	}
}

d_massive_crevice = {
	time = 270
	icon = d_massive_crevice

	is_for_colonizable = yes
	category = deposit_cat_rare_blocker

	potential = { always = no }

	planet_modifier = {
		planet_max_districts_add = -1
	}

	use_weights_for_blocker_swap_types = no

	blocker_swap_types = {
		d_industrial_sector
	}

	resources = {
		category = deposit_blockers
		cost = {
			energy = 1000
		}
	}

	ai_weight = {
		weight = 100
	}
}

d_shattered_solar_array = {
	icon = d_solar_array
	time = 270

	is_for_colonizable = yes
	category = deposit_cat_rare_blocker

	potential = { always = no }

	planet_modifier = {
		planet_max_districts_add = -1
	}

	use_weights_for_blocker_swap_types = no

	blocker_swap_types = {
		d_immense_solar_array
	}

	resources = {
		category = deposit_blockers
		cost = {
			energy = 1000
		}
	}
}

d_flooded_reactor_pits = {
	icon = d_reactor
	time = 270

	is_for_colonizable = yes
	category = deposit_cat_rare_blocker

	potential = { always = no }

	planet_modifier = {
		planet_max_districts_add = -1
	}

	use_weights_for_blocker_swap_types = no

	blocker_swap_types = {
		d_ancient_reactor_pits
	}

	resources = {
		category = deposit_blockers
		cost = {
			energy = 1000
		}
	}
}

d_crumbling_mining_tunnels = {
	icon = d_mining_tunnels
	time = 270

	is_for_colonizable = yes
	category = deposit_cat_rare_blocker

	potential = { always = no }

	planet_modifier = {
		planet_max_districts_add = -1
	}

	use_weights_for_blocker_swap_types = no

	blocker_swap_types = {
		d_abandoned_mining_tunnels
	}

	resources = {
		category = deposit_blockers
		cost = {
			energy = 1000
		}
	}
}

# Relic World Deposits

d_ancient_reactor_pits = {
	is_for_colonizable = yes
	icon = d_reactor

	potential = { always = no }

	planet_modifier = {
		district_generator_max_add = 6
	}
}

d_immense_solar_array = {
	is_for_colonizable = yes
	icon = d_solar_array

	potential = { always = no }

	planet_modifier = {
		district_generator_max_add = 3
	}
}

d_abandoned_mining_tunnels = {
	is_for_colonizable = yes
	icon = d_mining_tunnels

	potential = { always = no }

	planet_modifier = {
		district_mining_max_add = 6
	}
}

d_relic_metal_boneyard = {
	is_for_colonizable = yes
	icon = d_metal_boneyard

	potential = { always = no }

	planet_modifier = {
		district_mining_max_add = 3
	}
}

d_central_spire = {
	is_for_colonizable = yes
	icon = d_central_spire
	category = deposit_cat_rare

	potential = { always = no }

	planet_modifier = {
		planet_jobs_society_research_produces_mult = 0.15
		planet_jobs_engineering_research_produces_mult = 0.15
		planet_jobs_physics_research_produces_mult = 0.15
	}

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

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		job_calculator_physicist_add = 400
		job_calculator_biologist_add = 400
		job_calculator_engineer_add = 400
	}
}

d_industrial_sector = {
	is_for_colonizable = yes
	icon = d_ruins_medium
	category = deposit_cat_rare

	potential = { always = no }

	planet_modifier = {
		planet_miners_rare_crystals_produces_add = 0.25
		planet_farmers_exotic_gases_produces_add = 0.25
		planet_technician_volatile_motes_produces_add = 0.25
		district_farming_max_add = 6
	}
}

d_relic_dense_ruins = {
	is_for_colonizable = yes
	icon = d_ruins_large
	category = deposit_cat_rare

	potential = { always = no }

	planet_modifier = {
		planet_max_districts_mult = -0.25
		planet_jobs_society_research_produces_mult = 0.15
		planet_jobs_engineering_research_produces_mult = 0.15
		planet_jobs_physics_research_produces_mult = 0.15
	}
}

d_former_relic_world = {
	is_for_colonizable = yes
	icon = d_central_spire
	category = deposit_cat_rare

	potential = { always = no }

	planet_modifier = {
		planet_jobs_society_research_produces_mult = 0.1
		planet_jobs_engineering_research_produces_mult = 0.1
		planet_jobs_physics_research_produces_mult = 0.1
	}
}

# Archaeology Event Deposits

d_mutation_vats = {
	is_for_colonizable = yes
	icon = d_metal_boneyard
	category = deposit_cat_rare

	potential = { always = no }

	resources = {
		category = planet_deposits
		produces = {
			society_research = 12
			exotic_gases = 1
		}
	}

}

# Artifacts Deposits

d_artifacts_research_1 = {
	resources = {
		category = orbital_research_deposits
		produces = {
			minor_artifacts = 1
		}
	}
	station = shipclass_research_station

	habitat_modifier = {
		district_hab_science_max_add = 1
	}

	potential = { always = no }

	drop_weight = {
		weight = 0
	}
}

d_artifacts_research_2 = {
	resources = {
		category = orbital_research_deposits
		produces = {
			minor_artifacts = 2
		}
	}
	station = shipclass_research_station

	habitat_modifier = {
		district_hab_science_max_add = 2
	}

	potential = { always = no }

	drop_weight = {
		weight = 0
	}
}

d_artifacts_research_3 = {
	resources = {
		category = orbital_research_deposits
		produces = {
			minor_artifacts = 3
		}
	}
	station = shipclass_research_station

	habitat_modifier = {
		district_hab_science_max_add = 2
	}

	potential = { always = no }

	drop_weight = {
		weight = 0
	}
}

d_artifacts_mining_1 = {
	resources = {
		category = orbital_mining_deposits
		produces = {
			minor_artifacts = 1
		}
	}
	station = shipclass_mining_station

	habitat_modifier = {
		district_hab_science_max_add = 1
	}

	potential = { always = no }

	drop_weight = {
		weight = 0
	}
}

d_artifacts_mining_2 = {
	resources = {
		category = orbital_mining_deposits
		produces = {
			minor_artifacts = 2
		}
	}
	station = shipclass_mining_station

	habitat_modifier = {
		district_hab_science_max_add = 1
	}

	potential = { always = no }

	drop_weight = {
		weight = 0
	}
}

d_artifacts_mining_3 = {
	resources = {
		category = orbital_mining_deposits
		produces = {
			minor_artifacts = 3
		}
	}
	station = shipclass_mining_station

	habitat_modifier = {
		district_hab_science_max_add = 1
	}

	potential = { always = no }

	drop_weight = {
		weight = 0
	}
}

d_artifacts_planet_1 = {
	is_for_colonizable = yes
	icon = "d_archaeological_dig"
	category = deposit_cat_rare

	potential = { always = no }

	resources = {
		category = orbital_research_deposits
		produces = {
			minor_artifacts = 1
		}
	}
}

d_artifacts_planet_2 = {
	is_for_colonizable = yes
	icon = "d_archaeological_dig"
	category = deposit_cat_rare

	potential = { always = no }

	resources = {
		category = orbital_research_deposits
		produces = {
			minor_artifacts = 2
		}
	}
}

d_artifacts_planet_3 = {
	is_for_colonizable = yes
	icon = "d_archaeological_dig"
	category = deposit_cat_rare

	potential = { always = no }

	resources = {
		category = orbital_research_deposits
		produces = {
			minor_artifacts = 3
		}
	}
}

d_baol_growth = {
	is_for_colonizable = yes
	icon = d_city_ruins
	category = deposit_cat_rare

	potential = { always = no }

	planet_modifier = {
		planet_jobs_produces_mult = 0.05
		pop_happiness = 0.05
		logistic_growth_mult = 0.075
		planet_resettlement_unemployed_destination_mult = 0.25
		pop_environment_tolerance = 0.25
	}
}
