Ensures slimes will have identically different trait datums when the cores are created.

This does not account for VV modifications.
This commit is contained in:
Datraen
2016-06-02 18:09:27 -04:00
parent e62b06e867
commit 05caade93e
2 changed files with 8 additions and 1 deletions

View File

@@ -93,6 +93,12 @@ var/global/list/xenoChemList = list("mutationtoxin",
var/val = traits["[trait]"]
return val
/datum/xeno/traits/proc/copy_traits(var/datum/xeno/traits/target)
target.traits = traits
target.chemlist = chemlist
target.chems = chems
target.source = source
/datum/xeno/traits/New()
..()
set_trait(TRAIT_XENO_COLOR, "#CACACA")

View File

@@ -110,7 +110,8 @@
icon_state = "scanner_1old"
for(var/i=1 to occupant.cores)
var/obj/item/xenoproduct/slime/core/C = new(src)
C.traits = occupant.traitdat
C.traits = new()
occupant.traitdat.copy_traits(C.traits)
C.nameVar = occupant.nameVar