Fixes shoe stuffing and handles moving mob when shoes are destroyed/digested

Fixes being able to put handheld peoples into shoes, and properly handles moving them to the stomach if the shoe is digested, and drops the mob on the tile if the shoe is outright deleted. (Technically it's setup to handle more than just the shoes so we can stick micros in other clothing with most of the functionality in place!)
This commit is contained in:
KeenShayne
2021-08-24 08:38:29 -04:00
parent 8848775cef
commit 93adc00a8a
3 changed files with 18 additions and 5 deletions
@@ -9,6 +9,8 @@
var/obj/item/device/pda/P = src
if(P.id)
P.id = null
for(var/mob/living/M in contents)//Drop mobs from objects(shoes) before deletion
M.forceMove(item_storage)
for(var/obj/item/O in contents)
if(istype(O, /obj/item/weapon/storage/internal)) //Dump contents from dummy pockets.
for(var/obj/item/SO in O)
@@ -37,6 +39,8 @@
var/obj/item/device/pda/P = src
if(P.id)
P.id = null
for(var/mob/living/M in contents)//Drop mobs from objects(shoes) before deletion
M.forceMove(item_storage)
for(var/obj/item/O in contents)
if(istype(O,/obj/item/weapon/storage/internal)) //Dump contents from dummy pockets.
for(var/obj/item/SO in O)