mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Fix skin tone sorting and refactor color procs (#63554)
* Remove superfluous hash from hex2rgb call Add stack_trace to hex2rgb to catch future nonsense
This commit is contained in:
@@ -182,7 +182,7 @@
|
||||
new_color = input(user, "Choose a new color for [src]'s flashlight.", "Light Color",light_color) as color|null
|
||||
if(!new_color)
|
||||
return
|
||||
if(color_hex2num(new_color) < 200) //Colors too dark are rejected
|
||||
if(is_color_dark(new_color, 50) ) //Colors too dark are rejected
|
||||
to_chat(user, span_warning("That color is too dark! Choose a lighter one."))
|
||||
new_color = null
|
||||
return set_flashlight_color(new_color)
|
||||
|
||||
Reference in New Issue
Block a user