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
+3 -3
View File
@@ -47,13 +47,13 @@ GLOBAL_LIST_EMPTY(prevent_respawns)
//Cut the PDA manifest (ugh)
if(GLOB.PDA_Manifest.len)
GLOB.PDA_Manifest.Cut()
for(var/datum/data/record/R in data_core.medical)
for(var/datum/data/record/R in GLOB.data_core.medical)
if((R.fields["name"] == src.real_name))
qdel(R)
for(var/datum/data/record/T in data_core.security)
for(var/datum/data/record/T in GLOB.data_core.security)
if((T.fields["name"] == src.real_name))
qdel(T)
for(var/datum/data/record/G in data_core.general)
for(var/datum/data/record/G in GLOB.data_core.general)
if((G.fields["name"] == src.real_name))
qdel(G)
+6 -6
View File
@@ -132,8 +132,8 @@
add_overlay(H.overlays_standing)
default_pixel_x = M.default_pixel_x
default_pixel_y = M.default_pixel_y
if(!T && length(latejoin))
T = get_turf(pick(latejoin)) //Safety in case we cannot find the body's position
if(!T && length(GLOB.latejoin))
T = get_turf(pick(GLOB.latejoin)) //Safety in case we cannot find the body's position
if(T)
forceMove(T, just_spawned = TRUE)
else
@@ -714,10 +714,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
return
var/timedifference = world.time - client.time_died_as_mouse
if(client.time_died_as_mouse && timedifference <= mouse_respawn_time * 600)
if(client.time_died_as_mouse && timedifference <= CONFIG_GET(number/mouse_respawn_time) MINUTES)
var/timedifference_text
timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss")
to_chat(src, span_warning("You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left."))
timedifference_text = time2text(CONFIG_GET(number/mouse_respawn_time) MINUTES - timedifference,"mm:ss")
to_chat(src, span_warning("You may only spawn again as a mouse more than [CONFIG_GET(number/mouse_respawn_time)] minutes after your death. You have [timedifference_text] left."))
return
var/response = tgui_alert(src, "Are you -sure- you want to become a mouse?","Are you sure you want to squeek?",list("Squeek!","Nope!"))
@@ -728,7 +728,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/mob/living/simple_mob/animal/passive/mouse/host
var/obj/machinery/atmospherics/unary/vent_pump/vent_found
var/list/found_vents = list()
for(var/obj/machinery/atmospherics/unary/vent_pump/v in machines)
for(var/obj/machinery/atmospherics/unary/vent_pump/v in GLOB.machines)
if(!v.welded && v.z == T.z && v.network && v.network.normal_members.len > 20)
found_vents.Add(v)
if(found_vents.len)