From ed1a302134f7bb174e4117f3eed94b1d16484a88 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 24 May 2009 05:17:52 +0000 Subject: 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 --- crawl-ref/source/spells1.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-54-g00ecf