From e4a8dcc31b38eaef1dd6ffeb8f857831ec6cbbd5 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 23 May 2009 21:50:37 +0000 Subject: Indicate via the message whether healing a friendly monster gained piety with Elyvilon, based on the previous messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9810 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells1.cc | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/spells1.cc') diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 2558184a29..7724d0112f 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -773,13 +773,11 @@ static int _healing_spell(int healed, bool divine_ability, good_god_holy_attitude_change(monster); else { - simple_monster_message(monster, " turns neutral."); mons_pacify(monster); // Give a small piety return. - if (!is_summoned) - gain_piety(pgain); + gain_piety(pgain); } } @@ -795,10 +793,19 @@ static int _healing_spell(int healed, bool divine_ability, if (you.religion == GOD_ELYVILON && !is_hostile) { - simple_god_message(" appreciates your healing of a fellow " - "creature."); - if (one_chance_in(8)) - gain_piety(1); + int pgain = 0; + if (one_chance_in(8) && you.piety < MAX_PIETY) + 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. + gain_piety(pgain); } } -- cgit v1.2.3-54-g00ecf