mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-15 12:42:50 +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]"]
|
||||
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")
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user