Refactors some procs from unsorted.dm helper to better places (#10443)

This commit is contained in:
Jiří Barouš
2020-11-07 11:28:23 -03:00
committed by GitHub
parent ca193a6bc6
commit cf58a96cc4
17 changed files with 247 additions and 258 deletions
@@ -306,7 +306,7 @@
"<span class='notice'>You hear rustling of clothes.</span>"
)
return
if(!dropsafety(W))
if(!W.dropsafety())
return
if(W)
user.drop_from_inventory(W,loc)
@@ -12,7 +12,7 @@
var/obj/item/grab/G = W
MouseDrop_T(G.affecting, user) //act like they were dragged onto the closet
return 0
if(!dropsafety(W))
if(!W.dropsafety())
return
if(W)
user.drop_from_inventory(W,loc)
@@ -18,7 +18,7 @@
var/obj/item/grab/G = W
MouseDrop_T(G.affecting, user) //act like they were dragged onto the closet
return 0
if(!dropsafety(W))
if(!W.dropsafety())
return
if(W)
user.drop_from_inventory(W,loc)