Removes advanced darkness (#23931)

This commit is contained in:
GDN
2024-01-28 07:25:12 -06:00
committed by GitHub
parent 33a549eb6d
commit 73dcb92d10

View File

@@ -478,9 +478,13 @@
if(spraycan.capped)
to_chat(user, "<span class='notice'>You can't spraypaint [src] with the cap still on!</span>")
return
color = spraycan.colour
var/list/hsl = rgb2hsl(hex2num(copytext(spraycan.colour, 2, 4)), hex2num(copytext(spraycan.colour, 4, 6)), hex2num(copytext(spraycan.colour, 6, 8)))
hsl[3] = max(hsl[3], 0.4)
var/list/rgb = hsl2rgb(arglist(hsl))
var/new_color = "#[num2hex(rgb[1], 2)][num2hex(rgb[2], 2)][num2hex(rgb[3], 2)]"
color = new_color
to_chat(user, "<span class='notice'>You change [src]'s light bulb color.</span>")
brightness_color = spraycan.colour
brightness_color = new_color
update(TRUE, TRUE, FALSE)
return