Ejemplo n.º 1
0
        public void CreateRandomCharacter()
        {
            CharInventory = new Inventory();
            Features      = new FeatureList();
            Spells        = new SpellBook();
            CharWallet    = new Wallet();
            Proficiencies = new List <string>();

            if (CharStats == null)
            {
                CharStats = new Stats();
            }
            if (CharInfo == null)
            {
                CharInfo = new CharacterInfo();
            }
            if (CharSkills == null)
            {
                CharSkills = new Skills();
            }
            if (SavingThrows == null)
            {
                SavingThrows = new SaveThrows();
            }

            CharStats.RollRandomStats();
            CharInfo.GenerateRandomCharacterInfo(this);
            CharStats.CalculateModifiers();
        }