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
+10
View File
@@ -424,6 +424,16 @@
items -= announce // or the autosay radio.
for(var/obj/item/W in items)
//VOREStation Addition Start
if(istype(W, /obj/item/device/pda))
var/obj/item/device/pda/found_pda = W
found_pda.delete_id = TRUE
else
var/list/pdas_found = W.search_contents_for(/obj/item/device/pda)
if(pdas_found.len)
for(var/obj/item/device/pda/found_pda in pdas_found)
found_pda.delete_id = TRUE
//VOREStation Addition End
var/preserve = 0
+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"