Skip to content

Commit

Permalink
Makes glasses handle both nearsightedness and eye damage
Browse files Browse the repository at this point in the history
  • Loading branch information
QualityVan committed Nov 27, 2017
1 parent 58d2845 commit cc2cbf8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/mob/living/carbon/human/inventory.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit cc2cbf8

Please sign in to comment.