From 6227494d3fee44608ba466d38a4e893e25a7d634 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 28 Mar 2008 23:09:17 +0000 Subject: 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 --- crawl-ref/source/religion.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crawl-ref/source/religion.cc') 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 -- cgit v1.2.3-54-g00ecf