Merge pull request #6130 from Citadel-Station-13/upstream-merge-36663

[MIRROR] Slimepeople now transfer traits on body-swap, and traits now transfer correctly
This commit is contained in:
deathride58
2018-03-27 17:51:35 +00:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
@@ -241,6 +241,7 @@
var/datum/species/jelly/slime/spare_datum = spare.dna.species
spare_datum.bodies = origin_datum.bodies
H.transfer_trait_datums(spare)
H.mind.transfer_to(spare)
spare.visible_message("<span class='warning'>[H] distorts as a new body \
\"steps out\" of them.</span>",
@@ -379,6 +380,7 @@
"<span class='notice'>You stop moving this body...</span>")
else
to_chat(M.current, "<span class='notice'>You abandon this body...</span>")
M.current.transfer_trait_datums(dupe)
M.transfer_to(dupe)
dupe.visible_message("<span class='notice'>[dupe] blinks and looks \
around.</span>",