mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 13:13:03 +00:00
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:
@@ -93,6 +93,12 @@ var/global/list/xenoChemList = list("mutationtoxin",
|
|||||||
var/val = traits["[trait]"]
|
var/val = traits["[trait]"]
|
||||||
return val
|
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()
|
/datum/xeno/traits/New()
|
||||||
..()
|
..()
|
||||||
set_trait(TRAIT_XENO_COLOR, "#CACACA")
|
set_trait(TRAIT_XENO_COLOR, "#CACACA")
|
||||||
|
|||||||
@@ -110,7 +110,8 @@
|
|||||||
icon_state = "scanner_1old"
|
icon_state = "scanner_1old"
|
||||||
for(var/i=1 to occupant.cores)
|
for(var/i=1 to occupant.cores)
|
||||||
var/obj/item/xenoproduct/slime/core/C = new(src)
|
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
|
C.nameVar = occupant.nameVar
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user