From f7df99f0417f9591d7f53defe60aedd9b410ca5d Mon Sep 17 00:00:00 2001 From: Verkister Date: Sun, 22 Nov 2020 22:49:02 +0200 Subject: [PATCH] Fixes digested PDAs dropping IDs on the floor Just a little oversight from my recent update. --- code/modules/vore/eating/digest_act_vr.dm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/code/modules/vore/eating/digest_act_vr.dm b/code/modules/vore/eating/digest_act_vr.dm index d5ec12ee855..325b7fa1397 100644 --- a/code/modules/vore/eating/digest_act_vr.dm +++ b/code/modules/vore/eating/digest_act_vr.dm @@ -29,6 +29,10 @@ g_damage = digest_stage digest_stage -= g_damage if(digest_stage <= 0) + if(istype(src, /obj/item/device/pda) + var/obj/item/device/pda/P = src + if(P.id) + P.id = null 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) @@ -69,12 +73,6 @@ ///////////// // Some special treatment ///////////// -//PDAs need to lose their ID to not take it with them, so we can get a digested ID -/obj/item/device/pda/digest_act(atom/movable/item_storage = null) - if(id) - if(istype(item_storage, /obj/item/device/dogborg/sleeper) || (!isnull(digest_stage) && digest_stage <= 0)) - id = null - . = ..() /obj/item/weapon/card/id var/lost_access = list()