[MIRROR] Blindfolds properly apply blindness (#5782)
* Blindfolds properly apply blindness (#36101) * blindfolds properly apply blindness * covering your eyes now applies blindness * Blindfolds properly apply blindness
This commit is contained in:
committed by
Poojawa
parent
8e5e94cdfa
commit
7cdeebab69
@@ -568,10 +568,12 @@
|
||||
return
|
||||
tinttotal = get_total_tint()
|
||||
if(tinttotal >= TINT_BLIND)
|
||||
overlay_fullscreen("tint", /obj/screen/fullscreen/blind)
|
||||
become_blind(EYES_COVERED)
|
||||
else if(tinttotal >= TINT_DARKENED)
|
||||
cure_blind(EYES_COVERED)
|
||||
overlay_fullscreen("tint", /obj/screen/fullscreen/impaired, 2)
|
||||
else
|
||||
cure_blind(EYES_COVERED)
|
||||
clear_fullscreen("tint", 0)
|
||||
|
||||
/mob/living/carbon/proc/get_total_tint()
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
/mob/living/carbon/human/handle_traits()
|
||||
if(eye_blind) //blindness, heals slowly over time
|
||||
if(tinttotal >= TINT_BLIND) //covering your eyes heals blurry eyes faster
|
||||
if(has_trait(TRAIT_BLIND, EYES_COVERED)) //covering your eyes heals blurry eyes faster
|
||||
adjust_blindness(-3)
|
||||
else
|
||||
adjust_blindness(-1)
|
||||
|
||||
Reference in New Issue
Block a user