Organs now properly retain appearance upon cloning and DNA scramble

This commit is contained in:
Crazylemon64
2016-02-29 22:49:46 -08:00
parent 7a37daa21d
commit fff283bd2a
5 changed files with 17 additions and 16 deletions
@@ -44,7 +44,7 @@
if(!delay_ready_dna && dna)
dna.ready_dna(src)
dna.real_name = real_name
sync_organ_dna() //this shouldn't be necessaaaarrrryyyyyyyy
sync_organ_dna(1)
if(species)
species.handle_dna(src)
@@ -1406,6 +1406,8 @@
/mob/living/carbon/human/generate_name()
name = species.makeName(gender,src)
real_name = name
if(dna)
dna.real_name = name
return name
/mob/living/carbon/human/proc/handle_embedded_objects()
@@ -153,9 +153,8 @@ Otherwise, this restricts itself to organs that share the UE of the host.
/mob/living/carbon/human/proc/sync_organ_dna(var/assimilate = 1)
var/list/all_bits = internal_organs|organs
for(var/obj/item/organ/O in all_bits)
if(!assimilate && O.dna.unique_enzymes != dna.unique_enzymes)
continue
O.set_dna(dna)
if(assimilate || O.dna.unique_enzymes == dna.unique_enzymes)
O.set_dna(dna)
/*
Given the name of an organ, returns the external organ it's contained in
+1 -1
View File
@@ -477,7 +477,7 @@
domutcheck(new_character)
new_character.dna.UpdateSE()
new_character.sync_organ_dna() //just fucking incase I guess
new_character.sync_organ_dna(1) //just fucking incase I guess
// Do the initial caching of the player's body icons.
new_character.force_update_limbs()