engine/strings/source/SacrificeTextKeys.cpp
// Get the piety indicator message that is returned when a creature sacrifices
// an item.
Get the piety indicator message that is returned when a creature sacrifices
an item.
Get the piety indicator message that is returned when a creature sacrifices an item .
string SacrificeTextKeys::get_piety_message(const int piety)
{
  string message = SACRIFICE_MESSAGE_DISLIKED;
  if (piety > ReligionConstants::PIETY_CROWNING)
  {
    message = SACRIFICE_MESSAGE_CROWNING;
  }
  else if (piety > ReligionConstants::PIETY_TIER_4)
  {
    message = SACRIFICE_MESSAGE_TIER_4;
  }
  else if (piety > ReligionConstants::PIETY_TIER_3)
  {
    message = SACRIFICE_MESSAGE_TIER_3;
  }
  else if (piety > ReligionConstants::PIETY_TIER_2)
  {
    message = SACRIFICE_MESSAGE_TIER_2;
  }
  else if (piety > ReligionConstants::PIETY_TIER_1)
  {
    message = SACRIFICE_MESSAGE_TIER_1;
  }
  else
  {
    message = SACRIFICE_MESSAGE_DISLIKED;
  }
  return StringTable::get(message);
}
string SacrificeTextKeys :: get_piety_message ( const int piety ) { string message = SACRIFICE_MESSAGE_DISLIKED ; if ( piety > ReligionConstants :: PIETY_CROWNING ) { message = SACRIFICE_MESSAGE_CROWNING ; } else if ( piety > ReligionConstants :: PIETY_TIER_4 ) { message = SACRIFICE_MESSAGE_TIER_4 ; } else if ( piety > ReligionConstants :: PIETY_TIER_3 ) { message = SACRIFICE_MESSAGE_TIER_3 ; } else if ( piety > ReligionConstants :: PIETY_TIER_2 ) { message = SACRIFICE_MESSAGE_TIER_2 ; } else if ( piety > ReligionConstants :: PIETY_TIER_1 ) { message = SACRIFICE_MESSAGE_TIER_1 ; } else { message = SACRIFICE_MESSAGE_DISLIKED ; } return StringTable :: get ( message ) ; }
Get the piety indicator message that is returned when a creature sacrifices
an item.
Get the piety indicator message that is returned when a creature sacrifices an item .