mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-11 16:23:19 +01:00
[MIRROR] More globals (#12341)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
38e634dce7
commit
d031fa3c4e
@@ -2,7 +2,7 @@
|
||||
set category = "Debug.Investigate"
|
||||
set name = "Show Air Report"
|
||||
|
||||
if(!master_controller || !SSair)
|
||||
if(!GLOB.master_controller || !SSair)
|
||||
tgui_alert_async(usr,"Master_controller or SSair not found.","Air Report")
|
||||
return
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ GLOBAL_LIST_BOILERPLATE(all_debugging_effects, /obj/effect/debugging)
|
||||
set category = "Mapping"
|
||||
set name = "Camera Report"
|
||||
|
||||
if(!master_controller)
|
||||
if(!GLOB.master_controller)
|
||||
tgui_alert_async(usr,"Master_controller not found.","Sec Camera Report")
|
||||
return 0
|
||||
|
||||
|
||||
@@ -572,10 +572,10 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
//If desired, apply equipment.
|
||||
if(equipment)
|
||||
if(charjob)
|
||||
job_master.EquipRank(new_character, charjob, 1, announce)
|
||||
GLOB.job_master.EquipRank(new_character, charjob, 1)
|
||||
if(new_character.mind)
|
||||
new_character.mind.assigned_role = charjob
|
||||
new_character.mind.role_alt_title = job_master.GetPlayerAltTitle(new_character, charjob)
|
||||
new_character.mind.role_alt_title = GLOB.job_master.GetPlayerAltTitle(new_character, charjob)
|
||||
equip_custom_items(new_character) //CHOMPEdit readded to enable custom_item.txt
|
||||
|
||||
//If customised job title, modify here.
|
||||
@@ -734,8 +734,8 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
if (!check_rights_for(src, R_HOLDER))
|
||||
return
|
||||
|
||||
if(job_master)
|
||||
for(var/datum/job/job in job_master.occupations)
|
||||
if(GLOB.job_master)
|
||||
for(var/datum/job/job in GLOB.job_master.occupations)
|
||||
to_chat(src, "[job.title]: [job.total_positions]")
|
||||
feedback_add_details("admin_verb","LFS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
|
||||
@@ -392,10 +392,10 @@ ADMIN_VERB(secrets, R_HOLDER, "Secrets", "Abuse harder than you ever have before
|
||||
var/choice = tgui_alert(holder, "How do you wish for Nar-Sie to interact with its surroundings?","NarChoice",list("CultStation13", "Nar-Singulo"))
|
||||
if(choice == "CultStation13")
|
||||
log_and_message_admins("has set narsie's behaviour to \"CultStation13\".", holder)
|
||||
narsie_behaviour = choice
|
||||
GLOB.narsie_behaviour = choice
|
||||
if(choice == "Nar-Singulo")
|
||||
log_and_message_admins("has set narsie's behaviour to \"Nar-Singulo\".", holder)
|
||||
narsie_behaviour = choice
|
||||
GLOB.narsie_behaviour = choice
|
||||
|
||||
if("remove_all_clothing")
|
||||
for(var/obj/item/clothing/O in world)
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
to_chat(usr, "This option is currently only usable during pregame. This may change at a later date.")
|
||||
return
|
||||
|
||||
if(job_master && SSticker)
|
||||
var/datum/job/job = job_master.GetJob(JOB_AI)
|
||||
if(GLOB.job_master && SSticker)
|
||||
var/datum/job/job = GLOB.job_master.GetJob(JOB_AI)
|
||||
if(!job)
|
||||
to_chat(usr, "Unable to locate the AI job")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user