MCPcopy Create free account
hub / github.com/crawl/crawl / hints_abilities_info

Function hints_abilities_info

crawl-ref/source/hints.cc:1799–1814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1797}
1798
1799formatted_string hints_abilities_info()
1800{
1801 ostringstream text;
1802 text << "<" << colour_to_str(channel_to_colour(MSGCH_TUTORIAL)) << ">";
1803 string broken = "This screen shows your character's set of talents. "
1804 "You can gain new abilities via certain items, through religion or by "
1805 "way of mutations. Activation of an ability usually comes at a cost, "
1806 "e.g. Magic power. Press '<w>!</w>' or '<w>?</w>' to "
1807 "toggle between ability selection and description.";
1808 linebreak_string(broken, _get_hints_cols());
1809 text << broken;
1810
1811 text << "</" << colour_to_str(channel_to_colour(MSGCH_TUTORIAL)) << ">";
1812
1813 return formatted_string::parse_string(text.str());
1814}
1815
1816// Explains the basics of the skill screen. Don't bother the player with the
1817// aptitude information.

Callers 1

choose_ability_menuFunction · 0.85

Calls 6

colour_to_strFunction · 0.85
channel_to_colourFunction · 0.85
linebreak_stringFunction · 0.85
_get_hints_colsFunction · 0.85
parse_stringFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected