mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-07-10 23:33:00 +01:00
19 lines
831 B
Plaintext
19 lines
831 B
Plaintext
/**
|
|
* Some modifications to the jobs subsystem, courtesy of SandPoot.
|
|
* If we pull from upstream we should have this somewhere at some point, so it's shoehorned
|
|
* in here for the moment.
|
|
* Insert unhelpful comment here.
|
|
*/
|
|
|
|
/datum/controller/subsystem/job/proc/get_job_name(job_name)
|
|
if (!job_name)
|
|
return "Unknown" // Invalid job
|
|
//var/all_alt_titles = get_all_alt_titles()
|
|
//if (job_name in all_alt_titles) // Check if the name is an alt title
|
|
//return get_job_name(all_alt_titles[job_name]) // Locate the original job title and return it
|
|
if (job_name in get_all_job_icons()) // Check if the job has a HUD icon
|
|
return job_name
|
|
if (job_name in get_all_centcom_jobs()) // Return the NT logo if it is a CentCom job
|
|
return "CentCom"
|
|
return "Unknown" // Return unknown if none of the above apply
|