Skip to content

Commit

Permalink
Merge branch 'novice_fix_traitor' of https://github.com/PhantornRU/Pa…
Browse files Browse the repository at this point in the history
…radise-Remake-SS220 into novice_fix_traitor
  • Loading branch information
PhantornRU committed Nov 18, 2023
2 parents a87b58c + a0a40a6 commit 3fb3435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modular_ss220/jobs/code/cards_ids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ GLOBAL_LIST_INIT(Jobs_novice_titles_SS220, list("Intern", "Security Cadet", "Tra
job_alt_tittle = params["assign_target"]
if(job_alt_tittle in GLOB.Jobs_novice_titles_SS220)
//for fast find job without check all jobs (!!!for alt_titles job with icon like novice roles!!!)
var/list/dictionary = list(
var/list/job_dict = list(
"Intern" = /datum/job/doctor,
"Security Cadet" = /datum/job/officer,
"Trainee Engineer" = /datum/job/engineer,
"Student Scientist" = /datum/job/scientist,
)
var/job_type = dictionary[job_alt_tittle]
var/job_type = job_dict[job_alt_tittle]
var/datum/job/job
if(!job_type) // gatto
return
job = new job_type

if(job && length(job.alt_titles) && (job_alt_tittle in job.alt_titles))
if(length(job.alt_titles) && (job_alt_tittle in job.alt_titles))
params["assign_target"] = job.title
is_alt_title_rewrite = TRUE
qdel(job)
Expand Down

0 comments on commit 3fb3435

Please sign in to comment.