diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-02 17:01:22 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-02 17:01:22 +0000 |
commit | e0ecd1fad5cd18dd866cb46d9b230e20cea53606 (patch) | |
tree | 6ab190687bae30e558edbf2eca8e60f4237a8bef /crawl-ref/source/religion.cc | |
parent | 974b3abfbeb971f75382fe1e2c7837a4fc8e7d89 (diff) | |
download | crawl-ref-e0ecd1fad5cd18dd866cb46d9b230e20cea53606.tar.gz crawl-ref-e0ecd1fad5cd18dd866cb46d9b230e20cea53606.zip |
Clarify god descriptions a bit.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7082 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 10dc786da3..2c83871f20 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -454,6 +454,7 @@ std::string get_god_likes(god_type which_god, bool verbose) std::string text = god_name(which_god); std::vector<std::string> likes; + std::vector<std::string> really_likes; // Unique/unusual piety gain methods first. switch (which_god) @@ -463,8 +464,8 @@ std::string get_god_likes(god_type which_god, bool verbose) break; case GOD_TROG: - snprintf(info, INFO_SIZE, "destroy spellbooks (especially ones you've" - " never read)%s", + snprintf(info, INFO_SIZE, "destroy spellbooks (especially ones you've " + "never read)%s", verbose ? " via the <w>a</w> command" : ""); likes.push_back(info); @@ -539,6 +540,16 @@ std::string get_god_likes(god_type which_god, bool verbose) switch (which_god) { + case GOD_SHINING_ONE: + likes.push_back("kill living evil beings"); + break; + + default: + break; + } + + switch (which_god) + { case GOD_SHINING_ONE: case GOD_OKAWARU: case GOD_VEHUMET: case GOD_MAKHLEB: case GOD_LUGONU: likes.push_back("kill the undead"); @@ -568,43 +579,48 @@ std::string get_god_likes(god_type which_god, bool verbose) break; } - // Unusual kills. + // Especially appreciated kills. switch (which_god) { case GOD_ZIN: - likes.push_back("kill monsters which cause mutation or rotting"); - break; - - case GOD_SHINING_ONE: - likes.push_back("kill living evil beings"); + really_likes.push_back("kill monsters which cause mutation or rotting"); break; case GOD_YREDELEMNUL: - likes.push_back("kill holy beings"); + really_likes.push_back("kill holy beings"); break; case GOD_BEOGH: - likes.push_back("kill the priests of other religions"); + really_likes.push_back("kill the priests of other religions"); break; case GOD_TROG: - likes.push_back("kill wizards and other users of magic"); + really_likes.push_back("kill wizards and other users of magic"); break; default: break; } - if (likes.size() == 0) - { + if (likes.size() == 0 && really_likes.size() == 0) text += " %s doesn't like anything? This a bug; please report it."; - } else { text += " likes it when you "; text += comma_separated_line(likes.begin(), likes.end(), ", and ", ", "); text += "."; + + if (really_likes.size() > 0) + { + text += " "; + text += god_name(which_god); + + text += " especially likes it when you "; + text += comma_separated_line(really_likes.begin(), + really_likes.end(), ", and ", ", "); + text += "."; + } } return (text); |