Reinserted positronic brains are now properly robotic

Also tweaks the error message for operating on a meaty body
This commit is contained in:
Crazylemon
2015-10-02 15:24:17 -07:00
parent 297cc55fa7
commit d4a37d2020
+4 -1
View File
@@ -386,7 +386,7 @@
return 2
if(!(affected.status & ORGAN_ROBOT))
user << "<span class='danger'>You cannot install a computer brain into a meat skull.</span>"
user << "<span class='danger'>You cannot install a computer brain into a meat enclosure.</span>"
return 2
if(!target.species)
@@ -416,6 +416,9 @@
var/obj/item/device/mmi/M = tool
var/obj/item/organ/mmi_holder/holder = new(target, 1)
if (istype(M, /obj/item/device/mmi/posibrain))
holder.robotize()
target.internal_organs_by_name["brain"] = holder
user.unEquip(tool)
tool.forceMove(holder)