diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 9ee2493df7..cbc7009116 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -5266,3 +5266,11 @@ bool player::backlit() const { return (magic_contamination >= 5 || backlight); } + +void player::mutate() +{ + if (one_chance_in(5)) + ::mutate(100); + else + give_bad_mutation(); +} |