engine/calculators/source/BuySellCalculator.cpp
// The percent chance to negotiate a discount or premium is directly
// proportional to a creature's Bargaining skill.

The percent chance to negotiate a discount or premium is directly
proportional to a creature's Bargaining skill.
The percent chance to negotiate a discount or premium is directly proportional to a creature ' s Bargaining skill .
int BuySellCalculator::calc_pct_chance_bargain(CreaturePtr creature)
{
  int pct_chance = 0;
  if (creature != nullptr)
  {
    pct_chance = creature->get_skills().get_value_incr_marks(SkillType::SKILL_GENERAL_BARGAINING);
  }
  return pct_chance;
}
int BuySellCalculator :: calc_pct_chance_bargain ( CreaturePtr creature ) { int pct_chance = 0 ; if ( creature != nullptr ) { pct_chance = creature -> get_skills ( ) . get_value_incr_marks ( SkillType :: SKILL_GENERAL_BARGAINING ) ; } return pct_chance ; }
The percent chance to negotiate a discount or premium is directly
proportional to a creature's Bargaining skill.
The percent chance to negotiate a discount or premium is directly proportional to a creature ' s Bargaining skill .