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(); }
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(); }
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(); }