[MIRROR] Conversion many Globals to Managed Globals (Part 1) (#10665)

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-17 16:06:35 -07:00
committed by GitHub
parent 06f0821bcf
commit f7219329ca
235 changed files with 1263 additions and 1255 deletions

View File

@@ -139,7 +139,7 @@ var/global/list/obj/machinery/message_server/message_servers = list()
authmsg += "([id_auth])\n"
if (stamp)
authmsg += "([stamp])\n"
for (var/obj/machinery/requests_console/Console in allConsoles)
for (var/obj/machinery/requests_console/Console in GLOB.allConsoles)
if (ckey(Console.department) == ckey(recipient))
if(Console.inoperable())
Console.message_log += list(list("Message lost due to console failure.","Please contact [station_name()] system adminsitrator or AI for technical assistance."))

View File

@@ -12,10 +12,10 @@
var/obj/machinery/mecha_part_fabricator/pros/prosfab = fabricator
var/obj/item/organ/O = new build_path(newloc)
if(prosfab.manufacturer)
var/datum/robolimb/manf = all_robolimbs[prosfab.manufacturer]
var/datum/robolimb/manf = GLOB.all_robolimbs[prosfab.manufacturer]
if(!(O.organ_tag in manf.parts)) // Make sure we're using an actually present icon.
manf = all_robolimbs["Unbranded"]
manf = GLOB.all_robolimbs["Unbranded"]
if(prosfab.species in manf.species_alternates) // If the prosthetics fab is set to say, Unbranded, and species set to 'Tajaran', it will make the Taj variant of Unbranded, if it exists.
manf = manf.species_alternates[prosfab.species]
@@ -36,7 +36,7 @@
var/obj/machinery/mecha_part_fabricator/pros/prosfab = fabricator
var/newspecies = "Human"
var/datum/robolimb/manf = all_robolimbs[prosfab.manufacturer]
var/datum/robolimb/manf = GLOB.all_robolimbs[prosfab.manufacturer]
if(manf)
if(prosfab.species in manf.species_alternates) // If the prosthetics fab is set to say, Unbranded, and species set to 'Tajaran', it will make the Taj variant of Unbranded, if it exists.
@@ -60,7 +60,7 @@
O.data.setup_from_species(GLOB.all_species[newspecies])
if(!(O.organ_tag in manf.parts)) // Make sure we're using an actually present icon.
manf = all_robolimbs["Unbranded"]
manf = GLOB.all_robolimbs["Unbranded"]
O.robotize(manf.company)
O.data.setup_from_dna()