engine/calculators/source/EvadeCalculator.cpp
// When a creature is hidden, it gets twice its level in evade.
When a creature is hidden, it gets twice its level in evade.
When a creature is hidden it gets twice its level in evade .
int EvadeCalculator::get_hide_bonus(const CreaturePtr& c)
{
  int hide_bonus = 0;
  if (c != nullptr)
  {
    if (c->has_status(StatusIdentifiers::STATUS_ID_HIDE))
    {
      hide_bonus = 2 * (c->get_level().get_current());
    }
  }
  return hide_bonus;
}
int EvadeCalculator :: get_hide_bonus ( const CreaturePtr & c ) { int hide_bonus = 0 ; if ( c != nullptr ) { if ( c -> has_status ( StatusIdentifiers :: STATUS_ID_HIDE ) ) { hide_bonus = 2 * ( c -> get_level ( ) . get_current ( ) ) ; } } return hide_bonus ; }
When a creature is hidden, it gets twice its level in evade.
When a creature is hidden it gets twice its level in evade .