Hopefully fix all DNA corruption issues caused by assuming datum pass by-val.

Conflicts:
	code/modules/mob/transform_procs.dm
This commit is contained in:
Rob Nelson
2014-01-20 01:52:08 -05:00
committed by ZomgPonies
parent c349f761d9
commit 5f89171fc1
11 changed files with 42 additions and 24 deletions
+2 -2
View File
@@ -92,7 +92,7 @@
brainmob = new(src)
brainmob.name = H.real_name
brainmob.real_name = H.real_name
brainmob.dna = H.dna
brainmob.dna = H.dna.Clone()
brainmob.container = src
name = "Man-Machine Interface: [brainmob.real_name]"
@@ -161,4 +161,4 @@
brainmob.emp_damage += rand(10,20)
if(3)
brainmob.emp_damage += rand(0,10)
..()
..()
@@ -28,7 +28,7 @@
brainmob = new(src)
brainmob.name = H.real_name
brainmob.real_name = H.real_name
brainmob.dna = H.dna
brainmob.dna = H.dna.Clone()
brainmob.timeofhostdeath = H.timeofdeath
if(H.mind)
H.mind.transfer_to(brainmob)
@@ -104,4 +104,4 @@
desc = "We barely understand the brains of terrestial animals. Who knows what we may find in the brain of such an advanced species?"
icon = 'icons/mob/alien.dmi'
icon_state = "AlienBrain"
origin_tech = "biotech=7"
origin_tech = "biotech=7"
@@ -41,7 +41,7 @@
M.real_name = src.real_name
if(src.dna)
M.dna = src.dna
M.dna = src.dna.Clone()
if(mind)
mind.transfer_to(M)
+1 -4
View File
@@ -29,10 +29,7 @@
O = new species.primitive(loc)
O.dna = dna
dna = null
//O.dna.uni_identity = "00600200A00E0110148FC01300B009"
//O.dna.struc_enzymes = "0983E840344C39F4B059D5145FC5785DC6406A4BB8"
O.dna = dna.Clone()
O.dna.SetSEState(MONKEYBLOCK,1)
O.loc = loc
O.viruses = viruses