mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user