summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-12 00:20:31 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-12 00:22:23 +0100
commitb1b883e344e68dca92abafbdbcb4aea891bcfd8d (patch)
tree6c1eb4852cd5ed3f2eb0dd75c6a73ffe1fba4a22
parent56bdc43adbfa5070e786e1c6683e87348be95530 (diff)
downloadcrawl-ref-b1b883e344e68dca92abafbdbcb4aea891bcfd8d.tar.gz
crawl-ref-b1b883e344e68dca92abafbdbcb4aea891bcfd8d.zip
Add a coinflip() to slimes splitting, so it's not as reliable.
-rw-r--r--crawl-ref/source/mon-abil.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-abil.cc b/crawl-ref/source/mon-abil.cc
index 5f6209bbcf..fecad4a74f 100644
--- a/crawl-ref/source/mon-abil.cc
+++ b/crawl-ref/source/mon-abil.cc
@@ -401,9 +401,9 @@ static bool _slime_merge(monsters *thing)
// we can find a square to place the new slime creature on.
static bool _slime_split(monsters *thing)
{
- if (!thing
- || _disabled_slime(thing)
- || thing->number <= 1)
+ if (!thing || thing->number <= 1
+ || coinflip() // Don't make splitting quite so reliable. (jpeg)
+ || _disabled_slime(thing))
{
return (false);
}