diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-20 22:49:12 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-20 22:49:12 -0700 |
commit | bca73d33b73c9b59c5b138b2a49a3346f1711e01 (patch) | |
tree | c83281d08eba1d2a2c0475d4dc4e28147d0feaf9 /crawl-ref/source/religion.cc | |
parent | 8b14d1760315c8ea3dcc64298c844b5afbb8f1eb (diff) | |
download | crawl-ref-bca73d33b73c9b59c5b138b2a49a3346f1711e01.tar.gz crawl-ref-bca73d33b73c9b59c5b138b2a49a3346f1711e01.zip |
Fix wizmode blessing (MarvinPA)
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 9f7d376f31..5f9ade27ab 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -2133,7 +2133,7 @@ static bool _beogh_bless_follower(monster* follower, bool force) string blessing = ""; // 10% chance of blessing to priesthood. - if (one_chance_in(10)) + if (force || one_chance_in(10)) { if (_beogh_blessing_priesthood(follower)) blessing = "priesthood"; @@ -2142,7 +2142,7 @@ static bool _beogh_bless_follower(monster* follower, bool force) } // ~15% chance of blessing armament (assume that most priest buffs fail) - if (blessing.empty() && one_chance_in(7)) + if (blessing.empty() && (force || one_chance_in(7))) { blessing = coinflip() ? _bless_weapon(follower, true) : _bless_armour(follower, true); @@ -2211,7 +2211,7 @@ static bool _tso_bless_follower(monster* follower, bool force) return false; string blessing = ""; - if (one_chance_in(10)) + if (one_chance_in(10) || force) { blessing = coinflip() ? _bless_weapon(follower) : _bless_armour(follower); |