that didn't work
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user