From c37ed36b590e6f0669164b020d77749b6d3a4087 Mon Sep 17 00:00:00 2001 From: moxian Date: Tue, 5 Nov 2019 07:27:04 +0000 Subject: [PATCH] Make photos look the same as reality to colorblind people. --- code/modules/paperwork/photography.dm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index 11beb1a7cb6..0daf692a60b 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -81,7 +81,16 @@ . += "It is too far away." /obj/item/photo/proc/show(mob/user as mob) - usr << browse_rsc(img, "tmp_photo.png") + var/icon/img_shown = new/icon(img) + var/colormatrix = user.get_screen_colour() + // Apply colorblindness effects, if any. + if(islist(colormatrix)) + img_shown.MapColors( + colormatrix[1], colormatrix[2], colormatrix[3], + colormatrix[4], colormatrix[5], colormatrix[6], + colormatrix[7], colormatrix[8], colormatrix[9], + ) + usr << browse_rsc(img_shown, "tmp_photo.png") usr << browse("[name]" \ + "" \ + "" \