mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 16:19:36 +01:00
[MIRROR] More globals (#12341)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
38e634dce7
commit
d031fa3c4e
@@ -408,7 +408,7 @@ GLOBAL_LIST_EMPTY(pending_discord_registrations)
|
||||
|
||||
if(action == "help")
|
||||
var/list/whitelist_jobs = list()
|
||||
for(var/datum/job/our_job in job_master.occupations)
|
||||
for(var/datum/job/our_job in GLOB.job_master.occupations)
|
||||
if(our_job.whitelist_only)
|
||||
whitelist_jobs += our_job.title
|
||||
message.text = "The following jobs and species have a whitelist:\nJobs: [english_list(whitelist_jobs)]\nSpecies: [english_list(GLOB.whitelisted_species)]"
|
||||
@@ -450,7 +450,7 @@ GLOBAL_LIST_EMPTY(pending_discord_registrations)
|
||||
switch(action)
|
||||
if("add")
|
||||
if(kind == "job")
|
||||
var/datum/job/job = job_master.GetJob(role)
|
||||
var/datum/job/job = GLOB.job_master.GetJob(role)
|
||||
if(!job)
|
||||
message.text = "Error, invalid job entered. Check spelling and capitalization."
|
||||
return message
|
||||
|
||||
Reference in New Issue
Block a user