engine/description/source/SpellDescriber.cpp
// Describe the range by using the appropriate abbreviation, based on the range
// and the spell type.
Describe the range by using the appropriate abbreviation, based on the range
and the spell type.
Describe the range by using the appropriate abbreviation based on the range and the spell type .
string SpellDescriber::describe_range() const
{
  stringstream ss;
  ss << spell.get_range() << StringTable::get(shape_abbreviation_sids.find(spell.get_shape().get_spell_shape_type())->second);
  uint radius = spell.get_shape().get_radius();
  if (radius > 1)
  {
    ss << radius;
  }
  return ss.str();
}
string SpellDescriber :: describe_range ( ) const { stringstream ss ; ss << spell . get_range ( ) << StringTable :: get ( shape_abbreviation_sids . find ( spell . get_shape ( ) . get_spell_shape_type ( ) ) -> second ) ; uint radius = spell . get_shape ( ) . get_radius ( ) ; if ( radius > 1 ) { ss << radius ; } return ss . str ( ) ; }
Describe the range by using the appropriate abbreviation, based on the range
and the spell type.
Describe the range by using the appropriate abbreviation based on the range and the spell type .
// Include the radius if it's non-standard (> 1).