mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Fixes IDs being dropped from cryopods
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user