From 542671755d6059d7323a85d36f2a2eedbd9824ee Mon Sep 17 00:00:00 2001 From: Livi <11909245+Retrograde115@users.noreply.github.com> Date: Fri, 11 Nov 2022 23:50:29 -0800 Subject: [PATCH] Meson eyes prevent supermatter hallucinations (#19551) * Meson eyes prevent supermatter hallucinations * Made meson eyes give meson trait instead * Code readability Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Adds UIDs to trait sources Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --- code/modules/surgery/organs/eyes.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/modules/surgery/organs/eyes.dm b/code/modules/surgery/organs/eyes.dm index e178eac9f29..d0bda4cce9a 100644 --- a/code/modules/surgery/organs/eyes.dm +++ b/code/modules/surgery/organs/eyes.dm @@ -126,10 +126,17 @@ name = "meson eyes" desc = "These cybernetic eyes will allow you to see the structural layout of the station, and, well, everything else." eye_color = "#199900" - vision_flags = SEE_TURFS lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_VISIBLE origin_tech = "materials=4;engineering=4;biotech=4;magnets=4" +/obj/item/organ/internal/eyes/cybernetic/meson/insert(mob/living/carbon/human/M, special = FALSE) + ADD_TRAIT(M, TRAIT_MESON_VISION, "meson_vision[UID()]") + return ..() + +/obj/item/organ/internal/eyes/cybernetic/meson/remove(mob/living/carbon/human/M, special = FALSE) + REMOVE_TRAIT(M, TRAIT_MESON_VISION, "meson_vision[UID()]") + return ..() + /obj/item/organ/internal/eyes/cybernetic/xray name = "\improper X-ray eyes" desc = "These cybernetic eyes will give you X-ray vision. Blinking is futile."