diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 11:45:50 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 11:45:50 +0000 |
commit | 00af579c24de8cec2ed28065c30164f30ccac64e (patch) | |
tree | 7bf11cb690abbc5005fd8c58d93972caca59ecd7 /crawl-ref/source/command.cc | |
parent | 45afdf8ec9515a1510b08acdde4e5f65b9c30262 (diff) | |
download | crawl-ref-00af579c24de8cec2ed28065c30164f30ccac64e.tar.gz crawl-ref-00af579c24de8cec2ed28065c30164f30ccac64e.zip |
Add gods' powers and abilities to their descriptions, viewable via ^!
(as well as when praying at an altar) and when searching the database.
Texts might need to be tweaked a bit but it's a *huge* improvement.
(Thanks to whoever had that idea!)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6216 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r-- | crawl-ref/source/command.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 776d0f76e8..38a9180a65 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -1099,10 +1099,16 @@ static bool _do_description(std::string key, std::string footer = "") god_type which_god = string_to_god(key.c_str()); if (which_god != GOD_NO_GOD) { - desc += EOL EOL; - desc += print_god_likes(which_god); + std::string help = get_god_powers(which_god); + if (!help.empty()) + { + desc += EOL; + desc += help; + } + desc += EOL; + desc += get_god_likes(which_god); - std::string help = print_god_dislikes(which_god); + help = get_god_dislikes(which_god); if (!help.empty()) { desc += EOL EOL; |