Fix NODROP interaction with secure closets

This commit is contained in:
Markolie
2017-03-06 13:34:05 +01:00
parent 15c96df7d2
commit ceb14ef15d
2 changed files with 5 additions and 2 deletions
@@ -262,7 +262,8 @@
return
if(isrobot(user))
return
if(!usr.drop_item())
if(!user.drop_item()) //couldn't drop the item
to_chat(user, "<span class='notice'>\The [W] is stuck to your hand, you cannot put it in \the [src]!</span>")
return
if(W)
W.forceMove(loc)
@@ -78,7 +78,9 @@
to_chat(user, "<span class='notice'>The locker is too small to stuff [W:affecting] into!</span>")
if(isrobot(user))
return
user.drop_item()
if(!user.drop_item()) //couldn't drop the item
to_chat(user, "<span class='notice'>\The [W] is stuck to your hand, you cannot put it in \the [src]!</span>")
return
if(W)
W.forceMove(loc)
else if((istype(W, /obj/item/weapon/card/emag)||istype(W, /obj/item/weapon/melee/energy/blade)) && !broken)