engine/calculators/source/ToHitCalculator.cpp
// The level portion of the to-hit bonus is equal to half the creature's
// level, rounded down.
The level portion of the to-hit bonus is equal to half the creature's
level, rounded down.
The level portion of the to - hit bonus is equal to half the creature ' s level rounded down .
int ToHitCalculator::get_level_bonus(CreaturePtr creature)
{
  int level_bonus = 0;
  if (creature != nullptr)
  {
    level_bonus = creature->get_level().get_current() / 2;
  }
  return level_bonus;
}
int ToHitCalculator :: get_level_bonus ( CreaturePtr creature ) { int level_bonus = 0 ; if ( creature != nullptr ) { level_bonus = creature -> get_level ( ) . get_current ( ) / 2 ; } return level_bonus ; }
The level portion of the to-hit bonus is equal to half the creature's
level, rounded down.
The level portion of the to - hit bonus is equal to half the creature ' s level rounded down .