From e0ecd1fad5cd18dd866cb46d9b230e20cea53606 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 2 Oct 2008 17:01:22 +0000 Subject: Clarify god descriptions a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7082 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.cc | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) (limited to 'crawl-ref/source/religion.cc') 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 likes; + std::vector 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 a command" : ""); likes.push_back(info); @@ -537,6 +538,16 @@ std::string get_god_likes(god_type which_god, bool verbose) break; } + 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: @@ -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); -- cgit v1.2.3-54-g00ecf