Fixes TGUI ghost orbit menu runtime (#15011)

* orbit menu tgui debugging

* CI test

* enforce R.mmi.brainmob.name != null

* typing

Co-authored-by: Kyep <Kyep@users.noreply.github.com>
This commit is contained in:
Kyep
2020-11-29 09:42:53 +00:00
committed by GitHub
co-authored by Kyep
parent 9224a407fd
commit e371ad0326
4 changed files with 19 additions and 7 deletions
+2
View File
@@ -93,6 +93,8 @@
if(O.mind && O.mind.assigned_role == "Cyborg")
if(O.mind.role_alt_title == "Robot")
O.mmi = new /obj/item/mmi/robotic_brain(O)
if(O.mmi.brainmob)
O.mmi.brainmob.name = O.name
else
O.mmi = new /obj/item/mmi(O)
O.mmi.transfer_identity(src) //Does not transfer key/client.