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

@@ -86,7 +86,7 @@
var/obj/item/device/onetankbomb/R = new /obj/item/device/onetankbomb(loc)
M.drop_item() //Remove the assembly from your hands
M.remove_from_mob(src) //Remove the tank from your character,in case you were holding it
M.removeItem(src) //Remove the tank from your character,in case you were holding it
M.put_in_hands(R) //Equips the bomb if possible, or puts it on the floor.
R.bombassembly = S //Tell the bomb about its assembly part

View File

@@ -36,8 +36,8 @@
if((!isassembly(D))||(!isassembly(D2))) return 0
if((D:secured)||(D2:secured)) return 0
if(user)
user.remove_from_mob(D)
user.remove_from_mob(D2)
user.removeItem(D)
user.removeItem(D2)
D:holder = src
D2:holder = src
D.loc = src