From cf39768f251ae19d38bfc3dc1309b0ad37c2eeca Mon Sep 17 00:00:00 2001 From: ktccd Date: Fri, 4 Aug 2017 17:43:27 +0200 Subject: [PATCH] Fixes cloning and DNA change losing genitals. (#2242) Fixes cloning and DNA change losing genitals. Any hardsynch to TG removes this, because I can't freaking do the complicated multiple-of-same-proc thing that the TG head-coders know... --- code/datums/dna.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/datums/dna.dm b/code/datums/dna.dm index 5150938258..550ea590bf 100644 --- a/code/datums/dna.dm +++ b/code/datums/dna.dm @@ -29,6 +29,9 @@ destination.dna.temporary_mutations = temporary_mutations.Copy() if(transfer_SE) destination.dna.struc_enzymes = struc_enzymes + if(ishuman(destination)) + var/mob/living/carbon/human/H = destination + H.give_genitals(TRUE)//This gives the body the genitals of this DNA. Used for any transformations based on DNA /datum/dna/proc/copy_dna(datum/dna/new_dna) new_dna.unique_enzymes = unique_enzymes @@ -247,6 +250,8 @@ dna.struc_enzymes = se domutcheck() + give_genitals(TRUE)//Give all genitalia that DNA says you should have, remove any pre-existing ones as this is a hardset! + if(mrace || newfeatures || ui) update_body() update_hair()