Better coad

This commit is contained in:
Unknown
2020-04-12 06:05:51 -04:00
parent 323d5f838b
commit 37fe76a1bb
@@ -165,9 +165,7 @@
/obj/item/weapon/gun/energy/locked/attackby(obj/item/I, mob/user)
var/obj/item/weapon/card/id/id = I.GetID()
if(!lockable)
return ..()
if(istype(id))
if(istype(id) && lockable)
if(check_access(id))
locked = !locked
to_chat(user, "<span class='warning'>You [locked ? "enable" : "disable"] the safety lock on \the [src].</span>")
@@ -179,7 +177,7 @@
/obj/item/weapon/gun/energy/locked/emag_act(var/remaining_charges,var/mob/user)
..()
if(locked)
if(lockable)
locked = !locked
to_chat(user, "<span class='warning'>You [locked ? "enable" : "disable"] the safety lock on \the [src]!</span>")