Locking the RnD console prevents simple deconstruction

This commit is contained in:
Crazylemon64
2015-12-21 12:20:54 -08:00
parent b1c7452356
commit 6ff1b00bed
+1 -1
View File
@@ -169,7 +169,7 @@ proc/CallMaterialName(ID)
return
D.loc = src
user << "<span class='notice'>You add the disk to the machine!</span>"
if(istype(D, /obj/item/weapon/screwdriver) && islocked())
if(istype(D, /obj/item/weapon/screwdriver) && islocked() && !(stat & BROKEN))
user << "<span class='warning'>This console is locked; Unlock it first</span>"
else
..()