diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-09 15:32:01 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-09 15:32:01 +0000 |
commit | f1f2c1bb466850d7d7641bd14a0417f085ef140a (patch) | |
tree | 42eb35e8f08d25a1f307ad4e63ee8f4a49d725ed /crawl-ref/source/religion.cc | |
parent | e2d1b5dfa2a106a40db5ab6a23e6eb19e3aae8ca (diff) | |
download | crawl-ref-f1f2c1bb466850d7d7641bd14a0417f085ef140a.tar.gz crawl-ref-f1f2c1bb466850d7d7641bd14a0417f085ef140a.zip |
Make the weapon and armor enchantment blessings for followers enchant by
only one point instead of one or two points.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6801 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index cb6c0ce683..082500d6be 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -1521,24 +1521,14 @@ bool bless_follower(monsters *follower, } } - // Enchant a monster's weapon or armour/shield by one or two points, - // or at least uncurse it, if possible (10% chance). + // Enchant a monster's weapon or armour/shield by one point, or at + // least uncurse it, if possible (10% chance). // This will happen if the above blessing attempts are unsuccessful. if (chance <= 1) { - bool affected; - if (coinflip()) { - affected = _blessing_wpn(follower); - - if (!affected || coinflip()) - { - if (_blessing_wpn(follower)) - affected = true; - } - - if (affected) + if (_blessing_wpn(follower)) { result = "extra attack power"; give_monster_proper_name(follower); @@ -1549,15 +1539,7 @@ bool bless_follower(monsters *follower, } else { - affected = _blessing_AC(follower); - - if (!affected || coinflip()) - { - if (_blessing_AC(follower)) - affected = true; - } - - if (affected) + if (_blessing_AC(follower)) { result = "extra defence"; give_monster_proper_name(follower); |