Fixed two problem with airlock/APC commit:

- Debugger now sends messages to user instead of usr(whoops)
- Can now close emagged door with crowbar so you can take out circuit
- Couldn't weld emagged doors
- Replacing the circuitry should now be sufficient to fix an emagged door.
This commit is contained in:
cib
2013-05-23 19:47:33 +02:00
parent 2bfc48e097
commit ce19719700
3 changed files with 13 additions and 11 deletions
+10 -9
View File
@@ -5,9 +5,10 @@
*/
/obj/item/device/debugger
name = "multitool"
desc = "Used for pulsing wires to test which to cut. Not recommended by doctors."
icon_state = "multitool"
icon = 'icon/obj/hacktool.dmi'
name = "debugger"
desc = "Used to debug electronic equipment."
icon_state = "hacktool-g"
flags = FPRINT | TABLEPASS| CONDUCT
force = 5.0
w_class = 2.0
@@ -24,21 +25,21 @@
if(istype(O, /obj/machinery/power/apc))
var/obj/machinery/power/apc/A = O
if(A.emagged || A.malfhack)
usr << "\red There is a software error with the device."
user << "\red There is a software error with the device."
else
usr << "\blue The device's software appears to be fine."
user << "\blue The device's software appears to be fine."
return 1
if(istype(O, /obj/machinery/door))
var/obj/machinery/door/D = O
if(D.operating == -1)
usr << "\red There is a software error with the device."
user << "\red There is a software error with the device."
else
usr << "\blue The device's software appears to be fine."
user << "\blue The device's software appears to be fine."
return 1
else if(istype(O, /obj/machinery))
var/obj/machinery/A = O
if(A.emagged)
usr << "\red There is a software error with the device."
user << "\red There is a software error with the device."
else
usr << "\blue The device's software appears to be fine."
user << "\blue The device's software appears to be fine."
return 1