summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-04 20:11:30 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-04 20:11:30 +0000
commitda9379a27bd5f575f7ed267f4eeb17aa11e1a24c (patch)
treedffd837f92a1f0048fc27673938952588b182585 /crawl-ref/source/religion.cc
parent59b053efd22ccd197d042ed5731b117e4846599b (diff)
downloadcrawl-ref-da9379a27bd5f575f7ed267f4eeb17aa11e1a24c.tar.gz
crawl-ref-da9379a27bd5f575f7ed267f4eeb17aa11e1a24c.zip
Make Beogh prefer to bless priestly monsters as well as named monsters.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7384 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index e1d969745c..a924c6c1df 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1555,8 +1555,10 @@ bool bless_follower(monsters *follower,
if (chance > 2)
return (false);
- // Choose a random follower in LOS, preferably a named one (10% chance).
- follower = choose_random_nearby_monster(0, suitable, true, true);
+ // Choose a random follower in LOS, preferably a named one, or a
+ // priestly one for Beogh (10% chance).
+ follower = choose_random_nearby_monster(0, suitable, true, true,
+ god == GOD_BEOGH);
if (!follower)
{
@@ -1564,7 +1566,8 @@ bool bless_follower(monsters *follower,
return (false);
// Try again, without the LOS restriction (5% chance).
- follower = choose_random_nearby_monster(0, suitable, false, true);
+ follower = choose_random_nearby_monster(0, suitable, false, true,
+ god == GOD_BEOGH);
if (!follower)
{
@@ -1572,8 +1575,9 @@ bool bless_follower(monsters *follower,
return (false);
// Try *again*, on the entire level (2.5% chance).
- follower = choose_random_monster_on_level(0, suitable,
- false, false, true);
+ follower = choose_random_monster_on_level(0, suitable, false,
+ false, true,
+ god == GOD_BEOGH);
if (!follower)
{