public CombatTable(Random random, Statistics actorStatistics, Statistics targetStatistics, Ability ability) { this.random = random; dodgeChance = ability.CanBeDodged ? targetStatistics.For<Dodge>().Chance : 0; hitChance = ability.CanMiss ? actorStatistics.For<Hit>().Chance : 1; critChance = ability.CanCrit ? actorStatistics.For<CriticalStrike>().Chance : 0; blockChance = ability.CanBeBlocked ? targetStatistics.For<Block>().Chance : 0; }
public CombatTable(Random random, Statistics actorStatistics, Statistics targetStatistics) { this.random = random; dodgeChance = targetStatistics.For<Dodge>().Chance; hitChance = actorStatistics.For<Hit>().Chance; critChance = actorStatistics.For<CriticalStrike>().Chance; blockChance = targetStatistics.For<Block>().Chance; }