Removes unnecessary and cruft procs from mob/inventory.dm

This commit is contained in:
mwerezak
2015-03-30 05:25:43 -04:00
parent e6d19faeba
commit 1b4e13aabc
24 changed files with 70 additions and 235 deletions

View File

@@ -110,7 +110,7 @@
B.loc = get_turf(src)
user << "<span class='notice'>You armed the robot frame.</span>"
if (user.get_inactive_hand()==src)
user.before_take_item(src)
user.remove_from_mob(src)
user.put_in_inactive_hand(B)
del(src)
else

View File

@@ -177,7 +177,7 @@
spawn(0) //delete the empty stack once the current context yields
if (amount <= 0) //check again in case someone transferred stuff to us
if(usr)
usr.before_take_item(src)
usr.remove_from_mob(src)
del(src)
return 1

View File

@@ -103,7 +103,7 @@
if ((!F.status)||(F.ptank)) return
src.master = F
F.ptank = src
user.before_take_item(src)
user.remove_from_mob(src)
src.loc = F
return

View File

@@ -17,7 +17,7 @@
return
if(istype(O, /obj/item/weapon/extinguisher))
if(!has_extinguisher && opened)
user.drop_item(O)
user.remove_from_mob(O)
contents += O
has_extinguisher = O
user << "<span class='notice'>You place [O] in [src].</span>"

View File

@@ -26,7 +26,7 @@
if(istype(W, /obj/item/target))
density = 0
W.density = 1
user.drop_item(src)
user.remove_from_mob(W)
W.loc = loc
W.layer = 3.1
pinned_target = W