engine/time/source/CreaturePietyRegeneration.cpp
// Over time, the anger of the Nine lessens.  Return the new piety.
Over time, the anger of the Nine lessens.  Return the new piety.
Over time the anger of the Nine lessens . Return the new piety .
int CreaturePietyRegeneration::regenerate_piety(const int piety, const int piety_regen_bonus, const ulonglong minutes_elapsed, const bool crowned)
{
  int new_piety = piety;
  if (piety <= ReligionConstants::MAX_PIETY_FOR_REGENERATION)
  {
    int minutes_per_point = std::max(1, MINUTES_PER_POINT_OF_PIETY - piety_regen_bonus);
    if (minutes_elapsed % minutes_per_point == 0)
    {
      int increment = ReligionConstants::BASIC_PIETY_INCREMENT;
      if (crowned)
      {
        increment = ReligionConstants::CROWNED_PIETY_INCREMENT;
      }
      new_piety += increment;
    }
  }
  return new_piety;
}
int CreaturePietyRegeneration :: regenerate_piety ( const int piety , const int piety_regen_bonus , const ulonglong minutes_elapsed , const bool crowned ) { int new_piety = piety ; if ( piety <= ReligionConstants :: MAX_PIETY_FOR_REGENERATION ) { int minutes_per_point = std :: max ( 1 , MINUTES_PER_POINT_OF_PIETY - piety_regen_bonus ) ; if ( minutes_elapsed % minutes_per_point == 0 ) { int increment = ReligionConstants :: BASIC_PIETY_INCREMENT ; if ( crowned ) { increment = ReligionConstants :: CROWNED_PIETY_INCREMENT ; } new_piety += increment ; } } return new_piety ; }
Over time, the anger of the Nine lessens.
Over time the anger of the Nine lessens .