summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-21 22:59:02 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-21 22:59:02 +0000
commit16f894085e365fafc32914a7850bc53fc94bcd73 (patch)
tree90ff91ae271e89221ea97c838f584860859f1940 /crawl-ref/source/monstuff.cc
parent305f0fbc8c6540916a79f3afb5051755d3c76ca4 (diff)
downloadcrawl-ref-16f894085e365fafc32914a7850bc53fc94bcd73.tar.gz
crawl-ref-16f894085e365fafc32914a7850bc53fc94bcd73.zip
Adjust it still one more time.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4456 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 24757f97f8..b5970bcc0e 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1066,6 +1066,10 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
{
monsters *mon = &menv[i];
+ // Randomly bless the follower who killed.
+ if (!one_chance_in(3) && bless_follower(mon))
+ break;
+
if (mon->alive() && mon->hit_points < mon->max_hit_points)
{
simple_monster_message(mon, " looks invigorated.");
@@ -1075,12 +1079,9 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
}
// Randomly bless the follower who killed.
- if (((you.religion == GOD_SHINING_ONE
- && mons_is_evil_or_unholy(monster)
- && random2(you.piety) >= piety_breakpoint(0))
- || (you.religion == GOD_BEOGH
- && mons_holiness(monster) == MH_NATURAL
- && random2(you.piety) >= piety_breakpoint(2))
+ if (((you.religion == GOD_BEOGH
+ && mons_holiness(monster) == MH_NATURAL
+ && random2(you.piety) >= piety_breakpoint(2))
&& !player_under_penance())
&& !one_chance_in(3)
&& !invalid_monster_index(i))