diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm index a30f6c32236..98f352f6257 100644 --- a/code/__HELPERS/global_lists.dm +++ b/code/__HELPERS/global_lists.dm @@ -4,7 +4,6 @@ var/list/admins = list() //list of all clients whom are admins //This is for procs to replace all the goddamn 'in world's that are chilling around the code var/global/list/player_list = list() //List of all mobs **with clients attached**. Excludes /mob/new_player -var/global/list/mob_list = list() //List of all mobs, including clientless var/global/list/human_mob_list = list() //List of all human mobs and sub-types, including clientless var/global/list/silicon_mob_list = list() //List of all silicon mobs, including clientless var/global/list/ai_list = list() //List of all AIs, including clientless diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 860ac4ce2c4..fcab3f2a453 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -469,7 +469,7 @@ Turf and target are seperate in case you want to teleport some distance from a t //Orders mobs by type then by name /proc/sortmobs() var/list/moblist = list() - var/list/sortmob = sortList(mob_list, cmp=/proc/cmp_name_asc) + var/list/sortmob = sortList(GLOB.mob_list, cmp=/proc/cmp_name_asc) for(var/mob/observer/eye/M in sortmob) moblist.Add(M) for(var/mob/observer/blob/M in sortmob) @@ -499,9 +499,9 @@ Turf and target are seperate in case you want to teleport some distance from a t for(var/mob/living/voice/M in sortmob) moblist.Add(M) // for(var/mob/living/silicon/hivebot/M in sortmob) -// mob_list.Add(M) +// GLOB.mob_list.Add(M) // for(var/mob/living/silicon/hive_mainframe/M in sortmob) -// mob_list.Add(M) +// GLOB.mob_list.Add(M) return moblist // Format a power value in W, kW, MW, or GW. @@ -1021,7 +1021,7 @@ proc/oview_or_orange(distance = world.view , center = usr , type) proc/get_mob_with_client_list() var/list/mobs = list() - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) if (M.client) mobs += M return mobs @@ -1283,7 +1283,7 @@ INITIALIZE_IMMEDIATE(/mob/dview) /mob/dview/Initialize(mapload) . = ..() // We don't want to be in any mob lists; we're a dummy not a mob. - mob_list -= src + GLOB.mob_list -= src if(stat == DEAD) dead_mob_list -= src else diff --git a/code/_globalvars/mobs.dm b/code/_globalvars/mobs.dm index 7e60dc71ea2..1a7f8907c98 100644 --- a/code/_globalvars/mobs.dm +++ b/code/_globalvars/mobs.dm @@ -6,3 +6,5 @@ GLOBAL_LIST_EMPTY(directory) //all ckeys with associated client GLOBAL_LIST_EMPTY(clients) GLOBAL_LIST_EMPTY(players_by_zlevel) GLOBAL_LIST_EMPTY(round_text_log) + +GLOBAL_LIST_EMPTY(mob_list) diff --git a/code/controllers/subsystems/mobs.dm b/code/controllers/subsystems/mobs.dm index 95a05902306..daf47220870 100644 --- a/code/controllers/subsystems/mobs.dm +++ b/code/controllers/subsystems/mobs.dm @@ -19,14 +19,14 @@ SUBSYSTEM_DEF(mobs) var/slept_mobs = 0 /datum/controller/subsystem/mobs/stat_entry() - ..("P: [global.mob_list.len] | S: [slept_mobs]") + ..("P: [global.GLOB.mob_list.len] | S: [slept_mobs]") /datum/controller/subsystem/mobs/fire(resumed = 0) var/list/busy_z_levels = src.busy_z_levels if (!resumed) slept_mobs = 0 - src.currentrun = mob_list.Copy() + src.currentrun = GLOB.mob_list.Copy() busy_z_levels.Cut() for(var/played_mob in player_list) if(!played_mob || isobserver(played_mob)) @@ -42,7 +42,7 @@ SUBSYSTEM_DEF(mobs) currentrun.len-- if(QDELETED(M)) - mob_list -= M + GLOB.mob_list -= M else // Right now mob.Life() is unstable enough I think we need to use a try catch. // Obviously we should try and get rid of this for performance reasons when we can. diff --git a/code/controllers/subsystems/server_maint.dm b/code/controllers/subsystems/server_maint.dm index 11057bc047e..2f3a9f86410 100644 --- a/code/controllers/subsystems/server_maint.dm +++ b/code/controllers/subsystems/server_maint.dm @@ -21,8 +21,8 @@ SUBSYSTEM_DEF(server_maint) log_world("Found a null in player_list!") cleanup_SSticker++ if (5) - if(listclearnulls(mob_list)) - log_world("Found a null in mob_list!") + if(listclearnulls(GLOB.mob_list)) + log_world("Found a null in GLOB.mob_list!") cleanup_SSticker++ if (10) if(listclearnulls(living_mob_list)) diff --git a/code/controllers/subsystems/ticker.dm b/code/controllers/subsystems/ticker.dm index aa1c227d158..426219e8243 100644 --- a/code/controllers/subsystems/ticker.dm +++ b/code/controllers/subsystems/ticker.dm @@ -487,7 +487,7 @@ SUBSYSTEM_DEF(ticker) to_chat(Player, "You did not survive the events on [station_name()]...") to_chat(world, "
") - for (var/mob/living/silicon/ai/aiPlayer in mob_list) + for (var/mob/living/silicon/ai/aiPlayer in GLOB.mob_list) if (aiPlayer.stat != 2) to_chat(world, "[aiPlayer.name] (Played by: [aiPlayer.key])'s laws at the end of the round were:") else @@ -502,7 +502,7 @@ SUBSYSTEM_DEF(ticker) var/dronecount = 0 - for (var/mob/living/silicon/robot/robo in mob_list) + for (var/mob/living/silicon/robot/robo in GLOB.mob_list) if(istype(robo,/mob/living/silicon/robot/drone) && !istype(robo,/mob/living/silicon/robot/drone/swarm)) dronecount++ diff --git a/code/datums/datacore.dm b/code/datums/datacore.dm index a37c1c6891c..dbcc60bc191 100644 --- a/code/datums/datacore.dm +++ b/code/datums/datacore.dm @@ -85,10 +85,10 @@ misc[name] = rank // Synthetics don't have actual records, so we will pull them from here. - for(var/mob/living/silicon/ai/ai in mob_list) + for(var/mob/living/silicon/ai/ai in GLOB.mob_list) bot[ai.name] = "Artificial Intelligence" - for(var/mob/living/silicon/robot/robot in mob_list) + for(var/mob/living/silicon/robot/robot in GLOB.mob_list) // No combat/syndicate cyborgs, no drones, and no AI shells. if(!robot.scrambledcodes && !robot.shell && !(robot.module && robot.module.hide_on_manifest)) bot[robot.name] = "[robot.modtype] [robot.braintype]" diff --git a/code/datums/repositories/crew.dm b/code/datums/repositories/crew.dm index ac2a396c64a..d7b57fed82f 100644 --- a/code/datums/repositories/crew.dm +++ b/code/datums/repositories/crew.dm @@ -63,7 +63,7 @@ var/global/datum/repository/crew/crew_repository = new() /datum/repository/crew/proc/scan() var/list/tracked = list() - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) if(istype(H.w_uniform, /obj/item/clothing/under)) var/obj/item/clothing/under/C = H.w_uniform if (C.has_sensor) diff --git a/code/defines/obj.dm b/code/defines/obj.dm index b8f750c2028..483ae1e74ed 100644 --- a/code/defines/obj.dm +++ b/code/defines/obj.dm @@ -139,10 +139,10 @@ var/global/list/PDA_Manifest = list() // Synthetics don't have actual records, so we will pull them from here. // Synths don't have records, which is the means by which isactive is retrieved, so I'm hardcoding it to active, don't really have any better means - for(var/mob/living/silicon/ai/ai in mob_list) + for(var/mob/living/silicon/ai/ai in GLOB.mob_list) bot[++bot.len] = list("name" = ai.real_name, "rank" = "Artificial Intelligence", "active" = "Active") - for(var/mob/living/silicon/robot/robot in mob_list) + for(var/mob/living/silicon/robot/robot in GLOB.mob_list) // No combat/syndicate cyborgs, no drones, and no AI shells. if(robot.scrambledcodes || robot.shell || (robot.module && robot.module.hide_on_manifest)) continue diff --git a/code/game/antagonist/alien/borer.dm b/code/game/antagonist/alien/borer.dm index 3c4325c204a..233bceeb8e3 100644 --- a/code/game/antagonist/alien/borer.dm +++ b/code/game/antagonist/alien/borer.dm @@ -43,7 +43,7 @@ var/datum/antagonist/borer/borers var/mob/living/simple_mob/animal/borer/borer = mob if(istype(borer)) var/mob/living/carbon/human/host - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) if(H.stat != DEAD && !H.has_brain_worms()) var/obj/item/organ/external/head = H.get_organ(BP_HEAD) if(head && !(head.robotic >= ORGAN_ROBOT)) diff --git a/code/game/antagonist/station/loyalist.dm b/code/game/antagonist/station/loyalist.dm index d6c698bb956..27b9ba638b4 100644 --- a/code/game/antagonist/station/loyalist.dm +++ b/code/game/antagonist/station/loyalist.dm @@ -39,7 +39,7 @@ var/datum/antagonist/loyalists/loyalists if(!..()) return global_objectives = list() - for(var/mob/living/carbon/human/player in mob_list) + for(var/mob/living/carbon/human/player in GLOB.mob_list) if(!player.mind || player.stat==2 || !(player.mind.assigned_role in command_positions)) continue var/datum/objective/protect/loyal_obj = new diff --git a/code/game/antagonist/station/revolutionary.dm b/code/game/antagonist/station/revolutionary.dm index 6f51ba42e08..1f4434313fa 100644 --- a/code/game/antagonist/station/revolutionary.dm +++ b/code/game/antagonist/station/revolutionary.dm @@ -41,7 +41,7 @@ var/datum/antagonist/revolutionary/revs if(!..()) return global_objectives = list() - for(var/mob/living/carbon/human/player in mob_list) + for(var/mob/living/carbon/human/player in GLOB.mob_list) if(!player.mind || player.stat==2 || !(player.mind.assigned_role in command_positions)) continue var/datum/objective/rev/rev_obj = new diff --git a/code/game/gamemodes/cult/narsie.dm b/code/game/gamemodes/cult/narsie.dm index f91c3926c0c..8f8709e26ca 100644 --- a/code/game/gamemodes/cult/narsie.dm +++ b/code/game/gamemodes/cult/narsie.dm @@ -335,7 +335,7 @@ var/global/list/narsie_list = list() chained = 1 move_self = 0 icon_state ="narsie-chains" - for(var/mob/M in mob_list)//removing the client image of nar-sie while it is chained + for(var/mob/M in GLOB.mob_list)//removing the client image of nar-sie while it is chained if(M.client) M.see_narsie(src) diff --git a/code/game/gamemodes/events/holidays/Christmas.dm b/code/game/gamemodes/events/holidays/Christmas.dm index ff65b167623..3798c2c2920 100644 --- a/code/game/gamemodes/events/holidays/Christmas.dm +++ b/code/game/gamemodes/events/holidays/Christmas.dm @@ -4,7 +4,7 @@ for(var/turf/simulated/floor/T in orange(1,xmas)) for(var/i=1,i<=rand(1,5),i++) new /obj/item/a_gift(T) - //for(var/mob/living/simple_mob/corgi/Ian/Ian in mob_list) + //for(var/mob/living/simple_mob/corgi/Ian/Ian in GLOB.mob_list) // Ian.place_on_head(new /obj/item/clothing/head/helmet/space/santahat(Ian)) /proc/ChristmasEvent() diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index f76420d616a..8aa29760860 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -457,7 +457,7 @@ var/global/list/additional_antag_types = list() ////////////////////////// proc/display_roundstart_logout_report() var/msg = "Roundstart logout report\n\n" - for(var/mob/living/L in mob_list) + for(var/mob/living/L in GLOB.mob_list) if(L.ckey) var/found = 0 @@ -484,7 +484,7 @@ proc/display_roundstart_logout_report() continue //Dead continue //Happy connected client - for(var/mob/observer/dead/D in mob_list) + for(var/mob/observer/dead/D in GLOB.mob_list) if(D.mind && (D.mind.original == L || D.mind.current == L)) if(L.stat == DEAD) if(L.suiciding) //Suicider @@ -503,7 +503,7 @@ proc/display_roundstart_logout_report() msg += "" // close the span from right at the top - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) if(M.client && M.client.holder) to_chat(M, msg) diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm index 2a28d1e809f..c8cf7e36092 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm @@ -181,7 +181,7 @@ return var/list/L = list() - for(var/mob/living/silicon/robot/RB in mob_list) + for(var/mob/living/silicon/robot/RB in GLOB.mob_list) if(istype(RB, /mob/living/silicon/robot/drone)) continue if(RB.connected_ai == A) @@ -199,7 +199,7 @@ return var/list/L = list() - for(var/mob/living/silicon/ai/AT in mob_list) + for(var/mob/living/silicon/ai/AT in GLOB.mob_list) if(L == A) continue L.Add(AT) diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm index 9d344a7ea5c..215538284c7 100644 --- a/code/game/gamemodes/nuclear/pinpointer.dm +++ b/code/game/gamemodes/nuclear/pinpointer.dm @@ -164,7 +164,7 @@ var/DNAstring = input("Input DNA string to search for." , "Please Enter String." , "") if(!DNAstring) return - for(var/mob/living/carbon/M in mob_list) + for(var/mob/living/carbon/M in GLOB.mob_list) if(!M.dna) continue if(M.dna.unique_enzymes == DNAstring) diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index aa3ed0d43a2..50ec5fe67ce 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -524,7 +524,7 @@ datum/objective/steal if(istype(M, /mob/living/silicon/ai) && M.stat != 2) //See if any AI's are alive inside that card. return 1 - for(var/mob/living/silicon/ai/ai in mob_list) + for(var/mob/living/silicon/ai/ai in GLOB.mob_list) var/turf/T = get_turf(ai) if(istype(T)) var/area/check_area = get_area(ai) diff --git a/code/game/gamemodes/technomancer/spells/track.dm b/code/game/gamemodes/technomancer/spells/track.dm index 7627f647e76..7a14b4d8aa4 100644 --- a/code/game/gamemodes/technomancer/spells/track.dm +++ b/code/game/gamemodes/technomancer/spells/track.dm @@ -38,7 +38,7 @@ var/list/technomancer_belongings = list() if(check_for_scepter()) can_track_non_allies = 1 var/list/mob_choices = list() - for(var/mob/living/L in mob_list) + for(var/mob/living/L in GLOB.mob_list) if(!is_ally(L) && !can_track_non_allies) continue if(L == user) @@ -75,4 +75,4 @@ var/list/technomancer_belongings = list() icon_state = "track_far" spawn(5) - .() \ No newline at end of file + .() diff --git a/code/game/machinery/camera/tracking.dm b/code/game/machinery/camera/tracking.dm index 78a7b2466c1..a6c19be03f3 100644 --- a/code/game/machinery/camera/tracking.dm +++ b/code/game/machinery/camera/tracking.dm @@ -106,7 +106,7 @@ return list() var/datum/trackable/TB = new() - for(var/mob/living/M in mob_list) + for(var/mob/living/M in GLOB.mob_list) if(M == usr) continue if(M.tracking_status() != TRACKING_POSSIBLE) diff --git a/code/game/machinery/computer/medical.dm b/code/game/machinery/computer/medical.dm index 0033038ad09..36b348b324a 100644 --- a/code/game/machinery/computer/medical.dm +++ b/code/game/machinery/computer/medical.dm @@ -123,7 +123,7 @@ dat += "Back" dat += "
Medical Robots:" var/bdat = null - for(var/mob/living/bot/medbot/M in mob_list) + for(var/mob/living/bot/medbot/M in GLOB.mob_list) if(M.z != src.z) continue //only find medibots on the same z-level as the computer var/turf/bl = get_turf(M) diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm index a0217851b58..6224bcd535d 100644 --- a/code/game/machinery/computer/robot.dm +++ b/code/game/machinery/computer/robot.dm @@ -117,7 +117,7 @@ /obj/machinery/computer/robotics/proc/get_cyborgs(var/mob/operator) var/list/robots = list() - for(var/mob/living/silicon/robot/R in mob_list) + for(var/mob/living/silicon/robot/R in GLOB.mob_list) // Ignore drones if(istype(R, /mob/living/silicon/robot/drone)) continue @@ -162,6 +162,6 @@ /obj/machinery/computer/robotics/proc/get_cyborg_by_name(var/name) if (!name) return - for(var/mob/living/silicon/robot/R in mob_list) + for(var/mob/living/silicon/robot/R in GLOB.mob_list) if(R.name == name) return R diff --git a/code/game/machinery/computer3/computers/medical.dm b/code/game/machinery/computer3/computers/medical.dm index 90cc381ec10..49a54542903 100644 --- a/code/game/machinery/computer3/computers/medical.dm +++ b/code/game/machinery/computer3/computers/medical.dm @@ -126,7 +126,7 @@ dat += "Back" dat += "
Medical Robots:" var/bdat = null - for(var/mob/living/bot/medbot/M in mob_list) + for(var/mob/living/bot/medbot/M in GLOB.mob_list) if(M.z != computer.z) continue //only find medibots on the same z-level as the computer var/turf/bl = get_turf(M) diff --git a/code/game/machinery/computer3/computers/robot.dm b/code/game/machinery/computer3/computers/robot.dm index 338356534bb..60c7f167444 100644 --- a/code/game/machinery/computer3/computers/robot.dm +++ b/code/game/machinery/computer3/computers/robot.dm @@ -24,7 +24,7 @@ sleep(10) while(src.timeleft) - for(var/mob/living/silicon/robot/R in mob_list) + for(var/mob/living/silicon/robot/R in GLOB.mob_list) if(!R.scrambledcodes) R.self_destruct() return @@ -42,7 +42,7 @@ dat += "1. Cyborg Status
" dat += "2. Emergency Full Destruct
" if(screen == 1) - for(var/mob/living/silicon/robot/R in mob_list) + for(var/mob/living/silicon/robot/R in GLOB.mob_list) if(istype(usr, /mob/living/silicon/ai)) if (R.connected_ai != usr) continue diff --git a/code/game/objects/effects/manifest.dm b/code/game/objects/effects/manifest.dm index 807271c2348..890dcf7190a 100644 --- a/code/game/objects/effects/manifest.dm +++ b/code/game/objects/effects/manifest.dm @@ -11,7 +11,7 @@ /obj/effect/manifest/proc/manifest() var/dat = "Crew Manifest:
" - for(var/mob/living/carbon/human/M in mob_list) + for(var/mob/living/carbon/human/M in GLOB.mob_list) dat += text(" [] - []
", M.name, M.get_assignment()) var/obj/item/paper/P = new /obj/item/paper( src.loc ) P.info = dat diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index 753d8d9bcfe..c35d49dcf42 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -1138,7 +1138,7 @@ GLOBAL_LIST_EMPTY(PDAs) var/who = src.owner if(prob(50)) who = P.owner - for(var/mob/living/silicon/ai/ai in mob_list) + for(var/mob/living/silicon/ai/ai in GLOB.mob_list) // Allows other AIs to intercept the message but the AI won't intercept their own message. if(ai.aiPDA != P && ai.aiPDA != src) ai.show_message("Intercepted message from [who]: [t]") diff --git a/code/game/objects/items/devices/PDA/cart.dm b/code/game/objects/items/devices/PDA/cart.dm index d2a9b58c45b..3738822a126 100644 --- a/code/game/objects/items/devices/PDA/cart.dm +++ b/code/game/objects/items/devices/PDA/cart.dm @@ -499,7 +499,7 @@ var/list/civilian_cartridges = list( BucketData[++BucketData.len] = list("x" = 0, "y" = 0, dir=null, status = null) var/CbotData[0] - for(var/mob/living/bot/cleanbot/B in mob_list) + for(var/mob/living/bot/cleanbot/B in GLOB.mob_list) var/turf/bl = get_turf(B) if(bl) if(bl.z != cl.z) diff --git a/code/game/objects/items/devices/communicator/helper.dm b/code/game/objects/items/devices/communicator/helper.dm index c95b29d84b3..20b36596eb8 100644 --- a/code/game/objects/items/devices/communicator/helper.dm +++ b/code/game/objects/items/devices/communicator/helper.dm @@ -171,7 +171,7 @@ // Weaker than what PDAs appear to do, but as of 7/1/2018 PDA secbot access is nonfunctional /obj/item/commcard/proc/get_sec_bot_access() var/sec_bots[0] - for(var/mob/living/bot/secbot/S in mob_list) + for(var/mob/living/bot/secbot/S in GLOB.mob_list) // Get new bot var/status[0] status[++status.len] = list("tab" = "Name", "val" = sanitize(S.name)) diff --git a/code/game/objects/items/devices/communicator/messaging.dm b/code/game/objects/items/devices/communicator/messaging.dm index c1d9841a367..acce72d57ec 100644 --- a/code/game/objects/items/devices/communicator/messaging.dm +++ b/code/game/objects/items/devices/communicator/messaging.dm @@ -105,7 +105,7 @@ if (usr != src) return //something is terribly wrong - for(var/mob/living/L in mob_list) //Simple check so you don't have dead people calling. + for(var/mob/living/L in GLOB.mob_list) //Simple check so you don't have dead people calling. if(src.client.prefs.real_name == L.real_name) to_chat(src, "Your identity is already present in the game world. Please load in a different character first.") return diff --git a/code/game/objects/items/devices/communicator/phone.dm b/code/game/objects/items/devices/communicator/phone.dm index 2b0d7a6a1a7..ca2e241eb15 100644 --- a/code/game/objects/items/devices/communicator/phone.dm +++ b/code/game/objects/items/devices/communicator/phone.dm @@ -302,7 +302,7 @@ to_chat(src, "You have used the antagHUD and cannot respawn or use communicators!") return - for(var/mob/living/L in mob_list) //Simple check so you don't have dead people calling. + for(var/mob/living/L in GLOB.mob_list) //Simple check so you don't have dead people calling. if(src.client.prefs.real_name == L.real_name) to_chat(src, "Your identity is already present in the game world. Please load in a different character first.") return diff --git a/code/game/objects/items/devices/scanners_vr.dm b/code/game/objects/items/devices/scanners_vr.dm index 68256017c02..f930b5dbf79 100644 --- a/code/game/objects/items/devices/scanners_vr.dm +++ b/code/game/objects/items/devices/scanners_vr.dm @@ -121,7 +121,7 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob return var/target_ref = href_list["target"] - var/mob/living/target = locate(target_ref) in mob_list + var/mob/living/target = locate(target_ref) in GLOB.mob_list if(!target) to_chat(usr,"Unable to operate on that target.") return diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm index 1d43066d745..e8400ce172a 100644 --- a/code/game/objects/items/weapons/AI_modules.dm +++ b/code/game/objects/items/weapons/AI_modules.dm @@ -46,7 +46,7 @@ AI MODULES src.transmitInstructions(comp.current, usr) to_chat(comp.current, "These are your laws now:") comp.current.show_laws() - for(var/mob/living/silicon/robot/R in mob_list) + for(var/mob/living/silicon/robot/R in GLOB.mob_list) if(R.lawupdate && (R.connected_ai == comp.current)) to_chat(R, "These are your laws now:") R.show_laws() diff --git a/code/game/response_team.dm b/code/game/response_team.dm index 09ee8be713e..0acef781dd8 100644 --- a/code/game/response_team.dm +++ b/code/game/response_team.dm @@ -67,7 +67,7 @@ client/verb/JoinResponseTeam() proc/percentage_dead() var/total = 0 var/deadcount = 0 - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) if(H.client) // Monkeys and mice don't have a client, amirite? if(H.stat == 2) deadcount++ total++ @@ -79,7 +79,7 @@ proc/percentage_dead() proc/percentage_antagonists() var/total = 0 var/antagonists = 0 - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) if(is_special_character(H) >= 1) antagonists++ total++ diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 4c5f0cfb2ef..4a7af01ae51 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -21,13 +21,13 @@ var/global/floorIsLava = 0 to_chat(C, msg) proc/admin_notice(var/message, var/rights) - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) if(check_rights(rights, 0, M)) to_chat(M, message) ///////////////////////////////////////////////////////////////////////////////////////////////Panels -/datum/admins/proc/show_player_panel(var/mob/M in mob_list) +/datum/admins/proc/show_player_panel(var/mob/M in GLOB.mob_list) set category = "Admin" set name = "Show Player Panel" set desc="Edit player (respawn, ban, heal, etc)" @@ -978,7 +978,7 @@ var/datum/announcement/minor/admin_min_announcer = new message_admins("Toggled reviving to [config_legacy.allow_admin_rev].") feedback_add_details("admin_verb","TAR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/datum/admins/proc/unprison(var/mob/M in mob_list) +/datum/admins/proc/unprison(var/mob/M in GLOB.mob_list) set category = "Admin" set name = "Unprison" if (M.z == 2) @@ -1119,7 +1119,7 @@ var/datum/announcement/minor/admin_min_announcer = new feedback_add_details("admin_verb","SA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/datum/admins/proc/show_traitor_panel(var/mob/M in mob_list) +/datum/admins/proc/show_traitor_panel(var/mob/M in GLOB.mob_list) set category = "Admin" set desc = "Edit mobs's memory and role" set name = "Show Traitor Panel" @@ -1236,7 +1236,7 @@ var/datum/announcement/minor/admin_min_announcer = new /datum/admins/proc/output_ai_laws() var/ai_number = 0 - for(var/mob/living/silicon/S in mob_list) + for(var/mob/living/silicon/S in GLOB.mob_list) ai_number++ if(isAI(S)) to_chat(usr, "AI [key_name(S, usr)]'s laws:") diff --git a/code/modules/admin/admin_tools.dm b/code/modules/admin/admin_tools.dm index 6c10759c2b0..c0525b67d4e 100644 --- a/code/modules/admin/admin_tools.dm +++ b/code/modules/admin/admin_tools.dm @@ -1,4 +1,4 @@ -/client/proc/cmd_admin_check_player_logs(mob/living/M as mob in mob_list) +/client/proc/cmd_admin_check_player_logs(mob/living/M as mob in GLOB.mob_list) set category = "Admin" set name = "Check Player Attack Logs" set desc = "Check a player's attack logs." @@ -29,7 +29,7 @@ feedback_add_details("admin_verb","PL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/client/proc/cmd_admin_check_dialogue_logs(mob/living/M as mob in mob_list) +/client/proc/cmd_admin_check_dialogue_logs(mob/living/M as mob in GLOB.mob_list) set category = "Admin" set name = "Check Player Dialogue Logs" set desc = "Check a player's dialogue logs." diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 6051947cdbf..f99fc58aa95 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -714,7 +714,7 @@ var/list/admin_verbs_event_manager = list( message_admins("[ckey] creating an admin explosion at [epicenter.loc].") feedback_add_details("admin_verb","DB") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/client/proc/give_disease2(mob/T as mob in mob_list) // -- Giacom +/client/proc/give_disease2(mob/T as mob in GLOB.mob_list) // -- Giacom set category = "Fun" set name = "Give Disease" set desc = "Gives a Disease to a mob." @@ -1053,7 +1053,7 @@ var/list/admin_verbs_event_manager = list( to_chat(src, "Enabled maint drones.") message_admins("Admin [key_name_admin(usr)] has enabled maint drones.", 1) -/client/proc/man_up(mob/T as mob in mob_list) +/client/proc/man_up(mob/T as mob in GLOB.mob_list) set category = "Fun" set name = "Man Up" set desc = "Tells mob to man up and deal with it." @@ -1074,14 +1074,14 @@ var/list/admin_verbs_event_manager = list( if(alert("Are you sure you want to tell the whole server up?","Confirmation","Deal with it","No")=="No") return - for (var/mob/T as mob in mob_list) + for (var/mob/T as mob in GLOB.mob_list) to_chat(T, "
Man up.
Deal with it.

Move along.

") SEND_SOUND(T, sound('sound/voice/ManUp1.ogg')) log_admin("[key_name(usr)] told everyone to man up and deal with it.") message_admins("[key_name_admin(usr)] told everyone to man up and deal with it.", 1) -/client/proc/give_spell(mob/T as mob in mob_list) // -- Urist +/client/proc/give_spell(mob/T as mob in GLOB.mob_list) // -- Urist set category = "Fun" set name = "Give Spell" set desc = "Gives a spell to a mob." diff --git a/code/modules/admin/ckey_vr.dm b/code/modules/admin/ckey_vr.dm index a46a4cdc072..4e07c50b011 100644 --- a/code/modules/admin/ckey_vr.dm +++ b/code/modules/admin/ckey_vr.dm @@ -1,5 +1,5 @@ // Command to set the ckey of a mob without requiring VV permission -/client/proc/SetCKey(var/mob/M in mob_list) +/client/proc/SetCKey(var/mob/M in GLOB.mob_list) set category = "Admin" set name = "Set CKey" set desc = "Mob to teleport" diff --git a/code/modules/admin/secrets/admin_secrets/list_dna.dm b/code/modules/admin/secrets/admin_secrets/list_dna.dm index 5d4738d692b..7492da9c3df 100644 --- a/code/modules/admin/secrets/admin_secrets/list_dna.dm +++ b/code/modules/admin/secrets/admin_secrets/list_dna.dm @@ -7,7 +7,7 @@ return var/dat = "Showing DNA from blood.
" dat += "" - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) if(H.dna && H.ckey) dat += "" dat += "
NameDNABlood Type
[H][H.dna.unique_enzymes][H.b_type]
" diff --git a/code/modules/admin/secrets/admin_secrets/list_fingerprints.dm b/code/modules/admin/secrets/admin_secrets/list_fingerprints.dm index 0a9f4e0cb13..146d0ac7738 100644 --- a/code/modules/admin/secrets/admin_secrets/list_fingerprints.dm +++ b/code/modules/admin/secrets/admin_secrets/list_fingerprints.dm @@ -7,7 +7,7 @@ return var/dat = "Showing Fingerprints.
" dat += "" - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) if(H.ckey) if(H.dna && H.dna.uni_identity) dat += "" diff --git a/code/modules/admin/secrets/admin_secrets/prison_warp.dm b/code/modules/admin/secrets/admin_secrets/prison_warp.dm index 905f602bf49..4e698b9b208 100644 --- a/code/modules/admin/secrets/admin_secrets/prison_warp.dm +++ b/code/modules/admin/secrets/admin_secrets/prison_warp.dm @@ -9,7 +9,7 @@ . = ..() if(!.) return - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) var/turf/T = get_turf(H) var/security = 0 if((T && (T in GLOB.using_map.admin_levels)) || prisonwarped.Find(H)) diff --git a/code/modules/admin/secrets/fun_secrets/turn_humans_into_corgies.dm b/code/modules/admin/secrets/fun_secrets/turn_humans_into_corgies.dm index c82a07c96a6..4f3e58f2005 100644 --- a/code/modules/admin/secrets/fun_secrets/turn_humans_into_corgies.dm +++ b/code/modules/admin/secrets/fun_secrets/turn_humans_into_corgies.dm @@ -6,6 +6,6 @@ if(!.) return - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) spawn(0) H.corgize() diff --git a/code/modules/admin/secrets/fun_secrets/turn_humans_into_monkeys.dm b/code/modules/admin/secrets/fun_secrets/turn_humans_into_monkeys.dm index 88e5bd9022f..25901393b41 100644 --- a/code/modules/admin/secrets/fun_secrets/turn_humans_into_monkeys.dm +++ b/code/modules/admin/secrets/fun_secrets/turn_humans_into_monkeys.dm @@ -6,6 +6,6 @@ if(!.) return - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) spawn(0) H.monkeyize() diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm index 2587215cfac..1559a23fd03 100644 --- a/code/modules/admin/verbs/adminhelp.dm +++ b/code/modules/admin/verbs/adminhelp.dm @@ -641,7 +641,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/statclick/ahelp) var/list/forenames = list() var/list/ckeys = list() var/founds = "" - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) var/list/indexing = list(M.real_name, M.name) if(M.mind) indexing += M.mind.name diff --git a/code/modules/admin/verbs/adminjump.dm b/code/modules/admin/verbs/adminjump.dm index 011c8432653..ad0b0bb204c 100644 --- a/code/modules/admin/verbs/adminjump.dm +++ b/code/modules/admin/verbs/adminjump.dm @@ -27,7 +27,7 @@ else alert("Admin jumping disabled") -/client/proc/jumptomob(var/mob/M in mob_list) +/client/proc/jumptomob(var/mob/M in GLOB.mob_list) set category = "Admin" set name = "Jump to Mob" set popup_menu = FALSE @@ -92,7 +92,7 @@ else alert("Admin jumping disabled") -/client/proc/Getmob(var/mob/M in mob_list) +/client/proc/Getmob(var/mob/M in GLOB.mob_list) set category = "Admin" set name = "Get Mob" set desc = "Mob to teleport" diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index 1b0c0a28c15..78913b2e000 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -2,7 +2,7 @@ //allows right clicking mobs to send an admin PM to their client, forwards the selected mob's client to cmd_admin_pm -/client/proc/cmd_admin_pm_context(mob/M in mob_list) +/client/proc/cmd_admin_pm_context(mob/M in GLOB.mob_list) set category = null set name = "Admin PM Mob" if(!holder) diff --git a/code/modules/admin/verbs/antag-ooc.dm b/code/modules/admin/verbs/antag-ooc.dm index dadc79d66e8..956fcc778df 100644 --- a/code/modules/admin/verbs/antag-ooc.dm +++ b/code/modules/admin/verbs/antag-ooc.dm @@ -29,7 +29,7 @@ // Name shown to other players. Admins whom are not also antags have their rank displayed. var/player_display = (is_admin && !is_antag) ? "[display_name]([usr.client.holder.rank])" : display_name - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) if(check_rights(R_ADMIN|R_MOD, 0, M)) // Staff can see AOOC unconditionally, and with more details. to_chat(M, "Antag-OOC: [get_options_bar(src, 0, 1, 1)]([admin_jump_link(usr, M.client.holder)]): [msg]") else if(M.client) // Players can only see AOOC if observing, or if they are an antag type allowed to use AOOC. diff --git a/code/modules/admin/verbs/buildmode.dm b/code/modules/admin/verbs/buildmode.dm index 3163812f6d1..51149112e6a 100644 --- a/code/modules/admin/verbs/buildmode.dm +++ b/code/modules/admin/verbs/buildmode.dm @@ -262,7 +262,7 @@ if("number") master.buildmode.valueholder = input(usr,"Enter variable value:" ,"Value", 123) as num if("mob-reference") - master.buildmode.valueholder = input(usr,"Enter variable value:" ,"Value") as mob in mob_list + master.buildmode.valueholder = input(usr,"Enter variable value:" ,"Value") as mob in GLOB.mob_list if("obj-reference") master.buildmode.valueholder = input(usr,"Enter variable value:" ,"Value") as obj in world if("turf-reference") diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index c22fd5bec95..06f6d1c8dba 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -93,7 +93,7 @@ usr.show_message(t, 1) feedback_add_details("admin_verb","ASL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/client/proc/cmd_admin_robotize(var/mob/M in mob_list) +/client/proc/cmd_admin_robotize(var/mob/M in GLOB.mob_list) set category = "Fun" set name = "Make Robot" @@ -108,7 +108,7 @@ else alert("Invalid mob") -/client/proc/cmd_admin_animalize(var/mob/M in mob_list) +/client/proc/cmd_admin_animalize(var/mob/M in GLOB.mob_list) set category = "Fun" set name = "Make Simple Animal" @@ -129,13 +129,13 @@ M.Animalize() -/client/proc/makepAI(var/turf/T in mob_list) +/client/proc/makepAI(var/turf/T in GLOB.mob_list) set category = "Fun" set name = "Make pAI" set desc = "Specify a location to spawn a pAI device, then specify a key to play that pAI" var/list/available = list() - for(var/mob/C in mob_list) + for(var/mob/C in GLOB.mob_list) if(C.key) available.Add(C) var/mob/choice = input("Choose a player to play the pAI", "Spawn pAI") in available @@ -156,7 +156,7 @@ paiController.pai_candidates.Remove(candidate) feedback_add_details("admin_verb","MPAI") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/client/proc/cmd_admin_alienize(var/mob/M in mob_list) +/client/proc/cmd_admin_alienize(var/mob/M in GLOB.mob_list) set category = "Fun" set name = "Make Alien" @@ -267,7 +267,7 @@ else . = lines.Join("\n") -/client/proc/cmd_admin_grantfullaccess(var/mob/M in mob_list) +/client/proc/cmd_admin_grantfullaccess(var/mob/M in GLOB.mob_list) set category = "Admin" set name = "Grant Full Access" @@ -298,7 +298,7 @@ log_admin("[key_name(src)] has granted [M.key] full access.") message_admins("[key_name_admin(usr)] has granted [M.key] full access.", 1) -/client/proc/cmd_assume_direct_control(var/mob/M in mob_list) +/client/proc/cmd_assume_direct_control(var/mob/M in GLOB.mob_list) set category = "Admin" set name = "Assume direct control" set desc = "Direct intervention" @@ -586,7 +586,7 @@ if("Admins") to_chat(usr, jointext(admins,",")) if("Mobs") - to_chat(usr, jointext(mob_list,",")) + to_chat(usr, jointext(GLOB.mob_list,",")) if("Living Mobs") to_chat(usr, jointext(living_mob_list,",")) if("Dead Mobs") diff --git a/code/modules/admin/verbs/diagnostics.dm b/code/modules/admin/verbs/diagnostics.dm index ad9beb0b88b..4f6b11dd6fe 100644 --- a/code/modules/admin/verbs/diagnostics.dm +++ b/code/modules/admin/verbs/diagnostics.dm @@ -48,7 +48,7 @@ var/largest_click_time = 0 var/mob/largest_move_mob = null var/mob/largest_click_mob = null - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) if(!M.client) continue if(M.next_move >= largest_move_time) diff --git a/code/modules/admin/verbs/possess.dm b/code/modules/admin/verbs/possess.dm index 87efebca955..224b08bab52 100644 --- a/code/modules/admin/verbs/possess.dm +++ b/code/modules/admin/verbs/possess.dm @@ -43,10 +43,10 @@ usr.control_object = null feedback_add_details("admin_verb","RO") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/proc/givetestverbs(mob/M as mob in mob_list) +/proc/givetestverbs(mob/M as mob in GLOB.mob_list) set desc = "Give this guy possess/release verbs" set category = "Debug" set name = "Give Possessing Verbs" M.verbs += /proc/possess M.verbs += /proc/release - feedback_add_details("admin_verb","GPV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! \ No newline at end of file + feedback_add_details("admin_verb","GPV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 93f17a78ad9..cd1f16e5005 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -1,4 +1,4 @@ -/client/proc/cmd_admin_drop_everything(mob/M as mob in mob_list) +/client/proc/cmd_admin_drop_everything(mob/M as mob in GLOB.mob_list) set category = null set name = "Drop Everything" if(!holder) @@ -16,7 +16,7 @@ message_admins("[key_name_admin(usr)] made [key_name_admin(M)] drop everything!", 1) feedback_add_details("admin_verb","DEVR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/client/proc/cmd_admin_prison(mob/M as mob in mob_list) +/client/proc/cmd_admin_prison(mob/M as mob in GLOB.mob_list) set category = "Admin" set name = "Prison" if(!holder) @@ -77,7 +77,7 @@ else to_chat(src, "No matches for that age range found.") -/client/proc/cmd_admin_subtle_message(mob/M as mob in mob_list) +/client/proc/cmd_admin_subtle_message(mob/M as mob in GLOB.mob_list) set category = "Special Verbs" set name = "Subtle Message" @@ -152,7 +152,7 @@ admin_ticket_log(M, msg) feedback_add_details("admin_verb","DIRN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/client/proc/cmd_admin_godmode(mob/M as mob in mob_list) +/client/proc/cmd_admin_godmode(mob/M as mob in GLOB.mob_list) set category = "Special Verbs" set name = "Godmode" if(!holder) @@ -249,7 +249,7 @@ Ccomp's first proc. var/list/mobs = list() var/list/ghosts = list() - var/list/sortmob = sortList(mob_list) // get the mob list. + var/list/sortmob = sortList(GLOB.mob_list) // get the mob list. var/any=0 for(var/mob/observer/dead/M in sortmob) mobs.Add(M) //filter it where it's only ghosts @@ -537,14 +537,14 @@ Traitors and the like can also be revived with the previous role mostly intact. var/input = input(usr, "Please enter anything you want the AI to do. Anything. Serious.", "What?", "") as text|null if(!input) return - for(var/mob/living/silicon/ai/M in mob_list) + for(var/mob/living/silicon/ai/M in GLOB.mob_list) if (M.stat == 2) to_chat(usr, "Upload failed. No signal is being detected from the AI.") else if (M.see_in_dark == 0) to_chat(usr, "Upload failed. Only a faint signal is being detected from the AI, and it is not responding to our requests. It may be low on power.") else M.add_ion_law(input) - for(var/mob/living/silicon/ai/O in mob_list) + for(var/mob/living/silicon/ai/O in GLOB.mob_list) to_chat(O, input + "... LAWS UPDATED!") O.show_laws() @@ -556,7 +556,7 @@ Traitors and the like can also be revived with the previous role mostly intact. command_announcement.Announce("Ion storm detected near the [station_name()]. Please check all AI-controlled equipment for errors.", "Anomaly Alert", new_sound = 'sound/AI/ionstorm.ogg') feedback_add_details("admin_verb","IONC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! -/client/proc/cmd_admin_rejuvenate(mob/living/M as mob in mob_list) +/client/proc/cmd_admin_rejuvenate(mob/living/M as mob in GLOB.mob_list) set category = "Special Verbs" set name = "Rejuvenate" if(!holder) @@ -680,7 +680,7 @@ Traitors and the like can also be revived with the previous role mostly intact. else return -/client/proc/cmd_admin_gib(mob/M as mob in mob_list) +/client/proc/cmd_admin_gib(mob/M as mob in GLOB.mob_list) set category = "Special Verbs" set name = "Gib" @@ -777,7 +777,7 @@ Traitors and the like can also be revived with the previous role mostly intact. // I will both remove their SVN access and permanently ban them from my servers. return -/client/proc/cmd_admin_check_contents(mob/living/M as mob in mob_list) +/client/proc/cmd_admin_check_contents(mob/living/M as mob in GLOB.mob_list) set category = "Special Verbs" set name = "Check Contents" set popup_menu = FALSE //VOREStation Edit - Declutter. @@ -900,7 +900,7 @@ Traitors and the like can also be revived with the previous role mostly intact. log_admin("[key_name(src)] has [SSemergencyshuttle.deny_shuttle ? "denied" : "allowed"] the shuttle to be called.") message_admins("[key_name_admin(usr)] has [SSemergencyshuttle.deny_shuttle ? "denied" : "allowed"] the shuttle to be called.") -/client/proc/cmd_admin_attack_log(mob/M as mob in mob_list) +/client/proc/cmd_admin_attack_log(mob/M as mob in GLOB.mob_list) set category = "Special Verbs" set name = "Attack Log" @@ -1021,7 +1021,7 @@ Traitors and the like can also be revived with the previous role mostly intact. M.ghostize() qdel(M) //Bye -/client/proc/cmd_admin_icsubtle_message(mob/M as mob in mob_list) +/client/proc/cmd_admin_icsubtle_message(mob/M as mob in GLOB.mob_list) set category = "Special Verbs" set name = "Centcom Message" diff --git a/code/modules/admin/view_variables/topic.dm b/code/modules/admin/view_variables/topic.dm index ffd486e4296..e4520faf4dc 100644 --- a/code/modules/admin/view_variables/topic.dm +++ b/code/modules/admin/view_variables/topic.dm @@ -24,7 +24,7 @@ if(!check_rights(NONE)) return - var/mob/M = locate(href_list["rename"]) in GLOB.mob_list + var/mob/M = locate(href_list["rename"]) in GLOB.GLOB.mob_list if(!istype(M)) to_chat(usr, "This can only be used on instances of type /mob") return @@ -59,7 +59,7 @@ if(!check_rights(R_SPAWN)) return - var/mob/living/carbon/monkey/Mo = locate(href_list["makehuman"]) in GLOB.mob_list + var/mob/living/carbon/monkey/Mo = locate(href_list["makehuman"]) in GLOB.GLOB.mob_list if(!istype(Mo)) to_chat(usr, "This can only be done to instances of type /mob/living/carbon/monkey") return @@ -75,7 +75,7 @@ if(!check_rights(NONE)) return - var/mob/living/L = locate(href_list["mobToDamage"]) in GLOB.mob_list + var/mob/living/L = locate(href_list["mobToDamage"]) in GLOB.GLOB.mob_list if(!istype(L)) return diff --git a/code/modules/events/ion_storm.dm b/code/modules/events/ion_storm.dm index bf1ffadd8d8..bb5d9f8420a 100644 --- a/code/modules/events/ion_storm.dm +++ b/code/modules/events/ion_storm.dm @@ -59,7 +59,7 @@ */ /datum/event/ionstorm/tick() if(botEmagChance) - for(var/mob/living/bot/bot in mob_list) + for(var/mob/living/bot/bot in GLOB.mob_list) if(!(bot.z in affecting_z)) continue if(prob(botEmagChance)) @@ -181,7 +181,7 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is M.add_ion_law("THE STATION IS [who2pref] [who2]") if(botEmagChance) - for(var/obj/machinery/bot/bot in mob_list) + for(var/obj/machinery/bot/bot in GLOB.mob_list) if(prob(botEmagChance)) bot.Emag() */ diff --git a/code/modules/events/meteor_strike_vr.dm b/code/modules/events/meteor_strike_vr.dm index 90a2a461b46..233f9992f5b 100644 --- a/code/modules/events/meteor_strike_vr.dm +++ b/code/modules/events/meteor_strike_vr.dm @@ -55,7 +55,7 @@ impacted = P break if(impacted) - for(var/mob/living/L in mob_list) + for(var/mob/living/L in GLOB.mob_list) if(!istype(L)) continue var/turf/mob_turf = get_turf(L) diff --git a/code/modules/events/money_spam.dm b/code/modules/events/money_spam.dm index 97ff807eb92..0bbc41efdef 100644 --- a/code/modules/events/money_spam.dm +++ b/code/modules/events/money_spam.dm @@ -102,7 +102,7 @@ last_spam_time = world.time if (prob(50)) //Give the AI an increased chance to intercept the message - for(var/mob/living/silicon/ai/ai in mob_list) + for(var/mob/living/silicon/ai/ai in GLOB.mob_list) // Allows other AIs to intercept the message but the AI won't intercept their own message. if(ai.aiPDA != P && ai.aiPDA != src) ai.show_message("Intercepted message from [sender] (Unknown / spam?) to [P:owner]: [message]") diff --git a/code/modules/gamemaster/actions/ion_storm.dm b/code/modules/gamemaster/actions/ion_storm.dm index fb180a4df61..ac38c7aa7c2 100644 --- a/code/modules/gamemaster/actions/ion_storm.dm +++ b/code/modules/gamemaster/actions/ion_storm.dm @@ -35,7 +35,7 @@ while(active) sleep(1) if(botEmagChance) - for(var/mob/living/bot/bot in mob_list) + for(var/mob/living/bot/bot in GLOB.mob_list) if(prob(botEmagChance)) bot.emag_act(1) diff --git a/code/modules/gamemaster/actions/money_spam.dm b/code/modules/gamemaster/actions/money_spam.dm index 33ef5818891..42d734455b5 100644 --- a/code/modules/gamemaster/actions/money_spam.dm +++ b/code/modules/gamemaster/actions/money_spam.dm @@ -103,7 +103,7 @@ /* //VOREStation Removal: no need to spam the AI tenfold if (prob(50)) //Give the AI an increased chance to intercept the message - for(var/mob/living/silicon/ai/ai in mob_list) + for(var/mob/living/silicon/ai/ai in GLOB.mob_list) // Allows other AIs to intercept the message but the AI won't intercept their own message. if(ai.aiPDA != P && ai.aiPDA != src) ai.show_message("Intercepted message from [sender] (Unknown / spam?) to [P:owner]: [message]") diff --git a/code/modules/media/mediamanager.dm b/code/modules/media/mediamanager.dm index 49da3d54da8..b110451c760 100644 --- a/code/modules/media/mediamanager.dm +++ b/code/modules/media/mediamanager.dm @@ -27,7 +27,7 @@ /hook/roundend/proc/stop_all_media() log_debug("Stopping all playing media...") // Stop all music. - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) if(M && M.client) M.stop_all_music() // SHITTY HACK TO AVOID RACE CONDITION WITH SERVER REBOOT. diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index ec2e85f034f..c5d3ba5cc4a 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -141,7 +141,7 @@ /mob/observer/dead/Topic(href, href_list) if (href_list["track"]) - var/mob/target = locate(href_list["track"]) in mob_list + var/mob/target = locate(href_list["track"]) in GLOB.mob_list if(target) ManualFollow(target) if(href_list["reenter"]) diff --git a/code/modules/mob/hear_say.dm b/code/modules/mob/hear_say.dm index 19098b8e2b1..0c50caf710f 100644 --- a/code/modules/mob/hear_say.dm +++ b/code/modules/mob/hear_say.dm @@ -179,7 +179,7 @@ var/mob/living/carbon/human/I = impersonated[speaker_name] if(!I) - for(var/mob/living/carbon/human/M in mob_list) + for(var/mob/living/carbon/human/M in GLOB.mob_list) if(M.real_name == speaker_name) I = M impersonated[speaker_name] = I diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 606f28cfd3c..806aae29c1c 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -850,7 +850,7 @@ src.verbs -= /mob/living/carbon/human/proc/remotesay return var/list/creatures = list() - for(var/mob/living/carbon/h in mob_list) + for(var/mob/living/carbon/h in GLOB.mob_list) creatures += h var/mob/target = input("Who do you want to project your mind to ?") as null|anything in creatures if (isnull(target)) @@ -863,7 +863,7 @@ target.show_message(" You hear a voice that seems to echo around the room: [say]") usr.show_message(" You project your mind into [target.real_name]: [say]") log_say("(TPATH to [key_name(target)]) [say]",src) - for(var/mob/observer/dead/G in mob_list) + for(var/mob/observer/dead/G in GLOB.mob_list) G.show_message("Telepathic message from [src] to [target]: [say]") /mob/living/carbon/human/proc/remoteobserve() @@ -888,7 +888,7 @@ var/list/mob/creatures = list() - for(var/mob/living/carbon/h in mob_list) + for(var/mob/living/carbon/h in GLOB.mob_list) var/turf/temp_turf = get_turf(h) if((temp_turf.z != 1 && temp_turf.z != 5) || h.stat!=CONSCIOUS) //Not on mining or the station. Or dead continue diff --git a/code/modules/mob/living/carbon/human/human_species.dm b/code/modules/mob/living/carbon/human/human_species.dm index 2e4bb4a545c..3aecc1162c5 100644 --- a/code/modules/mob/living/carbon/human/human_species.dm +++ b/code/modules/mob/living/carbon/human/human_species.dm @@ -4,7 +4,7 @@ /mob/living/carbon/human/dummy/mannequin/Initialize() . = ..() - mob_list -= src + GLOB.mob_list -= src living_mob_list -= src dead_mob_list -= src delete_inventory() @@ -92,7 +92,7 @@ . = ..() name = "Wooden Mannequin" real_name = "Wooden Mannequin" - mob_list -= src + GLOB.mob_list -= src living_mob_list -= src dead_mob_list -= src weight = rand(25,175) @@ -121,7 +121,7 @@ . = ..() name = "Plastic Mannequin" real_name = "Plastic Mannequin" - mob_list -= src + GLOB.mob_list -= src living_mob_list -= src dead_mob_list -= src weight = rand(25,175) @@ -151,7 +151,7 @@ . = ..() name = "Wooden Mannequin" real_name = "Wooden Mannequin" - mob_list -= src + GLOB.mob_list -= src living_mob_list -= src dead_mob_list -= src weight = rand(25,175) @@ -183,7 +183,7 @@ . = ..() name = "Wooden Mannequin" real_name = "Wooden Mannequin" - mob_list -= src + GLOB.mob_list -= src living_mob_list -= src dead_mob_list -= src weight = rand(25,175) @@ -212,7 +212,7 @@ . = ..() name = "Wooden Mannequin" real_name = "Wooden Mannequin" - mob_list -= src + GLOB.mob_list -= src living_mob_list -= src dead_mob_list -= src weight = rand(25,175) @@ -241,7 +241,7 @@ . = ..() name = "Wooden Mannequin" real_name = "Wooden Mannequin" - mob_list -= src + GLOB.mob_list -= src living_mob_list -= src dead_mob_list -= src weight = rand(25,175) diff --git a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm index bfaa410d037..d14e8fb6e16 100644 --- a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm +++ b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm @@ -116,7 +116,7 @@ Des: Removes all infection images from aliens and places an infection image on a for(var/image/I in alien.client.images) if(dd_hasprefix_case(I.icon_state, "infected")) qdel(I) - for(var/mob/living/L in mob_list) + for(var/mob/living/L in GLOB.mob_list) if(iscorgi(L) || iscarbon(L)) if(L.status_flags & XENO_HOST) var/I = image('icons/mob/alien.dmi', loc = L, icon_state = "infected[stage]") diff --git a/code/modules/mob/living/carbon/human/species/xenomorphs/xenomorphs.dm b/code/modules/mob/living/carbon/human/species/xenomorphs/xenomorphs.dm index 426492453b4..13a85baee96 100644 --- a/code/modules/mob/living/carbon/human/species/xenomorphs/xenomorphs.dm +++ b/code/modules/mob/living/carbon/human/species/xenomorphs/xenomorphs.dm @@ -35,7 +35,7 @@ Des: Gives the client of the alien an image on each infected mob. /* /mob/living/carbon/human/proc/AddInfectionImages() if (client) - for (var/mob/living/C in mob_list) + for (var/mob/living/C in GLOB.mob_list) if(C.status_flags & XENO_HOST) var/obj/item/alien_embryo/A = locate() in C var/I = image('icons/mob/alien.dmi', loc = C, icon_state = "infected[A.stage]") diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index b9b74fd6495..78d168f5ba7 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -107,7 +107,7 @@ var/list/ai_verbs_default = list( var/pickedName = null while(!pickedName) pickedName = pick(ai_names) - for (var/mob/living/silicon/ai/A in mob_list) + for (var/mob/living/silicon/ai/A in GLOB.mob_list) if (A.real_name == pickedName && possibleNames.len > 1) //fixing the theoretically possible infinite loop possibleNames -= pickedName pickedName = null @@ -476,7 +476,7 @@ var/list/ai_verbs_default = list( to_chat(src, "Unable to locate the holopad.") if (href_list["track"]) - var/mob/target = locate(href_list["track"]) in mob_list + var/mob/target = locate(href_list["track"]) in GLOB.mob_list if(target && (!istype(target, /mob/living/carbon/human) || html_decode(href_list["trackname"]) == target:get_face_name())) ai_actual_track(target) @@ -880,7 +880,7 @@ var/list/ai_verbs_default = list( /mob/living/silicon/ai/announcer/Initialize(mapload) . = ..() - mob_list -= src + GLOB.mob_list -= src living_mob_list -= src dead_mob_list -= src ai_list -= src diff --git a/code/modules/mob/living/silicon/ai/laws.dm b/code/modules/mob/living/silicon/ai/laws.dm index e003b871c80..ce346c0af4d 100644 --- a/code/modules/mob/living/silicon/ai/laws.dm +++ b/code/modules/mob/living/silicon/ai/laws.dm @@ -17,7 +17,7 @@ /mob/living/silicon/ai/add_ion_law(var/law) ..() - for(var/mob/living/silicon/robot/R in mob_list) + for(var/mob/living/silicon/robot/R in GLOB.mob_list) if(R.lawupdate && (R.connected_ai == src)) R.show_laws() diff --git a/code/modules/mob/living/silicon/robot/drone/drone_console.dm b/code/modules/mob/living/silicon/robot/drone/drone_console.dm index 7315bbd2978..93eb72dffad 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_console.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_console.dm @@ -26,7 +26,7 @@ var/dat dat += "Maintenance Units
" - for(var/mob/living/silicon/robot/drone/D in mob_list) + for(var/mob/living/silicon/robot/drone/D in GLOB.mob_list) if(D.z != src.z) continue if(D.foreign_droid) @@ -121,4 +121,4 @@ dronefab.produce_drones = !dronefab.produce_drones to_chat(usr, "You [dronefab.produce_drones ? "enable" : "disable"] drone production in the nearby fabricator.") - src.updateUsrDialog() \ No newline at end of file + src.updateUsrDialog() diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index e507776fc70..05dd5091c4f 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -1,5 +1,5 @@ /mob/Destroy()//This makes sure that mobs withGLOB.clients/keys are not just deleted from the game. - mob_list -= src + GLOB.mob_list -= src dead_mob_list -= src living_mob_list -= src unset_machine() @@ -40,7 +40,7 @@ zone_sel = null /mob/Initialize(mapload) - mob_list += src + GLOB.mob_list += src set_focus(src) if(stat == DEAD) dead_mob_list += src @@ -148,7 +148,7 @@ M.show_message(msg, 2, deaf_message, 1) /mob/proc/findname(msg) - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) if (M.real_name == text("[]", msg)) return M return 0 @@ -500,7 +500,7 @@ namecounts[name] = 1 creatures[name] = O - for(var/mob/M in sortList(mob_list)) + for(var/mob/M in sortList(GLOB.mob_list)) var/name = M.name if (names.Find(name)) namecounts[name]++ diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index 1f734dc033f..2ced3ed1d24 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -323,7 +323,7 @@ It's fairly easy to fix if dealing with single letters but not so much with comp /proc/findname(msg) - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) if (M.real_name == text("[msg]")) return 1 return 0 @@ -387,7 +387,7 @@ proc/is_blind(A) /proc/mobs_in_area(var/area/A) var/list/mobs = new - for(var/mob/living/M in mob_list) + for(var/mob/living/M in GLOB.mob_list) if(get_area(M) == A) mobs += M return mobs diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index e0af4fa0c3b..bdc946863be 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -16,7 +16,7 @@ anchored = 1 // Don't get pushed around /mob/new_player/Initialize(mapload) - mob_list += src + GLOB.mob_list += src flags |= INITIALIZED return INITIALIZE_HINT_NORMAL @@ -184,7 +184,7 @@ if(href_list["SelectedJob"]) /* // Prevents people rejoining as same character. - for (var/mob/living/carbon/human/C in mob_list) + for (var/mob/living/carbon/human/C in GLOB.mob_list) var/char_name = client.prefs.real_name if(char_name == C.real_name) to_chat(usr, "There is a character that already exists with the same name - [C.real_name], please join with a different one, or use Quit the Round with the previous character.") diff --git a/code/modules/nano/modules/crew_monitor.dm b/code/modules/nano/modules/crew_monitor.dm index 38bf9ed9bf2..1459133de59 100644 --- a/code/modules/nano/modules/crew_monitor.dm +++ b/code/modules/nano/modules/crew_monitor.dm @@ -10,7 +10,7 @@ if(href_list["track"]) if(isAI(usr)) var/mob/living/silicon/ai/AI = usr - var/mob/living/carbon/human/H = locate(href_list["track"]) in mob_list + var/mob/living/carbon/human/H = locate(href_list["track"]) in GLOB.mob_list if(hassensorlevel(H, SUIT_SENSOR_TRACKING)) AI.ai_actual_track(H) return 1 @@ -43,7 +43,7 @@ ui.set_auto_update(1) /*/datum/nano_module/crew_monitor/proc/scan() - for(var/mob/living/carbon/human/H in mob_list) + for(var/mob/living/carbon/human/H in GLOB.mob_list) if(istype(H.w_uniform, /obj/item/clothing/under)) var/obj/item/clothing/under/C = H.w_uniform if (C.has_sensor) diff --git a/code/modules/tgui/modules/crew_monitor.dm b/code/modules/tgui/modules/crew_monitor.dm index 5d12a8de771..df6f1260675 100644 --- a/code/modules/tgui/modules/crew_monitor.dm +++ b/code/modules/tgui/modules/crew_monitor.dm @@ -15,7 +15,7 @@ if("track") if(isAI(usr)) var/mob/living/silicon/ai/AI = usr - var/mob/living/carbon/human/H = locate(params["track"]) in mob_list + var/mob/living/carbon/human/H = locate(params["track"]) in GLOB.mob_list if(hassensorlevel(H, SUIT_SENSOR_TRACKING)) AI.ai_actual_track(H) return TRUE diff --git a/code/modules/xenoarcheaology/finds/talking.dm b/code/modules/xenoarcheaology/finds/talking.dm index 2f4c88eb93c..c9a75d6193c 100644 --- a/code/modules/xenoarcheaology/finds/talking.dm +++ b/code/modules/xenoarcheaology/finds/talking.dm @@ -109,7 +109,7 @@ msg+="!" var/list/listening = viewers(holder_atom) - for(var/mob/M in mob_list) + for(var/mob/M in GLOB.mob_list) if (!M.client) continue //skip monkeys and leavers if (istype(M, /mob/new_player))
NameFingerprints
[H][md5(H.dna.uni_identity)]