- Added a real_name variable to DNA, which gets assigned when mobs are created and when preferences are copied as well as when changelings absorb mobs. This is so I could drop the dictionary-style list from changelings, which went list(real_name = \ref[dna]). What this meant was that if you absorbed multiple people whose real_name was "Unknown", you'd only have one dna to show for it. Now all of them will show and will be available to transform into.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4457 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-08-17 03:55:09 +00:00
parent e8f4ce561f
commit 9062d7fb23
9 changed files with 75 additions and 17 deletions
@@ -28,6 +28,9 @@
..()
if(dna)
dna.real_name = real_name
/mob/living/carbon/human/Bump(atom/movable/AM as mob|obj, yes)
if ((!( yes ) || now_pushing))
@@ -2,10 +2,15 @@
var/datum/reagents/R = new/datum/reagents(1000)
reagents = R
R.my_atom = src
if(name == "monkey")
name = text("monkey ([rand(1, 1000)])")
real_name = name
if (!(dna))
if(gender == NEUTER)
gender = pick(MALE, FEMALE)
dna = new /datum/dna( null )
dna.real_name = real_name
dna.uni_identity = "00600200A00E0110148FC01300B009"
dna.struc_enzymes = "0983E840344C39F4B059D5145FC5785DC6406A4BB8"
dna.unique_enzymes = md5(name)
@@ -18,10 +23,6 @@
dna.uni_identity += gendervar
dna.uni_identity += "12C"
dna.uni_identity += "4E2"
if(name == "monkey")
name = text("monkey ([rand(1, 1000)])")
real_name = name
..()
return
+4 -1
View File
@@ -32,7 +32,10 @@
if(hud_used) del(hud_used) //remove the hud objects
hud_used = new/obj/hud( src )
if(!dna) dna = new /datum/dna(null)
if(!dna)
dna = new /datum/dna(null)
if(dna)
dna.real_name = real_name
next_move = 1
sight |= SEE_SELF
@@ -671,6 +671,9 @@ datum/preferences
character.real_name = real_name
if(character.dna)
character.dna.real_name = character.real_name
character.gender = gender
character.age = age