Merge pull request #6370 from Citadel-Station-13/upstream-merge-37132

[MIRROR] Fixes brain dna
This commit is contained in:
LetterJay
2018-04-14 07:44:36 -05:00
committed by GitHub
2 changed files with 17 additions and 3 deletions
+15 -1
View File
@@ -13,9 +13,23 @@
var/mob/living/holder
/datum/dna/New(mob/living/new_holder)
if(new_holder)
if(istype(new_holder))
holder = new_holder
/datum/dna/Destroy()
if(iscarbon(holder))
var/mob/living/carbon/cholder = holder
if(cholder.dna == src)
cholder.dna = null
holder = null
QDEL_NULL(species)
mutations.Cut() //This only references mutations, just dereference.
temporary_mutations.Cut() //^
previous.Cut() //^
return ..()
/datum/dna/proc/transfer_identity(mob/living/carbon/destination, transfer_SE = 0)
if(!istype(destination))
return
+2 -2
View File
@@ -84,8 +84,8 @@ Cyborg
exp_requirements = 120
exp_type = EXP_TYPE_CREW
/datum/job/cyborg/equip(mob/living/carbon/human/H)
return H.Robotize(FALSE, FALSE)
/datum/job/cyborg/equip(mob/living/carbon/human/H, visualsOnly = FALSE, announce = TRUE, latejoin = FALSE)
return H.Robotize(FALSE, latejoin)
/datum/job/cyborg/after_spawn(mob/living/silicon/robot/R, mob/M)
if(CONFIG_GET(flag/rename_cyborg)) //name can't be set in robot/New without the client