From 82fad14b06e818fe0661d7fb9febd495affa593a Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 6 Oct 2020 22:40:05 +0200 Subject: [PATCH] [MIRROR] Wound scans respect blindness (#1170) * Wound scans respect blindness (#54188) * Wound scans respect blindness Co-authored-by: PKPenguin321 --- code/game/objects/items/devices/scanners.dm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index 611aa4f320d..fca81c52341 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -416,9 +416,13 @@ GENE SCANNER to_chat(user, jointext(render_list, ""), trailing_newline = FALSE) // we handled the last
so we don't need handholding /proc/chemscan(mob/living/user, mob/living/M) + if(user.incapacitated()) + return + if(user.is_blind()) to_chat(user, "You realize that your scanner has no accessibility support for the blind!") return + if(istype(M) && M.reagents) var/render_list = list() if(M.reagents.reagent_list.len) @@ -465,7 +469,11 @@ GENE SCANNER /// Displays wounds with extended information on their status vs medscanners /proc/woundscan(mob/user, mob/living/carbon/patient, obj/item/healthanalyzer/wound/scanner) - if(!istype(patient)) + if(!istype(patient) || user.incapacitated()) + return + + if(user.is_blind()) + to_chat(user, "You realize that your scanner has no accessibility support for the blind!") return var/render_list = ""