From 6949c2e2a5d64654b08b0e4f6003a544fc2d77b1 Mon Sep 17 00:00:00 2001 From: oranges Date: Fri, 1 Dec 2017 14:22:14 +1300 Subject: [PATCH] Merge pull request #33120 from QualityVan/glasses Makes glasses handle both nearsightedness and eye damage --- code/modules/mob/living/carbon/human/inventory.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm index 71c5dedc26..4f41c2d40c 100644 --- a/code/modules/mob/living/carbon/human/inventory.dm +++ b/code/modules/mob/living/carbon/human/inventory.dm @@ -103,6 +103,7 @@ update_tint() if(G.vision_correction) clear_fullscreen("nearsighted") + clear_fullscreen("eye_damage") if(G.vision_flags || G.darkness_view || G.invis_override || G.invis_view || !isnull(G.lighting_alpha)) update_sight() update_inv_glasses() @@ -188,6 +189,7 @@ if(G.vision_correction) if(disabilities & NEARSIGHT) overlay_fullscreen("nearsighted", /obj/screen/fullscreen/impaired, 1) + adjust_eye_damage(0) if(G.vision_flags || G.darkness_view || G.invis_override || G.invis_view || !isnull(G.lighting_alpha)) update_sight() if(!QDELETED(src))