This commit is contained in:
Detective Google
2020-08-15 21:29:39 -05:00
parent 29aaa6c7ab
commit 9b943ec7a9
3 changed files with 22 additions and 38 deletions
+13 -3
View File
@@ -382,10 +382,20 @@
return 0
//Outdated but still in use apparently. This should at least be a human proc.
//Daily reminder to murder this - Remie.
/**
* Used to return a list of equipped items on a mob; does not include held items (use get_all_gear)
*
* Argument(s):
* * Optional - include_pockets (TRUE/FALSE), whether or not to include the pockets and suit storage in the returned list
*/
/mob/living/proc/get_equipped_items(include_pockets = FALSE)
return
var/list/items = list()
for(var/obj/item/I in contents)
if(I.item_flags & IN_INVENTORY)
items += I
items -= held_items
return items
/mob/living/proc/unequip_everything()
var/list/items = list()