summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-item.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-15 23:33:53 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-16 00:37:56 +0100
commitcccc238366d220a2e21bb9d2321e84e4f82425fa (patch)
treeb80e1d9347ac0fe5f725bda57973106062f19641 /crawl-ref/source/wiz-item.cc
parent615f045509987fc9012c764b956d000108452428 (diff)
downloadcrawl-ref-cccc238366d220a2e21bb9d2321e84e4f82425fa.tar.gz
crawl-ref-cccc238366d220a2e21bb9d2321e84e4f82425fa.zip
Add religion to acquirement statistics output.
Diffstat (limited to 'crawl-ref/source/wiz-item.cc')
-rw-r--r--crawl-ref/source/wiz-item.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/wiz-item.cc b/crawl-ref/source/wiz-item.cc
index 843535e374..c66bc4a2f3 100644
--- a/crawl-ref/source/wiz-item.cc
+++ b/crawl-ref/source/wiz-item.cc
@@ -952,10 +952,14 @@ static void _debug_acquirement_stats(FILE *ostat)
: "buggy items");
// Print player species/profession.
- fprintf(ostat, "%s the %s (%s %s)\n\n",
+ std::string godname = "";
+ if (you.religion != GOD_NO_GOD)
+ godname += " of " + god_name(you.religion);
+
+ fprintf(ostat, "%s the %s, %s %s%s\n\n",
you.your_name.c_str(), player_title().c_str(),
species_name(you.species, you.experience_level).c_str(),
- you.class_name);
+ you.class_name, godname.c_str());
// Print player equipment.
const int e_order[] =
@@ -1036,7 +1040,7 @@ static void _debug_acquirement_stats(FILE *ostat)
if (disc & SPTYP_DIVINATION)
continue;
- fprintf(ostat, "%-13s: %d/%d spells unseen\n",
+ fprintf(ostat, "%-13s: %2d/%2d spells unseen\n",
spelltype_long_name(disc),
unseen_spells[d], total_spells[d]);
}