diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-24 23:28:28 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-24 23:28:28 -0800 |
commit | 8fff000e0d80c5b47e22c79916994062c93c0be1 (patch) | |
tree | 54bd27b8e6d098858b5cb49c02b49faf31a42513 /crawl-ref | |
parent | 8b2941aed84625288c94d7822ef5fa6c239714eb (diff) | |
download | crawl-ref-8fff000e0d80c5b47e22c79916994062c93c0be1.tar.gz crawl-ref-8fff000e0d80c5b47e22c79916994062c93c0be1.zip |
Lets jellies pathfind through eatable doors.
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/mon-pathfind.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc index 94aa3851fd..e7fc8c503c 100644 --- a/crawl-ref/source/mon-pathfind.cc +++ b/crawl-ref/source/mon-pathfind.cc @@ -406,7 +406,9 @@ bool monster_pathfind::mons_traversable(const coord_def p) { if (mons->is_habitable_feat(DNGN_FLOOR)) { - if (mons_is_zombified(mons)) + if (mons_eats_items(mons)) + return (true); + else if (mons_is_zombified(mons)) { if (mons_class_itemuse(montype) >= MONUSE_OPEN_DOORS) return (true); |