# Maven Origin
d_arcane_device = {
	is_for_colonizable = yes
	icon = "d_station_reactor"
	category = deposit_cat_rare

	potential = { always = no }

	resources = {
		category = planet_deposits
		produces = {
			alloys = 8
		}
		upkeep = {
			energy = 4
		}
	}
}

# Legendary Leader
d_volcanic_active_planet = { #Unstable Planet
	is_for_colonizable = yes
	icon = d_mineral_striations
	category = deposit_cat_rare

	planet_modifier = {
		district_mining_max_add = 3
		planet_miners_volatile_motes_produces_add = 0.1
	}

	potential = { always = no }
}

d_hostile_fauna = { #Hostile Planet
	is_for_colonizable = yes
	icon = d_dangerous_wildlife_blocker
	category = deposit_cat_rare

	potential = { always = no }

	planet_modifier = {
		district_farming_max_add = 1
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
			NOT = { has_modifier = slave_colony }
			NOT = { has_knights_zone = yes }
		}
		modifier = {
			job_soldier_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
			NOT = { has_modifier = slave_colony }
			has_knights_zone = yes
		}
		modifier = {
			job_knight_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
			has_modifier = slave_colony
		}
		modifier = {
			job_battle_thrall_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_warrior_drone_add = 200
		}
	}
}

d_hostile_flora = { #Hostile Planet
	is_for_colonizable = yes
	icon = d_lush_jungle
	category = deposit_cat_rare

	potential = { always = no }

	planet_modifier = {
		district_farming_max_add = 1
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
			NOT = { has_modifier = slave_colony }
			NOT = { has_knights_zone = yes }
		}
		modifier = {
			job_soldier_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
			NOT = { has_modifier = slave_colony }
			has_knights_zone = yes
		}
		modifier = {
			job_knight_add = 50
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
			has_modifier = slave_colony
		}
		modifier = {
			job_battle_thrall_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_warrior_drone_add = 100
		}
	}
}

d_space_ship_graveyard = { #Ship Graveyard
	is_for_colonizable = yes
	icon = d_crashed_ship
	category = deposit_cat_rare

	potential = { always = no }
	custom_tooltip = miner_is_scrap_miner_tt
	planet_modifier = {
		planet_housing_add = 100
		planet_max_districts_add = -1
		planet_jobs_minerals_produces_mult = -0.05
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		modifier = {
			job_miner_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_mining_drone_add = 100
		}
	}
}

d_fallen_orbital_shipyard = { #Ship Graveyard
	is_for_colonizable = yes
	icon = d_station_junk
	category = deposit_cat_rare

	potential = { always = no }
	custom_tooltip = miner_is_scrap_miner_tt
	planet_modifier = {
		planet_housing_add = 800
		district_generator_max_add = 3
		district_mining_max_add = 3
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		modifier = {
			job_miner_add = 400
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_mining_drone_add = 400
		}
	}
}

d_pulsar_scarred = {
	is_for_colonizable = yes
	icon = d_nanite_corpses
	category = deposit_cat_rare

	potential = { always = no }

	planet_modifier = {
		planet_technician_energy_produces_add = 2
	}
}

d_ancient_facilities = {
	is_for_colonizable = yes
	icon = d_nanite_corpses
	category = deposit_cat_rare

	potential = { always = no }

	planet_modifier = {
		district_generator_max_add = 3
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_regular_empire = yes }
		}
		job_physicist_add = 200
	}

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