예제 #1
0
        public AbilityModel(Player player, Ability ability)
        {
            Player      = player;
            Ability     = ability;
            AttackTable = new AttackTable(Player, Ability);

            Name             = Lookup.Name(Ability);
            ArmorReduction   = Lookup.TargetArmorReduction(Player);
            DamageMultiplier = Lookup.StanceDamageMultipler(Player);
            IsAvoidable      = Lookup.IsAvoidable(Ability);
            IsWeaponAttack   = Lookup.IsWeaponAttack(Ability);

            CalculateDamage();
            CalculateThreat();
        }
예제 #2
0
        public AbilityModel(Character character, Stats stats, Ability ability)
        {
            Character   = character;
            Stats       = stats;
            Ability     = ability;
            Options     = Character.CalculationOptions as CalculationOptionsProtWarr;
            Talents     = Character.WarriorTalents;
            AttackTable = new AttackTable(character, stats, ability);

            Name             = Lookup.Name(Ability);
            ArmorReduction   = Lookup.TargetArmorReduction(Character, Stats);
            DamageMultiplier = Lookup.StanceDamageMultipler(Character, Stats);

            CalculateDamage();
            CalculateThreat();
        }