diff options
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r-- | crawl-ref/source/command.cc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 229f93f937..bcf81f4281 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -1123,6 +1123,15 @@ static bool _card_filter(std::string key, std::string body) return (true); } +static bool _ability_filter(std::string key, std::string body) +{ + key = lowercase_string(key); + if (string_matches_ability_name(key)) + return (false); + + return (true); +} + typedef void (*db_keys_recap)(std::vector<std::string>&); static void _recap_mon_keys(std::vector<std::string> &keys) @@ -1487,7 +1496,7 @@ static bool _find_description(bool &again, std::string& error_inout) if (!error_inout.empty()) mpr(error_inout.c_str(), MSGCH_PROMPT); mpr("Describe a (M)onster, (S)pell, s(K)ill, (I)tem, (F)eature, (G)od, " - "(B)ranch, or (C)ard?", MSGCH_PROMPT); + "(A)bility, (B)ranch, or (C)ard?", MSGCH_PROMPT); int ch = toupper(getch()); std::string type; @@ -1520,6 +1529,10 @@ static bool _find_description(bool &again, std::string& error_inout) type = "skill"; filter = _skill_filter; break; + case 'A': + type = "ability"; + filter = _ability_filter; + break; case 'C': type = "card"; filter = _card_filter; |