Implement Bay's SSmachinery and power usage updates, further unclogging the toilet (#13910)

This commit is contained in:
Wildkins
2022-05-16 18:50:16 +02:00
committed by GitHub
parent a18d6598e3
commit a4461a17af
296 changed files with 1662 additions and 1778 deletions
@@ -15,7 +15,6 @@
//1 = select event
//2 = authenticate
anchored = 1.0
use_power = 1
idle_power_usage = 2
active_power_usage = 6
power_channel = ENVIRON
@@ -108,7 +107,7 @@
/obj/machinery/keycard_auth/proc/broadcast_request()
icon_state = "auth_on"
for(var/obj/machinery/keycard_auth/KA in SSmachinery.all_machines)
for(var/obj/machinery/keycard_auth/KA in SSmachinery.machinery)
if(KA == src) continue
KA.reset()
spawn()
@@ -54,7 +54,7 @@
SSnightlight.temp_disable()
var/newlevel = get_security_level()
for(var/obj/machinery/power/apc/powercontrol in SSmachinery.processing_machines)
for(var/obj/machinery/power/apc/powercontrol in SSmachinery.processing)
if(isContactLevel(powercontrol.z))
powercontrol.manage_emergency(newlevel)