summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mutation.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-10-23 04:24:02 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-10-23 04:30:16 +0200
commit93e47c4cd769153ac7679753bf69c57618ee9493 (patch)
tree201339cc5c5e373b67e7d39206018975e9c0d266 /crawl-ref/source/mutation.h
parent3632009360f9d77762291492765b76ae2c92e70e (diff)
downloadcrawl-ref-93e47c4cd769153ac7679753bf69c57618ee9493.tar.gz
crawl-ref-93e47c4cd769153ac7679753bf69c57618ee9493.zip
Refactor choosing random mutations.
This fixes races that don't support some mutations being more resistant to mutating attempts: there will be rerolls in such a case. Conflicts with other regular mutations still decrease the chance, in line with deliberately failing such attempts when heavily mutated. The code is also quite a bit faster in all practical cases, although slower in pathological wizmode scenarios that can't possibly happen in real games.
Diffstat (limited to 'crawl-ref/source/mutation.h')
-rw-r--r--crawl-ref/source/mutation.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/crawl-ref/source/mutation.h b/crawl-ref/source/mutation.h
index 34e1e9b53b..a9b7e106e9 100644
--- a/crawl-ref/source/mutation.h
+++ b/crawl-ref/source/mutation.h
@@ -67,8 +67,6 @@ bool is_valid_mutation(mutation_type mut);
bool is_body_facet(mutation_type mut);
const mutation_def& get_mutation_def(mutation_type mut);
-void fixup_mutations();
-
bool mutate(mutation_type which_mutation, const string &reason,
bool failMsg = true,
bool force_mutation = false, bool god_gift = false,