Skip to content

Commit

Permalink
Demotion properly updates HUD icon (#26672)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrer and [email protected] authored Sep 3, 2024
1 parent 2426b85 commit e77ced3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/game/machinery/computer/card.dm
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0)
modify.rank = t1
modify.assignment = t1
regenerate_id_name()
modify.RebuildHTML()
return
if("demote")
if(modify.assignment == "Demoted")
Expand Down Expand Up @@ -561,7 +562,9 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0)
modify.access = access
modify.assignment = "Demoted"
modify.icon_state = "id"
modify.rank = "Assistant"
regenerate_id_name()
modify.RebuildHTML()
return
if("terminate")
if(!has_idchange_access()) // because captain/HOP can use this even on dept consoles
Expand All @@ -585,7 +588,9 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0)
job.current_positions--
modify.assignment = "Terminated"
modify.access = list()
modify.rank = "Terminated"
regenerate_id_name()
modify.RebuildHTML()
return
if("make_job_available") // MAKE ANOTHER JOB POSITION AVAILABLE FOR LATE JOINERS
var/edit_job_target = params["job"]
Expand Down

0 comments on commit e77ced3

Please sign in to comment.