Fixes IDs being dropped from cryopods

This commit is contained in:
Heroman
2020-02-24 10:03:35 +10:00
parent d247f88329
commit 7c2e86f90f
3 changed files with 15 additions and 2 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
/obj/item/device/pda/CtrlClick()
if(issilicon(usr))
return
if(can_use(usr))
remove_pen()
return
@@ -1458,7 +1458,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
/obj/item/device/pda/Destroy()
PDAs -= src
if (src.id && prob(100)) //IDs are kept in 90% of the cases //VOREStation Edit - 100% of the cases
if (src.id && prob(100) && !delete_id) //IDs are kept in 90% of the cases //VOREStation Edit - 100% of the cases, excpet when specified otherwise
src.id.forceMove(get_turf(src.loc))
else
QDEL_NULL(src.id)
@@ -1,3 +1,6 @@
/obj/item/device/pda
var/delete_id = FALSE //Guaranteed deletion of ID upon deletion of PDA
/obj/item/device/pda/centcom
default_cartridge = /obj/item/weapon/cartridge/captain
icon_state = "pda-h"