git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2705 c06c8d41-db1a-0410-9941-cceddc491573
ITXPKG6VHYSJSRQBRJUTD4AGCMMF4RDAJBAULFAN4J7OPQEHAQGQC
}
std::string spell_power_string(spell_type spell)
{
const int numbars = spell_power_bars(spell);
if ( numbars < 0 )
return "N/A";
else
return std::string(numbars, '#');
std::string spell_power_string(spell_type spell)
{
const int numbars = spell_power_bars(spell);
const int capbars = power_to_barcount(spell_power_cap(spell));
ASSERT( numbars <= capbars );
if ( numbars < 0 )
return "N/A";
else
return std::string(numbars, '#') + std::string(capbars - numbars, '.');
}