Files
CHOMPStation2/code/modules/identification/item_procs.dm
CHOMPStation2StaffMirrorBot 938e760841 [MIRROR] Gets rid of hasvar usage and moves up some vars (#11484)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
2025-08-23 13:04:52 -04:00

25 lines
635 B
Plaintext

/obj/item/Initialize(mapload)
if(init_hide_identity)
identity = new identity_type(src)
return ..()
/obj/item/Destroy()
if(identity)
QDEL_NULL(identity)
return ..()
/obj/item/proc/hide_identity() // Mostly for admins to make things secret.
if(!identity)
identity = new identity_type(src)
else
identity.unidentify()
/obj/item/proc/identify(identity_type = IDENTITY_FULL, mob/user)
if(identity)
identity.identify(identity_type, user)
/obj/item/proc/is_identified(identity_type = IDENTITY_FULL)
if(!identity) // No identification datum means nothing to hide.
return TRUE
return identity_type & identity.identified