engine/time/source/CreaturePietyRegeneration.cpp
// Over time, the Nine like their favoured less - they expect regular sacrifice.  Return the new piety.
Over time, the Nine like their favoured less - they expect regular sacrifice.  Return the new piety.
Over time the Nine like their favoured less - they expect regular sacrifice . Return the new piety .
int CreaturePietyRegeneration::degenerate_piety(const int piety, const int piety_regen_bonus, const ulonglong minutes_elapsed)
{
  int new_piety = piety;
  if (piety >= ReligionConstants::MIN_PIETY_FOR_DEGENERATION)
  {
    int minutes_per_point = std::max(1, MINUTES_PER_POINT_OF_PIETY + piety_regen_bonus);
    if (minutes_elapsed % minutes_per_point == 0)
    {
      new_piety -= ReligionConstants::BASIC_PIETY_INCREMENT;
    }
  }
  return new_piety;
}
int CreaturePietyRegeneration :: degenerate_piety ( const int piety , const int piety_regen_bonus , const ulonglong minutes_elapsed ) { int new_piety = piety ; if ( piety >= ReligionConstants :: MIN_PIETY_FOR_DEGENERATION ) { int minutes_per_point = std :: max ( 1 , MINUTES_PER_POINT_OF_PIETY + piety_regen_bonus ) ; if ( minutes_elapsed % minutes_per_point == 0 ) { new_piety -= ReligionConstants :: BASIC_PIETY_INCREMENT ; } } return new_piety ; }
Over time, the Nine like their favoured less - they expect regular sacrifice.
Over time the Nine like their favoured less - they expect regular sacrifice .