Mob inventory cleanup

Replaces three item removal procs with one
Adds a proc to delete an item on the mob
This commit is contained in:
Kelenius
2016-03-24 01:23:08 +03:00
parent 463eb3a4b6
commit df5a0d7941
152 changed files with 296 additions and 423 deletions

View File

@@ -23,8 +23,7 @@
if(!parts)
user << "<span class='warning'>This kit has no parts for this modification left.</span>"
user.drop_from_inventory(src)
qdel(src)
user.deleteItem(src)
return
var/allowed = 0
@@ -59,8 +58,7 @@
parts &= ~MODKIT_SUIT
if(!parts)
user.drop_from_inventory(src)
qdel(src)
user.deleteItem(src)
/obj/item/device/modkit/examine(mob/user)
..(user)