This commit is contained in:
Seris02
2020-02-16 16:39:35 +08:00
committed by GitHub
parent fb4e4bcfce
commit 788a9f5b59
-1
View File
@@ -711,7 +711,6 @@
if(isobj(target))
if(actually_paints)
var/list/hsl = rgb2hsl(hex2num(copytext(paint_color,2,4)),hex2num(copytext(paint_color,4,6)),hex2num(copytext(paint_color,6,8)))
message_admins("[hsl]")
if(hsl[3] < 0.25 && !istype(target, /obj/structure/window) && !istype(target, /obj/effect/decal/cleanable/crayon)) //Colors too dark are rejected
to_chat(usr, "<span class='warning'>A color that dark on an object like this? Surely not...</span>")
return FALSE