mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-24 17:22:23 +00:00
Removes advanced darkness (#23931)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user