From 1d252a41c64d5c6ee3cc92fde6c1737b6912a552 Mon Sep 17 00:00:00 2001 From: Tsar-Salat <62388554+Tsar-Salat@users.noreply.github.com> Date: Tue, 16 Jul 2024 07:54:20 -0400 Subject: [PATCH] odyhud (#11196) --- code/modules/vehicles/mecha/medical/odysseus.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/vehicles/mecha/medical/odysseus.dm b/code/modules/vehicles/mecha/medical/odysseus.dm index c20faa339563c..040f196037897 100644 --- a/code/modules/vehicles/mecha/medical/odysseus.dm +++ b/code/modules/vehicles/mecha/medical/odysseus.dm @@ -18,12 +18,13 @@ if(. && !HAS_TRAIT(H, TRAIT_MEDICAL_HUD)) var/datum/atom_hud/hud = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED] hud.add_hud_to(H) + ADD_TRAIT(H, TRAIT_MEDICAL_HUD, VEHICLE_TRAIT) -/obj/vehicle/sealed/mecha/medical/odysseus/remove_occupant(mob/M) - if(isliving(M) && HAS_TRAIT_FROM(M, TRAIT_MEDICAL_HUD, src)) - var/mob/living/L = M +/obj/vehicle/sealed/mecha/medical/odysseus/remove_occupant(mob/living/carbon/human/H) + if(isliving(H) && HAS_TRAIT_FROM(H, TRAIT_MEDICAL_HUD, VEHICLE_TRAIT)) var/datum/atom_hud/hud = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED] - hud.remove_hud_from(L) + hud.remove_hud_from(H) + REMOVE_TRAIT(H, TRAIT_MEDICAL_HUD, VEHICLE_TRAIT) return ..() /obj/vehicle/sealed/mecha/medical/odysseus/mmi_moved_inside(obj/item/mmi/M, mob/user)