From 459a7d4171d64ee57ca033f50b2d521d0b1c2d78 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 4 Sep 2009 12:28:38 +0000 Subject: 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 --- crawl-ref/source/describe.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'crawl-ref') 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)); -- cgit v1.2.3-54-g00ecf