Fixes APCs Not Being Hackable (#12538)

This commit is contained in:
Fox McCloud
2019-10-09 09:58:36 -04:00
committed by variableundefined
parent cb505303d7
commit fe403bef5c
2 changed files with 11 additions and 12 deletions
+6 -6
View File
@@ -11,13 +11,13 @@ var/const/APC_WIRE_AI_CONTROL = 8
switch(index)
if(APC_WIRE_IDSCAN)
return "ID Scan"
if(APC_WIRE_MAIN_POWER1)
return "Primary Power"
if(APC_WIRE_MAIN_POWER2)
return "Secondary Power"
if(APC_WIRE_AI_CONTROL)
return "AI Control"
@@ -31,9 +31,9 @@ var/const/APC_WIRE_AI_CONTROL = 8
/datum/wires/apc/CanUse(mob/living/L)
var/obj/machinery/power/apc/A = holder
if(A.wiresexposed)
return 1
return 0
if(A.panel_open && !A.opened)
return TRUE
return FALSE
/datum/wires/apc/UpdatePulsed(index)