From f2e96014008fd1f9b772b55edc2b4f0802e24968 Mon Sep 17 00:00:00 2001 From: Datraen Date: Tue, 29 Mar 2016 00:22:39 -0400 Subject: [PATCH] Fixes a check to blind if there is a lack of eyes. Broken eyes are already handled in their process. --- code/modules/mob/living/carbon/human/life.dm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 189c1ef7bb..8d2bf94ed3 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -151,19 +151,21 @@ /mob/living/carbon/human/handle_disabilities() ..() //Vision - var/obj/item/organ/vision if(species.vision_organ) - vision = internal_organs_by_name[species.vision_organ] - - if(!species.vision_organ) // Presumably if a species has no vision organs, they see via some other means. + if(internal_organs_by_name[species.vision_organ]) // Vision organs cut out? Permablind. + eye_blind = 0 + blinded = 0 + eye_blurry = 0 + else + eye_blind = 1 + blinded = 1 + eye_blurry = 1 + else // Presumably if a species has no vision organs, they see via some other means. eye_blind = 0 blinded = 0 eye_blurry = 0 - else if(!vision || (vision && vision.is_broken())) // Vision organs cut out or broken? Permablind. - eye_blind = 1 - blinded = 1 - eye_blurry = 1 - + + if (disabilities & EPILEPSY) if ((prob(1) && paralysis < 1)) src << "\red You have a seizure!"