Exemplo n.º 1
0
        private int CalculateBaseAc(Character player)
        {
            Armor targetArmor    = player.Inventory.Armor;
            int   dexterityScore = AbilityScore.CalculateAbilityScore(player, Ability.Dexterity);

            int resultAc = targetArmor.ArmorClass;

            resultAc += Math.Min(dexterityScore, targetArmor.DexterityBonus);
            resultAc += targetArmor.AcBonus;
            return(resultAc);
        }
Exemplo n.º 2
0
 private int ApplyBonus(int roll, Character character, SkillType skillType)
 {
     return(roll + AbilityScore.CalculateAbilityScore(character, skillType));
 }
Exemplo n.º 3
0
 public int MakeAbilityCheck(Character character, Ability ability)
 {
     return(d20.Roll() + AbilityScore.CalculateAbilityScore(character, ability));
 }