summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-11 18:27:30 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-11 18:27:30 +0000
commit0e5f00f8997011546d2010e975bcce3ccd78be91 (patch)
tree53bddd7a96a7756ad751dfd29bf2f7d4cd115514 /crawl-ref/source/player.cc
parent38ee7a2c66d01a47b69b17e78a477b2f2832b388 (diff)
downloadcrawl-ref-0e5f00f8997011546d2010e975bcce3ccd78be91.tar.gz
crawl-ref-0e5f00f8997011546d2010e975bcce3ccd78be91.zip
Fixed monsters that are not in sight being identified by name if they're
attacking a monster that is in sight. Implemented AF_MUTATE for pulsating lumps. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1288 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc8
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();
+}