Merge pull request #12567 from Citadel-Station-13/kevinz000-patch-5

Slime color changing now has 65536 possible colors instead of 256
This commit is contained in:
Lin
2020-06-21 19:37:54 -05:00
committed by GitHub
@@ -466,7 +466,7 @@
if(new_color)
var/temp_hsv = RGBtoHSV(new_color)
if(ReadHSV(temp_hsv)[3] >= ReadHSV("#7F7F7F")[3]) // mutantcolors must be bright
H.dna.features["mcolor"] = sanitize_hexcolor(new_color)
H.dna.features["mcolor"] = sanitize_hexcolor(new_color, 6)
H.update_body()
else
to_chat(H, "<span class='notice'>Invalid color. Your color is not bright enough.</span>")