summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-17 19:23:41 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-17 19:23:41 +0000
commitf434c8054d6d33d594048bcc43e0fdc8b64c0700 (patch)
tree9de7c4ab3084c39152b0600044bc147c968694f8 /crawl-ref/source/describe.cc
parenta2ee945eaee1458842b9e65ccc9069e2602a11a1 (diff)
downloadcrawl-ref-f434c8054d6d33d594048bcc43e0fdc8b64c0700.tar.gz
crawl-ref-f434c8054d6d33d594048bcc43e0fdc8b64c0700.zip
Since player ghosts now retain their religions (under most
circumstances), display it in their descriptions if applicable. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9607 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index e8ff3bd57d..618a671b66 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -3020,6 +3020,11 @@ std::string get_ghost_description(const monsters &mons, bool concise)
<< " "
<< get_class_name(ghost.job);
}
+ if (ghost.religion != GOD_NO_GOD)
+ {
+ gstr << " of "
+ << god_name(ghost.religion);
+ }
return gstr.str();
}
@@ -3418,7 +3423,7 @@ void describe_god( god_type which_god, bool give_title )
// Print god's description.
textcolor(LIGHTGREY);
- std::string god_desc = getLongDescription(god_name(which_god, false));
+ std::string god_desc = getLongDescription(god_name(which_god));
const int numcols = get_number_of_cols();
cprintf("%s", get_linebreak_string(god_desc.c_str(), numcols).c_str());