[MIRROR] Fixes assistants going to medium priority when other job is selected [MDB IGNORE] (#12270)

* Fixes assistants going to medium priority when other job is selected (#65645)

* Fixes assistants going to medium priority when other job is selected

Co-authored-by: Tastyfish <crazychris32@gmail.com>
This commit is contained in:
SkyratBot
2022-03-25 07:29:11 -07:00
committed by GitHub
co-authored by Tastyfish
parent 20f1aded5d
commit dba71eefb8
+8 -1
View File
@@ -507,9 +507,16 @@ INITIALIZE_IMMEDIATE(/atom/movable/screen/character_preview_view)
return FALSE
if (level == JP_HIGH)
var/datum/job/overflow_role = SSjob.overflow_role
var/overflow_role_title = initial(overflow_role.title)
for(var/other_job in job_preferences)
if(job_preferences[other_job] == JP_HIGH)
job_preferences[other_job] = JP_MEDIUM
// Overflow role needs to go to NEVER, not medium!
if(other_job == overflow_role_title)
job_preferences[other_job] = null
else
job_preferences[other_job] = JP_MEDIUM
job_preferences[job.title] = level