public string FullDescription(HairData hair, bool alternateFormat = false) { if (this == NO_HAIR || hair.length == 0) { return(NO_HAIR.LongDescription(hair, alternateFormat)); } else { byte creatureHeight = CreatureStore.GetCreatureClean(hair.creatureID)?.build.heightInInches ?? Build.DEFAULT_HEIGHT; StringBuilder sb = new StringBuilder(LengthText(hair.length, creatureHeight) + hair.hairColor.AsString()); if (hair.style != HairStyle.NO_STYLE) { sb.Append(", "); } else { sb.Append(" "); } sb.Append(StyleStr(hair.style)); sb.Append(ShortDescription()); sb.Append(HighlightStr(hair.highlightColor)); return(sb.ToString()); } }
//long has length, color, and highlights. protected static string GenericLongDesc(HairData hair, bool alternateFormat, string desc) { if (hair.type == NO_HAIR || hair.length == 0) { return(NO_HAIR.LongDescription(hair, alternateFormat)); } else { byte creatureHeight = CreatureStore.GetCreatureClean(hair.creatureID)?.build.heightInInches ?? Build.DEFAULT_HEIGHT; return(LengthText(hair.length, creatureHeight) + " " + hair.hairColor.AsString() + desc + HighlightStr(hair.highlightColor)); } }