diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-21 01:01:43 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-21 01:01:43 +0000 |
commit | a84ea40a942fa25720d2484dabd8ed33cdf5582e (patch) | |
tree | 223945c40a4bb1d7081fd57d5f5d8f4f44f5703a /crawl-ref | |
parent | 498c51d938cc76fc5f2a1b46a4618603da9f3f94 (diff) | |
download | crawl-ref-a84ea40a942fa25720d2484dabd8ed33cdf5582e.tar.gz crawl-ref-a84ea40a942fa25720d2484dabd8ed33cdf5582e.zip |
Check more efficiently for monsters eligible to be promoted to priests.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3777 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/religion.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 5c19fc258b..0f64682178 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -789,9 +789,12 @@ void bless_follower(god_type god, const char *result; // 5% chance: Turn a monster into a priestly monster, if possible. - // This is currently only used for Beogh. - if (god == GOD_BEOGH && one_chance_in(20) && promote_to_priest(mon)) + // This is currently only used for Beogh and ordinary orcs. + if (god == GOD_BEOGH && one_chance_in(20) && mon->type == MONS_ORC) + { + promote_to_priest(mon); result = "priesthood"; + } // 95% chance: full healing. else { |