Makes autolathe hacking work again

This commit is contained in:
Crazylemon64
2017-02-21 02:19:00 -08:00
parent fb1cef8029
commit 69ece3d12e
2 changed files with 5 additions and 10 deletions
+1 -6
View File
@@ -18,11 +18,6 @@ var/const/AUTOLATHE_DISABLE_WIRE = 4
return 1
return 0
/datum/wires/autolathe/Interact(var/mob/living/user)
if(CanUse(user))
var/obj/machinery/autolathe/V = holder
V.attack_hand(user)
/datum/wires/autolathe/UpdateCut(index, mended)
var/obj/machinery/autolathe/A = holder
switch(index)
@@ -55,4 +50,4 @@ var/const/AUTOLATHE_DISABLE_WIRE = 4
spawn(50)
if(A && !IsIndexCut(index))
A.disabled = 0
Interact(usr)
Interact(usr)
+4 -4
View File
@@ -75,11 +75,11 @@
/obj/machinery/autolathe/interact(mob/user)
if(shocked && !(stat & NOPOWER))
shock(user, 50)
return
if(shock(user, 50))
return
if(panel_open)
wires.Interact()
wires.Interact(user)
else
ui_interact(user)
@@ -451,4 +451,4 @@
else
for(var/datum/design/D in files.known_designs)
if("hacked" in D.category)
files.known_designs -= D.id
files.known_designs -= D.id