diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-06-11 20:28:51 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-06-11 20:36:01 -0400 |
commit | 269cbc387268c6cfeb8204846b5b02fd413a52b9 (patch) | |
tree | 8df64483da809ec3b6f600d1d43e35f3f4749d6c /crawl-ref/source/actor.cc | |
parent | 325df1da173b266b4556472f87378c09835ddd5b (diff) | |
download | crawl-ref-269cbc387268c6cfeb8204846b5b02fd413a52b9.tar.gz crawl-ref-269cbc387268c6cfeb8204846b5b02fd413a52b9.zip |
Fix Forlorn mutation giving less antifaith at high piety
There was an ealier, simpler impelmentation which wasn't changed
correctly.
Diffstat (limited to 'crawl-ref/source/actor.cc')
-rw-r--r-- | crawl-ref/source/actor.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/actor.cc b/crawl-ref/source/actor.cc index d808f325af..a1e4c3e101 100644 --- a/crawl-ref/source/actor.cc +++ b/crawl-ref/source/actor.cc @@ -298,12 +298,11 @@ int actor::faith(bool calc_unid, bool items) const { net_faith--; - // 133 means 1/6 piety gain at max piety. - if (div_rand_round(you.piety, 133) == 1 - && !you_worship(GOD_XOM) - && !you_worship(GOD_GOZAG)) // Ignore gods which don't use piety. + // Ignore gods which don't use piety. + if (!you_worship(GOD_XOM) && !you_worship(GOD_GOZAG)) { - net_faith--; + // 133 means 1/6 piety gain at max piety. + net_faith -= div_rand_round(you.piety, 133); } } return net_faith; |