engine/description/codex/source/CodexDescriber.cpp
// Get an unabbreviated, unbraced resistances description.

Get an unabbreviated, unbraced resistances description.
Get an unabbreviated unbraced resistances description .
string CodexDescriber::describe_resistances() const
{
  ostringstream ss;
  if (item != nullptr)
  {
    ResistancesDisplayOptions rdo(false, false);
    ResistancesTranslator rt;
    string res = rt.create_description(item->get_resistances(), rdo);
    if (!res.empty())
    {
      ss << StringTable::get(ResistanceTextKeys::RESISTANCE_RESISTANCES) << ": " << res;
    }
  }
  return ss.str();
}
string CodexDescriber :: describe_resistances ( ) const { ostringstream ss ; if ( item != nullptr ) { ResistancesDisplayOptions rdo ( false , false ) ; ResistancesTranslator rt ; string res = rt . create_description ( item -> get_resistances ( ) , rdo ) ; if ( ! res . empty ( ) ) { ss << StringTable :: get ( ResistanceTextKeys :: RESISTANCE_RESISTANCES ) << " " << res ; } } return ss . str ( ) ; }
Get an unabbreviated, unbraced resistances description.
Get an unabbreviated unbraced resistances description .