diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-25 17:11:45 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-25 17:11:45 +0000 |
commit | 6297b352b077c9c5e8fdd154cc1cda620d617f71 (patch) | |
tree | b017d96fee4be48579f2a1ce9c5f8a89af4192e4 /crawl-ref/source/chardump.cc | |
parent | 7249037678b8250bbbdb59ee89b7e1852cf63b53 (diff) | |
download | crawl-ref-6297b352b077c9c5e8fdd154cc1cda620d617f71.tar.gz crawl-ref-6297b352b077c9c5e8fdd154cc1cda620d617f71.zip |
Consolidate the mutation-counting routines.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4628 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/chardump.cc')
-rw-r--r-- | crawl-ref/source/chardump.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 519fabf849..252a46540e 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -1093,14 +1093,8 @@ static void sdump_hiscore(dump_params &par) static void sdump_mutations(dump_params &par) { std::string &text(par.text); - // Can't use how_mutated() here, as it doesn't count demonic powers - int xz = 0; - for (int xy = 0; xy < NUM_MUTATIONS; ++xy) - if (you.mutation[xy] > 0) - xz++; - - if (xz > 0) + if (how_mutated(true, false)) { text += "\n"; text += describe_mutations(); |