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
@@ -106,11 +106,11 @@
|
||||
if(uses_power && cell_type)
|
||||
cell = new cell_type(src)
|
||||
|
||||
debug_mappers_list = mapping_units
|
||||
debug_beacons_list = mapping_beacons
|
||||
debug_mappers_list = GLOB.mapping_units
|
||||
debug_beacons_list = GLOB.mapping_beacons
|
||||
|
||||
/obj/item/mapping_unit/Destroy()
|
||||
mapping_units -= src
|
||||
GLOB.mapping_units -= src
|
||||
|
||||
last_run()
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
hud_datum.apply_to_hud(user.hud_used)
|
||||
|
||||
/obj/item/mapping_unit/proc/start_updates()
|
||||
mapping_units += src
|
||||
GLOB.mapping_units += src
|
||||
updating = TRUE
|
||||
START_PROCESSING(SSobj, src)
|
||||
process()
|
||||
@@ -183,7 +183,7 @@
|
||||
|
||||
|
||||
/obj/item/mapping_unit/proc/stop_updates()
|
||||
mapping_units -= src
|
||||
GLOB.mapping_units -= src
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
updating = FALSE
|
||||
if(hud_item)
|
||||
@@ -261,8 +261,8 @@
|
||||
map_app.icon = icon(SSholomaps.holoMiniMaps[T.z])
|
||||
|
||||
// Apply markers
|
||||
for(var/marker in holomap_markers)
|
||||
var/datum/holomap_marker/holomarker = holomap_markers[marker]
|
||||
for(var/marker in GLOB.holomap_markers)
|
||||
var/datum/holomap_marker/holomarker = GLOB.holomap_markers[marker]
|
||||
if(holomarker.z == T_z && holomarker.filter & mapper_filter)
|
||||
var/image/markerImage = image(holomarker.icon,holomarker.id)
|
||||
markerImage.plane = FLOAT_PLANE
|
||||
@@ -285,7 +285,7 @@
|
||||
extras_holder.pixel_y = bgmap.pixel_y = -1*T_y + offset_y
|
||||
|
||||
// Populate other mapper icons
|
||||
for(var/obj/item/mapping_unit/HC as anything in mapping_units)
|
||||
for(var/obj/item/mapping_unit/HC as anything in GLOB.mapping_units)
|
||||
if(HC.mapper_filter != mapper_filter)
|
||||
continue
|
||||
var/mob_indicator = HOLOMAP_ERROR
|
||||
@@ -344,7 +344,7 @@
|
||||
extras += mark
|
||||
|
||||
// Marker beacon items
|
||||
for(var/obj/item/holomap_beacon/HB as anything in mapping_beacons)
|
||||
for(var/obj/item/holomap_beacon/HB as anything in GLOB.mapping_beacons)
|
||||
if(HB.mapper_filter != mapper_filter)
|
||||
continue
|
||||
|
||||
@@ -410,22 +410,22 @@
|
||||
. = ..()
|
||||
if(in_list) // mapped in turned on
|
||||
in_list = TRUE
|
||||
mapping_beacons += src
|
||||
GLOB.mapping_beacons += src
|
||||
icon_state = initial(icon_state) + in_list ? "_on" : ""
|
||||
|
||||
/obj/item/holomap_beacon/attack_self(mob/user)
|
||||
if(!in_list)
|
||||
in_list = TRUE
|
||||
mapping_beacons += src
|
||||
GLOB.mapping_beacons += src
|
||||
else
|
||||
in_list = FALSE
|
||||
mapping_beacons -= src
|
||||
GLOB.mapping_beacons -= src
|
||||
icon_state = "[initial(icon_state)][in_list ? "_on" : ""]"
|
||||
to_chat(user,span_notice("The [src] is now [in_list ? "broadcasting" : "disabled"]."))
|
||||
|
||||
/obj/item/holomap_beacon/Destroy()
|
||||
if(in_list)
|
||||
mapping_beacons -= src
|
||||
GLOB.mapping_beacons -= src
|
||||
return ..()
|
||||
|
||||
/obj/item/holomap_beacon/deathsquad
|
||||
|
||||
Reference in New Issue
Block a user