[MIRROR] Better cyborg creation logging [MDB IGNORE] (#18706)

* Better cyborg creation logging

* Fixes the merge conflicts!

* Okay now it should work

---------

Co-authored-by: tattle <66640614+dragomagol@users.noreply.github.com>
Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
This commit is contained in:
SkyratBot
2023-02-03 16:22:51 -05:00
committed by GitHub
co-authored by tattle GoldenAlpharex
parent 1fe0d145a3
commit 914105ff9b
6 changed files with 179 additions and 146 deletions
+18 -18
View File
@@ -119,35 +119,35 @@
if(notransform)
return
notransform = TRUE
var/mob/living/silicon/robot/R = new /mob/living/silicon/robot(loc)
var/mob/living/silicon/robot/new_borg = new /mob/living/silicon/robot(loc)
R.gender = gender
R.invisibility = 0
new_borg.gender = gender
new_borg.invisibility = 0
if(client)
R.updatename(client)
new_borg.updatename(client)
if(mind) //TODO //TODO WHAT
if(!transfer_after)
mind.active = FALSE
mind.transfer_to(R)
mind.transfer_to(new_borg)
else if(transfer_after)
R.key = key
new_borg.key = key
if(R.mmi)
R.mmi.name = "[initial(R.mmi.name)]: [real_name]"
if(R.mmi.brain)
R.mmi.brain.name = "[real_name]'s brain"
if(R.mmi.brainmob)
R.mmi.brainmob.real_name = real_name //the name of the brain inside the cyborg is the robotized human's name.
R.mmi.brainmob.name = real_name
if(new_borg.mmi)
new_borg.mmi.name = "[initial(new_borg.mmi.name)]: [real_name]"
if(new_borg.mmi.brain)
new_borg.mmi.brain.name = "[real_name]'s brain"
if(new_borg.mmi.brainmob)
new_borg.mmi.brainmob.real_name = real_name //the name of the brain inside the cyborg is the robotized human's name.
new_borg.mmi.brainmob.name = real_name
R.job = JOB_CYBORG
R.notify_ai(AI_NOTIFICATION_NEW_BORG)
new_borg.job = JOB_CYBORG
new_borg.notify_ai(AI_NOTIFICATION_NEW_BORG)
. = R
if(R.ckey && is_banned_from(R.ckey, JOB_CYBORG))
INVOKE_ASYNC(R, TYPE_PROC_REF(/mob/living/silicon/robot, replace_banned_cyborg))
. = new_borg
if(new_borg.ckey && is_banned_from(new_borg.ckey, JOB_CYBORG))
INVOKE_ASYNC(new_borg, TYPE_PROC_REF(/mob/living/silicon/robot, replace_banned_cyborg))
qdel(src)
/mob/living/Robotize(delete_items = 0, transfer_after = TRUE)