engine/calculators/source/StatusEffectCalculator.cpp
// Medicine gives you a very good chance to avoid status effects.
Medicine gives you a very good chance to avoid status effects.
Medicine gives you a very good chance to avoid status effects .
int StatusEffectCalculator::pct_chance_counteract_negative(CreaturePtr creature) const
{
  int pct_chance = 0;
  if (creature != nullptr)
  {
    int medicine_val = creature->get_skills().get_value(SkillType::SKILL_GENERAL_MEDICINE);
    pct_chance = std::max<int>(0, medicine_val - MEDICINE_SUBTRAHEND);
  }
  return pct_chance;
}
int StatusEffectCalculator :: pct_chance_counteract_negative ( CreaturePtr creature ) const { int pct_chance = 0 ; if ( creature != nullptr ) { int medicine_val = creature -> get_skills ( ) . get_value ( SkillType :: SKILL_GENERAL_MEDICINE ) ; pct_chance = std :: max < int > ( 0 , medicine_val - MEDICINE_SUBTRAHEND ) ; } return pct_chance ; }
Medicine gives you a very good chance to avoid status effects.
Medicine gives you a very good chance to avoid status effects .