mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-03-23 12:12:56 +00:00
* Gets rid of hasvar usage * thiiis * moves damtype to /obj/item * throwing * Move vars moved * matter as well Pretty much only used for the robot lathe and when crafting...When you could only smelt down obj/item for its materials * Update floor_light.dm * exploitable * this can be moved up... * move persist to /item you can't ever place /obj in storage anyway...It would imply you can store the supermatter, which I think we don't want. * gets rid of being_used I added this for xenoarch, that was a mistake * move these * move these to the base file * Makes floorlight autolathe recipe not shit * Update floor_light.dm * Update floor_light.dm * Mechs no longer gib when hitting things --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
25 lines
635 B
Plaintext
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
|