mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user