engine/calculators/source/SoakCalculator.cpp
// A creature gets 1 point of Soak for every 4 Health over 10,
// plus any bonuses or penalties from equipment.
A creature gets 1 point of Soak for every 4 Health over 10,
plus any bonuses or penalties from equipment.
A creature gets 1 point of Soak for every 4 Health over 10 plus any bonuses or penalties from equipment .
int SoakCalculator::calculate_soak(const CreaturePtr& c)
{
  int soak = 0;
  if (c)
  {
    soak = c->get_base_soak().get_current();
    soak += get_equipment_bonus(c);
    soak += get_modifier_bonus(c);
    soak += get_health_bonus(c);
    soak += get_rage_bonus(c);
  }
  return soak;
}
int SoakCalculator :: calculate_soak ( const CreaturePtr & c ) { int soak = 0 ; if ( c ) { soak = c -> get_base_soak ( ) . get_current ( ) ; soak += get_equipment_bonus ( c ) ; soak += get_modifier_bonus ( c ) ; soak += get_health_bonus ( c ) ; soak += get_rage_bonus ( c ) ; } return soak ; }
A creature gets 1 point of Soak for every 4 Health over 10,
plus any bonuses or penalties from equipment.
A creature gets 1 point of Soak for every 4 Health over 10 plus any bonuses or penalties from equipment .