From c13e67e74632afb4c53acf7450bce918e3e65ec7 Mon Sep 17 00:00:00 2001 From: Geeves Date: Thu, 2 May 2024 00:31:26 +0200 Subject: [PATCH] Job Title Fix (#19042) * Changing the ID of someone with an alt-title will no longer boot them to the Misc section of the manifest. salt pr --- code/controllers/subsystems/job.dm | 3 +++ html/changelogs/geeevs-job_title_fix.yml | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 html/changelogs/geeevs-job_title_fix.yml diff --git a/code/controllers/subsystems/job.dm b/code/controllers/subsystems/job.dm index 04f2efde15e..a2676b7cf09 100644 --- a/code/controllers/subsystems/job.dm +++ b/code/controllers/subsystems/job.dm @@ -54,6 +54,9 @@ SUBSYSTEM_DEF(jobs) continue occupations += job name_occupations[job.title] = job + if(LAZYLEN(job.alt_titles)) + for(var/alt_title in job.alt_titles) + name_occupations[alt_title] = job type_occupations[J] = job if(!length(bitflag_to_job["[job.department_flag]"])) bitflag_to_job["[job.department_flag]"] = list() diff --git a/html/changelogs/geeevs-job_title_fix.yml b/html/changelogs/geeevs-job_title_fix.yml new file mode 100644 index 00000000000..5904b8b20e0 --- /dev/null +++ b/html/changelogs/geeevs-job_title_fix.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - bugfix: "Changing the ID of someone with an alt-title will no longer boot them to the Misc section of the manifest." \ No newline at end of file