diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-29 00:34:19 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-29 00:34:19 +0000 |
commit | 4df1ff7d51ee4c57b53af69e9f5e7db3ee72ab1a (patch) | |
tree | b7056c61697fd0837e8e9dc969cf78d15e4e357c /crawl-ref | |
parent | 62470c9aa5f451e4743024b31e38af509b28c0c9 (diff) | |
download | crawl-ref-4df1ff7d51ee4c57b53af69e9f5e7db3ee72ab1a.tar.gz crawl-ref-4df1ff7d51ee4c57b53af69e9f5e7db3ee72ab1a.zip |
Like Beogh, let TSO bless followers when they gain experience levels.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3926 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 21f96acfad..45581f88b0 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -410,6 +410,15 @@ static void _give_monster_experience( monsters *victim, if (mons->gain_exp(experience)) { // Randomly bless the follower who gained experience. + if (you.religion == GOD_SHINING_ONE + && !player_under_penance() + && random2(you.piety) >= piety_breakpoint(0) + && !one_chance_in(3)) + { + bless_follower(GOD_SHINING_ONE, is_tso_follower, mons); + } + + // Randomly bless the follower who gained experience. if (you.religion == GOD_BEOGH && !player_under_penance() && random2(you.piety) >= piety_breakpoint(2) |