diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-10-23 04:24:02 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-10-23 04:30:16 +0200 |
commit | 93e47c4cd769153ac7679753bf69c57618ee9493 (patch) | |
tree | 201339cc5c5e373b67e7d39206018975e9c0d266 /crawl-ref/source/ng-init.cc | |
parent | 3632009360f9d77762291492765b76ae2c92e70e (diff) | |
download | crawl-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/ng-init.cc')
0 files changed, 0 insertions, 0 deletions