Makes it so that IRC can't be cloned

This commit is contained in:
joep van der velden
2020-03-23 17:48:28 +01:00
parent 63ea21b20e
commit e584a7bb15
2 changed files with 12 additions and 3 deletions
@@ -106,9 +106,18 @@
radio_action.ApplyIcon()
/obj/item/mmi/robotic_brain/attempt_become_organ(obj/item/organ/external/parent, mob/living/carbon/human/H)
if(!H)
return FALSE
var/had_dna = TRUE
if(!brainmob.dna)
had_dna = FALSE
brainmob.dna = H.dna.Clone() // Take the new targets dna to ensure the created holder has the correct DNA
if(..())
if(imprinted_master)
to_chat(H, "<span class='biggerdanger'>You are permanently imprinted to [imprinted_master], obey [imprinted_master]'s every order and assist [imprinted_master.p_them()] in completing [imprinted_master.p_their()] goals at any cost.</span>")
else if(!had_dna)
brainmob.dna = null // Reset it for next use
/obj/item/mmi/robotic_brain/proc/transfer_personality(mob/candidate)