Fixes digested PDAs dropping IDs on the floor

Just a little oversight from my recent update.
This commit is contained in:
Verkister
2020-11-22 22:49:02 +02:00
committed by GitHub
parent a06c699b9c
commit f7df99f041
+4 -6
View File
@@ -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()