protected override bool IsCritical(Character caster, Character target) { return(Util.IsChance(BASE_CRITICAL_RATE + StatUtil.GetDifference(StatType.AGILITY, caster.Stats, target.Stats) * PERCENT)); }
/// <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)); }
protected override bool IsHit(Character caster, Character target) { return(Util.IsChance(BASE_ACCURACY + StatUtil.GetDifference(StatType.AGILITY, caster.Stats, target.Stats) * PERCENT)); }