/datum/job/hos
	title = "Head of Security"
	flag = HOS
	departments = list(DEPARTMENT_SECURITY = JOBROLE_SUPERVISOR, DEPARTMENT_COMMAND)
	department_flag = ENGSEC
	faction = "Station"
	total_positions = 1
	spawn_positions = 1
	intro_prefix = "the"
	supervisors = "the captain"
	selection_color = "#991818"
	economic_modifier = 10

	minimum_character_age = list(
		SPECIES_HUMAN = 30,
		SPECIES_SKRELL = 80,
		SPECIES_SKRELL_AXIORI = 80
	)

	job_access = list(
		ACCESS_SECURITY, ACCESS_EVA, ACCESS_SEC_DOORS, ACCESS_BRIG, ACCESS_ARMORY, ACCESS_FORENSICS_LOCKERS, ACCESS_MORGUE,
		ACCESS_MAINT_TUNNELS, ACCESS_ALL_PERSONAL_LOCKERS, ACCESS_RESEARCH, ACCESS_ENGINE, ACCESS_SHIP_WEAPONS, ACCESS_MINING,
		ACCESS_MEDICAL, ACCESS_CONSTRUCTION, ACCESS_MAILSORTING, ACCESS_HEADS, ACCESS_HOS, ACCESS_RC_ANNOUNCE, ACCESS_KEYCARD_AUTH,
		ACCESS_GATEWAY, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_WEAPONS, ACCESS_INTREPID, ACCESS_SPARK, ACCESS_QUARK, ACCESS_CANARY, ACCESS_TELEPORTER
	)
	minimal_player_age = 14
	outfit = /obj/outfit/job/hos

	blacklisted_species = list(SPECIES_TAJARA_ZHAN, SPECIES_DIONA, SPECIES_DIONA_COEUS, SPECIES_IPC_G1, SPECIES_IPC_G2, SPECIES_IPC_XION, SPECIES_VAURCA_WORKER, SPECIES_VAURCA_WARRIOR, SPECIES_VAURCA_ATTENDANT, SPECIES_VAURCA_BULWARK, SPECIES_VAURCA_BREEDER)

/obj/outfit/job/hos
	name = "Head of Security"
	jobtype = /datum/job/hos

	uniform = /obj/item/clothing/under/rank/head_of_security
	head = /obj/item/clothing/head/hos
	id = /obj/item/card/id/scc/silver
	shoes = null
	glasses = /obj/item/clothing/glasses/sunglasses/sechud/head

	headset = /obj/item/radio/headset/heads/hos
	bowman = /obj/item/radio/headset/heads/hos/alt
	double_headset = /obj/item/radio/headset/alt/double/hos
	wrist_radio = /obj/item/radio/headset/wrist/hos
	clipon_radio = /obj/item/radio/headset/wrist/clip/hos

	tab_pda = /obj/item/modular_computer/handheld/pda/security/hos
	wristbound = /obj/item/modular_computer/handheld/wristbound/preset/pda/security/hos
	tablet = /obj/item/modular_computer/handheld/preset/security/hos

	implants = list(
		/obj/item/implant/mindshield
	)

	backpack = /obj/item/storage/backpack/hos
	satchel = /obj/item/storage/backpack/satchel/hos
	dufflebag = /obj/item/storage/backpack/duffel/hos
	messengerbag = /obj/item/storage/backpack/messenger/hos

/obj/outfit/job/hos/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
	. = ..()
	if(istajara(H))
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots/toeless(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather/tajara(H), slot_gloves)
	else if(isunathi(H))
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots/toeless(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather/unathi(H), slot_gloves)
	else
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather(H), slot_gloves)

/datum/job/warden
	title = "Warden"
	flag = WARDEN
	departments = SIMPLEDEPT(DEPARTMENT_SECURITY)
	department_flag = ENGSEC
	faction = "Station"
	total_positions = 1
	spawn_positions = 1
	supervisors = "the head of security"
	selection_color = "#991818"
	economic_modifier = 5

	minimum_character_age = list(
		SPECIES_HUMAN = 25,
		SPECIES_SKRELL = 60,
		SPECIES_SKRELL_AXIORI = 60
	)

	job_access = list(ACCESS_SECURITY, ACCESS_EVA, ACCESS_SEC_DOORS, ACCESS_BRIG, ACCESS_ARMORY, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_WEAPONS)
	minimal_player_age = 7
	outfit = /obj/outfit/job/warden

	blacklisted_species = list(SPECIES_IPC_XION_REMOTE, SPECIES_VAURCA_BULWARK, SPECIES_DIONA_COEUS, SPECIES_VAURCA_BREEDER)

/obj/outfit/job/warden
	name = "Warden"
	jobtype = /datum/job/warden

	uniform = /obj/item/clothing/under/rank/warden
	suit = /obj/item/clothing/suit/storage/toggle/warden
	glasses = /obj/item/clothing/glasses/sunglasses/sechud/aviator
	shoes = null

	headset = /obj/item/radio/headset/headset_warden
	bowman = /obj/item/radio/headset/headset_warden/alt
	double_headset = /obj/item/radio/headset/alt/double/sec/warden
	wrist_radio = /obj/item/radio/headset/wrist/sec/warden
	clipon_radio = /obj/item/radio/headset/wrist/clip/sec/warden

	tab_pda = /obj/item/modular_computer/handheld/pda/security
	wristbound = /obj/item/modular_computer/handheld/wristbound/preset/pda/security
	tablet = /obj/item/modular_computer/handheld/preset/security

	backpack = /obj/item/storage/backpack/security
	satchel = /obj/item/storage/backpack/satchel/sec
	dufflebag = /obj/item/storage/backpack/duffel/sec
	messengerbag = /obj/item/storage/backpack/messenger/sec

/obj/outfit/job/warden/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
	. = ..()
	if(istajara(H))
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots/toeless(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather/tajara(H), slot_gloves)
	else if(isunathi(H))
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots/toeless(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather/unathi(H), slot_gloves)
	else
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather(H), slot_gloves)

/datum/job/investigator
	title = "Investigator"
	flag = FORENSICS
	departments = SIMPLEDEPT(DEPARTMENT_SECURITY)
	department_flag = ENGSEC
	faction = "Station"
	total_positions = 2
	spawn_positions = 2
	supervisors = "the head of security"
	selection_color = "#991818"
	economic_modifier = 5

	minimum_character_age = list(
		SPECIES_HUMAN = 25,
		SPECIES_SKRELL = 60,
		SPECIES_SKRELL_AXIORI = 60
	)

	job_access = list(
		ACCESS_SECURITY, ACCESS_SEC_DOORS, ACCESS_FORENSICS_LOCKERS, ACCESS_MORGUE, ACCESS_WEAPONS
	)
	minimal_player_age = 3
	outfit = /obj/outfit/job/forensics
	blacklisted_species = list(SPECIES_IPC_XION_REMOTE, SPECIES_VAURCA_BULWARK, SPECIES_VAURCA_BREEDER)
	skill_requirements = alist(
		/singleton/skill/surgery = SKILL_LEVEL_TRAINED
	)

/obj/outfit/job/forensics
	name = "Investigator"
	jobtype = /datum/job/investigator

	uniform = /obj/item/clothing/under/det
	shoes = /obj/item/clothing/shoes/laceup

	headset = /obj/item/radio/headset/headset_sec
	bowman = /obj/item/radio/headset/headset_sec/alt
	double_headset = /obj/item/radio/headset/alt/double/sec
	wrist_radio = /obj/item/radio/headset/wrist/sec
	clipon_radio = /obj/item/radio/headset/wrist/clip/sec

	tab_pda = /obj/item/modular_computer/handheld/pda/security/detective
	wristbound = /obj/item/modular_computer/handheld/wristbound/preset/pda/security/detective
	tablet = /obj/item/modular_computer/handheld/preset/security/detective

	backpack = /obj/item/storage/backpack/security
	satchel = /obj/item/storage/backpack/satchel/sec
	dufflebag = /obj/item/storage/backpack/duffel/sec
	messengerbag = /obj/item/storage/backpack/messenger/sec

	backpack_contents = list(
		/obj/item/storage/box/evidence = 1
	)

/obj/outfit/job/forensics/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
	. = ..()
	H.equip_or_collect(new /obj/item/clothing/gloves/black/forensic(H), slot_gloves)

/datum/job/officer
	title = "Security Officer"
	flag = OFFICER
	departments = SIMPLEDEPT(DEPARTMENT_SECURITY)
	department_flag = ENGSEC
	faction = "Station"
	total_positions = 4
	spawn_positions = 4
	supervisors = "the head of security"
	selection_color = "#991818"
	economic_modifier = 4

	minimum_character_age = list(
		SPECIES_HUMAN = 18,
		SPECIES_SKRELL = 50,
		SPECIES_SKRELL_AXIORI = 50
	)

	job_access = list(
		ACCESS_SECURITY, ACCESS_EVA, ACCESS_SEC_DOORS, ACCESS_BRIG, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_WEAPONS
	)
	minimal_player_age = 7
	outfit = /obj/outfit/job/officer

	blacklisted_species = list(SPECIES_IPC_XION_REMOTE, SPECIES_VAURCA_BULWARK, SPECIES_DIONA_COEUS, SPECIES_VAURCA_BREEDER)

/obj/outfit/job/officer
	name = "Security Officer"
	jobtype = /datum/job/officer

	uniform = /obj/item/clothing/under/rank/security
	shoes = null

	headset = /obj/item/radio/headset/headset_sec
	bowman = /obj/item/radio/headset/headset_sec/alt
	double_headset = /obj/item/radio/headset/alt/double/sec
	wrist_radio = /obj/item/radio/headset/wrist/sec
	clipon_radio = /obj/item/radio/headset/wrist/clip/sec

	tab_pda = /obj/item/modular_computer/handheld/pda/security
	wristbound = /obj/item/modular_computer/handheld/wristbound/preset/pda/security
	tablet = /obj/item/modular_computer/handheld/preset/security

	backpack = /obj/item/storage/backpack/security
	satchel = /obj/item/storage/backpack/satchel/sec
	dufflebag = /obj/item/storage/backpack/duffel/sec
	messengerbag = /obj/item/storage/backpack/messenger/sec

/obj/outfit/job/officer/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
	. = ..()
	if(istajara(H))
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots/toeless(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather/tajara(H), slot_gloves)
	else if(isunathi(H))
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots/toeless(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather/unathi(H), slot_gloves)
	else
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather(H), slot_gloves)

/datum/job/intern_sec
	title = "Security Cadet"
	flag = INTERN_SEC
	departments = SIMPLEDEPT(DEPARTMENT_SECURITY)
	department_flag = ENGSEC
	faction = "Station"
	alt_titles = list("Investigator Intern", "Warden Cadet")
	alt_outfits = list("Investigator Intern" = /obj/outfit/job/intern_sec/forensics)
	alt_ages = list("Investigator Intern" = list(
		SPECIES_HUMAN = 24,
		SPECIES_SKRELL = 58,
		SPECIES_SKRELL_AXIORI = 58
	),
	"Warden Cadet" = list(
		SPECIES_HUMAN = 24,
		SPECIES_SKRELL = 58,
		SPECIES_SKRELL_AXIORI = 58
	))
	total_positions = 2
	spawn_positions = 2
	supervisors = "the Head of Security"
	selection_color = "#991818"

	job_access = list(ACCESS_SECURITY, ACCESS_SEC_DOORS)
	outfit = /obj/outfit/job/intern_sec/officer
	minimum_character_age = list(
		SPECIES_HUMAN = 18,
		SPECIES_SKRELL = 50,
		SPECIES_SKRELL_AXIORI = 50
	)

	blacklisted_species = list(SPECIES_IPC_XION_REMOTE, SPECIES_VAURCA_BULWARK, SPECIES_DIONA_COEUS, SPECIES_VAURCA_BREEDER)

/obj/outfit/job/intern_sec
	name = "Security Cadet"
	jobtype = /datum/job/intern_sec

	uniform = /obj/item/clothing/under/rank/cadet
	suit = /obj/item/clothing/suit/storage/hazardvest/security
	head = /obj/item/clothing/head/beret/security

	headset = /obj/item/radio/headset/headset_sec
	bowman = /obj/item/radio/headset/headset_sec/alt
	double_headset = /obj/item/radio/headset/alt/double/sec
	wrist_radio = /obj/item/radio/headset/wrist/sec
	clipon_radio = /obj/item/radio/headset/wrist/clip/sec

	backpack = /obj/item/storage/backpack/security
	satchel = /obj/item/storage/backpack/satchel/sec
	dufflebag = /obj/item/storage/backpack/duffel/sec
	messengerbag = /obj/item/storage/backpack/messenger/sec

	tab_pda = /obj/item/modular_computer/handheld/pda/security
	wristbound = /obj/item/modular_computer/handheld/wristbound/preset/pda/security
	tablet = /obj/item/modular_computer/handheld/preset/security

/obj/outfit/job/intern_sec/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
	. = ..()

/obj/outfit/job/intern_sec/officer
	name = "Security Cadet"
	jobtype = /datum/job/intern_sec

	shoes = null

/obj/outfit/job/intern_sec/officer/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
	. = ..()
	if(istajara(H))
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots/toeless(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather/tajara(H), slot_gloves)
	else if(isunathi(H))
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots/toeless(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather/unathi(H), slot_gloves)
	else
		H.equip_to_slot_or_del(new /obj/item/clothing/shoes/jackboots(H), slot_shoes)
		H.equip_to_slot_or_del(new /obj/item/clothing/gloves/black_leather(H), slot_gloves)

/obj/outfit/job/intern_sec/forensics
	name = "Investigator Intern"
	jobtype = /datum/job/intern_sec

	shoes = /obj/item/clothing/shoes/laceup

/obj/outfit/job/intern_sec/forensics/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
	. = ..()
	H.equip_or_collect(new /obj/item/clothing/gloves/black/forensic(H), slot_gloves)

