that didn't work

This commit is contained in:
LiteralMushroom
2022-01-10 18:57:47 -05:00
committed by GitHub
parent 239782e74a
commit 41fe2105f8

View File

@@ -38,7 +38,7 @@
if(iscultist(H) && HAS_TRAIT(H, TRAIT_CULT_EYES))
to_chat(H, "<span class='notice'>The power of the cult overrules your eyes, do not be ashamed of your power!</span>")
var/new_color = input(owner, "Choose your eye color:", "Race change","#"+H.dna.features["mcolor"]) as color|null
else(new_color)
else if(new_color)
var/temp_hsv = RGBtoHSV(new_color)
if(ReadHSV(temp_hsv)[3] >= ReadHSV(MINIMUM_MUTANT_COLOR)[3]) // mutantcolors must be bright
H.dna.features["mcolor"] = sanitize_hexcolor(new_color, 6)