Пример #1
0
 protected override bool IsCritical(Character caster, Character target)
 {
     return(Util.IsChance(BASE_CRITICAL_RATE + StatUtil.GetDifference(StatType.AGILITY, caster.Stats, target.Stats) * PERCENT));
 }
Пример #2
0
 /// <summary>
 /// Compares agility values to determine who goes first.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns></returns>
 public int CompareTo(Stats other)
 {
     return(StatUtil.GetDifference(StatType.AGILITY, other, this));
 }
Пример #3
0
 protected override bool IsHit(Character caster, Character target)
 {
     return(Util.IsChance(BASE_ACCURACY + StatUtil.GetDifference(StatType.AGILITY, caster.Stats, target.Stats) * PERCENT));
 }