Exemplo n.º 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();
        }
Exemplo n.º 2
0
        public AbilityModel(Character character, Stats stats, CalculationOptionsProtWarr options, Ability ability)
        {
            Character   = character;
            Stats       = stats;
            Ability     = ability;
            Options     = options;
            Talents     = Character.WarriorTalents;
            AttackTable = new AttackTable(character, stats, options, ability);

            Name             = Lookup.Name(Ability);
            ArmorReduction   = Lookup.TargetArmorReduction(Character, Stats, Options.TargetArmor);
            DamageMultiplier = Lookup.StanceDamageMultipler(Character, Stats);
            IsAvoidable      = Lookup.IsAvoidable(Ability);
            IsWeaponAttack   = Lookup.IsWeaponAttack(Ability);

            CalculateDamage();
            CalculateThreat();
        }