mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +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
@@ -1,13 +1,13 @@
|
||||
/obj/effect/overmap/visitable/sector/Crossed(var/obj/effect/overmap/visitable/ship/enterer)
|
||||
. = ..()
|
||||
if(istype(enterer))
|
||||
for(var/mob/potential_mob as anything in player_list)
|
||||
for(var/mob/potential_mob as anything in GLOB.player_list)
|
||||
if(potential_mob.z in enterer.map_z)
|
||||
SEND_SOUND(potential_mob, 'sound/ambience/approaching_planet.ogg')
|
||||
|
||||
/obj/effect/overmap/visitable/planet/Crossed(var/obj/effect/overmap/visitable/ship/enterer) //CHOMPedit, lazy copy-paste
|
||||
. = ..()
|
||||
if(istype(enterer))
|
||||
for(var/mob/potential_mob as anything in player_list)
|
||||
for(var/mob/potential_mob as anything in GLOB.player_list)
|
||||
if(potential_mob.z in enterer.map_z)
|
||||
SEND_SOUND(potential_mob, 'sound/ambience/approaching_planet.ogg')
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
A.ex_act(1)
|
||||
|
||||
var/list/relevant_z = GetConnectedZlevels(start.z)
|
||||
for(var/mob/M in global.player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
var/turf/T = get_turf(M)
|
||||
if(!T || !(T.z in relevant_z))
|
||||
continue
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
|
||||
var/life = 0
|
||||
|
||||
for(var/mob/living/L in living_mob_list)
|
||||
for(var/mob/living/L in GLOB.living_mob_list)
|
||||
if(L.z in map_z) //Things inside things we'll consider shielded, otherwise we'd want to use get_z(L)
|
||||
life++
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
return
|
||||
//VOREStation Add Start
|
||||
last_sound = world.time
|
||||
for(var/mob/potential_mob as anything in player_list)
|
||||
for(var/mob/potential_mob as anything in GLOB.player_list)
|
||||
if(potential_mob.z in map_z)
|
||||
SEND_SOUND(potential_mob, 'sound/ambience/shutdown.ogg')
|
||||
//VOREStation Add End
|
||||
@@ -153,7 +153,7 @@
|
||||
return
|
||||
//VOREStation Add Start
|
||||
last_sound = world.time
|
||||
for(var/mob/potential_mob as anything in player_list)
|
||||
for(var/mob/potential_mob as anything in GLOB.player_list)
|
||||
if(potential_mob.z in map_z)
|
||||
SEND_SOUND(potential_mob, 'sound/ambience/startup.ogg')
|
||||
//VOREStation Add End
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/obj/effect/overmap/visitable/ship/Initialize(mapload)
|
||||
. = ..()
|
||||
listening_objects += src
|
||||
GLOB.listening_objects += src
|
||||
|
||||
/obj/effect/overmap/visitable/ship/Destroy()
|
||||
listening_objects -= src
|
||||
GLOB.listening_objects -= src
|
||||
return ..()
|
||||
|
||||
/obj/effect/overmap/visitable/ship/MouseDrop(atom/over)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
log_and_message_admins("CANARY: [src] tried to check is_empty, but map_z is `[map_z || "null"]`")
|
||||
return TRUE
|
||||
testing("Checking if sector at [map_z[1]] has no players.")
|
||||
for(var/mob/M in global.player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M != observer && (M.z in map_z))
|
||||
testing("There are people on it.")
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user