mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
committed by
GitHub
parent
a7718c6177
commit
f04f992cfe
@@ -131,12 +131,12 @@
|
||||
/datum/data/pda/app/crew_records/update_ui(mob/user as mob, list/data)
|
||||
var/list/records[0]
|
||||
|
||||
if(general_records && (general_records in data_core.general))
|
||||
if(general_records && (general_records in GLOB.data_core.general))
|
||||
data["records"] = records
|
||||
records["general"] = general_records.fields
|
||||
return records
|
||||
else
|
||||
for(var/datum/data/record/R as anything in sortRecord(data_core.general))
|
||||
for(var/datum/data/record/R as anything in sortRecord(GLOB.data_core.general))
|
||||
if(R)
|
||||
records += list(list(name = R.fields["name"], "ref" = "\ref[R]"))
|
||||
data["recordsList"] = records
|
||||
@@ -149,7 +149,7 @@
|
||||
switch(action)
|
||||
if("Records")
|
||||
var/datum/data/record/R = locate(params["target"])
|
||||
if(R && (R in data_core.general))
|
||||
if(R && (R in GLOB.data_core.general))
|
||||
load_records(R)
|
||||
return TRUE
|
||||
if("Back")
|
||||
@@ -174,14 +174,14 @@
|
||||
if(!records)
|
||||
return
|
||||
|
||||
if(medical_records && (medical_records in data_core.medical))
|
||||
if(medical_records && (medical_records in GLOB.data_core.medical))
|
||||
records["medical"] = medical_records.fields
|
||||
|
||||
return records
|
||||
|
||||
/datum/data/pda/app/crew_records/medical/load_records(datum/data/record/R)
|
||||
..(R)
|
||||
for(var/datum/data/record/E as anything in data_core.medical)
|
||||
for(var/datum/data/record/E as anything in GLOB.data_core.medical)
|
||||
if(E && (E.fields["name"] == R.fields["name"] || E.fields["id"] == R.fields["id"]))
|
||||
medical_records = E
|
||||
break
|
||||
@@ -199,14 +199,14 @@
|
||||
if(!records)
|
||||
return
|
||||
|
||||
if(security_records && (security_records in data_core.security))
|
||||
if(security_records && (security_records in GLOB.data_core.security))
|
||||
records["security"] = security_records.fields
|
||||
|
||||
return records
|
||||
|
||||
/datum/data/pda/app/crew_records/security/load_records(datum/data/record/R)
|
||||
..(R)
|
||||
for(var/datum/data/record/E as anything in data_core.security)
|
||||
for(var/datum/data/record/E as anything in GLOB.data_core.security)
|
||||
if(E && (E.fields["name"] == R.fields["name"] || E.fields["id"] == R.fields["id"]))
|
||||
security_records = E
|
||||
break
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
/datum/data/pda/app/notekeeper/update_ui(mob/user as mob, list/data)
|
||||
data["note"] = note // current pda notes
|
||||
data["notename"] = "Note [alphabet_uppercase[currentnote]] : [notetitle]"
|
||||
data["notename"] = "Note [GLOB.alphabet_upper[currentnote]] : [notetitle]"
|
||||
|
||||
/datum/data/pda/app/notekeeper/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state)
|
||||
if(..())
|
||||
@@ -175,7 +175,7 @@
|
||||
if(istype(I,/obj/item/paper))
|
||||
var/obj/item/paper/P = I
|
||||
if(isnull(P.info) || P.info == "" )
|
||||
var/titlenote = "Note [alphabet_uppercase[currentnote]]"
|
||||
var/titlenote = "Note [GLOB.alphabet_upper[currentnote]]"
|
||||
if(!isnull(notetitle) && notetitle != "")
|
||||
titlenote = notetitle
|
||||
to_chat(user, span_notice("Successfully printed [titlenote]!"))
|
||||
@@ -207,8 +207,8 @@
|
||||
template = "pda_manifest"
|
||||
|
||||
/datum/data/pda/app/manifest/update_ui(mob/user as mob, list/data)
|
||||
if(data_core)
|
||||
data_core.get_manifest_list()
|
||||
if(GLOB.data_core)
|
||||
GLOB.data_core.get_manifest_list()
|
||||
data["manifest"] = GLOB.PDA_Manifest
|
||||
|
||||
/datum/data/pda/app/manifest/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state)
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
|
||||
var/time = time2text(world.realtime,"hh:mm:ss")
|
||||
var/turf/T = get_turf(src)
|
||||
lastsignalers.Add("[time] <B>:</B> [usr.key] used [src] @ location ([T.x],[T.y],[T.z]) <B>:</B> [format_frequency(frequency)]/[code]")
|
||||
GLOB.lastsignalers.Add("[time] <B>:</B> [usr.key] used [src] @ location ([T.x],[T.y],[T.z]) <B>:</B> [format_frequency(frequency)]/[code]")
|
||||
|
||||
var/datum/signal/signal = new
|
||||
signal.source = src
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
var/scannedtitle = "Paper"
|
||||
if(!isnull(notes.notetitle) && notes.notetitle != "")
|
||||
scannedtitle = "'[notes.notetitle]'"
|
||||
to_chat(user, span_notice("[scannedtitle] scanned to Notekeeper in note [alphabet_uppercase[notes.currentnote]]."))//concept of scanning paper copyright brainoblivion 2009
|
||||
to_chat(user, span_notice("[scannedtitle] scanned to Notekeeper in note [GLOB.alphabet_upper[notes.currentnote]]."))//concept of scanning paper copyright brainoblivion 2009
|
||||
|
||||
else
|
||||
to_chat(user, span_warning("Error scanning [A]."))
|
||||
|
||||
Reference in New Issue
Block a user