mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] var/global/list -> GLOB. conversion (#11193)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6f8cbcf612
commit
2c9453b5c3
@@ -210,7 +210,7 @@
|
||||
if(N)
|
||||
info = N.notehtml
|
||||
to_chat(U, "You hold \a [itemname] up to the camera ...")
|
||||
for(var/mob/living/silicon/ai/O in living_mob_list)
|
||||
for(var/mob/living/silicon/ai/O in GLOB.living_mob_list)
|
||||
if(!O.client)
|
||||
continue
|
||||
if(U.name == "Unknown")
|
||||
|
||||
@@ -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 == src) //ChompEDIT usr --> src
|
||||
continue
|
||||
if(M.tracking_status() != TRACKING_POSSIBLE)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
return
|
||||
|
||||
var/mob/selected = null
|
||||
for(var/mob/living/M in player_list)
|
||||
for(var/mob/living/M in GLOB.player_list)
|
||||
//Dead people only thanks!
|
||||
if((M.stat != 2) || (!M.client))
|
||||
continue
|
||||
@@ -94,7 +94,7 @@
|
||||
if(ckey(clonemind.key) != BR.ckey)
|
||||
return 0
|
||||
else
|
||||
for(var/mob/observer/dead/G in player_list)
|
||||
for(var/mob/observer/dead/G in GLOB.player_list)
|
||||
if(G.ckey == BR.ckey)
|
||||
if(G.can_reenter_corpse)
|
||||
break
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
/datum/surgery_step/brainstem,
|
||||
/datum/surgery_step/generic/ripper,
|
||||
)
|
||||
good_surgeries = surgery_steps
|
||||
good_surgeries = GLOB.surgery_steps
|
||||
for(var/datum/surgery_step/S in good_surgeries)
|
||||
if(S.type in banned_surgery_steps)
|
||||
good_surgeries -= S
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:31
|
||||
|
||||
var/global/list/priority_air_alarms = list()
|
||||
var/global/list/minor_air_alarms = list()
|
||||
|
||||
|
||||
/obj/machinery/computer/atmos_alert
|
||||
name = "atmospheric alert computer"
|
||||
desc = "Used to access the station's atmospheric sensors."
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
data["virus"] += list(list("name" = v.fields["name"], "D" = "\ref[v]"))
|
||||
if(MED_DATA_MEDBOT)
|
||||
data["medbots"] = list()
|
||||
for(var/mob/living/bot/medbot/M in mob_list)
|
||||
for(var/mob/living/bot/medbot/M in GLOB.mob_list)
|
||||
if(M.z != z)
|
||||
continue
|
||||
var/turf/T = get_turf(M)
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
data["can_hack"] = can_hack_any(user)
|
||||
data["cyborgs"] = list()
|
||||
data["safety"] = safety
|
||||
for(var/mob/living/silicon/robot/R in mob_list)
|
||||
for(var/mob/living/silicon/robot/R in GLOB.mob_list)
|
||||
if(!console_shows(R))
|
||||
continue
|
||||
var/area/A = get_area(R)
|
||||
@@ -175,7 +175,7 @@
|
||||
return
|
||||
message_admins(span_notice("[key_name_admin(ui.user)] detonated all cyborgs!"))
|
||||
log_game(span_notice("[key_name(ui.user)] detonated all cyborgs!"))
|
||||
for(var/mob/living/silicon/robot/R in mob_list)
|
||||
for(var/mob/living/silicon/robot/R in GLOB.mob_list)
|
||||
if(istype(R, /mob/living/silicon/robot/drone))
|
||||
continue
|
||||
// Ignore antagonistic cyborgs
|
||||
|
||||
@@ -403,11 +403,11 @@
|
||||
answer = text2num(answer)
|
||||
|
||||
if(field == "rank")
|
||||
if(answer in joblist)
|
||||
if(answer in GLOB.joblist)
|
||||
active1.fields["real_rank"] = answer
|
||||
|
||||
if(field == "criminal")
|
||||
for(var/mob/living/carbon/human/H in player_list)
|
||||
for(var/mob/living/carbon/human/H in GLOB.player_list)
|
||||
BITSET(H.hud_updateflag, WANTED_HUD)
|
||||
|
||||
if(istype(active2) && (field in active2.fields))
|
||||
|
||||
@@ -159,10 +159,10 @@ var/specops_shuttle_timeleft = 0
|
||||
sleep(10)
|
||||
|
||||
var/spawn_marauder[] = new()
|
||||
for(var/obj/effect/landmark/L in landmarks_list)
|
||||
for(var/obj/effect/landmark/L in GLOB.landmarks_list)
|
||||
if(L.name == "Marauder Entry")
|
||||
spawn_marauder.Add(L)
|
||||
for(var/obj/effect/landmark/L in landmarks_list)
|
||||
for(var/obj/effect/landmark/L in GLOB.landmarks_list)
|
||||
if(L.name == "Marauder Exit")
|
||||
var/obj/effect/portal/P = new(L.loc)
|
||||
P.invisibility = INVISIBILITY_ABSTRACT//So it is not seen by anyone.
|
||||
|
||||
@@ -1307,7 +1307,7 @@ About the new airlock wires panel:
|
||||
visible_message("[hold_open] holds \the [src] open.")
|
||||
|
||||
//if the door is unpowered then it doesn't make sense to hear the woosh of a pneumatic actuator
|
||||
for(var/mob/M as anything in player_list)
|
||||
for(var/mob/M as anything in GLOB.player_list)
|
||||
if(!M || !M.client)
|
||||
continue
|
||||
var/old_sounds = M.read_preference(/datum/preference/toggle/old_door_sounds)
|
||||
@@ -1447,7 +1447,7 @@ About the new airlock wires panel:
|
||||
|
||||
use_power(360) //360 W seems much more appropriate for an actuator moving an industrial door capable of crushing people
|
||||
has_beeped = 0
|
||||
for(var/mob/M as anything in player_list)
|
||||
for(var/mob/M as anything in GLOB.player_list)
|
||||
if(!M || !M.client)
|
||||
continue
|
||||
var/old_sounds = M.read_preference(/datum/preference/toggle/old_door_sounds)
|
||||
|
||||
@@ -151,7 +151,6 @@ GLOBAL_LIST_EMPTY(dispenser_presets)
|
||||
density = TRUE
|
||||
var/list/dispenses = list(/datum/gear_disp/trash) // put your gear datums here!
|
||||
var/datum/gear_disp/one_setting
|
||||
var/global/list/gear_distributed_to = list()
|
||||
var/dispenser_flags = GD_NOGREED|GD_UNLIMITED
|
||||
var/unique_dispense_list = list()
|
||||
var/needs_power = 0
|
||||
@@ -163,8 +162,8 @@ GLOBAL_LIST_EMPTY(dispenser_presets)
|
||||
|
||||
/obj/machinery/gear_dispenser/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!gear_distributed_to["[type]"] && (dispenser_flags & GD_NOGREED))
|
||||
gear_distributed_to["[type]"] = list()
|
||||
if(!GLOB.gear_distributed_to["[type]"] && (dispenser_flags & GD_NOGREED))
|
||||
GLOB.gear_distributed_to["[type]"] = list()
|
||||
var/list/real_gear_list = list()
|
||||
for(var/gear in dispenses)
|
||||
var/datum/gear_disp/S = new gear
|
||||
@@ -198,7 +197,7 @@ GLOBAL_LIST_EMPTY(dispenser_presets)
|
||||
|
||||
|
||||
/obj/machinery/gear_dispenser/proc/can_use(var/mob/living/carbon/human/user)
|
||||
var/list/used_by = gear_distributed_to["[type]"]
|
||||
var/list/used_by = GLOB.gear_distributed_to["[type]"]
|
||||
if(needs_power && inoperable())
|
||||
to_chat(user,span_warning("The machine does not respond to your prodding."))
|
||||
return 0
|
||||
@@ -252,7 +251,7 @@ GLOBAL_LIST_EMPTY(dispenser_presets)
|
||||
else if(!(dispenser_flags & GD_UNLIMITED))
|
||||
S.amount--
|
||||
if((dispenser_flags & GD_NOGREED) && !emagged)
|
||||
gear_distributed_to["[type]"] |= user.ckey
|
||||
GLOB.gear_distributed_to["[type]"] |= user.ckey
|
||||
if((dispenser_flags & GD_UNIQUE) && !emagged)
|
||||
unique_dispense_list |= user.ckey
|
||||
|
||||
@@ -357,7 +356,7 @@ GLOBAL_LIST_EMPTY(dispenser_presets)
|
||||
else if(!(dispenser_flags & GD_UNLIMITED))
|
||||
S.amount--
|
||||
if((dispenser_flags & GD_NOGREED) && !emagged)
|
||||
gear_distributed_to["[type]"] |= user.ckey
|
||||
GLOB.gear_distributed_to["[type]"] |= user.ckey
|
||||
if((dispenser_flags & GD_UNIQUE) && !emagged)
|
||||
unique_dispense_list |= user.ckey
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ var/const/HOLOPAD_MODE = RANGE_BASED
|
||||
last_request = world.time
|
||||
to_chat(user, span_notice("You request an AI's presence."))
|
||||
var/area/area = get_area(src)
|
||||
for(var/mob/living/silicon/ai/AI in living_mob_list)
|
||||
for(var/mob/living/silicon/ai/AI in GLOB.living_mob_list)
|
||||
if(!AI.client) continue
|
||||
to_chat(AI, span_info("Your presence is requested at <a href='byond://?src=\ref[AI];jumptoholopad=\ref[src]'>\the [area]</a>."))
|
||||
else
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
Look at radio.dm for the prequel to this code.
|
||||
*/
|
||||
|
||||
var/global/list/obj/machinery/telecomms/telecomms_list = list()
|
||||
|
||||
/obj/machinery/telecomms
|
||||
icon = 'icons/obj/stationobjs_vr.dmi' //VOREStation Add
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
var/obj/L = null
|
||||
|
||||
for(var/obj/effect/landmark/sloc in landmarks_list)
|
||||
for(var/obj/effect/landmark/sloc in GLOB.landmarks_list)
|
||||
if(sloc.name != C.data) continue
|
||||
if(locate(/mob/living) in sloc.loc) continue
|
||||
L = sloc
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
idle_power_usage = 15
|
||||
active_power_usage = 200
|
||||
light_color = "#FF0000"
|
||||
//var/global/list/vr_mob_tf_options // Global var located in global_lists.dm
|
||||
|
||||
/obj/machinery/vr_sleeper/perfect
|
||||
perfect_replica = TRUE
|
||||
@@ -266,7 +265,7 @@
|
||||
// Get the desired spawn location to put the body
|
||||
var/S = null
|
||||
var/list/vr_landmarks = list()
|
||||
for(var/obj/effect/landmark/virtual_reality/sloc in landmarks_list)
|
||||
for(var/obj/effect/landmark/virtual_reality/sloc in GLOB.landmarks_list)
|
||||
vr_landmarks += sloc.name
|
||||
|
||||
S = tgui_input_list(occupant, "Please select a location to spawn your avatar at:", "Spawn location", vr_landmarks)
|
||||
@@ -275,12 +274,12 @@
|
||||
|
||||
var/tf = null
|
||||
if(tgui_alert(occupant, "Would you like to play as a different creature?", "Join as a mob?", list("Yes", "No")) == "Yes")
|
||||
var/k = tgui_input_list(occupant, "Please select a creature:", "Mob list", vr_mob_tf_options)
|
||||
var/k = tgui_input_list(occupant, "Please select a creature:", "Mob list", GLOB.vr_mob_tf_options)
|
||||
if(!k || !occupant) //Our occupant can walk out.
|
||||
return 0
|
||||
tf = vr_mob_tf_options[k]
|
||||
tf = GLOB.vr_mob_tf_options[k]
|
||||
|
||||
for(var/obj/effect/landmark/virtual_reality/i in landmarks_list)
|
||||
for(var/obj/effect/landmark/virtual_reality/i in GLOB.landmarks_list)
|
||||
if(i.name == S)
|
||||
S = i
|
||||
break
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
set desc = "Become a different creature"
|
||||
|
||||
var/tf = null
|
||||
var/k = tgui_input_list(usr, "Please select a creature:", "Mob list", vr_mob_tf_options)
|
||||
var/k = tgui_input_list(usr, "Please select a creature:", "Mob list", GLOB.vr_mob_tf_options)
|
||||
if(!k)
|
||||
return 0
|
||||
tf = vr_mob_tf_options[k]
|
||||
tf = GLOB.vr_mob_tf_options[k]
|
||||
|
||||
var/mob/living/new_form = transform_into_mob(tf, TRUE, TRUE)
|
||||
if(isliving(new_form)) // Sanity check
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
var/S = null
|
||||
var/list/vr_landmarks = list()
|
||||
for(var/obj/effect/landmark/virtual_reality/sloc in landmarks_list)
|
||||
for(var/obj/effect/landmark/virtual_reality/sloc in GLOB.landmarks_list)
|
||||
vr_landmarks += sloc.name
|
||||
if(!LAZYLEN(vr_landmarks))
|
||||
to_chat(src, "There are no available spawn locations in virtual reality.")
|
||||
@@ -86,7 +86,7 @@
|
||||
S = tgui_input_list(usr, "Please select a location to spawn your avatar at:", "Spawn location", vr_landmarks)
|
||||
if(!S)
|
||||
return 0
|
||||
for(var/obj/effect/landmark/virtual_reality/i in landmarks_list)
|
||||
for(var/obj/effect/landmark/virtual_reality/i in GLOB.landmarks_list)
|
||||
if(i.name == S)
|
||||
S = i
|
||||
break
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
if("Peace")
|
||||
to_chat(user, span_infoplain(span_bold("Whatever alien sentience that the Wish Granter possesses is satisfied with your wish. There is a distant wailing as the last of the Faithless begin to die, then silence.")))
|
||||
to_chat(user, span_infoplain("You feel as if you just narrowly avoided a terrible fate..."))
|
||||
for(var/mob/living/simple_mob/faithless/F in living_mob_list)
|
||||
for(var/mob/living/simple_mob/faithless/F in GLOB.living_mob_list)
|
||||
F.health = -10
|
||||
F.set_stat(DEAD)
|
||||
F.icon_state = "faithless_dead"
|
||||
|
||||
Reference in New Issue
Block a user