summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-04 12:28:38 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-04 12:28:38 +0000
commit459a7d4171d64ee57ca033f50b2d521d0b1c2d78 (patch)
tree23478a15caedd98595a5a098853898746692145e /crawl-ref/source/describe.cc
parent5dbcbe0214981dfad90fc3e5fc95a6d9eebfa51f (diff)
downloadcrawl-ref-459a7d4171d64ee57ca033f50b2d521d0b1c2d78.tar.gz
crawl-ref-459a7d4171d64ee57ca033f50b2d521d0b1c2d78.zip
Apply caotto's patch in [2850890] to display the lowest piety level
title in the "^" screen for players under penance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10619 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 68b2a77587..e6853746ca 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -3431,9 +3431,16 @@ void describe_god( god_type which_god, bool give_title )
if (you.religion == which_god)
{
// Print title based on piety.
- cprintf( EOL "Title - " );
+ cprintf(EOL "Title - ");
textcolor(colour);
- std::string title = divine_title[which_god][_piety_level()];
+
+ std::string title;
+
+ if (you.penance[which_god])
+ title = divine_title[which_god][0];
+ else
+ title = divine_title[which_god][_piety_level()];
+
title = replace_all(title, "%s",
species_name(you.species, 1, true, false));