Fixes PDAs not unlocking lockers.

This commit is contained in:
ShizCalev
2018-10-09 00:56:34 -04:00
parent 86891dcc82
commit dbc353454a
@@ -265,8 +265,11 @@
user.visible_message("<span class='notice'>[user] [anchored ? "anchored" : "unanchored"] \the [src] [anchored ? "to" : "from"] the ground.</span>", \
"<span class='notice'>You [anchored ? "anchored" : "unanchored"] \the [src] [anchored ? "to" : "from"] the ground.</span>", \
"<span class='italics'>You hear a ratchet.</span>")
else if(user.a_intent != INTENT_HARM && !(W.item_flags & NOBLUDGEON))
if(W.GetID() || !toggle(user))
else if(user.a_intent != INTENT_HARM)
var/item_is_id = W.GetID()
if(!item_is_id && !(W.item_flags & NOBLUDGEON))
return FALSE
if(item_is_id || !toggle(user))
togglelock(user)
else
return FALSE