summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-03 21:18:44 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-03 21:18:44 +0000
commita32a2ae31db4aca7df3ea969b0c1ef456c0ba159 (patch)
tree771c0fbf31e627cc525d816de6c8dee60ed8739a /crawl-ref/source/command.cc
parent5408e069ec778214f8a3fe07a4d871070823891b (diff)
downloadcrawl-ref-a32a2ae31db4aca7df3ea969b0c1ef456c0ba159.tar.gz
crawl-ref-a32a2ae31db4aca7df3ea969b0c1ef456c0ba159.zip
Reorder species in newgame.cc (clean-up, no coding changes).
Add known weapons of holy wrath as useless items for undead, likewise with weapons of pain for characters without Necromancy skill. (The latter only applies if the item is not an artefact.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6374 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index 5c4b37361d..e4edca3747 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -866,7 +866,7 @@ static bool _compare_mon_toughness(MenuEntry *entry_a, MenuEntry* entry_b)
{
std::string a_name = mons_type_name(*a, DESC_PLAIN);
std::string b_name = mons_type_name(*b, DESC_PLAIN);
- return ( lowercase(a_name) < lowercase(b_name));
+ return (lowercase(a_name) < lowercase(b_name));
}
return (a_toughness < b_toughness);
@@ -1111,6 +1111,11 @@ 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)
{
+ if (is_good_god(which_god))
+ {
+ suffix = "$$" + god_name(which_god) + " won't accept worship from "
+ "undead or evil beings.";
+ }
std::string help = get_god_powers(which_god);
if (!help.empty())
{