From f434c8054d6d33d594048bcc43e0fdc8b64c0700 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 17 Apr 2009 19:23:41 +0000 Subject: 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 --- crawl-ref/source/describe.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/describe.cc') 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()); -- cgit v1.2.3-54-g00ecf