diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-30 15:57:57 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-30 15:57:57 +0000 |
commit | f27e46e05fc198125b16f1bc0edf841a6f74d21f (patch) | |
tree | 7db65a59b3b0d96f04560aab0fc6bfd5df8dd628 /crawl-ref/source/stuff.cc | |
parent | 8ed677055467ee859be944fabf1d1686d7385137 (diff) | |
download | crawl-ref-f27e46e05fc198125b16f1bc0edf841a6f74d21f.tar.gz crawl-ref-f27e46e05fc198125b16f1bc0edf841a6f74d21f.zip |
For Yred worshippers, allow non-mindless undead to follow you if they're
not adjacent. Mindless undead will still only follow you if they're
adjacent.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7306 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 1bbba85a91..768b10f762 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -368,8 +368,15 @@ static bool tag_follower_at(const coord_def &pos) if (!mons_friendly(fmenv)) return (false); - // Orcs will follow Beogh worshippers. - if (you.religion != GOD_BEOGH || !is_follower(fmenv)) + // Non-mindless undead will follow Yredelemnul worshippers, and + // orcs will follow Beogh worshippers. + if (you.religion != GOD_YREDELEMNUL && you.religion != GOD_BEOGH) + return (false); + + if (you.religion == GOD_YREDELEMNUL && mons_intel(fmenv) <= I_PLANT) + return (false); + + if (!is_follower(fmenv)) return (false); } |