public static string MaleName() { return(HalflingName.name(true)); }
private static string name(bool male) { string str = ""; string str1 = ""; switch (Session.Random.Next(20)) { case 0: case 1: case 2: { str = HalflingName.simple(true); break; } case 3: case 4: case 5: case 6: { str = string.Concat(HalflingName.simple(true), HalflingName.simple(false)); break; } case 7: case 8: case 9: case 10: { str = HalflingName.simple(true); str1 = string.Concat(HalflingName.simple(true), HalflingName.simple(false)); break; } case 11: case 12: case 13: case 14: case 15: { str = string.Concat(HalflingName.simple(true), HalflingName.simple(false)); str1 = HalflingName.simple(true); break; } case 16: case 17: case 18: case 19: { str = string.Concat(HalflingName.simple(true), HalflingName.simple(false)); str1 = string.Concat(HalflingName.earned(true), HalflingName.earned(false)); break; } } if (!male) { char chr = str[str.Length - 1]; if (!TextHelper.IsVowel(chr)) { str = string.Concat(str, chr); str = string.Concat(str, "a"); } } string str2 = str; if (str1 != "") { str2 = string.Concat(str2, " ", str1); } return(TextHelper.Capitalise(str2, true)); }
public static string FemaleName() { return(HalflingName.name(false)); }