Пример #1
0
        public static Creature Create(String name, Size size, ChallengeRating challengeRating, List <AbilityScore> abilityScores, int hitDieCount)
        {
            return(new Creature()
            {
                Name = name,
                ProficiencyBonus = challengeRating.ToProficiencyBonus(),
                ArmorClass = new ArmorClass(10),
                Size = size,

                ChallengeRating = challengeRating,
                Statistics = abilityScores,

                HitDieCount = hitDieCount,
            });
        }
Пример #2
0
 public static int CalculateProficiencyBonus(ChallengeRating challengeRating)
 {
     return(((challengeRating.ListedChallengeRating - 1) / 4) + 2);
 }