diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-26 03:22:54 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-26 03:22:54 +0000 |
commit | 47a9f623f76c9e9186b54b42d9d7ec0f683b469f (patch) | |
tree | 4402ab03f4d85024e6a082773e2f0258d2641d8b /crawl-ref/source/player.cc | |
parent | d16ed1201876132b39d151da6877de997da67912 (diff) | |
download | crawl-ref-47a9f623f76c9e9186b54b42d9d7ec0f683b469f.tar.gz crawl-ref-47a9f623f76c9e9186b54b42d9d7ec0f683b469f.zip |
And generalize them a bit more.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4651 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 84ccd266c6..401ae4cde5 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6458,18 +6458,21 @@ bool player::can_safely_mutate() const && you.hunger_state == HS_ENGORGED))); } -void player::mutate() +bool player::mutate() { if (!can_mutate()) - return; + return false; if (one_chance_in(5)) { if (::mutate(RANDOM_MUTATION)) + { learned_something_new(TUT_YOU_MUTATED); + return true; + } } - else - give_bad_mutation(); + + return give_bad_mutation(); } bool player::is_icy() const |