engine/calculators/source/EvadeCalculator.cpp
// Evade = equipment bonuses/penalties
//       + 1 point for every two points of Agility over 10
//       - 1 point for every two points of Agility under 10
//       + 2 points per level if hidden
//       - 1 point per level if enraged
//       + any bonuses or penalties from modifiers
Evade = equipment bonuses/penalties
+ 1 point for every two points of Agility over 10
1 point for every two points of Agility under 10
+ 2 points per level if hidden
1 point per level if enraged
+ any bonuses or penalties from modifiers
Evade = equipment bonuses / penalties + 1 point for every two points of Agility over 10 1 point for every two points of Agility under 10 + 2 points per level if hidden 1 point per level if enraged + any bonuses or penalties from modifiers
int EvadeCalculator::calculate_evade(const CreaturePtr& c)
{
  int evade = 0;
  if (c)
  {
    evade = c->get_base_evade().get_current();
    int agility = c->get_agility().get_current();
    int agility_bonus = (agility - 10) / 2;
    evade += get_equipment_bonus(c);
    evade += get_modifier_bonus(c);
    evade += get_skill_bonus(c);
    evade += get_hide_bonus(c);
    evade -= get_rage_penalty(c);
    evade += agility_bonus;
  }
  return evade;
}
int EvadeCalculator :: calculate_evade ( const CreaturePtr & c ) { int evade = 0 ; if ( c ) { evade = c -> get_base_evade ( ) . get_current ( ) ; int agility = c -> get_agility ( ) . get_current ( ) ; int agility_bonus = ( agility - 10 ) / 2 ; evade += get_equipment_bonus ( c ) ; evade += get_modifier_bonus ( c ) ; evade += get_skill_bonus ( c ) ; evade += get_hide_bonus ( c ) ; evade -= get_rage_penalty ( c ) ; evade += agility_bonus ; } return evade ; }
Evade = equipment bonuses/penalties
+ 1 point for every two points of Agility over 10
 1 point for every two points of Agility under 10
+ 2 points per level if hidden
 1 point per level if enraged
+ any bonuses or penalties from modifiers
Evade = equipment bonuses / penalties + 1 point for every two points of Agility over 10 1 point for every two points of Agility under 10 + 2 points per level if hidden 1 point per level if enraged + any bonuses or penalties from modifiers