Some Robotic Things (#11406)

This commit is contained in:
Geeves
2021-03-19 16:22:48 +02:00
committed by GitHub
parent f3b350e6d4
commit e086a96993
4 changed files with 29 additions and 5 deletions
@@ -12,7 +12,8 @@
/obj/item/device/mmi/digital/posibrain/Initialize()
. = ..()
brainmob.name = "[pick(list("PBU","HIU","SINA","ARMA","OSI"))]-[rand(100, 999)]"
var/datum/language/L = all_languages[LANGUAGE_EAL]
brainmob.name = L.get_random_name()
brainmob.real_name = brainmob.name
/obj/item/device/mmi/digital/posibrain/attack_self(mob/user)
@@ -255,7 +255,11 @@
return
var/mob/living/carbon/human/new_shell = new(get_turf(src), chest.linked_frame)
forceMove(new_shell) //so people won't mess around with the chassis until it is deleted
// replace the IPC's microbattery cell with the one that was in the robot chest
var/obj/item/organ/internal/cell/C = new_shell.internal_organs_by_name[BP_CELL]
C.replace_cell(chest.cell)
//so people won't mess around with the chassis until it is deleted
forceMove(new_shell)
M.brainmob.mind.transfer_to(new_shell)
qdel(M)
new_shell.add_language(LANGUAGE_EAL)
@@ -265,6 +269,8 @@
newname = L.get_random_name()
new_shell.real_name = newname
new_shell.name = new_shell.real_name
var/obj/item/organ/internal/mmi_holder/posibrain/P = new_shell.internal_organs_by_name[BP_BRAIN]
P.setup_brain()
new_shell.change_appearance(APPEARANCE_ALL_HAIR | APPEARANCE_SKIN | APPEARANCE_EYE_COLOR, new_shell)
qdel(src)
return
@@ -431,4 +437,4 @@
/obj/item/robot_parts/chest/industrial
name = "Hephaestus industrial torso"
linked_frame = SPECIES_IPC_G1
linked_frame = SPECIES_IPC_G1