Skip to content

Commit

Permalink
Fixes assistants going to medium priority when other job is selected (t…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tastyfish authored Mar 25, 2022
1 parent 15f31a0 commit 5a1fa40
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5a1fa40

Please sign in to comment.