summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pathfind.cc
diff options
context:
space:
mode:
authorSage <SageBasilMint@gmail.com>2014-02-25 16:57:38 -0700
committerSage <SageBasilMint@gmail.com>2014-02-25 17:00:33 -0700
commitb5de9b17133aaa0611d27551d3ee71ed762084b5 (patch)
tree8e8c82e3a49dee937490bfe4257384c3ef8f68c0 /crawl-ref/source/mon-pathfind.cc
parent9348787c1faef951b217beeb3771312cbd96aff2 (diff)
downloadcrawl-ref-b5de9b17133aaa0611d27551d3ee71ed762084b5.tar.gz
crawl-ref-b5de9b17133aaa0611d27551d3ee71ed762084b5.zip
Let wandering mushrooms swap with toadstools.
...And not block your exit when you are swapping through toadstools. Addresses annoyances while playing Fedhasites, after praying in corridors and blocking off allied mushrooms, or getting blocked in by mushrooms in a hole in a wall. Other allies are still blocked by toadstools.
Diffstat (limited to 'crawl-ref/source/mon-pathfind.cc')
-rw-r--r--crawl-ref/source/mon-pathfind.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc
index 16c89b56a5..0ec477a382 100644
--- a/crawl-ref/source/mon-pathfind.cc
+++ b/crawl-ref/source/mon-pathfind.cc
@@ -430,6 +430,13 @@ bool monster_pathfind::traversable(const coord_def& p)
return true;
}
+ else if (mons && mons->type == MONS_WANDERING_MUSHROOM
+ && monster_at(p)
+ && monster_at(p)->type == MONS_TOADSTOOL)
+ {
+ return true;
+ }
+
return false;
}