Goonstation 13 - Modules - Types

code/obj/machinery/computer/cloning.dm

/proc/eligible_to_cloneCheck if a mind has a current mob, a client, and is dead/a ghost/doing afterlife stuff. Scanning var controls whether we will return ghosts, because ghosts needs special handling in clone scans to ensure they're not using a body that they've been cloned from before
/proc/find_ghost_by_keyfind a ghost mob (or a ghost respawned as critter in vr/afterlife bar)