###############################################
# Xenomorph Deposits and Blockers
###############################################

d_feral_xenomorphs = {
	icon = d_progenitor
	time = 360

	is_for_colonizable = yes
	category = deposit_cat_blockers

	potential = {
		OR = {
			is_planet_class = pc_xenomorph_hive
			is_planet_class = pc_xenomorph_hive_fortress
			is_planet_class = pc_xenomorph_hive_brood
			is_planet_class = pc_xenomorph_hive_foundry
			is_planet_class = pc_xenomorph_tentacle
			is_planet_class = pc_xenomorph_tentacle_fortress
			is_planet_class = pc_xenomorph_tentacle_brood
			is_planet_class = pc_xenomorph_tentacle_foundry
			is_planet_class = pc_xenomorph_infested_ringworld
			is_planet_class = pc_xenomorph_infested_ringworld_fortress
			is_planet_class = pc_xenomorph_infested_ringworld_brood
			is_planet_class = pc_xenomorph_infested_ringworld_foundry
			is_planet_class = pc_xenomorph_infested_ecumenopolis
			is_planet_class = pc_xenomorph_infested_ecumenopolis_fortress
			is_planet_class = pc_xenomorph_infested_ecumenopolis_brood
			is_planet_class = pc_xenomorph_infested_ecumenopolis_foundry
			is_planet_class = pc_xenomorph_infested_ocean
			is_planet_class = pc_xenomorph_infested_ocean_fortress
			is_planet_class = pc_xenomorph_infested_ocean_brood
			is_planet_class = pc_xenomorph_infested_ocean_foundry
		}
	}

	drop_weight = {
		weight = 4
	}

	planet_modifier = {
		pop_environment_tolerance = -0.05
	}

	can_be_cleared = {
		planet = {
			num_armies > 10
		}
	}

	on_cleared = {
		random_list = {
			1 = {
				add_deposit = d_pacified_xenomorphs
			}
			1 = {
				add_deposit = d_xenomorph_remains
			}
		}
	}

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

d_pacified_xenomorphs = {
	icon = d_progenitor
	is_for_colonizable = yes
	should_swap_deposit_on_terraforming = no

	category = deposit_cat_rare

	potential = {
		OR = {
			is_planet_class = pc_xenomorph_hive
			is_planet_class = pc_xenomorph_hive_fortress
			is_planet_class = pc_xenomorph_hive_brood
			is_planet_class = pc_xenomorph_hive_foundry
			is_planet_class = pc_xenomorph_tentacle
			is_planet_class = pc_xenomorph_tentacle_fortress
			is_planet_class = pc_xenomorph_tentacle_brood
			is_planet_class = pc_xenomorph_tentacle_foundry
			is_planet_class = pc_xenomorph_infested_ringworld
			is_planet_class = pc_xenomorph_infested_ringworld_fortress
			is_planet_class = pc_xenomorph_infested_ringworld_brood
			is_planet_class = pc_xenomorph_infested_ringworld_foundry
			is_planet_class = pc_xenomorph_infested_ecumenopolis
			is_planet_class = pc_xenomorph_infested_ecumenopolis_fortress
			is_planet_class = pc_xenomorph_infested_ecumenopolis_brood
			is_planet_class = pc_xenomorph_infested_ecumenopolis_foundry
			is_planet_class = pc_xenomorph_infested_ocean
			is_planet_class = pc_xenomorph_infested_ocean_fortress
			is_planet_class = pc_xenomorph_infested_ocean_brood
			is_planet_class = pc_xenomorph_infested_ocean_foundry
		}
	}

	drop_weight = {
		weight = 2
	}

	resources = {
		category = planet_deposits
		produces = {
			society_research = 16
			alloys = 4
		}
		upkeep = {
			energy = 5
		}
	}
}

d_xenomorph_remains = {
	icon = d_progenitor
	is_for_colonizable = yes
	should_swap_deposit_on_terraforming = no

	category = deposit_cat_rare

	potential = {
		OR = {
			is_planet_class = pc_xenomorph_hive
			is_planet_class = pc_xenomorph_hive_fortress
			is_planet_class = pc_xenomorph_hive_brood
			is_planet_class = pc_xenomorph_hive_foundry
			is_planet_class = pc_xenomorph_tentacle
			is_planet_class = pc_xenomorph_tentacle_fortress
			is_planet_class = pc_xenomorph_tentacle_brood
			is_planet_class = pc_xenomorph_tentacle_foundry
			is_planet_class = pc_xenomorph_infested_ringworld
			is_planet_class = pc_xenomorph_infested_ringworld_fortress
			is_planet_class = pc_xenomorph_infested_ringworld_brood
			is_planet_class = pc_xenomorph_infested_ringworld_foundry
			is_planet_class = pc_xenomorph_infested_ecumenopolis
			is_planet_class = pc_xenomorph_infested_ecumenopolis_fortress
			is_planet_class = pc_xenomorph_infested_ecumenopolis_brood
			is_planet_class = pc_xenomorph_infested_ecumenopolis_foundry
			is_planet_class = pc_xenomorph_infested_ocean
			is_planet_class = pc_xenomorph_infested_ocean_fortress
			is_planet_class = pc_xenomorph_infested_ocean_brood
			is_planet_class = pc_xenomorph_infested_ocean_foundry
		}
	}

	drop_weight = {
		weight = 4
	}

	resources = {
		category = planet_deposits
		produces = {
			society_research = 8
			alloys = 2
		}
	}
}
