Midfix
This commit is contained in:
@@ -1,28 +1,35 @@
|
||||
/datum/status_effect/chem/SGDF
|
||||
id = "SGDF"
|
||||
var/mob/living/carbon/human/fermi_Clone = null
|
||||
var/mob/living/fermi_Clone
|
||||
|
||||
/datum/status_effect/chem/SGDF/on_apply(mob/living/M)
|
||||
|
||||
/datum/status_effect/chem/SGDF/on_apply()
|
||||
message_admins("SGDF status appied")
|
||||
var/typepath
|
||||
fermi_Clone = new typepath(get_turf(M))
|
||||
//var/mob/living/carbon/M = owner
|
||||
var/typepath = owner.type
|
||||
fermi_Clone = new typepath(owner.loc)
|
||||
var/mob/living/carbon/M = owner
|
||||
var/mob/living/carbon/C = fermi_Clone
|
||||
|
||||
//fermi_Clone = new typepath(get_turf(M))
|
||||
//var/mob/living/carbon/C = fermi_Clone
|
||||
if(istype(fermi_Clone) && istype(M))
|
||||
fermi_Clone.real_name = M.real_name
|
||||
M.dna.transfer_identity(fermi_Clone, transfer_SE=1)
|
||||
fermi_Clone.updateappearance(mutcolor_update=1)
|
||||
//var/mob/living/carbon/SM = fermi_Gclone
|
||||
|
||||
if(istype(C) && istype(M))
|
||||
C.real_name = M.real_name
|
||||
M.dna.transfer_identity(C, transfer_SE=1)
|
||||
C.updateappearance(mutcolor_update=1)
|
||||
return ..()
|
||||
|
||||
/datum/status_effect/chem/SGDF/tick(mob/living/M)
|
||||
/datum/status_effect/chem/SGDF/tick()
|
||||
message_admins("SDGF ticking")
|
||||
if(M.stat == DEAD)
|
||||
if(owner.stat == DEAD)
|
||||
message_admins("SGDF status swapping")
|
||||
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)
|
||||
if(owner.mind)
|
||||
owner.mind.transfer_to(fermi_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>")
|
||||
fermi_Clone.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
|
||||
owner.remove_status_effect(src)
|
||||
// to_chat(owner, "<span class='notice'>[linked_extract] desperately tries to move your soul to a living body, but can't find one!</span>")
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user