mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 04:17:33 +01:00
Turn more unmanaged global vars into GLOB (#20446)
Turned a ton of unmanaged globals into managed globals. Refactored some UT output. Removed some unused things, including vars. Added a test to ensure people don't keep adding new unmanaged vars.
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
data["networks"] = all_networks
|
||||
|
||||
if(current_network)
|
||||
data["cameras"] = camera_repository.cameras_in_network(current_network)
|
||||
data["cameras"] = GLOB.camera_repository.cameras_in_network(current_network)
|
||||
|
||||
return data
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
LAZYINITLIST(wireless_firing_pins_data)
|
||||
LAZYCLEARLIST(wireless_firing_pins_data)
|
||||
|
||||
for(var/i in wireless_firing_pins)
|
||||
for(var/i in GLOB.wireless_firing_pins)
|
||||
var/obj/item/device/firing_pin/wireless/P = i
|
||||
if(!istype(P) || !P.gun)
|
||||
continue
|
||||
@@ -55,7 +55,7 @@
|
||||
//Try and get the pin if a pin is passed
|
||||
var/obj/item/device/firing_pin/wireless/P
|
||||
if(params["pin"])
|
||||
P = locate(params["pin"]) in wireless_firing_pins
|
||||
P = locate(params["pin"]) in GLOB.wireless_firing_pins
|
||||
|
||||
if(!istype(P))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user