engine/calculators/source/WandCalculator.cpp
// The evoker of a wand gets a damage bonus influenced largely by Wandcraft,
// but also to a lesser extent by Willpower.

The evoker of a wand gets a damage bonus influenced largely by Wandcraft,
but also to a lesser extent by Willpower.
The evoker of a wand gets a damage bonus influenced largely by Wandcraft but also to a lesser extent by Willpower .
int WandCalculator::calc_damage_bonus(CreaturePtr creature)
{
  int dmg_bonus = 0;
  if (creature != nullptr)
  {
    int wand_val = creature->get_skills().get_value(SkillType::SKILL_GENERAL_WANDCRAFT);
    int willpower = creature->get_willpower().get_current();
    dmg_bonus = wand_val / DAMAGE_BONUS_SKILL_DIVISOR;
    dmg_bonus += willpower / DAMAGE_BONUS_STAT_DIVISOR;
  }
  return dmg_bonus;
}
int WandCalculator :: calc_damage_bonus ( CreaturePtr creature ) { int dmg_bonus = 0 ; if ( creature != nullptr ) { int wand_val = creature -> get_skills ( ) . get_value ( SkillType :: SKILL_GENERAL_WANDCRAFT ) ; int willpower = creature -> get_willpower ( ) . get_current ( ) ; dmg_bonus = wand_val / DAMAGE_BONUS_SKILL_DIVISOR ; dmg_bonus += willpower / DAMAGE_BONUS_STAT_DIVISOR ; } return dmg_bonus ; }
The evoker of a wand gets a damage bonus influenced largely by Wandcraft,
but also to a lesser extent by Willpower.
The evoker of a wand gets a damage bonus influenced largely by Wandcraft but also to a lesser extent by Willpower .