mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Fixes APCs Not Being Hackable (#12538)
This commit is contained in:
committed by
variableundefined
parent
cb505303d7
commit
fe403bef5c
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user