diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-27 13:06:46 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-27 13:06:46 +0000 |
commit | bc2e35c0169e2724ac4d81c2d4d85fdba16464d9 (patch) | |
tree | cb41b0c900a1257d9a6675afe4826a3aff2ea5e7 /crawl-ref/source/religion.cc | |
parent | 3c019ba470b167e749e572b8a3d55214aadd03f8 (diff) | |
download | crawl-ref-bc2e35c0169e2724ac4d81c2d4d85fdba16464d9.tar.gz crawl-ref-bc2e35c0169e2724ac4d81c2d4d85fdba16464d9.zip |
* For Beogh's high level reinforcements, there's a 20% chance of a
summon to be named.
* If the show_gold_turns option is used print gold and turns on the
second to last line in the hud rather than the last, so xp and
level are always in the last line.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4692 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index b49ea6b323..f1c77b552b 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -1035,10 +1035,15 @@ static bool _beogh_blessing_reinforcement() int how_many = random2(4) + 1; monster_type follower_type; + bool high_level; for (int i = 0; i < how_many; ++i) { + high_level = false; if (random2(you.experience_level) >= 9 && coinflip()) + { follower_type = RANDOM_ELEMENT(high_xl_followers); + high_level = true; + } else follower_type = RANDOM_ELEMENT(followers); @@ -1050,6 +1055,10 @@ static bool _beogh_blessing_reinforcement() monsters *mon = &menv[monster]; mon->flags |= MF_ATT_CHANGE_ATTEMPT; + // For high level orcs, there's a chance of being named. + if (high_level && one_chance_in(5)) + give_unique_monster_name(mon); + success = true; } } |