Update code/modules/mob/living/carbon/human/innate_abilities/customization.dm

Finally.

Co-authored-by: Poojawa <Poojawa@users.noreply.github.com>
This commit is contained in:
LiteralMushroom
2022-01-10 18:47:13 -05:00
committed by GitHub
parent b224693f67
commit fe82ab2504
@@ -35,8 +35,10 @@
else
to_chat(H, "<span class='notice'>Invalid color. Your color is not bright enough.</span>")
else if(select_alteration == "Eye Color")
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
if(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)