[MIRROR] Wound scans respect blindness (#1170)

* Wound scans respect blindness (#54188)

* Wound scans respect blindness

Co-authored-by: PKPenguin321 <pkpenguin321.git@gmail.com>
This commit is contained in:
SkyratBot
2020-10-06 21:40:05 +01:00
committed by GitHub
co-authored by PKPenguin321
parent a85a9e0e8e
commit 82fad14b06
+9 -1
View File
@@ -416,9 +416,13 @@ GENE SCANNER
to_chat(user, jointext(render_list, ""), trailing_newline = FALSE) // we handled the last <br> 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, "<span class='warning'>You realize that your scanner has no accessibility support for the blind!</span>")
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, "<span class='warning'>You realize that your scanner has no accessibility support for the blind!</span>")
return
var/render_list = ""