Files
CHOMPStation2/code/modules/resleeving/machines_ch.dm
Raeschen 0284d896cc Fix clone DNA not having digitigrade var set properly
odd but the dna.clone() var seems to not copy digitigrade, ONLY in the context of /obj/machinery/clonepod/transhuman/proc/growclone
2021-09-05 16:24:59 +02:00

11 lines
564 B
Plaintext

/obj/machinery/clonepod/transhuman/growclone(var/datum/transhuman/body_record/current_project)
. = ..()
//Extra clonepod behavior
var/mob/living/carbon/human/H = occupant
var/datum/dna2/record/R = current_project.mydna
H.digitigrade = R.dna.digitigrade // ensure clone mob has digitigrade var set appropriately
if(H.dna.digitigrade <> R.dna.digitigrade)
H.dna.digitigrade = R.dna.digitigrade // ensure cloned DNA is set appropriately from record??? for some reason it doesn't get set right despite the override to datum/dna/Clone()
H.update_icons_body()