munitions_decommissioner = {
	category = specialist
	is_capped_by_modifier = yes

	swappable_data = {
		default = {
			building_icon = building_research_lab_1
		}
	}

	tags = { alloys research minor_artifacts}

	possible_precalc = can_fill_specialist_job
	possible_pre_triggers = {
		has_owner = yes
		is_being_purged = no
		is_being_assimilated = no
		is_sapient = yes
	}

	resources = {
		category = planet_researchers
		produces = {
			alloys = 1
			engineering_research = 5
		}
		produces = {
			trigger = {
				has_ancrel = yes
				owner = { NOT = { has_ascension_perk = ap_archaeoengineers } }
			}
			minor_artifacts = 1
		}
		produces = {
			trigger = {
				has_ancrel = yes
				owner = { has_ascension_perk = ap_archaeoengineers }
			}
			minor_artifacts = 2
		}
		upkeep = {
			consumer_goods = 2
		}
	}

	inline_script = "jobs/academia_recruiter_naval_cap_add"

	inline_script = "jobs/inf_navalcap_jobs"
	inline_script = "jobs/automodding_priority_research"

}

munitions_decommissioning_unit = {
	category = complex_drone
	is_capped_by_modifier = yes

	swappable_data = {
		default = {
			building_icon = building_research_lab_1
		}
	}

	tags = { alloys research minor_artifacts}

	possible_precalc = can_fill_drone_job
	possible_pre_triggers = {
		has_owner = yes
		is_being_purged = no
		is_being_assimilated = no
		is_sapient = yes
	}

	possible = {
		is_lithoid = no
	}

	resources = {
		category = planet_researchers
		produces = {
			alloys = 1
			engineering_research = 5
		}
		produces = {
			trigger = {
				has_ancrel = yes
				owner = { NOT = { has_ascension_perk = ap_archaeoengineers } }
			}
			minor_artifacts = 1
		}
		produces = {
			trigger = {
				has_ancrel = yes
				owner = { has_ascension_perk = ap_archaeoengineers }
			}
			minor_artifacts = 2
		}
		upkeep = {
			food = 6
		}
	}

	inline_script = "jobs/academia_recruiter_naval_cap_add"

	inline_script = "jobs/inf_navalcap_jobs"
	inline_script = "jobs/automodding_priority_research"

}

munitions_decommissioning_unit_lithoid = {
	category = complex_drone
	is_capped_by_modifier = yes

	swappable_data = {
		default = {
			building_icon = building_research_lab_1
		}
	}

	possible_precalc = can_fill_drone_job
	possible_pre_triggers = {
		has_owner = yes
		is_being_purged = no
		is_being_assimilated = no
		is_sapient = yes
	}

	possible = {
		is_lithoid = yes
	}

	resources = {
		category = planet_researchers
		produces = {
			alloys = 1
			engineering_research = 5
		}
		produces = {
			trigger = {
				has_ancrel = yes
				owner = { NOT = { has_ascension_perk = ap_archaeoengineers } }
			}
			minor_artifacts = 1
		}
		produces = {
			trigger = {
				has_ancrel = yes
				owner = { has_ascension_perk = ap_archaeoengineers }
			}
			minor_artifacts = 2
		}
		upkeep = {
			minerals = 6
		}
	}

	inline_script = "jobs/academia_recruiter_naval_cap_add"

	inline_script = "jobs/inf_navalcap_jobs"
	inline_script = "jobs/automodding_priority_research"

}

munitions_decommissioning_drone = {
	category = complex_drone
	is_capped_by_modifier = yes

	swappable_data = {
		default = {
			building_icon = building_research_lab_1
		}
	}

	tags = { alloys research minor_artifacts }

	possible_precalc = can_fill_drone_job
	possible_pre_triggers = {
		has_owner = yes
		is_being_purged = no
		is_being_assimilated = no
		is_sapient = yes
	}

	resources = {
		category = planet_researchers
		produces = {
			alloys = 1
			engineering_research = 5
		}
		produces = {
			trigger = {
				has_ancrel = yes
				owner = { NOT = { has_ascension_perk = ap_archaeoengineers } }
			}
			minor_artifacts = 1
		}
		produces = {
			trigger = {
				has_ancrel = yes
				owner = { has_ascension_perk = ap_archaeoengineers }
			}
			minor_artifacts = 2
		}
		upkeep = {
			energy = 4
		}
	}

	inline_script = "jobs/academia_recruiter_naval_cap_add"

	inline_script = "jobs/automodding_priority_research"

}

astral_researcher = {
	category = specialist

	swappable_data = {
		default = {
			condition_string = SPECIALIST_JOB_TRIGGER
			building_icon = building_astral_siphon_1
		}
	}

	tags = { research astral_threads }

	possible_pre_triggers = {
		has_owner = yes
		is_being_purged = no
		is_being_assimilated = no
		is_sapient = yes
	}

	possible_precalc = can_fill_specialist_job
	possible = {
		complex_specialist_job_check_trigger = yes
	}

	resources = {
		category = planet_researchers
		produces = {
			physics_research = 2.5
			engineering_research = 0.5
			society_research = 0.5
			astral_threads = 0.3
		}
		upkeep = {
			consumer_goods = 2
		}
		upkeep = {
			trigger = {
				has_carrier_flag = has_science_ministry
			}
			consumer_goods = 1
		}
	}

	overlord_resources = {
		category = planet_requisitioned_research
		produces = {
			trigger = {
				colony? = {
					has_carrier_flag = has_science_ministry
				}
			}
			physics_research = 0.5
			engineering_research = 0.5
			society_research = 0.5
		}
	}

	inline_script = "jobs/academia_recruiter_naval_cap_add"

	inline_script = "jobs/inf_navalcap_jobs"

	weight = {
		weight = @specialist_job_weight
		modifier = {
			factor = 0.2
			has_citizenship_rights = no
			NOT = { has_trait = trait_mechanical }
		}
		modifier = {
			factor = 2
			has_living_standard = { type = living_standard_academic_privilege }
		}
		modifier = {
			factor = 0.1
			can_take_servant_job = yes
		}
		modifier = {
			factor = 0.8
			is_enslaved = yes
			has_slavery_type = { type = slavery_indentured }
		}
	}

	inline_script = "jobs/automodding_priority_research"

}

astral_drone = {
	category = complex_drone

	swappable_data = {
		default = {
			condition_string = DRONE_JOB_TRIGGER
			building_icon = building_astral_siphon_1
			icon = astral_researcher
		}
	}

	tags = { research astral_threads }

	possible_pre_triggers = {
		has_owner = yes
		is_enslaved = no
		is_being_purged = no
		is_being_assimilated = no
		is_sapient = yes
	}

	possible_precalc = can_fill_drone_job

	possible = { can_think = yes }

	resources = {
		category = planet_researchers
		produces = { # see also: 'inline_scripts\jobs\astral_researchers_add.txt' for Wilderness empires
			physics_research = 2.5
			engineering_research = 0.5
			society_research = 0.5
			astral_threads = 0.3
		}
		upkeep = {
			minerals = 6
		}
		upkeep = {
			trigger = {
				has_carrier_flag = has_science_ministry
			}
			minerals = 3
		}
	}

	overlord_resources = {
		category = planet_requisitioned_research
		produces = {
			trigger = {
				colony? = {
					has_carrier_flag = has_science_ministry
				}
			}
			physics_research = 0.5
			engineering_research = 0.5
			society_research = 0.5
		}
	}

	inline_script = "jobs/academia_recruiter_naval_cap_add"

	inline_script = "jobs/inf_navalcap_jobs"

	weight = {
		weight = @complex_drone_job_weight
	}

	inline_script = "jobs/automodding_priority_research"

}

astral_unit = {
	category = complex_drone

	swappable_data = {
		default = {
			condition_string = DRONE_JOB_TRIGGER
			building_icon = building_astral_siphon_1
			icon = astral_researcher
		}
	}

	tags = { research astral_threads }

	possible_pre_triggers = {
		has_owner = yes
		is_enslaved = no
		is_being_purged = no
		is_being_assimilated = no
		is_sapient = yes
	}

	possible_precalc = can_fill_drone_job

	possible = { can_think = yes }

	resources = {
		category = planet_researchers
		produces = {
			physics_research = 2.5
			engineering_research = 0.5
			society_research = 0.5
			astral_threads = 0.3
		}
		upkeep = {
			energy = 4
		}
		upkeep = {
			trigger = {
				has_carrier_flag = has_science_ministry
			}
			energy = 2
		}
	}

	overlord_resources = {
		category = planet_requisitioned_research
		produces = {
			trigger = {
				colony? = {
					has_carrier_flag = has_science_ministry
				}
			}
			physics_research = 0.5
			engineering_research = 0.5
			society_research = 0.5
		}
	}

	inline_script = "jobs/academia_recruiter_naval_cap_add"

	weight = {
		weight = @complex_drone_job_weight
		modifier = {
			factor = 0.9
			exists = owner
			years_passed < 1
			owner = { has_valid_civic = civic_machine_assimilator }
			has_trait = trait_cybernetic
		}
	}

	inline_script = "jobs/automodding_priority_research"

}
