anchor.diff:  			else if(!pod)
   				temp = "<font class='bad'>No Clonepods available.</font>"
   				playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  -			else if(!CONFIG_GET(flag/revival_cloning))
  +			else if(!config.revival_cloning)
   				temp = "<font class='bad'>Unable to initiate cloning cycle.</font>"
   				playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
   			else if(pod.occupant)
  
positive.code: 
  			if("eject")
  				if(src.diskette)
  					src.diskette.forceMove(drop_location())
  					src.diskette = null
  					playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, 0)
  			if("save")
  
negative.code: 	src.records += R
  	scantemp = "Subject successfully scanned."
  	playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
  =======
  			playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
  
  	else if(href_list["view_rec"])
  		playsound(src, "terminal_type", 25, 0)
  		src.active_record = find_record("id", href_list["view_rec"], records)
  		if(active_record)
  			if(!active_record.fields["ckey"])
  				records -= active_record
  				active_record = null
  				src.temp = "<font class='bad'>Record Corrupt</font>"
  			else
  				src.menu = 3
  		else
  			src.temp = "Record missing."
  
  	else if (href_list["del_rec"])
  		if ((!src.active_record) || (src.menu < 3))
  			return
  		if (src.menu == 3) //If we are viewing a record, confirm deletion
  			src.temp = "Delete record?"
  			src.menu = 4
  			playsound(src, 'sound/machines/terminal_prompt.ogg', 50, 0)
  
  		else if (src.menu == 4)
  			var/obj/item/card/id/C = usr.get_active_held_item()
  			if (istype(C)||istype(C, /obj/item/device/pda))
  				if(src.check_access(C))
  					src.temp = "[src.active_record.fields["name"]] => Record deleted."
  					src.records.Remove(active_record)
  					active_record = null
  					playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
  					src.menu = 2
  				else
  					src.temp = "<font class='bad'>Access Denied.</font>"
  					playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  
  	else if (href_list["disk"]) //Load or eject.
  		switch(href_list["disk"])
  			if("load")
  				if (!diskette || !istype(diskette.fields) || !diskette.fields["name"] || !diskette.fields)
  					src.temp = "<font class='bad'>Load error.</font>"
  					src.updateUsrDialog()
  					playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  					return
  				if (!src.active_record)
  					src.temp = "<font class='bad'>Record error.</font>"
  					src.menu = 1
  					src.updateUsrDialog()
  					playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  					return
  
  				for(var/key in diskette.fields)
  					src.active_record.fields[key] = diskette.fields[key]
  				src.temp = "Load successful."
  				playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
  
  			if("eject")
  				if(src.diskette)
  					src.diskette.forceMove(drop_location())
  					src.diskette = null
  					playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, 0)
  			if("save")
  				if(!diskette || diskette.read_only || !active_record || !active_record.fields)
  					src.temp = "<font class='bad'>Save error.</font>"
  					src.updateUsrDialog()
  					playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  					return
  
  				diskette.fields = active_record.fields.Copy()
  				diskette.name = "data disk - '[src.diskette.fields["name"]]'"
  				src.temp = "Save successful."
  				playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
  
  	else if (href_list["refresh"])
  		src.updateUsrDialog()
  		playsound(src, "terminal_type", 25, 0)
  
  	else if (href_list["clone"])
  		var/datum/data/record/C = find_record("id", href_list["clone"], records)
  		//Look for that player! They better be dead!
  		if(C)
  			var/obj/machinery/clonepod/pod = GetAvailablePod()
  			//Can't clone without someone to clone.  Or a pod.  Or if the pod is busy. Or full of gibs.
  			if(!LAZYLEN(pods))
  				temp = "<font class='bad'>No Clonepods detected.</font>"
  				playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  			else if(!pod)
  				temp = "<font class='bad'>No Clonepods available.</font>"
  				playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  			else if(!CONFIG_GET(flag/revival_cloning))
  				temp = "<font class='bad'>Unable to initiate cloning cycle.</font>"
  				playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  			else if(pod.occupant)
  				temp = "<font class='bad'>Cloning cycle already in progress.</font>"
  				playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  			else if(pod.growclone(C.fields["ckey"], C.fields["name"], C.fields["UI"], C.fields["SE"], C.fields["mind"], C.fields["mrace"], C.fields["features"], C.fields["factions"]))
  				temp = "[C.fields["name"]] => <font class='good'>Cloning cycle in progress...</font>"
  				playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
  				records.Remove(C)
  				if(active_record == C)
  					active_record = null
  				menu = 1
  			else
  				temp = "[C.fields["name"]] => <font class='bad'>Initialisation failure.</font>"
  				playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  
  		else
  			temp = "<font class='bad'>Data corruption.</font>"
  			playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  
  	else if (href_list["menu"])
  		src.menu = text2num(href_list["menu"])
  		playsound(src, "terminal_type", 25, 0)
  
  	src.add_fingerprint(usr)
  	src.updateUsrDialog()
  	return
  
  /obj/machinery/computer/cloning/proc/scan_occupant(occupant)
  	var/mob/living/mob_occupant = get_mob_or_brainmob(occupant)
  	var/datum/dna/dna
  	if(iscarbon(mob_occupant))
  		var/mob/living/carbon/C = mob_occupant
  		dna = C.has_dna()
  	if(isbrain(mob_occupant))
  		var/mob/living/brain/B = mob_occupant
  		dna = B.stored_dna
  
  	if(!istype(dna))
  		scantemp = "<font class='bad'>Unable to locate valid genetic data.</font>"
  		playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  		return
  	if(mob_occupant.suiciding || mob_occupant.hellbound)
  		scantemp = "<font class='bad'>Subject's brain is not responding to scanning stimuli.</font>"
  		playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  		return
  	if((mob_occupant.disabilities & NOCLONE) && (src.scanner.scan_level < 2))
  		scantemp = "<font class='bad'>Subject no longer contains the fundamental materials required to create a living clone.</font>"
  		playsound(src, 'sound/machines/terminal_alert.ogg', 50, 0)
  		return
  	if ((!mob_occupant.ckey) || (!mob_occupant.client))
  		scantemp = "<font class='bad'>Mental interface failure.</font>"
  		playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  		return
  	if (find_record("ckey", mob_occupant.ckey, records))
  		scantemp = "<font class='average'>Subject already in database.</font>"
  		playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
  		return
  
  	var/datum/data/record/R = new()
  	if(dna.species)
  		// We store the instance rather than the path, because some
  		// species (abductors, slimepeople) store state in their
  		// species datums
  		R.fields["mrace"] = dna.species
  	else
  		var/datum/species/rando_race = pick(CONFIG_GET(keyed_flag_list/roundstart_races))
  		R.fields["mrace"] = rando_race.type
  
  	R.fields["ckey"] = mob_occupant.ckey
  	R.fields["name"] = mob_occupant.real_name
  	R.fields["id"] = copytext(md5(mob_occupant.real_name), 2, 6)
  	R.fields["UE"] = dna.unique_enzymes
  	R.fields["UI"] = dna.uni_identity
  	R.fields["SE"] = dna.struc_enzymes
  	R.fields["blood_type"] = dna.blood_type
  	R.fields["features"] = dna.features
  	R.fields["factions"] = mob_occupant.faction
  
  	if (!isnull(mob_occupant.mind)) //Save that mind so traitors can continue traitoring after cloning.
  		R.fields["mind"] = "\ref[mob_occupant.mind]"
  
     //Add an implant if needed
  	var/obj/item/implant/health/imp
  	for(var/obj/item/implant/health/HI in mob_occupant.implants)
  		imp = HI
  		break
  	if(!imp)
  		imp = new /obj/item/implant/health(mob_occupant)
  		imp.implant(mob_occupant)
  	R.fields["imp"] = "\ref[imp]"
  
  	src.records += R
  	scantemp = "Subject successfully scanned."
  	playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
  >>>>>>> 8b54685... Cleanup to various loc assignments and nearby code (#31069)
  