From 6297b352b077c9c5e8fdd154cc1cda620d617f71 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 25 Apr 2008 17:11:45 +0000 Subject: Consolidate the mutation-counting routines. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4628 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/chardump.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'crawl-ref/source/chardump.cc') 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(); -- cgit v1.2.3-54-g00ecf