Ejemplo n.º 1
0
        public Warrior(Race race, Level level) : base(race, level)
        {
            Rage = new Rage(100);
            PrimaryAttributes   = CalculatePrimaryAttributes(level);
            SecondaryAttributes = CalculateSecondaryAttributes(PrimaryAttributes);

            // 5 point Defense cap increase per level, we are assuming maximum is achieved.
            SecondaryAttributes.Defense.Add(Level.Value * 5);
            // Get all weapon skills, capped at the maximum for the players level.
            var maxWeaponSkillsForLevel = WeaponSkill.GetWeaponSkills(Level);

            SecondaryAttributes.WeaponSkills.Add(maxWeaponSkillsForLevel);
        }