Skip to content

Commit

Permalink
Где.
Browse files Browse the repository at this point in the history
  • Loading branch information
SmiLeYre committed Dec 6, 2024
1 parent 4932bf0 commit 285f35c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/game/machinery/computer/security.dm
Original file line number Diff line number Diff line change
Expand Up @@ -951,12 +951,12 @@ What a mess.*/
temp += "<ul>"
for(var/rank in get_all_jobs())
temp += "<li><a href='?src=[REF(src)];choice=Change Rank;rank=[rank]'>[rank]</a>"
var/datum/job/job_datum = SSjob.name_occupations[rank]
if(job_datum && length(job_datum.alt_titles))
var/how_many_alts = length(job_datum.alt_titles)
temp += "<a href='?src=[REF(src)];choice=Edit Field;field=alt_title;rank=[rank]'>Use Title<span style='color:#BBBBBB; font-style: italic;'> ([how_many_alts + 1] options)</span></a>"
temp += "</li>"
temp += "</ul>"
var/datum/job/job_datum = SSjob.name_occupations[rank]
if(job_datum && length(job_datum.alt_titles))
var/how_many_alts = length(job_datum.alt_titles)
temp += "<a href='?src=[REF(src)];choice=Edit Field;field=alt_title;rank=[rank]'>Use Title<span style='color:#BBBBBB; font-style: italic;'> ([how_many_alts + 1] options)</span></a>"
temp += "</li>"
temp += "</ul>"
else
alert(usr, "You do not have the required rank to do this!")
if("alt_title")
Expand Down

0 comments on commit 285f35c

Please sign in to comment.