Exemple #1
0
        private void CreateFemaleName(LineageScreen screen)
        {
            var text = Game.FemaleNameArray[CDGMath.RandomInt(0, Game.FemaleNameArray.Count - 1)];

            if (screen != null)
            {
                var num = 0;
                while (screen.CurrentBranchNameCopyFound(text))
                {
                    text = Game.FemaleNameArray[CDGMath.RandomInt(0, Game.FemaleNameArray.Count - 1)];
                    num++;
                    if (num > 20)
                    {
                        break;
                    }
                }
            }
            if (text != null)
            {
                if (text.Length > 10)
                {
                    text = text.Substring(0, 9) + ".";
                }
                var num2  = 0;
                var text2 = "";
                if (screen != null)
                {
                    num2 = screen.NameCopies(text);
                }
                if (num2 > 0)
                {
                    text2 = CDGMath.ToRoman(num2 + 1);
                }
                m_playerName.Text = "Lady " + text;
                if (text2 != "")
                {
                    var expr_BD = m_playerName;
                    expr_BD.Text = expr_BD.Text + " " + text2;
                }
            }
            else
            {
                m_playerName.Text = "Lady Heroine";
            }
        }