Golem mind-transfer carries over antag status (#18721)

This commit is contained in:
ParaGitV
2022-08-09 02:05:45 -07:00
committed by GitHub
parent f376719d79
commit bb19261a82
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -147,6 +147,8 @@
if(!permanent && !uses)
qdel(src)
return M
// Base version - place these on maps/templates.
/obj/effect/mob_spawn/human
mob_type = /mob/living/carbon/human
@@ -168,8 +168,12 @@
user.visible_message("<span class='notice'>As [user] applies the potion on the golem shell, a faint light leaves them, moving to [src] and animating it!</span>",
"<span class='notice'>You apply the potion to [src], feeling your mind leave your body!</span>")
message_admins("[key_name(user)] used [I] to transfer their mind into [src]")
create(ckey = user.ckey, name = user.real_name)
var/mob/living/carbon/human/g = create() //Create the golem and prep mind transfer stuff
user.mind.transfer_to(g)
g.real_name = user.real_name
g.faction = user.faction
user.death() //Keeps brain intact to prevent forcing redtext
to_chat(g, "<span class='warning'>You have become the [g.dna.species]. Your allegiances, alliances, and roles are still the same as they were prior to using [I]!</span>")
qdel(I)
/obj/effect/mob_spawn/human/golem/servant