Midfix of chem side of fermichem

This commit is contained in:
Thalpy
2019-04-15 22:59:19 +01:00
parent 02da3c524e
commit b4d1b0e906
2 changed files with 36 additions and 32 deletions
@@ -1,25 +1,27 @@
#define fermiClone = null
/datum/status_effect/chem/SGDF
id = "SGDF"
var/mob/living/clone
//var/mob/living/fermi_Clone
/datum/status_effect/chem/SGDF/on_apply()
var/typepath = owner.type
clone = new typepath(owner.loc)
var/mob/living/carbon/O = owner
var/mob/living/carbon/C = clone
if(istype(C) && istype(O))
/datum/status_effect/chem/SGDF/on_apply(mob/living/M)
var/typepath = M.type
fermiClone = new typepath(M.loc)
//var/mob/living/carbon/M = owner
var/mob/living/carbon/C = fermi_Clone
if(istype(C) && istype(M))
C.real_name = O.real_name
O.dna.transfer_identity(C)
M.dna.transfer_identity(C)
C.updateappearance(mutcolor_update=1)
return ..()
/datum/status_effect/chem/SGDF/tick()
if(owner.stat == DEAD)
if(clone && clone.stat != DEAD)
if(owner.mind)
owner.mind.transfer_to(clone)
owner.visible_message("<span class='warning'>Lucidity shoots to your previously blank mind as your mind suddenly finishes the cloning process. You marvel for a moment at yourself, as your mind subconciously recollects all your memories up until the point when you cloned yourself. curiously, you find that you memories are blank after you ingested the sythetic serum, leaving you to wonder where the other you is.</span>")
clone = null
if(!clone || clone.stat == DEAD)
to_chat(owner, "<span class='notice'>[linked_extract] desperately tries to move your soul to a living body, but can't find one!</span>")
/datum/status_effect/chem/SGDF/tick(mob/living/M)
if(M.stat == DEAD)
if(fermi_Clone && fermi_Clone.stat != DEAD)
if(M.mind)
M.mind.transfer_to(fermi_Clone)
M.visible_message("<span class='warning'>Lucidity shoots to your previously blank mind as your mind suddenly finishes the cloning process. You marvel for a moment at yourself, as your mind subconciously recollects all your memories up until the point when you cloned yourself. curiously, you find that you memories are blank after you ingested the sythetic serum, leaving you to wonder where the other you is.</span>")
fermi_Clone = null
//if(!clone || clone.stat == DEAD)
// to_chat(owner, "<span class='notice'>[linked_extract] desperately tries to move your soul to a living body, but can't find one!</span>")
..()