Ejemplo n.º 1
0
        private void AddFreeSkills(int intFreeLevels)
        {
            ImprovementManager manager = new ImprovementManager(_objCharacter);
            var type = "Aspected Magician".Equals(cboTalents.SelectedValue) ? Improvement.ImprovementType.SkillGroupBase : Improvement.ImprovementType.SkillBase;

            if (cboSkill1.Visible)
            {
                manager.CreateImprovement(cboSkill1.Text, Improvement.ImprovementSource.Heritage, "Heritage", type, "", intFreeLevels);
            }

            if (cboSkill2.Visible)
            {
                manager.CreateImprovement(cboSkill2.Text, Improvement.ImprovementSource.Heritage, "Heritage", type, "", intFreeLevels);
            }

            manager.Commit();
        }