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

This commit is contained in:
Tastyfish
2022-03-25 21:16:50 +08:00
committed by GitHub
parent 15f31a0bc3
commit 5a1fa40c6b
+8 -1
View File
@@ -442,9 +442,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