code/global.dm => code/_global_vars/ (#17244)

* 1

* Full conversion

* .

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Selis
2025-04-21 05:55:25 -04:00
committed by GitHub
co-authored by Kashargul
parent 5d21a53dfa
commit 28e969778c
448 changed files with 1339 additions and 1346 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
@@ -553,7 +553,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()
@@ -1063,7 +1063,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.
@@ -1090,7 +1090,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