[MIRROR] code/global.dm => code/_global_vars/ (#10689)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-21 19:16:48 +02:00
committed by GitHub
co-authored by Selis Kashargul
parent a7718c6177
commit f04f992cfe
474 changed files with 1401 additions and 1421 deletions
+8 -8
View File
@@ -33,7 +33,7 @@
//teleport person to cell
M.Paralyse(5)
sleep(5) //so they black out before warping
M.loc = pick(prisonwarp)
M.loc = pick(GLOB.prisonwarp)
if(ishuman(M))
var/mob/living/carbon/human/prisoner = M
prisoner.equip_to_slot_or_del(new /obj/item/clothing/under/color/prison(prisoner), slot_w_uniform)
@@ -485,10 +485,10 @@ Traitors and the like can also be revived with the previous role mostly intact.
return
if("Arrivals") //Spawn them at a latejoin spawnpoint
if(LAZYLEN(latejoin))
spawnloc = get_turf(pick(latejoin))
else if(LAZYLEN(latejoin_tram))
spawnloc = pick(latejoin_tram)
if(LAZYLEN(GLOB.latejoin))
spawnloc = get_turf(pick(GLOB.latejoin))
else if(LAZYLEN(GLOB.latejoin_tram))
spawnloc = pick(GLOB.latejoin_tram)
else
to_chat(src, "This map has no latejoin spawnpoint.")
return
@@ -554,7 +554,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
//If desired, add records.
if(records)
data_core.manifest_inject(new_character)
GLOB.data_core.manifest_inject(new_character)
//A redraw for good measure
new_character.regenerate_icons()
@@ -1064,7 +1064,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
var/list/human_cryopods = list()
var/list/robot_cryopods = list()
for(var/obj/machinery/cryopod/CP in machines)
for(var/obj/machinery/cryopod/CP in GLOB.machines)
if(!CP.control_computer)
continue //Broken pod w/o computer, move on.
@@ -1091,7 +1091,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(isAI(M))
var/mob/living/silicon/ai/ai = M
GLOB.empty_playable_ai_cores += new /obj/structure/AIcore/deactivated(ai.loc)
global_announcer.autosay("[ai] has been moved to intelligence storage.", "Artificial Intelligence Oversight")
GLOB.global_announcer.autosay("[ai] has been moved to intelligence storage.", "Artificial Intelligence Oversight")
ai.clear_client()
return
else