[MIRROR] Makes it so coroner is only listed in medical department instead of both service and medical [MDB IGNORE] (#21053)

* Makes it so coroner is only listed in medical department instead of both service and medical (#75284)

Removes coroner from being under service in the crew manifest and
latejoin meny
I believe it would also make it so getting banned from Service jobs
wouldn't ban you from coroner. (Don't know if that ban type would ever
be used)

* Makes it so coroner is only listed in medical department instead of both service and medical

---------

Co-authored-by: BlueMemesauce <47338680+BlueMemesauce@users.noreply.github.com>
Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-05-12 00:52:01 -07:00
committed by GitHub
co-authored by BlueMemesauce lessthanthree
parent 3178aaaea1
commit 2e430fa6d6
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -42,6 +42,9 @@ GLOBAL_DATUM_INIT(manifest, /datum/manifest, new)
)
continue
for(var/department_type as anything in job.departments_list)
//Jobs under multiple departments should only be displayed if this is their first department or the command department
if(job.departments_list[1] != department_type && !(job.departments_bitflags & DEPARTMENT_BITFLAG_COMMAND))
continue
var/datum/job_department/department = departments_by_type[department_type]
if(!department)
stack_trace("get_manifest() failed to get job department for [department_type] of [job.type]")
@@ -67,6 +67,10 @@ GLOBAL_DATUM_INIT(latejoin_menu, /datum/latejoin_menu, new)
departments[department.department_name] = department_data
for(var/datum/job/job_datum as anything in department.department_jobs)
//Jobs under multiple departments should only be displayed if this is their first department or the command department
if(LAZYLEN(job_datum.departments_list) > 1 && job_datum.departments_list[1] != department.type && !(job_datum.departments_bitflags & DEPARTMENT_BITFLAG_COMMAND))
continue
var/job_availability = owner.IsJobUnavailable(job_datum.title, latejoin = TRUE)
var/list/job_data = list(
@@ -101,6 +105,10 @@ GLOBAL_DATUM_INIT(latejoin_menu, /datum/latejoin_menu, new)
departments[department.department_name] = department_data
for(var/datum/job/job_datum as anything in department.department_jobs)
//Jobs under multiple departments should only be displayed if this is their first department or the command department
if(LAZYLEN(job_datum.departments_list) > 1 && job_datum.departments_list[1] != department.type && !(job_datum.departments_bitflags & DEPARTMENT_BITFLAG_COMMAND))
continue
var/list/job_data = list(
"command" = !!(job_datum.departments_bitflags & DEPARTMENT_BITFLAG_COMMAND),
"description" = job_datum.description,