summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-28 23:09:17 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-28 23:09:17 +0000
commit6227494d3fee44608ba466d38a4e893e25a7d634 (patch)
tree8c82bc0d3501baf89ac790200b30b58557cbe759 /crawl-ref/source/religion.cc
parente515471c2e027d2f1bd06e7b4cde7e8983949fcb (diff)
downloadcrawl-ref-6227494d3fee44608ba466d38a4e893e25a7d634.tar.gz
crawl-ref-6227494d3fee44608ba466d38a4e893e25a7d634.zip
Add the beginnings of TSO follower blessings. Assume that followers are
any living friendly or charmed monsters. Deliberately don't check for evil or unholy status; that should help shake out cases where you can get them. Currently, only do blessings on followers that kill evil monsters 1/3 of the time, instead of gaining power as they normally would. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3923 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 83204da7b3..1c7c4b0de7 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -3735,6 +3735,15 @@ void beogh_convert_orc(monsters *orc, bool emergency,
behaviour_event(orc, ME_ALERT, MHITNOT);
}
+bool is_tso_follower(const monsters* mon)
+{
+ // Don't check for evil or unholy allies here, as that's done
+ // elsewhere.
+ return (mon->alive()
+ && (mon->attitude == ATT_FRIENDLY
+ || mon->has_ench(ENCH_CHARM)));
+}
+
bool is_orcish_follower(const monsters* mon)
{
return (mon->alive() && mons_species(mon->type) == MONS_ORC