Ports "Fixes MMIs not being able to use mecha equipment"

This commit is contained in:
Ghommie
2019-11-15 18:40:45 +01:00
parent 90b02db98c
commit 2b104a7698
2 changed files with 26 additions and 6 deletions
+9 -2
View File
@@ -17,8 +17,15 @@
hud.add_hud_to(H)
/obj/mecha/medical/odysseus/go_out()
if(ishuman(occupant))
if(isliving(occupant))
var/mob/living/carbon/human/H = occupant
var/datum/atom_hud/hud = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED]
hud.remove_hud_from(H)
hud.remove_hud_from(L)
..()
/obj/mecha/medical/odysseus/mmi_moved_inside(obj/item/mmi/mmi_as_oc, mob/user)
. = ..()
if(.)
var/datum/atom_hud/hud = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED]
var/mob/living/brain/B = mmi_as_oc.brainmob
hud.add_hud_to(B)