engine/calculators/source/WandCalculator.cpp
// The chance of not burning a charge from a wand is based on Wandcraft alone.

The chance of not burning a charge from a wand is based on Wandcraft alone.
The chance of not burning a charge from a wand is based on Wandcraft alone .
int WandCalculator::calc_pct_chance_free_charge(CreaturePtr creature)
{
  int pct_chance_free_charge = 0;
  if (creature != nullptr)
  {
    int wand_val = creature->get_skills().get_value(SkillType::SKILL_GENERAL_WANDCRAFT);
    pct_chance_free_charge = wand_val / FREE_CHARGE_SKILL_DIVISOR;
  }
  return pct_chance_free_charge;
}
int WandCalculator :: calc_pct_chance_free_charge ( CreaturePtr creature ) { int pct_chance_free_charge = 0 ; if ( creature != nullptr ) { int wand_val = creature -> get_skills ( ) . get_value ( SkillType :: SKILL_GENERAL_WANDCRAFT ) ; pct_chance_free_charge = wand_val / FREE_CHARGE_SKILL_DIVISOR ; } return pct_chance_free_charge ; }
The chance of not burning a charge from a wand is based on Wandcraft alone.
The chance of not burning a charge from a wand is based on Wandcraft alone .