summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-21 21:13:09 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-21 21:13:09 +0000
commit33b24e66a7a26ba76ae804996f16a1b8b779a353 (patch)
tree07e0df29f0ca567ddab1521805cecd27e6f12ad4 /crawl-ref/source/describe.cc
parent1b6bfb7856cb5590e9e10c1e7317eba775409b21 (diff)
downloadcrawl-ref-33b24e66a7a26ba76ae804996f16a1b8b779a353.tar.gz
crawl-ref-33b24e66a7a26ba76ae804996f16a1b8b779a353.zip
* Actually use the rock worm's corpse tile.
* Tweak a few skill titles. * Update the change log (not for these, though). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10769 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc25
1 files changed, 15 insertions, 10 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 1586fd4b63..8fc83f6c9d 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -3290,6 +3290,20 @@ static int _piety_level()
}
+std::string god_title(god_type which_god)
+{
+ 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));
+
+ return (title);
+}
+
static void _detailed_god_description(god_type which_god)
{
clrscr();
@@ -3457,16 +3471,7 @@ void describe_god( god_type which_god, bool give_title )
cprintf(EOL "Title - ");
textcolor(colour);
- 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));
-
+ std::string title = god_title(which_god);
cprintf("%s", title.c_str());
}