diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-24 05:17:52 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-24 05:17:52 +0000 |
commit | ed1a302134f7bb174e4117f3eed94b1d16484a88 (patch) | |
tree | 8eb6fb948d55fe6a2b284a115dd6c2469339177e /crawl-ref/source/spells1.cc | |
parent | 0c023f544c759f832d5432503a8a02f9f52906be (diff) | |
download | crawl-ref-ed1a302134f7bb174e4117f3eed94b1d16484a88.tar.gz crawl-ref-ed1a302134f7bb174e4117f3eed94b1d16484a88.zip |
As suggested in [2795535], take current piety into account when
pacifying monsters.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9813 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 284cbf92e5..4e0aad24eb 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -762,7 +762,10 @@ static int _healing_spell(int healed, bool divine_ability, int pgain = 0; if (!is_holy && !is_summoned && you.piety < MAX_PIETY) - pgain = random2(1 + random2(monster->max_hit_points / 12)); + { + pgain = random2(1 + random2(monster->max_hit_points / + (2 + you.piety / 20))); + } if (pgain > 0) simple_god_message(" approves of your offer of peace."); @@ -799,11 +802,15 @@ static int _healing_spell(int healed, bool divine_ability, pgain = 1; if (pgain > 0) + { simple_god_message(" approves of your healing of a fellow " "creature."); + } else + { simple_god_message(" appreciates your healing of a fellow " "creature."); + } // Give a small piety return. if (pgain > 0) |