Example #1
0
        public ParryModel(Character character, Stats stats)
        {
            Character   = character;
            Stats       = stats;
            Options     = character.CalculationOptions as CalculationOptionsProtWarr;
            AttackTable = new AttackTable(character, stats);
            DefendTable = new DefendTable(character, stats);

            Calculate();
        }
Example #2
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();
        }
Example #3
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();
        }